Socket
Socket
Sign inDemoInstall

@gasket/resolve

Package Overview
Dependencies
Maintainers
5
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gasket/resolve - npm Package Compare versions

Comparing version 5.1.0 to 5.3.1

5

CHANGELOG.md
# `@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

4

lib/loader.js

@@ -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);

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc