@gasket/resolve
Advanced tools
Comparing version 5.1.0 to 5.3.1
# `@gasket/resolve` | ||
### 5.3.1 | ||
- Validate that plugin objects are named ([#156]) | ||
### 5.1.0 | ||
@@ -54,3 +58,4 @@ | ||
[#142]: https://github.com/godaddy/gasket/pull/142 | ||
[#156]: https://github.com/godaddy/gasket/pull/156 | ||
[Loader]:/packages/gasket-resolve/docs/api.md#loader |
@@ -104,2 +104,6 @@ const path = require('path'); | ||
if (typeof module !== 'string') { | ||
if (typeof module.name !== 'string') { | ||
throw new Error('Plugin object must have a string `name` property.'); | ||
} | ||
const moduleName = pluginIdentifier(module.name).fullName; | ||
@@ -106,0 +110,0 @@ return this.getModuleInfo(module, moduleName, { ...meta, preloaded: true }); |
@@ -121,2 +121,6 @@ const reScope = /(@[\w-.]+)(\/.+)?/; | ||
function createPackageIdentifier(rawName, options) { | ||
if (!rawName) { | ||
// eslint-disable-next-line max-len | ||
throw new Error('Package name must be supplied. See the @gasket/resolve documentation for naming conventions: https://github.com/godaddy/gasket/tree/master/packages/gasket-resolve#naming-convention'); | ||
} | ||
@@ -123,0 +127,0 @@ const [, parsedName, parsedVersion] = reName.exec(rawName); |
{ | ||
"name": "@gasket/resolve", | ||
"version": "5.1.0", | ||
"version": "5.3.1", | ||
"description": "Essential module resolution & configuration management for gasket plugins & presets.", | ||
@@ -55,3 +55,3 @@ "main": "lib", | ||
}, | ||
"gitHead": "e302b2a69664f911592012d280be280278db236f" | ||
"gitHead": "cd7eb2e22c200cefeb434d2b792812d533c411da" | ||
} |
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
48552
154
718