Socket
Socket
Sign inDemoInstall

@furystack/inject

Package Overview
Dependencies
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furystack/inject - npm Package Compare versions

Comparing version 3.0.8 to 4.0.0

6

dist/Injectable.d.ts

@@ -6,3 +6,3 @@ import 'reflect-metadata';

*/
export interface IInjectableOptions {
export interface InjectableOptions {
lifetime: 'transient' | 'singleton' | 'scoped';

@@ -13,3 +13,3 @@ }

*/
export declare const defaultInjectableOptions: IInjectableOptions;
export declare const defaultInjectableOptions: InjectableOptions;
/**

@@ -19,3 +19,3 @@ * Decorator method for tagging a class as injectable

*/
export declare const Injectable: (options?: Partial<IInjectableOptions> | undefined) => <T extends Constructable<any>>(ctor: T) => void;
export declare const Injectable: (options?: Partial<InjectableOptions> | undefined) => <T extends Constructable<any>>(ctor: T) => void;
//# sourceMappingURL=Injectable.d.ts.map

@@ -23,5 +23,5 @@ import { Disposable } from '@sensenet/client-utils';

dependencies: Array<Constructable<any>>;
options: import('./Injectable').IInjectableOptions;
options: import('./Injectable').InjectableOptions;
}>;
private cachedSingletons;
readonly cachedSingletons: Map<Constructable<any>, any>;
remove: <T>(ctor: Constructable<T>) => boolean;

@@ -28,0 +28,0 @@ /**

@@ -1,2 +0,2 @@

export * from "./Constructable";
export * from './Constructable';
//# sourceMappingURL=index.d.ts.map
{
"name": "@furystack/inject",
"version": "3.0.8",
"version": "4.0.0",
"description": "Core FuryStack package",

@@ -53,3 +53,3 @@ "main": "dist/index.js",

"typings": "./dist/index.d.ts",
"gitHead": "d6391577488cbe5410f76881689a9f0cba7bbcef"
"gitHead": "f990a9bf0adf05b3bcbf307e1191be5b8ebb7c6b"
}

@@ -8,3 +8,3 @@ import 'reflect-metadata'

*/
export interface IInjectableOptions {
export interface InjectableOptions {
lifetime: 'transient' | 'singleton' | 'scoped'

@@ -16,3 +16,3 @@ }

*/
export const defaultInjectableOptions: IInjectableOptions = {
export const defaultInjectableOptions: InjectableOptions = {
lifetime: 'transient',

@@ -25,3 +25,3 @@ }

*/
export const Injectable = (options?: Partial<IInjectableOptions>) => {
export const Injectable = (options?: Partial<InjectableOptions>) => {
return <T extends Constructable<any>>(ctor: T) => {

@@ -28,0 +28,0 @@ const meta = Reflect.getMetadata('design:paramtypes', ctor)

@@ -38,7 +38,7 @@ import { Disposable } from '@sensenet/client-utils'

dependencies: Array<Constructable<any>>
options: import('./Injectable').IInjectableOptions
options: import('./Injectable').InjectableOptions
}
> = new Map()
private cachedSingletons: Map<Constructable<any>, any> = new Map()
public readonly cachedSingletons: Map<Constructable<any>, any> = new Map()

@@ -45,0 +45,0 @@ public remove = <T>(ctor: Constructable<T>) => this.cachedSingletons.delete(ctor)

@@ -1,1 +0,1 @@

export * from "./Constructable";
export * from './Constructable'

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