|
|
@ -1,3 +1,53 @@ |
|
|
|
|
|
|
|
diff --git a/node_modules/@babel/runtime/helpers/construct.js b/node_modules/@babel/runtime/helpers/construct.js
|
|
|
|
|
|
|
|
index 108b39a..e3c769b 100644
|
|
|
|
|
|
|
|
--- a/node_modules/@babel/runtime/helpers/construct.js
|
|
|
|
|
|
|
|
+++ b/node_modules/@babel/runtime/helpers/construct.js
|
|
|
|
|
|
|
|
@@ -1,26 +1,21 @@
|
|
|
|
|
|
|
|
-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()) {
|
|
|
|
|
|
|
|
- module.exports = _construct = Reflect.construct;
|
|
|
|
|
|
|
|
- module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
|
|
- } 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;
|
|
|
|
|
|
|
|
- };
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
- module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
|
|
+// 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);
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
-module.exports = _construct;
|
|
|
|
|
|
|
|
-module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
|
|
|
|
|
|
\ No newline at end of file
|
|
|
|
|
|
|
|
+module.exports = reflectProxy;
|
|
|
|
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 eaf9547..d0474f5 100644
|
|
|
|
--- a/node_modules/@babel/runtime/helpers/extends.js
|
|
|
|
--- a/node_modules/@babel/runtime/helpers/extends.js
|
|
|
|