New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

to
0.4.4

2

lib/constant.js

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

exports.INJECT_HANDLER_ARGS = Symbol.for('injection:handler_args');
exports.LAZY_HANDLER = Symbol('injection:lazy_handler');
exports.LAZY_HANDLER = Symbol.for('injection:lazy_handler');
//# sourceMappingURL=constant.js.map

@@ -33,4 +33,11 @@ "use strict";

scope: (_a = options.scope) !== null && _a !== void 0 ? _a : types_1.ScopeEnum.SINGLETON,
type: options.type,
};
this.registry.set(md.id, md);
/**
* compatible with inject type identifier when identifier is string
*/
if (md.type && md.id !== md.type) {
this.registry.set(md.type, md);
}
return this;

@@ -37,0 +44,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Injectable = void 0;
const types_1 = require("../types");
const util_1 = require("../util");

@@ -9,3 +8,3 @@ const constant_1 = require("../constant");

return (target) => {
const md = Object.assign({ id: target, scope: types_1.ScopeEnum.SINGLETON, lazy: false }, options);
const md = Object.assign({ id: target, lazy: false }, options);
(0, util_1.setMetadata)(constant_1.CLASS_CONSTRUCTOR, md, target);

@@ -12,0 +11,0 @@ // make all properties lazy

{
"name": "@artus/injection",
"version": "0.4.3",
"version": "0.4.4",
"description": "A IoC Implemention for Artus.",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet