From e02a493b0475c14fd917c91ebb61216b31beca56 Mon Sep 17 00:00:00 2001 From: necklace Date: Wed, 29 Dec 2021 01:36:31 +0800 Subject: [PATCH] fix /deposit-withdraw page bug --- package.json | 3 ++- webpack.config.js | 9 ++++++++- yarn.lock | 17 ++++++----------- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 16f94ab60f..6bf7c9995f 100644 --- a/package.json +++ b/package.json @@ -177,13 +177,14 @@ "lzma": "2.1.6", "moment": "^2.22.2", "moment-timezone": "^0.5.16", - "node-rsa": "^0.4.2", + "node-rsa": "^1.1.1", "notifyjs": "^3.0.0", "numeral": "2.0.4", "object-assign": "^4.0.1", "oidc-client": "^1.8.2", "path-browserify": "^1.0.1", "perfect-scrollbar": "git+https://github.com/bitshares/perfect-scrollbar.git", + "process": "^0.11.10", "prop-types": "^15.6.1", "qrcode": "^1.4.4", "qrcode.react": "^0.7.1", diff --git a/webpack.config.js b/webpack.config.js index 28d31b9740..e3b1dea8f7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -107,6 +107,12 @@ module.exports = function(env) { to: "charting_library" } ] + }), + new webpack.ProvidePlugin({ + Buffer: ["buffer", "Buffer"] + }), + new webpack.ProvidePlugin({ + process: ["process", "process"] }) ]; if (env.prod) { @@ -461,7 +467,8 @@ module.exports = function(env) { crypto: require.resolve("crypto-browserify"), constants: require.resolve("constants-browserify"), stream: require.resolve("stream-browserify"), - path: require.resolve("path-browserify") + path: require.resolve("path-browserify"), + buffer: require.resolve("buffer") } }, plugins: plugins diff --git a/yarn.lock b/yarn.lock index fe6238149d..9edcd81ae4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2097,12 +2097,7 @@ asn1.js@^5.2.0: minimalistic-assert "^1.0.0" safer-buffer "^2.1.0" -asn1@0.2.3: - version "0.2.3" - resolved "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" - integrity sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y= - -asn1@~0.2.3: +asn1@^0.2.4, asn1@~0.2.3: version "0.2.6" resolved "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== @@ -7770,12 +7765,12 @@ node-releases@^2.0.1: resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5" integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA== -node-rsa@^0.4.2: - version "0.4.2" - resolved "https://registry.npmjs.org/node-rsa/-/node-rsa-0.4.2.tgz#d6391729ec16a830ed5a38042b3157d2d5d72530" - integrity sha1-1jkXKewWqDDtWjgEKzFX0tXXJTA= +node-rsa@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/node-rsa/-/node-rsa-1.1.1.tgz#efd9ad382097782f506153398496f79e4464434d" + integrity sha512-Jd4cvbJMryN21r5HgxQOpMEqv+ooke/korixNNK3mGqfGJmy0M77WDDzo/05969+OkMy3XW1UuZsSmW9KQm7Fw== dependencies: - asn1 "0.2.3" + asn1 "^0.2.4" noms@0.0.0: version "0.0.0"