Skip to content

Commit

Permalink
fix(project-utils): use assert-browserify polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed May 16, 2023
1 parent 7b4b070 commit a2ccebe
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
1 change: 0 additions & 1 deletion .adiorc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module.exports = {
"child_process",
"os",
"buffer",
"assert",
"fs",
"readline",
"util",
Expand Down
6 changes: 3 additions & 3 deletions packages/project-utils/bundling/app/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ module.exports = function (webpackEnv, { paths, options }) {
...(modules.webpackAliases || {})
},
fallback: {
crypto: require.resolve("crypto-browserify"),
path: require.resolve("path-browserify"),
assert: require.resolve("assert-browserify"),
buffer: require.resolve("buffer/"),
assert: require.resolve("assert/")
crypto: require.resolve("crypto-browserify"),
path: require.resolve("path-browserify")
}
},

Expand Down
1 change: 1 addition & 0 deletions packages/project-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@webiny/cli": "0.0.0",
"@webiny/global-config": "0.0.0",
"@webiny/telemetry": "0.0.0",
"assert-browserify": "^2.0.0",
"babel-loader": "8.2.3",
"babel-plugin-lodash": "3.3.4",
"buffer": "^6.0.3",
Expand Down
32 changes: 31 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15006,6 +15006,7 @@ __metadata:
"@webiny/cli": 0.0.0
"@webiny/global-config": 0.0.0
"@webiny/telemetry": 0.0.0
assert-browserify: ^2.0.0
babel-loader: 8.2.3
babel-plugin-lodash: 3.3.4
buffer: ^6.0.3
Expand Down Expand Up @@ -17090,6 +17091,18 @@ __metadata:
languageName: node
linkType: hard

"assert-browserify@npm:^2.0.0":
version: 2.0.0
resolution: "assert-browserify@npm:2.0.0"
dependencies:
es6-object-assign: ^1.1.0
is-nan: ^1.2.1
object-is: ^1.0.1
util: ^0.12.0
checksum: 93c167293e54ad445db737b9a3d5b3ba75c20281b63ab9bfc41d4f80efac8860bbcee68046c9e96e17fa1cee60db296008855db59255245650fe61c6fce757c0
languageName: node
linkType: hard

"assert-plus@npm:1.0.0, assert-plus@npm:^1.0.0":
version: 1.0.0
resolution: "assert-plus@npm:1.0.0"
Expand Down Expand Up @@ -23001,6 +23014,13 @@ __metadata:
languageName: node
linkType: hard

"es6-object-assign@npm:^1.1.0":
version: 1.1.0
resolution: "es6-object-assign@npm:1.1.0"
checksum: 8d4fdf63484d78b5c64cacc2c2e1165bc7b6a64b739d2a9db6a4dc8641d99cc9efb433cdd4dc3d3d6b00bfa6ce959694e4665e3255190339945c5f33b692b5d8
languageName: node
linkType: hard

"es6-promise@npm:^4.0.3":
version: 4.2.8
resolution: "es6-promise@npm:4.2.8"
Expand Down Expand Up @@ -27776,6 +27796,16 @@ __metadata:
languageName: node
linkType: hard

"is-nan@npm:^1.2.1":
version: 1.3.2
resolution: "is-nan@npm:1.3.2"
dependencies:
call-bind: ^1.0.0
define-properties: ^1.1.3
checksum: 5dfadcef6ad12d3029d43643d9800adbba21cf3ce2ec849f734b0e14ee8da4070d82b15fdb35138716d02587c6578225b9a22779cab34888a139cc43e4e3610a
languageName: node
linkType: hard

"is-natural-number@npm:^4.0.1":
version: 4.0.1
resolution: "is-natural-number@npm:4.0.1"
Expand Down Expand Up @@ -41551,7 +41581,7 @@ __metadata:
languageName: node
linkType: hard

"util@npm:^0.12.4":
"util@npm:^0.12.0, util@npm:^0.12.4":
version: 0.12.5
resolution: "util@npm:0.12.5"
dependencies:
Expand Down

0 comments on commit a2ccebe

Please sign in to comment.