mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Dep upgrades and patches (#10903)
* apply patches * lavamoat dep upgrades * remove lavamoat browserify
This commit is contained in:
parent
1baa94d1ab
commit
d01bc9bb51
@ -265,8 +265,8 @@
|
||||
"jest": "^26.6.3",
|
||||
"jsdom": "^11.2.0",
|
||||
"koa": "^2.7.0",
|
||||
"lavamoat": "^5.1.4",
|
||||
"lavamoat-viz": "^6.0.4",
|
||||
"lavamoat": "^5.3.1",
|
||||
"lavamoat-viz": "^6.0.9",
|
||||
"lockfile-lint": "^4.0.0",
|
||||
"loose-envify": "^1.4.0",
|
||||
"mocha": "^7.2.0",
|
||||
|
26
patches/@formatjs+intl-utils+3.3.1.patch
Normal file
26
patches/@formatjs+intl-utils+3.3.1.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff --git a/node_modules/@formatjs/intl-utils/dist/index.js b/node_modules/@formatjs/intl-utils/dist/index.js
|
||||
index cb44944..4ec2d32 100644
|
||||
--- a/node_modules/@formatjs/intl-utils/dist/index.js
|
||||
+++ b/node_modules/@formatjs/intl-utils/dist/index.js
|
||||
@@ -25,7 +25,7 @@ exports.toRawFixed = polyfill_utils_1.toRawFixed;
|
||||
exports.toRawPrecision = polyfill_utils_1.toRawPrecision;
|
||||
exports.getMagnitude = polyfill_utils_1.getMagnitude;
|
||||
exports.repeat = polyfill_utils_1.repeat;
|
||||
-exports.hasOwnProperty = polyfill_utils_1.hasOwnProperty;
|
||||
+Object.defineProperty(exports, 'hasOwnProperty', { value: polyfill_utils_1.hasOwnProperty });
|
||||
exports.isWellFormedUnitIdentifier = polyfill_utils_1.isWellFormedUnitIdentifier;
|
||||
exports.defineProperty = polyfill_utils_1.defineProperty;
|
||||
var resolve_locale_1 = require("./resolve-locale");
|
||||
diff --git a/node_modules/@formatjs/intl-utils/dist/polyfill-utils.js b/node_modules/@formatjs/intl-utils/dist/polyfill-utils.js
|
||||
index 9306ef0..24859ac 100644
|
||||
--- a/node_modules/@formatjs/intl-utils/dist/polyfill-utils.js
|
||||
+++ b/node_modules/@formatjs/intl-utils/dist/polyfill-utils.js
|
||||
@@ -5,7 +5,7 @@ var units_1 = require("./units");
|
||||
function hasOwnProperty(o, key) {
|
||||
return Object.prototype.hasOwnProperty.call(o, key);
|
||||
}
|
||||
-exports.hasOwnProperty = hasOwnProperty;
|
||||
+Object.defineProperty(exports, 'hasOwnProperty', { value: hasOwnProperty });
|
||||
/**
|
||||
* https://tc39.es/ecma262/#sec-toobject
|
||||
* @param arg
|
File diff suppressed because one or more lines are too long
13
patches/undeclared-identifiers+1.1.2.patch
Normal file
13
patches/undeclared-identifiers+1.1.2.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/node_modules/undeclared-identifiers/index.js b/node_modules/undeclared-identifiers/index.js
|
||||
index c331176..127765d 100644
|
||||
--- a/node_modules/undeclared-identifiers/index.js
|
||||
+++ b/node_modules/undeclared-identifiers/index.js
|
||||
@@ -50,7 +50,7 @@ var bindingVisitor = {
|
||||
}
|
||||
}
|
||||
|
||||
- state.undeclared[node.name] = true
|
||||
+ Reflect.defineProperty(state.undeclared, node.name, { value: true, writable: true, enumerable: true, configurable: true })
|
||||
}
|
||||
|
||||
if (state.wildcard &&
|
39
patches/web3+0.20.7.patch
Normal file
39
patches/web3+0.20.7.patch
Normal file
@ -0,0 +1,39 @@
|
||||
diff --git a/node_modules/web3/dist/web3.js b/node_modules/web3/dist/web3.js
|
||||
index 6eb151c..6aa4516 100644
|
||||
--- a/node_modules/web3/dist/web3.js
|
||||
+++ b/node_modules/web3/dist/web3.js
|
||||
@@ -5072,7 +5072,7 @@ Method.prototype.toPayload = function (args) {
|
||||
|
||||
Method.prototype.attachToObject = function (obj) {
|
||||
var func = this.buildCall();
|
||||
- func.call = this.call; // TODO!!! that's ugly. filter.js uses it
|
||||
+ Reflect.defineProperty(func, 'call', { value: this.call })
|
||||
var name = this.name.split('.');
|
||||
if (name.length > 1) {
|
||||
obj[name[0]] = obj[name[0]] || {};
|
||||
diff --git a/node_modules/web3/lib/web3/function.js b/node_modules/web3/lib/web3/function.js
|
||||
index 863a10a..ffcd23c 100644
|
||||
--- a/node_modules/web3/lib/web3/function.js
|
||||
+++ b/node_modules/web3/lib/web3/function.js
|
||||
@@ -269,7 +269,7 @@ SolidityFunction.prototype.execute = function () {
|
||||
SolidityFunction.prototype.attachToContract = function (contract) {
|
||||
var execute = this.execute.bind(this);
|
||||
execute.request = this.request.bind(this);
|
||||
- execute.call = this.call.bind(this);
|
||||
+ Reflect.defineProperty(execute, 'call', this.call.bind(this));
|
||||
execute.sendTransaction = this.sendTransaction.bind(this);
|
||||
execute.estimateGas = this.estimateGas.bind(this);
|
||||
execute.getData = this.getData.bind(this);
|
||||
diff --git a/node_modules/web3/lib/web3/method.js b/node_modules/web3/lib/web3/method.js
|
||||
index 2e3c796..be0b663 100644
|
||||
--- a/node_modules/web3/lib/web3/method.js
|
||||
+++ b/node_modules/web3/lib/web3/method.js
|
||||
@@ -123,7 +123,7 @@ Method.prototype.toPayload = function (args) {
|
||||
|
||||
Method.prototype.attachToObject = function (obj) {
|
||||
var func = this.buildCall();
|
||||
- func.call = this.call; // TODO!!! that's ugly. filter.js uses it
|
||||
+ Reflect.defineProperty(func, 'call', { value: this.call })
|
||||
var name = this.name.split('.');
|
||||
if (name.length > 1) {
|
||||
obj[name[0]] = obj[name[0]] || {};
|
40
yarn.lock
40
yarn.lock
@ -16514,48 +16514,48 @@ latest-version@^5.0.0:
|
||||
dependencies:
|
||||
package-json "^6.3.0"
|
||||
|
||||
lavamoat-core@^9.0.1:
|
||||
version "9.0.1"
|
||||
resolved "https://registry.yarnpkg.com/lavamoat-core/-/lavamoat-core-9.0.1.tgz#a34a822b4bfabea38f73b7f9bc1a19f86baa9b1f"
|
||||
integrity sha512-FqqasOjl3V6CX/ETniw59r20ukcydOtFhQxtwl6TIEuSc5CJJgY5y9Fi3adk5BTxml3JUMsR3dtygFOV3NuBBw==
|
||||
lavamoat-core@^10.0.1:
|
||||
version "10.0.1"
|
||||
resolved "https://registry.yarnpkg.com/lavamoat-core/-/lavamoat-core-10.0.1.tgz#155bb4a50ace2e624941f14ca87705b171f6bba9"
|
||||
integrity sha512-8I/DmRNQ3F8EAparNTR++EWMv4F0sZscKCUWt80NjuNF0mZ0aqDkK/EDsktrhjawY2C5Sq0zQ8eCrWGR7blU8Q==
|
||||
dependencies:
|
||||
fromentries "^1.2.0"
|
||||
json-stable-stringify "^1.0.1"
|
||||
lavamoat-tofu "^5.1.1"
|
||||
lavamoat-tofu "^5.1.3"
|
||||
merge-deep "^3.0.2"
|
||||
resolve "^1.15.1"
|
||||
|
||||
lavamoat-tofu@^5.1.1:
|
||||
version "5.1.1"
|
||||
resolved "https://registry.yarnpkg.com/lavamoat-tofu/-/lavamoat-tofu-5.1.1.tgz#67d3c5775b587dd439c426f1cd86650b10443760"
|
||||
integrity sha512-LIZTifbbTATA5UClVGI7YGMTOjUXjrVCBOz0DaeUicldLonLlwG81/53/vTIfPM1xV/KA85MIzGPHz4pDdiVkA==
|
||||
lavamoat-tofu@^5.1.3:
|
||||
version "5.1.3"
|
||||
resolved "https://registry.yarnpkg.com/lavamoat-tofu/-/lavamoat-tofu-5.1.3.tgz#8e89a7ac206f3b2dc9c8ea52ecfd4f92f90285ae"
|
||||
integrity sha512-3pO0m3uiAOsEYiomIwwNzPdl9PPcquS3wCkfxb1Dtyezt6IWNkIsXQxz4+iEsNpF0eexFuc3IHPGOUaZ4QiwLg==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.10.1"
|
||||
"@babel/traverse" "^7.10.1"
|
||||
|
||||
lavamoat-viz@^6.0.4:
|
||||
version "6.0.4"
|
||||
resolved "https://registry.yarnpkg.com/lavamoat-viz/-/lavamoat-viz-6.0.4.tgz#00b132cef06c24a6836044842548438e0c144059"
|
||||
integrity sha512-LqSNLLTtodZUCxFihGCFrVVEBBICEs79hu2fSJGZFxe8I+R6FNcKmBMVAwpAuPj9dpKJmvckTi2sP8osZX8KCw==
|
||||
lavamoat-viz@^6.0.9:
|
||||
version "6.0.9"
|
||||
resolved "https://registry.yarnpkg.com/lavamoat-viz/-/lavamoat-viz-6.0.9.tgz#ddec64becdf62448f7d0ea57c5258246ee14304c"
|
||||
integrity sha512-my8fxPkL/h8URcs/7E785yrM8GU+xfKsalz5W5p1/2/V1TSctd6DJvi/6WV61jrObSEdrYHuQUpM8IH3rcuv+w==
|
||||
dependencies:
|
||||
lavamoat-core "^9.0.1"
|
||||
lavamoat-core "^10.0.1"
|
||||
ncp "^2.0.0"
|
||||
open "^7.0.3"
|
||||
pify "^4.0.1"
|
||||
serve-handler "^6.1.3"
|
||||
yargs "^16.0.0"
|
||||
|
||||
lavamoat@^5.1.4:
|
||||
version "5.1.4"
|
||||
resolved "https://registry.yarnpkg.com/lavamoat/-/lavamoat-5.1.4.tgz#211ea0bb2dfaf624f2f5d85a90d6c93b9c1da599"
|
||||
integrity sha512-NaD8Jyt4OVO2euP8XVnlJuDsAO1Tfdt5Mg4wNwms+E8fe/a6mvH6kQncr1O/X42ky9u29+m2NinFMCQKmd8fQw==
|
||||
lavamoat@^5.3.1:
|
||||
version "5.3.1"
|
||||
resolved "https://registry.yarnpkg.com/lavamoat/-/lavamoat-5.3.1.tgz#66f140210f406c69ec58f18ebcd827b52e3a3276"
|
||||
integrity sha512-XXMDX7dV2lKEymlC3+rAAWp7/j1Qe+j2lgyRMvg1xI2Vux24iW837grHDIyx1qs7LOhu5F98Z772z7jmGjBjfg==
|
||||
dependencies:
|
||||
"@babel/code-frame" "^7.10.4"
|
||||
bindings "^1.5.0"
|
||||
htmlescape "^1.1.1"
|
||||
json-stable-stringify "^1.0.1"
|
||||
lavamoat-core "^9.0.1"
|
||||
lavamoat-tofu "^5.1.1"
|
||||
lavamoat-core "^10.0.1"
|
||||
lavamoat-tofu "^5.1.3"
|
||||
node-gyp-build "^4.2.3"
|
||||
object.fromentries "^2.0.2"
|
||||
resolve "^1.17.0"
|
||||
|
Loading…
Reference in New Issue
Block a user