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

power-di

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

power-di - npm Package Compare versions

Comparing version 2.4.31 to 2.4.32

5

lib/IocContext.d.ts

@@ -8,4 +8,4 @@ import { GetReturnType, RegKeyType, KeyType, ClassType } from './utils/types';

constructorInject?: boolean;
/** use class loader for autowired default: default ClassLoader */
useClassLoader?: ClassLoader | false;
/** use class loader for autowired default: true */
useClassLoader?: ClassLoader | boolean;
/** when implement class not found */

@@ -39,2 +39,3 @@ notFoundHandler?: (type: KeyType) => any;

private static defaultInstance;
private _classLoader?;
get classLoader(): ClassLoader;

@@ -41,0 +42,0 @@ private components;

12

lib/IocContext.js

@@ -50,4 +50,4 @@ "use strict";

this.constructorInject = true;
/** use class loader for autowired default: default ClassLoader */
this.useClassLoader = ClassLoader_1.classLoader;
/** use class loader for autowired default: true */
this.useClassLoader = true;
}

@@ -71,3 +71,3 @@ return Config;

get: function () {
return this.config.useClassLoader ? this.config.useClassLoader : undefined;
return this._classLoader;
},

@@ -90,2 +90,8 @@ enumerable: false,

Object.assign(this.config, config);
this._classLoader =
this.config.useClassLoader === true
? ClassLoader_1.classLoader
: this.config.useClassLoader === false
? undefined
: this.config.useClassLoader;
};

@@ -92,0 +98,0 @@ /**

{
"name": "power-di",
"version": "2.4.31",
"version": "2.4.32",
"description": "A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.",

@@ -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