jest-util
Advanced tools
Comparing version 27.0.0-next.9 to 27.0.0-next.10
@@ -18,13 +18,13 @@ 'use strict'; | ||
function _getRequireWildcardCache() { | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof WeakMap !== 'function') return null; | ||
var cache = new WeakMap(); | ||
_getRequireWildcardCache = function () { | ||
return cache; | ||
}; | ||
return cache; | ||
var cacheBabelInterop = new WeakMap(); | ||
var cacheNodeInterop = new WeakMap(); | ||
return (_getRequireWildcardCache = function (nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
} | ||
function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
@@ -35,3 +35,3 @@ } | ||
} | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
@@ -44,3 +44,3 @@ return cache.get(obj); | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor | ||
@@ -47,0 +47,0 @@ ? Object.getOwnPropertyDescriptor(obj, key) |
@@ -164,13 +164,13 @@ 'use strict'; | ||
function _getRequireWildcardCache() { | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof WeakMap !== 'function') return null; | ||
var cache = new WeakMap(); | ||
_getRequireWildcardCache = function () { | ||
return cache; | ||
}; | ||
return cache; | ||
var cacheBabelInterop = new WeakMap(); | ||
var cacheNodeInterop = new WeakMap(); | ||
return (_getRequireWildcardCache = function (nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
} | ||
function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
@@ -181,3 +181,3 @@ } | ||
} | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
@@ -190,3 +190,3 @@ return cache.get(obj); | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor | ||
@@ -193,0 +193,0 @@ ? Object.getOwnPropertyDescriptor(obj, key) |
@@ -28,13 +28,13 @@ 'use strict'; | ||
function _getRequireWildcardCache() { | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof WeakMap !== 'function') return null; | ||
var cache = new WeakMap(); | ||
_getRequireWildcardCache = function () { | ||
return cache; | ||
}; | ||
return cache; | ||
var cacheBabelInterop = new WeakMap(); | ||
var cacheNodeInterop = new WeakMap(); | ||
return (_getRequireWildcardCache = function (nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
} | ||
function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
@@ -45,3 +45,3 @@ } | ||
} | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
@@ -54,3 +54,3 @@ return cache.get(obj); | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor | ||
@@ -57,0 +57,0 @@ ? Object.getOwnPropertyDescriptor(obj, key) |
{ | ||
"name": "jest-util", | ||
"version": "27.0.0-next.9", | ||
"version": "27.0.0-next.10", | ||
"repository": { | ||
@@ -17,3 +17,3 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/types": "^27.0.0-next.8", | ||
"@jest/types": "^27.0.0-next.10", | ||
"@types/node": "*", | ||
@@ -27,3 +27,3 @@ "chalk": "^4.0.0", | ||
"@types/graceful-fs": "^4.1.2", | ||
"@types/is-ci": "^2.0.0", | ||
"@types/is-ci": "^3.0.0", | ||
"@types/micromatch": "^4.0.1", | ||
@@ -38,3 +38,3 @@ "@types/picomatch": "^2.2.2" | ||
}, | ||
"gitHead": "d836f33f98845794b4eae8149548a81ddcfc6521" | ||
"gitHead": "6f44529270310b7dbdf9a0b72b21b5cd50fda4b1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41691
Updated@jest/types@^27.0.0-next.10