jest-haste-map
Advanced tools
Comparing version 15.2.0-alpha.c681f819 to 16.0.0
@@ -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", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
49324
1452
1