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.5.3 to 1.5.4

2

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

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

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

const resolveDependency = function(dependencyName, trace) {
const config = this.getConfigOf(dependencyName);
let config = this.getConfigOf(dependencyName);
if (config === undefined) {

@@ -18,2 +18,6 @@ throw new ReferenceError(errors.unmetDependency(this.belongTo.name, dependencyName));

trace.push(dependencyName);
while (config.strategy === 'alias') {
trace.push(config.value);
config = this.getConfigOf(config.value);
}
const mayHaveDeps = ['service', 'factory', 'singleton'].includes(config.strategy);

@@ -80,5 +84,4 @@ let d;

alias: dependencyName => function(trace) {
const { value } = this.getConfigOf(dependencyName);
return resolveDependency.call(this, value, trace);
return resolveDependency.call(this, dependencyName, trace);
}
};
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