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

@artus/injection

Package Overview
Dependencies
Maintainers
7
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artus/injection - npm Package Compare versions

Comparing version 0.2.5 to 0.3.0

8

lib/container.js

@@ -183,3 +183,3 @@ "use strict";

instance[prop.propertyName] = prop.handler
? this.resolveHandler(prop.handler, prop.id, instance)
? this.resolveHandler(prop.handler, prop.id)
: this.get(prop.id);

@@ -191,3 +191,3 @@ });

instance[prop.propertyName] = prop.handler
? await this.resolveHandler(prop.handler, prop.id, instance)
? await this.resolveHandler(prop.handler, prop.id)
: await this.getAsync(prop.id);

@@ -211,3 +211,3 @@ }));

}
resolveHandler(handlerName, id, instance) {
resolveHandler(handlerName, id) {
const handler = this.getHandler(handlerName);

@@ -217,5 +217,5 @@ if (!handler) {

}
return handler(id, instance);
return handler(id, this);
}
}
exports.default = Container;
{
"name": "@artus/injection",
"version": "0.2.5",
"version": "0.3.0",
"description": "A IoC Implemention for Artus.",

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

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