Update Babel and dependencies (#15392)

feature/default_network_editable
Brad Decker 2 years ago committed by GitHub
parent 0075237ade
commit 7b42c54728
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      babel.config.js
  2. 5
      development/build/index.js
  3. 7
      lavamoat/browserify/beta/policy.json
  4. 7
      lavamoat/browserify/flask/policy.json
  5. 7
      lavamoat/browserify/main/policy.json
  6. 16
      lavamoat/build-system/policy-override.json
  7. 1803
      lavamoat/build-system/policy.json
  8. 5
      package.json
  9. 58
      patches/@babel+runtime+7.18.9.patch
  10. 1652
      yarn.lock

@ -4,24 +4,13 @@ module.exports = function (api) {
parserOpts: { parserOpts: {
strictMode: true, strictMode: true,
}, },
targets: {
browsers: ['chrome >= 66', 'firefox >= 68'],
},
presets: [ presets: [
'@babel/preset-typescript', '@babel/preset-typescript',
[ '@babel/preset-env',
'@babel/preset-env',
{
targets: {
browsers: ['chrome >= 66', 'firefox >= 68'],
},
},
],
'@babel/preset-react', '@babel/preset-react',
], ],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
],
}; };
}; };

@ -28,11 +28,6 @@ const { getBrowserVersionMap } = require('./utils');
// Required for LavaMoat policy generation // Required for LavaMoat policy generation
require('loose-envify'); require('loose-envify');
require('globalthis'); require('globalthis');
require('@babel/plugin-proposal-object-rest-spread');
require('@babel/plugin-transform-runtime');
require('@babel/plugin-proposal-class-properties');
require('@babel/plugin-proposal-optional-chaining');
require('@babel/plugin-proposal-nullish-coalescing-operator');
require('@babel/preset-env'); require('@babel/preset-env');
require('@babel/preset-react'); require('@babel/preset-react');
require('@babel/preset-typescript'); require('@babel/preset-typescript');

@ -2201,8 +2201,8 @@
} }
}, },
"@babel/runtime": { "@babel/runtime": {
"packages": { "globals": {
"@storybook/api>regenerator-runtime": true "regeneratorRuntime": "write"
} }
}, },
"@download/blockies": { "@download/blockies": {
@ -2318,8 +2318,7 @@
}, },
"@eth-optimism/contracts": { "@eth-optimism/contracts": {
"packages": { "packages": {
"ethers": true, "ethers": true
"ethers>@ethersproject/abstract-provider": true
} }
}, },
"@ethereumjs/common": { "@ethereumjs/common": {

@ -2201,8 +2201,8 @@
} }
}, },
"@babel/runtime": { "@babel/runtime": {
"packages": { "globals": {
"@storybook/api>regenerator-runtime": true "regeneratorRuntime": "write"
} }
}, },
"@download/blockies": { "@download/blockies": {
@ -2318,8 +2318,7 @@
}, },
"@eth-optimism/contracts": { "@eth-optimism/contracts": {
"packages": { "packages": {
"ethers": true, "ethers": true
"ethers>@ethersproject/abstract-provider": true
} }
}, },
"@ethereumjs/common": { "@ethereumjs/common": {

@ -2201,8 +2201,8 @@
} }
}, },
"@babel/runtime": { "@babel/runtime": {
"packages": { "globals": {
"@storybook/api>regenerator-runtime": true "regeneratorRuntime": "write"
} }
}, },
"@download/blockies": { "@download/blockies": {
@ -2318,8 +2318,7 @@
}, },
"@eth-optimism/contracts": { "@eth-optimism/contracts": {
"packages": { "packages": {
"ethers": true, "ethers": true
"ethers>@ethersproject/abstract-provider": true
} }
}, },
"@ethereumjs/common": { "@ethereumjs/common": {

@ -13,6 +13,22 @@
"@babel/preset-typescript": true "@babel/preset-typescript": true
} }
}, },
"@babel/eslint-parser": {
"builtin": {
"path": true
},
"packages": {
"@babel/core": true,
"@babel/eslint-parser>eslint-scope": true,
"@babel/eslint-parser>eslint-visitor-keys": true,
"@babel/eslint-parser>semver": true,
"depcheck>@babel/parser": true,
"eslint": true
},
"globals": {
"process.versions": true
}
},
"eslint>@eslint/eslintrc": { "eslint>@eslint/eslintrc": {
"builtin": { "builtin": {
"assert": true, "assert": true,

File diff suppressed because it is too large Load Diff

@ -235,11 +235,6 @@
"@babel/core": "^7.12.1", "@babel/core": "^7.12.1",
"@babel/eslint-parser": "^7.13.14", "@babel/eslint-parser": "^7.13.14",
"@babel/eslint-plugin": "^7.12.1", "@babel/eslint-plugin": "^7.12.1",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5", "@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0", "@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.16.7", "@babel/preset-typescript": "^7.16.7",

@ -1,8 +1,8 @@
diff --git a/node_modules/@babel/runtime/helpers/construct.js b/node_modules/@babel/runtime/helpers/construct.js diff --git a/node_modules/@babel/runtime/helpers/construct.js b/node_modules/@babel/runtime/helpers/construct.js
index 108b39a..e3c769b 100644 index ecc013d..092b29b 100644
--- a/node_modules/@babel/runtime/helpers/construct.js --- a/node_modules/@babel/runtime/helpers/construct.js
+++ b/node_modules/@babel/runtime/helpers/construct.js +++ b/node_modules/@babel/runtime/helpers/construct.js
@@ -1,26 +1,21 @@ @@ -1,22 +1,21 @@
-var setPrototypeOf = require("./setPrototypeOf.js"); -var setPrototypeOf = require("./setPrototypeOf.js");
+// All of MetaMask's supported browsers include `Reflect.construct` support, so +// All of MetaMask's supported browsers include `Reflect.construct` support, so
+// we don't need this polyfill. +// we don't need this polyfill.
@ -11,8 +11,7 @@ index 108b39a..e3c769b 100644
- -
-function _construct(Parent, args, Class) { -function _construct(Parent, args, Class) {
- if (isNativeReflectConstruct()) { - if (isNativeReflectConstruct()) {
- module.exports = _construct = Reflect.construct; - module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- } else { - } else {
- module.exports = _construct = function _construct(Parent, args, Class) { - module.exports = _construct = function _construct(Parent, args, Class) {
- var a = [null]; - var a = [null];
@ -21,9 +20,7 @@ index 108b39a..e3c769b 100644
- var instance = new Constructor(); - var instance = new Constructor();
- if (Class) setPrototypeOf(instance, Class.prototype); - if (Class) setPrototypeOf(instance, Class.prototype);
- return instance; - return instance;
- }; - }, module.exports.__esModule = true, module.exports["default"] = module.exports;
-
- module.exports["default"] = module.exports, module.exports.__esModule = true;
+// This Proxy preseves the two properties that were added by `@babel/runtime`. +// This Proxy preseves the two properties that were added by `@babel/runtime`.
+// I am not entire sure what these properties are for (maybe ES5/ES6 +// I am not entire sure what these properties are for (maybe ES5/ES6
+// interoperability?) but they have been preserved just in case. +// interoperability?) but they have been preserved just in case.
@ -44,17 +41,17 @@ index 108b39a..e3c769b 100644
- return _construct.apply(null, arguments); - return _construct.apply(null, arguments);
-} -}
- -
-module.exports = _construct; -module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
-module.exports["default"] = module.exports, module.exports.__esModule = true;
\ No newline at end of file \ No newline at end of file
+module.exports = reflectProxy; +module.exports = reflectProxy;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/extends.js b/node_modules/@babel/runtime/helpers/extends.js diff --git a/node_modules/@babel/runtime/helpers/extends.js b/node_modules/@babel/runtime/helpers/extends.js
index eaf9547..d0474f5 100644 index b76a654..561a078 100644
--- a/node_modules/@babel/runtime/helpers/extends.js --- a/node_modules/@babel/runtime/helpers/extends.js
+++ b/node_modules/@babel/runtime/helpers/extends.js +++ b/node_modules/@babel/runtime/helpers/extends.js
@@ -1,20 +1,5 @@ @@ -1,18 +1,5 @@
function _extends() { function _extends() {
- module.exports = _extends = Object.assign || function (target) { - module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
- for (var i = 1; i < arguments.length; i++) { - for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i]; - var source = arguments[i];
- -
@ -66,47 +63,42 @@ index eaf9547..d0474f5 100644
- } - }
- -
- return target; - return target;
- }; - }, module.exports.__esModule = true, module.exports["default"] = module.exports;
-
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- return _extends.apply(this, arguments); - return _extends.apply(this, arguments);
+ return Object.assign(...arguments) + return Object.assign(...arguments);
} }
module.exports = _extends; module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/getPrototypeOf.js diff --git a/node_modules/@babel/runtime/helpers/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/getPrototypeOf.js
index a6916eb..e01b2d6 100644 index 259ed27..07bb963 100644
--- a/node_modules/@babel/runtime/helpers/getPrototypeOf.js --- a/node_modules/@babel/runtime/helpers/getPrototypeOf.js
+++ b/node_modules/@babel/runtime/helpers/getPrototypeOf.js +++ b/node_modules/@babel/runtime/helpers/getPrototypeOf.js
@@ -1,9 +1,5 @@ @@ -1,8 +1,5 @@
function _getPrototypeOf(o) { function _getPrototypeOf(o) {
- module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { - module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
- return o.__proto__ || Object.getPrototypeOf(o); - return o.__proto__ || Object.getPrototypeOf(o);
- }; - }, module.exports.__esModule = true, module.exports["default"] = module.exports;
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- return _getPrototypeOf(o); - return _getPrototypeOf(o);
+ return Object.getPrototypeOf(o); + return Object.getPrototypeOf(o);
} }
module.exports = _getPrototypeOf; module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/setPrototypeOf.js diff --git a/node_modules/@babel/runtime/helpers/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/setPrototypeOf.js
index 415797b..63312f2 100644 index ed2c1eb..da8ef36 100644
--- a/node_modules/@babel/runtime/helpers/setPrototypeOf.js --- a/node_modules/@babel/runtime/helpers/setPrototypeOf.js
+++ b/node_modules/@babel/runtime/helpers/setPrototypeOf.js +++ b/node_modules/@babel/runtime/helpers/setPrototypeOf.js
@@ -1,12 +1,7 @@ @@ -1,9 +1,6 @@
function _setPrototypeOf(o, p) { function _setPrototypeOf(o, p) {
- module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { - module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
- o.__proto__ = p; - o.__proto__ = p;
- return o; - return o;
- }; - }, module.exports.__esModule = true, module.exports["default"] = module.exports;
-
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- return _setPrototypeOf(o, p); - return _setPrototypeOf(o, p);
-}
+ o.__proto__ = p; + o.__proto__ = p;
+ return o; + return o;
+}; }
module.exports = _setPrototypeOf; module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
module.exports["default"] = module.exports, module.exports.__esModule = true;
\ No newline at end of file \ No newline at end of file

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save