Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-haste-map

Package Overview
Dependencies
Maintainers
5
Versions
273
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-haste-map - npm Package Compare versions

Comparing version 15.2.0-alpha.c681f819 to 16.0.0

17

build/crawlers/node.js

@@ -123,7 +123,12 @@ /**

module.exports = function nodeCrawl(
roots,
extensions,
ignore,
data)
{
options)
{const
data =
options.data;const extensions = options.extensions;const forceNodeFilesystemAPI = options.forceNodeFilesystemAPI;const ignore = options.ignore;const roots = options.roots;
return new Promise(resolve => {

@@ -147,3 +152,3 @@ const callback = list => {

if (process.platform === 'win32') {
if (forceNodeFilesystemAPI || process.platform === 'win32') {
find(roots, extensions, ignore, callback);

@@ -150,0 +155,0 @@ } else {

@@ -34,7 +34,11 @@ /**

module.exports = function watchmanCrawl(
roots,
extensions,
ignore,
data)
{
options)
{const
data =
options.data;const extensions = options.extensions;const ignore = options.ignore;const roots = options.roots;
return new Promise((resolve, reject) => {

@@ -41,0 +45,0 @@ const client = new watchman.Client();

@@ -71,2 +71,5 @@ /**

const NODE_MODULES = path.sep + 'node_modules' + path.sep;

@@ -183,2 +186,3 @@ const VERSION = require('../package.json').version;

extensions: options.extensions,
forceNodeFilesystemAPI: !!options.forceNodeFilesystemAPI,
ignorePattern: options.ignorePattern,

@@ -434,3 +438,8 @@ maxWorkers: options.maxWorkers,

return nodeCrawl(options.roots, options.extensions, ignore, hasteMap).
return nodeCrawl({
data: hasteMap,
extensions: options.extensions,
forceNodeFilesystemAPI: options.forceNodeFilesystemAPI,
ignore,
roots: options.roots }).
catch(e => {

@@ -449,3 +458,8 @@ throw new Error(

try {
return crawl(options.roots, options.extensions, ignore, hasteMap).
return crawl({
data: hasteMap,
extensions: options.extensions,
forceNodeFilesystemAPI: options.forceNodeFilesystemAPI,
ignore,
roots: options.roots }).
catch(retry);

@@ -452,0 +466,0 @@ } catch (error) {

{
"name": "jest-haste-map",
"version": "15.2.0-alpha.c681f819",
"version": "16.0.0",
"repository": {

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc