|
| 1 | +"use strict"; |
| 2 | +Object.defineProperty(exports, "__esModule", { |
| 3 | + value: true |
| 4 | +}); |
| 5 | +Object.defineProperty(exports, "noJestInProduction", { |
| 6 | + enumerable: true, |
| 7 | + get: ()=>_noJestInProduction |
| 8 | +}); |
| 9 | +const _noJestInProduction = /*#__PURE__*/ _interopRequireWildcard(require("./noJestInProduction")); |
| 10 | +function _getRequireWildcardCache(nodeInterop) { |
| 11 | + if (typeof WeakMap !== "function") return null; |
| 12 | + var cacheBabelInterop = new WeakMap(); |
| 13 | + var cacheNodeInterop = new WeakMap(); |
| 14 | + return (_getRequireWildcardCache = function(nodeInterop) { |
| 15 | + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; |
| 16 | + })(nodeInterop); |
| 17 | +} |
| 18 | +function _interopRequireWildcard(obj, nodeInterop) { |
| 19 | + if (!nodeInterop && obj && obj.__esModule) { |
| 20 | + return obj; |
| 21 | + } |
| 22 | + if (obj === null || typeof obj !== "object" && typeof obj !== "function") { |
| 23 | + return { |
| 24 | + default: obj |
| 25 | + }; |
| 26 | + } |
| 27 | + var cache = _getRequireWildcardCache(nodeInterop); |
| 28 | + if (cache && cache.has(obj)) { |
| 29 | + return cache.get(obj); |
| 30 | + } |
| 31 | + var newObj = {}; |
| 32 | + var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; |
| 33 | + for(var key in obj){ |
| 34 | + if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { |
| 35 | + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; |
| 36 | + if (desc && (desc.get || desc.set)) { |
| 37 | + Object.defineProperty(newObj, key, desc); |
| 38 | + } else { |
| 39 | + newObj[key] = obj[key]; |
| 40 | + } |
| 41 | + } |
| 42 | + } |
| 43 | + newObj.default = obj; |
| 44 | + if (cache) { |
| 45 | + cache.set(obj, newObj); |
| 46 | + } |
| 47 | + return newObj; |
| 48 | +} |
0 commit comments