Skip to content

Commit 3b3ea67

Browse files
committedSep 27, 2022
Fix compatibility with TypeScript and ESM
Fixes #2051
1 parent 3e9d3af commit 3b3ea67

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed
 

‎package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"dependencies": {
4848
"@sindresorhus/is": "^5.2.0",
4949
"@szmarczak/http-timer": "^5.0.1",
50-
"cacheable-lookup": "^6.0.4",
51-
"cacheable-request": "^10.1.2",
50+
"cacheable-lookup": "^7.0.0",
51+
"cacheable-request": "^10.2.1",
5252
"decompress-response": "^6.0.0",
5353
"form-data-encoder": "^2.1.2",
5454
"get-stream": "^6.0.1",
@@ -63,7 +63,7 @@
6363
"@sinonjs/fake-timers": "^9.1.1",
6464
"@types/benchmark": "^2.1.2",
6565
"@types/express": "^4.17.13",
66-
"@types/node": "^18.7.13",
66+
"@types/node": "^18.7.23",
6767
"@types/pem": "^1.9.6",
6868
"@types/pify": "^5.0.1",
6969
"@types/readable-stream": "^2.3.13",
@@ -90,7 +90,7 @@
9090
"p-event": "^5.0.1",
9191
"pem": "^1.14.6",
9292
"pify": "^6.0.0",
93-
"readable-stream": "^4.0.0",
93+
"readable-stream": "^4.2.0",
9494
"request": "^2.88.2",
9595
"sinon": "^14.0.0",
9696
"slow-stream": "0.0.4",
@@ -99,7 +99,7 @@
9999
"to-readable-stream": "^3.0.0",
100100
"tough-cookie": "4.0.0",
101101
"ts-node": "^10.8.2",
102-
"type-fest": "^2.19.0",
102+
"type-fest": "^3.0.0",
103103
"typescript": "~4.8.2",
104104
"xo": "^0.52.2"
105105
},

‎tsconfig.json

-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
"lib": [
77
"es2020"
88
],
9-
10-
// TODO: Remove these at some point.
11-
"module": "ES2020",
12-
"moduleResolution": "node",
139
"noPropertyAccessFromIndexSignature": false,
1410
"isolatedModules": true
1511
},

0 commit comments

Comments
 (0)
Please sign in to comment.