New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tsed/di

Package Overview
Dependencies
Maintainers
5
Versions
1038
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.34.4 to 5.34.5

32

lib/class/Provider.d.ts

@@ -22,14 +22,12 @@ import { Store, Type } from "@tsed/core";

constructor(token: TokenProvider);
get token(): any;
get provide(): TokenProvider;
set provide(value: TokenProvider);
get useClass(): Type<T>;
readonly token: any;
provide: TokenProvider;
/**
* Create a new store if the given value is a class. Otherwise the value is ignored.
* @param value
*/
set useClass(value: Type<T>);
get className(): string;
get name(): string;
get store(): Store;
* Create a new store if the given value is a class. Otherwise the value is ignored.
* @param value
*/
useClass: Type<T>;
readonly className: string;
readonly name: string;
readonly store: Store;
/**

@@ -44,10 +42,8 @@ * Get the scope of the provider.

*/
get scope(): ProviderScope;
/**
* Change the scope value of the provider.
* @param scope
*/
set scope(scope: ProviderScope);
get configuration(): Partial<IDIConfigurationOptions>;
set configuration(configuration: Partial<IDIConfigurationOptions>);
* Change the scope value of the provider.
* @param scope
*/
scope: ProviderScope;
configuration: Partial<IDIConfigurationOptions>;
isAsync(): boolean;

@@ -54,0 +50,0 @@ clone(): Provider<any>;

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

return (provide) => {
ProviderRegistry_1.registerProvider(Object.assign(Object.assign({}, options), { provide }));
ProviderRegistry_1.registerProvider(Object.assign({}, options, { provide }));
};

@@ -29,0 +29,0 @@ }

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

if (currentDependency && core_1.isClass(token)) {
error.message = printDependencyInjectionError(token, Object.assign(Object.assign({}, currentDependency), { message: error.message }));
error.message = printDependencyInjectionError(token, Object.assign({}, currentDependency, { message: error.message }));
}

@@ -37,0 +37,0 @@ throw new InjectionError(token, error);

@@ -8,8 +8,5 @@ import { IDIConfigurationOptions } from "../interfaces/IDIConfigurationOptions";

constructor(initialProps?: {});
get scopes(): {
scopes: {
[key: string]: ProviderScope;
};
set scopes(value: {
[key: string]: ProviderScope;
});
/**

@@ -16,0 +13,0 @@ *

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

if (["scopes"].includes(propertyKey)) {
return Object.assign(Object.assign({}, this.default.get(propertyKey)), this.map.get(propertyKey));
return Object.assign({}, this.default.get(propertyKey), this.map.get(propertyKey));
}

@@ -93,0 +93,0 @@ const value = core_1.getValue(propertyKey, this.map);

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

}
return interceptor.intercept(Object.assign(Object.assign({}, context), { options }), next);
return interceptor.intercept(Object.assign({}, context, { options }), next);
};

@@ -363,0 +363,0 @@ }

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

@@ -8,4 +8,4 @@ "main": "lib/index.js",

"dependencies": {
"@tsed/core": "5.34.4",
"tslib": "^1.8.0"
"@tsed/core": "5.34.5",
"tslib": "1.10.0"
},

@@ -17,2 +17,4 @@ "scripts": {

"private": false,
"devDependencies": {},
"peerDependencies": {},
"repository": {

@@ -29,4 +31,3 @@ "type": "git",

},
"license": "MIT",
"gitHead": "cdc6d5e9a4006f9e4b0b781ac34b07e087a560d9"
"license": "MIT"
}

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