metro-resolver
Advanced tools
Comparing version 0.76.1 to 0.76.2
{ | ||
"name": "metro-resolver", | ||
"version": "0.76.1", | ||
"version": "0.76.2", | ||
"description": "🚇 Implementation of Metro's resolution logic.", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -9,5 +9,2 @@ "use strict"; | ||
var _path = _interopRequireDefault(require("path")); | ||
var _InvalidModuleSpecifierError = _interopRequireDefault( | ||
require("./errors/InvalidModuleSpecifierError") | ||
); | ||
var _InvalidPackageConfigurationError = _interopRequireDefault( | ||
@@ -96,11 +93,2 @@ require("./errors/InvalidPackageConfigurationError") | ||
} | ||
if (patternMatch != null && findInvalidPathSegment(patternMatch) != null) { | ||
throw new _InvalidModuleSpecifierError.default({ | ||
importSpecifier: modulePath, | ||
reason: | ||
`The target for "${subpath}" defined in "exports" is "${target}", ` + | ||
"however this expands to an invalid subpath because the pattern " + | ||
`match "${patternMatch}" is invalid.`, | ||
}); | ||
} | ||
const filePath = _path.default.join( | ||
@@ -107,0 +95,0 @@ packagePath, |
@@ -21,5 +21,2 @@ /** | ||
); | ||
var _InvalidModuleSpecifierError = _interopRequireDefault( | ||
require("./errors/InvalidModuleSpecifierError") | ||
); | ||
var _InvalidPackageConfigurationError = _interopRequireDefault( | ||
@@ -279,6 +276,3 @@ require("./errors/InvalidPackageConfigurationError") | ||
); | ||
} else if ( | ||
e instanceof _InvalidModuleSpecifierError.default || | ||
e instanceof _InvalidPackageConfigurationError.default | ||
) { | ||
} else if (e instanceof _InvalidPackageConfigurationError.default) { | ||
context.unstable_logWarning( | ||
@@ -285,0 +279,0 @@ e.message + " Falling back to file-based resolution." |
@@ -100,2 +100,4 @@ /** | ||
* module path, if it is contained within an npm package. | ||
* | ||
* @deprecated | ||
*/ | ||
@@ -102,0 +104,0 @@ readonly getPackageForModule: (modulePath: string) => PackageInfo | null; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
100309
35
1495