New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gasket/core

Package Overview
Dependencies
Maintainers
8
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gasket/core - npm Package Compare versions

Comparing version 7.0.0-next.34 to 7.0.0-next.35

15

cjs/engine.js

@@ -56,3 +56,5 @@ "use strict";

this._pluginMap = plugins.reduce((acc, plugin)=>{
// TODO: throw if plugin is not an object
if (typeof plugin !== 'object' || Array.isArray(plugin)) {
throw new Error(`Plugin ${plugin.name} must be an object`);
}
const { name, hooks } = plugin;

@@ -65,2 +67,13 @@ if (!name) {

}
// Add base metadata hook if not present
if (!plugin.hooks.metadata) {
plugin.hooks.metadata = function() {
var _ref = _async_to_generator(function*(_, metadata) {
return metadata;
});
return function(_, metadata) {
return _ref.apply(this, arguments);
};
}();
}
acc[name] = plugin;

@@ -67,0 +80,0 @@ return acc;

@@ -37,3 +37,6 @@ import debugPkg from 'debug';

.reduce((acc, plugin) => {
// TODO: throw if plugin is not an object
if (typeof plugin !== 'object' || Array.isArray(plugin)) {
throw new Error(`Plugin ${plugin.name} must be an object`);
}
const { name, hooks } = plugin;

@@ -47,2 +50,7 @@ if (!name) {

// Add base metadata hook if not present
if (!plugin.hooks.metadata) {
plugin.hooks.metadata = async (_, metadata) => metadata;
}
acc[name] = plugin;

@@ -49,0 +57,0 @@ return acc;

@@ -43,2 +43,4 @@ declare module '@gasket/core' {

name: string;
version: string;
description: string;
dependencies?: Array<string>;

@@ -45,0 +47,0 @@ hooks: {

7

package.json
{
"name": "@gasket/core",
"version": "7.0.0-next.34",
"version": "7.0.0-next.35",
"description": "Entry point to setting up Gasket instances",

@@ -10,3 +10,4 @@ "exports": {

"types": "./lib/index.d.ts"
}
},
"./package.json": "./package.json"
},

@@ -91,3 +92,3 @@ "types": "lib/index.d.ts",

"type": "module",
"gitHead": "219ddcd68d2d6efd13a8324da31a7dc51cf2b78a"
"gitHead": "c79ee342a46ad0f222f2912a50e61a4d90a89fc4"
}
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