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

hekdi

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hekdi - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

2

package.json
{
"name": "hekdi",
"version": "1.6.0",
"version": "1.6.1",
"description": "Depedency injection framework for node integrated with koa.js",

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

@@ -24,3 +24,9 @@ /**

if (mayHaveDeps) {
const deps = (config.value.$inject || []).map(name => this.getConfigOf(name).resolver(trace));
const deps = (config.value.$inject || []).map(name => {
const d = this.getConfigOf(name);
if (d === undefined) {
throw new ReferenceError(errors.unmetDependency(this.belongTo.name, d.name));
}
return d.resolver(trace);
});
const isFactory = config.strategy === 'factory';

@@ -27,0 +33,0 @@ d = isFactory ? config.value(...deps) : new config.value(...deps);

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