jest-resolve
Advanced tools
Comparing version 15.0.1 to 15.2.0-alpha.c681f819
@@ -42,2 +42,4 @@ /** | ||
const NATIVE_PLATFORM = 'native'; | ||
@@ -207,3 +209,11 @@ | ||
if (regex.test(moduleName)) { | ||
moduleName = moduleName.replace(regex, mappedModuleName); | ||
const matches = moduleName.match(regex); | ||
if (!matches) { | ||
moduleName = mappedModuleName; | ||
} else { | ||
moduleName = mappedModuleName.replace( | ||
/\$([0-9]+)/g, | ||
(_, index) => matches[parseInt(index, 10)]); | ||
} | ||
return this.getModule(moduleName) || Resolver.findNodeModule( | ||
@@ -210,0 +220,0 @@ moduleName, |
{ | ||
"name": "jest-resolve", | ||
"version": "15.0.1", | ||
"version": "15.2.0-alpha.c681f819", | ||
"repository": { | ||
@@ -12,4 +12,4 @@ "type": "git", | ||
"browser-resolve": "^1.11.2", | ||
"jest-file-exists": "^15.0.0", | ||
"jest-haste-map": "^15.0.1", | ||
"jest-file-exists": "^15.2.0-alpha.c681f819", | ||
"jest-haste-map": "^15.2.0-alpha.c681f819", | ||
"resolve": "^1.1.6" | ||
@@ -16,0 +16,0 @@ }, |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6544
172
2
+ Addedjest-file-exists@15.2.0-alpha.c681f819(transitive)
+ Addedjest-haste-map@15.2.0-alpha.c681f819(transitive)
- Removedjest-file-exists@15.0.0(transitive)
- Removedjest-haste-map@15.0.1(transitive)