Skip to content

Commit

Permalink
Refactor to TypeScript (#95)
Browse files Browse the repository at this point in the history
* Refactor to TypeScript

* Fix Node 6

* Prettier

* Fix "end" event on non-200 status codes

Fixes #87.
Closes #93.

* Prettier

* Prettier

* Better
  • Loading branch information
TooTallNate committed Feb 5, 2020
1 parent 176d4b4 commit 0379e01
Show file tree
Hide file tree
Showing 9 changed files with 477 additions and 341 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
/node_modules
/yarn.lock
/?.js
/?.?s
/dist
22 changes: 0 additions & 22 deletions index.d.ts

This file was deleted.

239 changes: 0 additions & 239 deletions index.js

This file was deleted.

34 changes: 27 additions & 7 deletions package.json
Expand Up @@ -2,10 +2,17 @@
"name": "https-proxy-agent",
"version": "4.0.0",
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS",
"main": "./index.js",
"types": "./index.d.ts",
"main": "dist/index",
"types": "dist/index",
"files": [
"dist"
],
"scripts": {
"test": "mocha --reporter spec"
"prebuild": "rimraf dist",
"build": "tsc",
"test": "mocha --reporter spec",
"test-lint": "eslint src --ext .js,.ts",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
Expand All @@ -23,14 +30,27 @@
"url": "https://github.com/TooTallNate/node-https-proxy-agent/issues"
},
"dependencies": {
"agent-base": "5",
"agent-base": "6",
"debug": "4"
},
"devDependencies": {
"mocha": "6",
"proxy": "1"
"@types/debug": "4",
"@types/node": "^12.12.11",
"@typescript-eslint/eslint-plugin": "1.6.0",
"@typescript-eslint/parser": "1.1.0",
"eslint": "5.16.0",
"eslint-config-airbnb": "17.1.0",
"eslint-config-prettier": "4.1.0",
"eslint-import-resolver-typescript": "1.1.1",
"eslint-plugin-import": "2.16.0",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-react": "7.12.4",
"mocha": "^6.2.2",
"proxy": "1",
"rimraf": "^3.0.0",
"typescript": "^3.5.3"
},
"engines": {
"node": ">= 6.0.0"
"node": ">= 6"
}
}

0 comments on commit 0379e01

Please sign in to comment.