Skip to content

Commit 5a2d838

Browse files
committed
add crypto polyfill
1 parent 1a373bf commit 5a2d838

File tree

2 files changed

+367
-16
lines changed

2 files changed

+367
-16
lines changed

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,34 @@
1212
"test": "jest"
1313
},
1414
"dependencies": {
15-
"url-join": "4.0.1",
15+
"crypto-browserify": "^3.12.1",
1616
"form-data": "^4.0.0",
1717
"formdata-node": "^6.0.3",
18+
"js-base64": "3.7.2",
1819
"node-fetch": "2.7.0",
1920
"qs": "6.11.2",
2021
"readable-stream": "^4.5.2",
21-
"js-base64": "3.7.2"
22+
"url-join": "4.0.1"
2223
},
2324
"devDependencies": {
24-
"@types/url-join": "4.0.1",
25-
"@types/qs": "6.9.8",
25+
"@types/jest": "29.5.5",
26+
"@types/node": "17.0.33",
2627
"@types/node-fetch": "2.6.9",
28+
"@types/qs": "6.9.8",
2729
"@types/readable-stream": "^4.0.15",
28-
"webpack": "^5.94.0",
29-
"ts-loader": "^9.3.1",
30+
"@types/url-join": "4.0.1",
3031
"jest": "29.7.0",
31-
"@types/jest": "29.5.5",
32-
"ts-jest": "29.1.1",
3332
"jest-environment-jsdom": "29.7.0",
34-
"@types/node": "17.0.33",
3533
"prettier": "2.7.1",
36-
"typescript": "4.6.4"
34+
"ts-jest": "29.1.1",
35+
"ts-loader": "^9.3.1",
36+
"typescript": "4.6.4",
37+
"webpack": "^5.94.0"
3738
},
3839
"browser": {
3940
"fs": false,
4041
"os": false,
41-
"path": false
42+
"path": false,
43+
"crypto": "crypto-browserify"
4244
}
4345
}

0 commit comments

Comments
 (0)