2021-12-16 21:00:11 +01:00
|
|
|
diff --git a/node_modules/@babel/runtime/helpers/construct.js b/node_modules/@babel/runtime/helpers/construct.js
|
2022-08-05 17:04:44 +02:00
|
|
|
index ecc013d..092b29b 100644
|
2021-12-16 21:00:11 +01:00
|
|
|
--- a/node_modules/@babel/runtime/helpers/construct.js
|
|
|
|
+++ b/node_modules/@babel/runtime/helpers/construct.js
|
2022-08-05 17:04:44 +02:00
|
|
|
@@ -1,22 +1,21 @@
|
2021-12-16 21:00:11 +01:00
|
|
|
-var setPrototypeOf = require("./setPrototypeOf.js");
|
|
|
|
+// All of MetaMask's supported browsers include `Reflect.construct` support, so
|
|
|
|
+// we don't need this polyfill.
|
|
|
|
|
|
|
|
-var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
|
|
|
-
|
|
|
|
-function _construct(Parent, args, Class) {
|
|
|
|
- if (isNativeReflectConstruct()) {
|
2022-08-05 17:04:44 +02:00
|
|
|
- module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
|
2021-12-16 21:00:11 +01:00
|
|
|
- } else {
|
|
|
|
- module.exports = _construct = function _construct(Parent, args, Class) {
|
|
|
|
- var a = [null];
|
|
|
|
- a.push.apply(a, args);
|
|
|
|
- var Constructor = Function.bind.apply(Parent, a);
|
|
|
|
- var instance = new Constructor();
|
|
|
|
- if (Class) setPrototypeOf(instance, Class.prototype);
|
|
|
|
- return instance;
|
2022-08-05 17:04:44 +02:00
|
|
|
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
2021-12-16 21:00:11 +01:00
|
|
|
+// 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.
|
|
|
|
+const reflectProxy = new Proxy(
|
|
|
|
+ Reflect.construct,
|
|
|
|
+ {
|
|
|
|
+ get: function (target, property) {
|
|
|
|
+ if (property === 'default') {
|
|
|
|
+ return target;
|
|
|
|
+ } else if (property === '__esModule') {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ return Reflect.get(...arguments);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
+);
|
|
|
|
|
|
|
|
- return _construct.apply(null, arguments);
|
|
|
|
-}
|
|
|
|
-
|
2022-08-05 17:04:44 +02:00
|
|
|
-module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
2021-12-16 21:00:11 +01:00
|
|
|
\ No newline at end of file
|
|
|
|
+module.exports = reflectProxy;
|
2022-08-05 17:04:44 +02:00
|
|
|
\ No newline at end of file
|
2021-11-23 20:17:27 +01:00
|
|
|
diff --git a/node_modules/@babel/runtime/helpers/extends.js b/node_modules/@babel/runtime/helpers/extends.js
|
2022-08-05 17:04:44 +02:00
|
|
|
index b76a654..561a078 100644
|
2021-11-23 20:17:27 +01:00
|
|
|
--- a/node_modules/@babel/runtime/helpers/extends.js
|
|
|
|
+++ b/node_modules/@babel/runtime/helpers/extends.js
|
2022-08-05 17:04:44 +02:00
|
|
|
@@ -1,18 +1,5 @@
|
2021-11-23 20:17:27 +01:00
|
|
|
function _extends() {
|
2022-08-05 17:04:44 +02:00
|
|
|
- module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
|
2021-11-23 20:17:27 +01:00
|
|
|
- for (var i = 1; i < arguments.length; i++) {
|
|
|
|
- var source = arguments[i];
|
|
|
|
-
|
|
|
|
- for (var key in source) {
|
|
|
|
- if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
|
|
- target[key] = source[key];
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return target;
|
2022-08-05 17:04:44 +02:00
|
|
|
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
2021-11-23 20:17:27 +01:00
|
|
|
- return _extends.apply(this, arguments);
|
2022-08-05 17:04:44 +02:00
|
|
|
+ return Object.assign(...arguments);
|
2021-11-23 20:17:27 +01:00
|
|
|
}
|
|
|
|
|
2022-08-05 17:04:44 +02:00
|
|
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
|
\ No newline at end of file
|
2021-11-23 20:17:27 +01:00
|
|
|
diff --git a/node_modules/@babel/runtime/helpers/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
2022-08-05 17:04:44 +02:00
|
|
|
index 259ed27..07bb963 100644
|
2021-11-23 20:17:27 +01:00
|
|
|
--- a/node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
|
|
+++ b/node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
2022-08-05 17:04:44 +02:00
|
|
|
@@ -1,8 +1,5 @@
|
2021-11-23 20:17:27 +01:00
|
|
|
function _getPrototypeOf(o) {
|
2022-08-05 17:04:44 +02:00
|
|
|
- module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
2021-11-23 20:17:27 +01:00
|
|
|
- return o.__proto__ || Object.getPrototypeOf(o);
|
2022-08-05 17:04:44 +02:00
|
|
|
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
2021-11-23 20:17:27 +01:00
|
|
|
- return _getPrototypeOf(o);
|
|
|
|
+ return Object.getPrototypeOf(o);
|
|
|
|
}
|
|
|
|
|
2022-08-05 17:04:44 +02:00
|
|
|
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
|
\ No newline at end of file
|
2021-11-23 20:17:27 +01:00
|
|
|
diff --git a/node_modules/@babel/runtime/helpers/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/setPrototypeOf.js
|
2022-08-05 17:04:44 +02:00
|
|
|
index ed2c1eb..da8ef36 100644
|
2021-11-23 20:17:27 +01:00
|
|
|
--- a/node_modules/@babel/runtime/helpers/setPrototypeOf.js
|
|
|
|
+++ b/node_modules/@babel/runtime/helpers/setPrototypeOf.js
|
2022-08-05 17:04:44 +02:00
|
|
|
@@ -1,9 +1,6 @@
|
2021-11-23 20:17:27 +01:00
|
|
|
function _setPrototypeOf(o, p) {
|
2022-08-05 17:04:44 +02:00
|
|
|
- module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
2021-11-23 20:17:27 +01:00
|
|
|
- o.__proto__ = p;
|
|
|
|
- return o;
|
2022-08-05 17:04:44 +02:00
|
|
|
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
2021-11-23 20:17:27 +01:00
|
|
|
- return _setPrototypeOf(o, p);
|
|
|
|
+ o.__proto__ = p;
|
|
|
|
+ return o;
|
2022-08-05 17:04:44 +02:00
|
|
|
}
|
2021-11-23 20:17:27 +01:00
|
|
|
|
2022-08-05 17:04:44 +02:00
|
|
|
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
2021-11-23 20:17:27 +01:00
|
|
|
\ No newline at end of file
|