jest-changed-files
Advanced tools
Comparing version 27.0.0-next.8 to 27.0.0-next.10
@@ -32,13 +32,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; | ||
@@ -49,3 +49,3 @@ } | ||
} | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
@@ -58,3 +58,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 | ||
@@ -107,6 +107,5 @@ ? Object.getOwnPropertyDescriptor(obj, key) | ||
options && (options.withAncestor ? 'HEAD^' : options.changedSince); | ||
const includePaths = ( | ||
(options && options.includePaths) || | ||
[] | ||
).map(absoluteRoot => path().normalize(path().relative(cwd, absoluteRoot))); | ||
const includePaths = ((options && options.includePaths) || []).map( | ||
absoluteRoot => path().normalize(path().relative(cwd, absoluteRoot)) | ||
); | ||
@@ -113,0 +112,0 @@ if (options && options.lastCommit) { |
@@ -32,13 +32,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; | ||
@@ -49,3 +49,3 @@ } | ||
} | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
@@ -58,3 +58,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 | ||
@@ -61,0 +61,0 @@ ? Object.getOwnPropertyDescriptor(obj, key) |
{ | ||
"name": "jest-changed-files", | ||
"version": "27.0.0-next.8", | ||
"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", | ||
"execa": "^5.0.0", | ||
@@ -28,3 +28,3 @@ "throat": "^6.0.1" | ||
}, | ||
"gitHead": "d7ba5030e274b52f029179dfdb860349a36eea37" | ||
"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
14838
400
Updated@jest/types@^27.0.0-next.10