Skip to content

Commit

Permalink
Fixed compatibility with node 14 typings (TooTallNate#46)
Browse files Browse the repository at this point in the history
Co-authored-by: Damien Bénard <damien.benard@amplexor.com>
  • Loading branch information
dabenard and dabenard-amplexor-ca committed Oct 23, 2020
1 parent ad9a326 commit f57e2e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -38,7 +38,7 @@
"devDependencies": {
"@types/debug": "4",
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.17",
"@types/node": "^14.0.20",
"@types/semver": "^7.1.0",
"@types/ws": "^6.0.3",
"@typescript-eslint/eslint-plugin": "1.6.0",
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Expand Up @@ -95,6 +95,9 @@ namespace createAgent {
public sockets: {
[key: string]: net.Socket[];
};
public freeSockets: {
[key: string]: net.Socket[];
};
public requests: {
[key: string]: http.IncomingMessage[];
};
Expand Down Expand Up @@ -127,6 +130,7 @@ namespace createAgent {
this.maxFreeSockets = 1;
this.maxSockets = 1;
this.sockets = {};
this.freeSockets = {};
this.requests = {};
this.options = {};
}
Expand Down

0 comments on commit f57e2e7

Please sign in to comment.