Socket
Socket
Sign inDemoInstall

@tsed/di

Package Overview
Dependencies
Maintainers
5
Versions
982
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/di - npm Package Compare versions

Comparing version 5.2.2 to 5.2.3

2

lib/class/Provider.d.ts

@@ -9,4 +9,4 @@ import { RegistryKey, Store, Type } from "@tsed/core";

protected _type: ProviderType | any;
protected _provide: RegistryKey;
private _store;
protected _provide: RegistryKey;
constructor(provide: RegistryKey);

@@ -13,0 +13,0 @@ /**

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

get useClass() {
return this._useClass || this._provide;
return this._useClass;
}

@@ -35,0 +35,0 @@ /**

@@ -19,3 +19,3 @@ import { Registry, RegistryKey, Type } from "@tsed/core";

*/
createRegistry(type: string, model: Type<Provider<any>>, options?: Partial<RegistrySettings>): TypedProvidersRegistry;
createRegistry(type: string, model: Type<Provider<any>>, options: Partial<RegistrySettings>): TypedProvidersRegistry;
/**

@@ -22,0 +22,0 @@ *

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

*/
createRegistry(type, model, options = {}) {
createRegistry(type, model, options) {
const registry = new core_1.Registry(model, {

@@ -24,0 +24,0 @@ onCreate: this.set.bind(this)

{
"name": "@tsed/di",
"version": "5.2.2",
"version": "5.2.3",
"description": "DI module for Ts.ED Framework",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

"peerDependencies": {
"@tsed/core": "5.2.2"
"@tsed/core": "5.2.3"
},

@@ -28,3 +28,3 @@ "devDependencies": {},

"license": "MIT",
"gitHead": "b0fc583c448e4f222f05151faa424beeba24022e"
"gitHead": "3c402fcdb6085eb9eed43c7de3b0e1480bd99cc8"
}

@@ -15,8 +15,6 @@ import {getClass, getClassOrSymbol, nameOf, NotEnumerable, RegistryKey, Store, Type} from "@tsed/core";

protected _type: ProviderType | any = ProviderType.PROVIDER;
protected _provide: RegistryKey;
@NotEnumerable()
private _store: Store;
protected _provide: RegistryKey;
constructor(provide: RegistryKey) {

@@ -49,3 +47,3 @@ this._provide = getClassOrSymbol(provide);

get useClass(): Type<T> {
return this._useClass || this._provide;
return this._useClass;
}

@@ -52,0 +50,0 @@

@@ -24,3 +24,3 @@ import {Registry, RegistryKey, Type} from "@tsed/core";

*/
createRegistry(type: string, model: Type<Provider<any>>, options: Partial<RegistrySettings> = {}): TypedProvidersRegistry {
createRegistry(type: string, model: Type<Provider<any>>, options: Partial<RegistrySettings>): TypedProvidersRegistry {
const registry = new Registry<Provider<any>, IProvider<any>>(model, {

@@ -27,0 +27,0 @@ onCreate: this.set.bind(this)

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

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