Skip to content

Commit

Permalink
chore: add support for node v18 (#1173)
Browse files Browse the repository at this point in the history
Signed-off-by: OjusWiZard <ojuswimail@gmail.com>
Co-authored-by: MantisClone <david.huntmateo@request.network>
Co-authored-by: MantisClone <david.hunt-mateo@mantisdata.solutions>
  • Loading branch information
3 people committed Sep 27, 2023
1 parent cd6a443 commit 446ca66
Show file tree
Hide file tree
Showing 9 changed files with 443 additions and 411 deletions.
4 changes: 3 additions & 1 deletion packages/epk-decryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,20 @@
"devDependencies": {
"@types/jest": "26.0.13",
"amd-loader": "0.0.8",
"crypto-browserify": "3.12.0",
"duplicate-package-checker-webpack-plugin": "3.0.0",
"jest": "26.4.2",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"shx": "0.3.2",
"source-map-support": "0.5.19",
"stream-browserify": "3.0.0",
"terser-webpack-plugin": "4.2.3",
"ts-jest": "26.3.0",
"ts-loader": "8.4.0",
"ts-node": "10.9.1",
"typescript": "4.9.5",
"webpack": "4.44.2",
"webpack": "5.88.2",
"webpack-bundle-analyzer": "4.2.0",
"webpack-cli": "3.3.12"
}
Expand Down
4 changes: 4 additions & 0 deletions packages/epk-decryption/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = {
},
resolve: {
extensions: ['.ts', '.js', '.json'],
fallback: {
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
},
},
devtool: 'source-map',
optimization: {
Expand Down
4 changes: 3 additions & 1 deletion packages/epk-signature/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,20 @@
"devDependencies": {
"@types/jest": "26.0.13",
"amd-loader": "0.0.8",
"crypto-browserify": "3.12.0",
"duplicate-package-checker-webpack-plugin": "3.0.0",
"jest": "26.4.2",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"shx": "0.3.2",
"source-map-support": "0.5.19",
"stream-browserify": "3.0.0",
"terser-webpack-plugin": "4.2.3",
"ts-jest": "26.3.0",
"ts-loader": "8.4.0",
"ts-node": "10.9.1",
"typescript": "4.9.5",
"webpack": "4.44.2",
"webpack": "5.88.2",
"webpack-bundle-analyzer": "4.2.0",
"webpack-cli": "3.3.12"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/epk-signature/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = {
},
resolve: {
extensions: ['.ts', '.js', '.json'],
fallback: {
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
},
},
devtool: 'source-map',
optimization: {
Expand Down
4 changes: 3 additions & 1 deletion packages/request-client.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,20 @@
"@types/jest": "26.0.13",
"amd-loader": "0.0.8",
"axios-mock-adapter": "1.19.0",
"crypto-browserify": "3.12.0",
"duplicate-package-checker-webpack-plugin": "3.0.0",
"jest": "26.4.2",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"shx": "0.3.2",
"source-map-support": "0.5.19",
"stream-browserify": "3.0.0",
"terser-webpack-plugin": "4.2.3",
"ts-jest": "26.3.0",
"ts-loader": "8.4.0",
"ts-node": "10.9.1",
"typescript": "4.9.5",
"webpack": "4.44.2",
"webpack": "5.88.2",
"webpack-bundle-analyzer": "4.2.0",
"webpack-cli": "3.3.12"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/request-client.js/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ module.exports = {
// Dedup packages
'ethereumjs-util': path.resolve(__dirname, '../../node_modules/ethereumjs-util'),
},
fallback: {
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
},
},
devtool: 'source-map',
optimization: {
Expand Down
4 changes: 3 additions & 1 deletion packages/web3-signature/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,20 @@
"devDependencies": {
"@types/jest": "26.0.13",
"amd-loader": "0.0.8",
"crypto-browserify": "3.12.0",
"duplicate-package-checker-webpack-plugin": "3.0.0",
"jest": "26.4.2",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"shx": "0.3.2",
"source-map-support": "0.5.19",
"stream-browserify": "3.0.0",
"terser-webpack-plugin": "4.2.3",
"ts-jest": "26.3.0",
"ts-loader": "8.4.0",
"ts-node": "10.9.1",
"typescript": "4.9.5",
"webpack": "4.44.2",
"webpack": "5.88.2",
"webpack-bundle-analyzer": "4.2.0",
"webpack-cli": "3.3.12"
}
Expand Down
4 changes: 4 additions & 0 deletions packages/web3-signature/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = {
},
resolve: {
extensions: ['.ts', '.js', '.json'],
fallback: {
crypto: require.resolve('crypto-browserify'),
stream: require.resolve('stream-browserify'),
},
},
devtool: 'source-map',
optimization: {
Expand Down
Loading

0 comments on commit 446ca66

Please sign in to comment.