main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
957 bytes
|
Line | |
---|
1 | import _typeof from "./typeof.js";
|
---|
2 | function _getRequireWildcardCache(e) {
|
---|
3 | if ("function" != typeof WeakMap) return null;
|
---|
4 | var r = new WeakMap(),
|
---|
5 | t = new WeakMap();
|
---|
6 | return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
|
---|
7 | return e ? t : r;
|
---|
8 | })(e);
|
---|
9 | }
|
---|
10 | function _interopRequireWildcard(e, r) {
|
---|
11 | if (!r && e && e.__esModule) return e;
|
---|
12 | if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
|
---|
13 | "default": e
|
---|
14 | };
|
---|
15 | var t = _getRequireWildcardCache(r);
|
---|
16 | if (t && t.has(e)) return t.get(e);
|
---|
17 | var n = {
|
---|
18 | __proto__: null
|
---|
19 | },
|
---|
20 | a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
---|
21 | for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
---|
22 | var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
---|
23 | i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
---|
24 | }
|
---|
25 | return n["default"] = e, t && t.set(e, n), n;
|
---|
26 | }
|
---|
27 | export { _interopRequireWildcard as default }; |
---|
Note:
See
TracBrowser
for help on using the repository browser.