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

@spinajs/di

Package Overview
Dependencies
Maintainers
1
Versions
260
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spinajs/di - npm Package Compare versions

Comparing version 2.0.220 to 2.0.221

2

lib/cjs/decorators.d.ts

@@ -87,3 +87,3 @@ import { IAutoinjectOptions, IInjectDescriptor } from './interfaces.js';

*/
export declare function Autoinject<T>(typeOrOptions?: Class<T> | IAutoinjectOptions, options?: IAutoinjectOptions): any;
export declare function Autoinject<T>(typeOrOptions?: Class<T> | IAutoinjectOptions<T>, options?: IAutoinjectOptions<T>): any;
/**

@@ -90,0 +90,0 @@ * Lazy injects service to object. Use only with class properties

@@ -129,3 +129,3 @@ /// <reference types="node" />

serviceFunc?: (data: string | any[], container: IContainer) => IServiceFuncResult | IServiceFuncResult[];
mapFunc?: (x: IMappableService) => string;
mapFunc?: (x: any) => string;
}

@@ -170,6 +170,6 @@ export interface IMappableService {

}
export interface IAutoinjectOptions {
mapFunc?: (x: IMappableService) => string;
export interface IAutoinjectOptions<T> {
mapFunc?: (x: T) => string;
options?: any;
}
//# sourceMappingURL=interfaces.d.ts.map

@@ -87,3 +87,3 @@ import { IAutoinjectOptions, IInjectDescriptor } from './interfaces.js';

*/
export declare function Autoinject<T>(typeOrOptions?: Class<T> | IAutoinjectOptions, options?: IAutoinjectOptions): any;
export declare function Autoinject<T>(typeOrOptions?: Class<T> | IAutoinjectOptions<T>, options?: IAutoinjectOptions<T>): any;
/**

@@ -90,0 +90,0 @@ * Lazy injects service to object. Use only with class properties

@@ -129,3 +129,3 @@ /// <reference types="node" resolution-mode="require"/>

serviceFunc?: (data: string | any[], container: IContainer) => IServiceFuncResult | IServiceFuncResult[];
mapFunc?: (x: IMappableService) => string;
mapFunc?: (x: any) => string;
}

@@ -170,6 +170,6 @@ export interface IMappableService {

}
export interface IAutoinjectOptions {
mapFunc?: (x: IMappableService) => string;
export interface IAutoinjectOptions<T> {
mapFunc?: (x: T) => string;
options?: any;
}
//# sourceMappingURL=interfaces.d.ts.map
{
"name": "@spinajs/di",
"version": "2.0.220",
"version": "2.0.221",
"description": "lightweight di container ",

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

"dependencies": {
"@spinajs/exceptions": "^2.0.220",
"@spinajs/util": "^2.0.220",
"@spinajs/exceptions": "^2.0.221",
"@spinajs/util": "^2.0.221",
"lodash": "^4.17.21",

@@ -57,0 +57,0 @@ "reflect-metadata": "^0.1.13"

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

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