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

@injex/core

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@injex/core - npm Package Compare versions

Comparing version 3.3.4 to 3.3.5

4

lib/injex.js

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

lazyMetadata = metadataHandlers_1.default.getMetadata(Ctor.prototype);
if (!(lazyMetadata.singleton && self.get(Ctor))) return [3 /*break*/, 2];
if (!(lazyMetadata && lazyMetadata.singleton && self.get(Ctor))) return [3 /*break*/, 2];
lazyInstance = self.get(Ctor);

@@ -437,3 +437,3 @@ return [3 /*break*/, 4];

var optionalPromise = null;
if (metadata.singleton) {
if (metadata && metadata.singleton) {
this._injectModuleDependencies(metadata.lazyLoader || module);

@@ -440,0 +440,0 @@ optionalPromise = this._invokeModuleInitMethod(metadata.lazyLoader || module, metadata);

{
"name": "@injex/core",
"version": "3.3.4",
"version": "3.3.5",
"description": "Simple, Decorated, Pluggable dependency-injection framework for TypeScript apps",

@@ -47,3 +47,3 @@ "keywords": [

"dependencies": {
"@injex/stdlib": "^3.3.4"
"@injex/stdlib": "^3.3.5"
},

@@ -57,3 +57,3 @@ "devDependencies": {

},
"gitHead": "9fb36b9aa2307628d300b8a870cb0d62517cded4"
"gitHead": "cd50e849f1deaa8bd763e5fcbd332b310f67debf"
}

@@ -223,3 +223,3 @@ import { Hook, IConstructor, isFunction, isPromise, Logger, yieldToMain } from "@injex/stdlib";

let lazyInstance;
if (lazyMetadata.singleton && self.get(Ctor)) {
if (lazyMetadata && lazyMetadata.singleton && self.get(Ctor)) {
lazyInstance = self.get(Ctor);

@@ -447,3 +447,3 @@ } else {

let optionalPromise: Promise<any> = null;
if (metadata.singleton) {
if (metadata && metadata.singleton) {
this._injectModuleDependencies(metadata.lazyLoader || module);

@@ -450,0 +450,0 @@ optionalPromise = this._invokeModuleInitMethod(metadata.lazyLoader || module, metadata);

Sorry, the diff of this file is not supported yet

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