Socket
Socket
Sign inDemoInstall

jest-haste-map

Package Overview
Dependencies
7
Maintainers
4
Versions
272
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 14.2.0-alpha.ca8bfb6e to 14.2.1-alpha.e21d71a4

11

build/index.js

@@ -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 @@ }

2

package.json
{
"name": "jest-haste-map",
"version": "14.2.0-alpha.ca8bfb6e",
"version": "14.2.1-alpha.e21d71a4",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc