Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forestadmin/context

Package Overview
Dependencies
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forestadmin/context - npm Package Compare versions

Comparing version 1.35.4 to 1.36.0

2

package.json
{
"name": "@forestadmin/context",
"version": "1.35.4",
"version": "1.36.0",
"description": "Minimal context management helper for applications and libraries.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -131,7 +131,11 @@ const Metadata = require('./metadata');

addUsingFunction(path, name, factoryFunction, options) {
this._metadata.add(path, name, 'function*', factoryFunction, options);
const bag = this.get();
const theFunction = factoryFunction(bag);
this._setNewValue(name, theFunction, options);
return this;
try {
this._metadata.add(path, name, 'function*', factoryFunction, options);
const bag = this.get();
const theFunction = factoryFunction(bag);
this._setNewValue(name, theFunction, options);
return this;
} catch (cause) {
throw new Error(`Using factory function for path "${path}/${name}" - ${cause.message}`, { cause });
}
}

@@ -138,0 +142,0 @@

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