jest-haste-map
Advanced tools
Comparing version 14.2.0-alpha.ca8bfb6e to 14.2.1-alpha.e21d71a4
@@ -64,2 +64,4 @@ /** | ||
const NODE_MODULES = path.sep + 'node_modules' + path.sep; | ||
@@ -182,2 +184,3 @@ const VERSION = require('../package.json').version; | ||
resetCache: options.resetCache, | ||
retainAllFiles: options.retainAllFiles, | ||
roots: options.roots, | ||
@@ -284,2 +287,8 @@ useWatchman: | ||
for (const filePath in hasteMap.files) { | ||
// If we retain all files in the virtual HasteFS representation, we avoid | ||
// reading them if they aren't important (node_modules). | ||
if (this._options.retainAllFiles && this._isNodeModulesDir(filePath)) { | ||
continue; | ||
} | ||
if (mocksPattern && mocksPattern.test(filePath)) { | ||
@@ -421,3 +430,3 @@ mocks[path.basename(filePath, path.extname(filePath))] = filePath; | ||
this._options.ignorePattern.test(filePath) || | ||
this._isNodeModulesDir(filePath)); | ||
!this._options.retainAllFiles && this._isNodeModulesDir(filePath)); | ||
@@ -424,0 +433,0 @@ } |
{ | ||
"name": "jest-haste-map", | ||
"version": "14.2.0-alpha.ca8bfb6e", | ||
"version": "14.2.1-alpha.e21d71a4", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
47558
1418
5