Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to TypeScript #95

Merged
merged 7 commits into from Feb 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"
}
}