jest-resolve
Advanced tools
Comparing version 12.1.2-alpha.a482b15c to 12.1.3-alpha.6230044c
@@ -26,2 +26,3 @@ /** | ||
const resolve = require('resolve'); | ||
const browserResolve = require('browser-resolve'); | ||
@@ -47,2 +48,4 @@ | ||
const NATIVE_PLATFORM = 'native'; | ||
@@ -90,3 +93,4 @@ | ||
moduleNameMapper: options.moduleNameMapper, | ||
modulePaths: options.modulePaths }; | ||
modulePaths: options.modulePaths, | ||
browser: options.browser }; | ||
@@ -106,2 +110,3 @@ | ||
return new Resolver(moduleMap, { | ||
browser: config.browser, | ||
defaultPlatform: config.haste.defaultPlatform, | ||
@@ -120,3 +125,4 @@ extensions: config.moduleFileExtensions.map(extension => '.' + extension), | ||
try { | ||
return resolve.sync( | ||
const resv = options.browser ? browserResolve : resolve; | ||
return resv.sync( | ||
path, | ||
@@ -169,2 +175,3 @@ { | ||
basedir: dirname, | ||
browser: this._options.browser, | ||
extensions, | ||
@@ -171,0 +178,0 @@ moduleDirectory, |
{ | ||
"name": "jest-resolve", | ||
"version": "12.1.2-alpha.a482b15c", | ||
"version": "12.1.3-alpha.6230044c", | ||
"repository": { | ||
@@ -11,3 +11,4 @@ "type": "git", | ||
"dependencies": { | ||
"jest-haste-map": "^12.1.2-alpha.a482b15c", | ||
"browser-resolve": "^1.11.2", | ||
"jest-haste-map": "^12.1.3-alpha.6230044c", | ||
"resolve": "^1.1.6" | ||
@@ -14,0 +15,0 @@ }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8819
218
0
3
+ Addedbrowser-resolve@^1.11.2
+ Addedbrowser-resolve@1.11.3(transitive)
+ Addedjest-haste-map@12.1.3-alpha.6230044c(transitive)
+ Addedresolve@1.1.7(transitive)
- Removedjest-haste-map@12.1.2-alpha.a482b15c(transitive)