@gasket/resolve
Advanced tools
Comparing version 6.14.0 to 6.15.2
# `@gasket/resolve` | ||
### 6.15.2 | ||
- Handle missing package exports ([#333]) | ||
### 6.0.0 | ||
@@ -67,3 +71,4 @@ | ||
[#247]: https://github.com/godaddy/gasket/pull/247 | ||
[#333]: https://github.com/godaddy/gasket/pull/333 | ||
[Loader]:/packages/gasket-resolve/docs/api.md#loader |
@@ -59,6 +59,7 @@ const debug = require('diagnostics')('gasket:resolver'); | ||
} catch (err) { | ||
if (err.code === 'MODULE_NOT_FOUND' | ||
&& err.message.includes(moduleName)) return null; | ||
debug('try-resolve error', err.message); | ||
if (err.code === 'MODULE_NOT_FOUND' && err.message.includes(moduleName) || | ||
err.code === 'ERR_PACKAGE_PATH_NOT_EXPORTED' | ||
) return null; | ||
debug('try-resolve error', err.message); | ||
throw err; | ||
@@ -79,6 +80,7 @@ } | ||
} catch (err) { | ||
if (err.code === 'MODULE_NOT_FOUND' | ||
&& err.message.includes(moduleName)) return null; | ||
debug('try-require error', err.message); | ||
if (err.code === 'MODULE_NOT_FOUND' && err.message.includes(moduleName) || | ||
err.code === 'ERR_PACKAGE_PATH_NOT_EXPORTED' | ||
) return null; | ||
debug('try-require error', err.message); | ||
throw err; | ||
@@ -85,0 +87,0 @@ } |
{ | ||
"name": "@gasket/resolve", | ||
"version": "6.14.0", | ||
"version": "6.15.2", | ||
"description": "Essential module resolution & configuration management for gasket plugins & presets.", | ||
@@ -68,3 +68,3 @@ "main": "lib", | ||
}, | ||
"gitHead": "b13c1b3ab1c25dff4f7efc67e9685e790c88e38b" | ||
"gitHead": "6b4a3ad6b1f2e3a4b9085fb6b1090d7a9add1b38" | ||
} |
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
47586
703