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: {
strictMode: true,
},
targets: {
browsers: ['chrome >= 66', 'firefox >= 68'],
},
presets: [
'@babel/preset-typescript',
[
'@babel/preset-env',
{
targets: {
browsers: ['chrome >= 66', 'firefox >= 68'],
},
},
],
'@babel/preset-env',
'@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
require('loose-envify');
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-react');
require('@babel/preset-typescript');

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

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

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

@ -13,6 +13,22 @@
"@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": {
"builtin": {
"assert": true,

File diff suppressed because it is too large Load Diff

@ -235,11 +235,6 @@
"@babel/core": "^7.12.1",
"@babel/eslint-parser": "^7.13.14",
"@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-react": "^7.0.0",
"@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
index 108b39a..e3c769b 100644
index ecc013d..092b29b 100644
--- a/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");
+// All of MetaMask's supported browsers include `Reflect.construct` support, so
+// we don't need this polyfill.
@ -11,8 +11,7 @@ index 108b39a..e3c769b 100644
-
-function _construct(Parent, args, Class) {
- if (isNativeReflectConstruct()) {
- module.exports = _construct = Reflect.construct;
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
- } else {
- module.exports = _construct = function _construct(Parent, args, Class) {
- var a = [null];
@ -21,9 +20,7 @@ index 108b39a..e3c769b 100644
- var instance = new Constructor();
- if (Class) setPrototypeOf(instance, Class.prototype);
- return instance;
- };
-
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
+// 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
+// interoperability?) but they have been preserved just in case.
@ -44,17 +41,17 @@ index 108b39a..e3c769b 100644
- return _construct.apply(null, arguments);
-}
-
-module.exports = _construct;
-module.exports["default"] = module.exports, module.exports.__esModule = true;
-module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
+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
index eaf9547..d0474f5 100644
index b76a654..561a078 100644
--- a/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() {
- 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++) {
- var source = arguments[i];
-
@ -66,47 +63,42 @@ index eaf9547..d0474f5 100644
- }
-
- return target;
- };
-
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
- 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
index a6916eb..e01b2d6 100644
index 259ed27..07bb963 100644
--- a/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) {
- 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);
- };
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
- return _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
index 415797b..63312f2 100644
index ed2c1eb..da8ef36 100644
--- a/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) {
- module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
- module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
- o.__proto__ = p;
- return o;
- };
-
- module.exports["default"] = module.exports, module.exports.__esModule = true;
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
- return _setPrototypeOf(o, p);
-}
+ o.__proto__ = p;
+ return o;
+};
}
module.exports = _setPrototypeOf;
module.exports["default"] = module.exports, module.exports.__esModule = true;
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file

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