jest-haste-map
Advanced tools
Comparing version 13.3.0-alpha.g8b48d59 to 13.4.0-alpha.d2632006
@@ -18,4 +18,2 @@ /** | ||
const H = require('./constants'); | ||
@@ -61,10 +59,4 @@ | ||
const NODE_MODULES = path.sep + 'node_modules' + path.sep; | ||
const VERSION = require('../package.json').version; | ||
const SNAPSHOT_EXTENSION = 'snap'; | ||
@@ -116,3 +108,3 @@ const canUseWatchman = (() => { | ||
* files: {[filepath: string]: FileMetaData}, | ||
* map: {[id: string]: ModuleMap}, | ||
* map: {[id: string]: ModuleMapItem}, | ||
* mocks: {[id: string]: string}, | ||
@@ -134,3 +126,3 @@ * } | ||
* // `Platform` module. The platform should be specified during resolution. | ||
* type ModuleMap = {[platform: string]: ModuleMetaData}; | ||
* type ModuleMapItem = {[platform: string]: ModuleMetaData}; | ||
* | ||
@@ -207,25 +199,2 @@ * // | ||
static create( | ||
config, | ||
options) | ||
{ | ||
const ignorePattern = new RegExp( | ||
[config.cacheDirectory].concat(config.modulePathIgnorePatterns).join('|')); | ||
return new HasteMap({ | ||
cacheDirectory: config.cacheDirectory, | ||
extensions: [SNAPSHOT_EXTENSION].concat(config.moduleFileExtensions), | ||
ignorePattern, | ||
maxWorkers: options && options.maxWorkers || 1, | ||
mocksPattern: config.mocksPattern, | ||
name: config.name, | ||
platforms: config.haste.platforms || ['ios', 'android'], | ||
providesModuleNodeModules: config.haste.providesModuleNodeModules, | ||
resetCache: options && options.resetCache, | ||
roots: config.testPathDirs, | ||
useWatchman: config.watchman });} | ||
static getCacheFilePath(tmpdir, name) { | ||
@@ -232,0 +201,0 @@ const hash = crypto.createHash('md5'); |
{ | ||
"name": "jest-haste-map", | ||
"version": "13.3.0-alpha.g8b48d59", | ||
"version": "13.4.0-alpha.d2632006", | ||
"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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
2
43379
1125