Socket
Socket
Sign inDemoInstall

@difizen/mana-syringe

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@difizen/mana-syringe - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

4

es/decorator.d.ts

@@ -6,5 +6,5 @@ import type { Decorator } from './core';

export declare function transient<T = any>(option?: Syringe.DecoratorOption<T>): Decorator<T>;
export declare function inject(token: Syringe.Token<any>): (target: any, targetKey: string, index?: number | undefined) => void;
export declare function named(name: Syringe.Named): (target: any, targetKey: string, index?: number | undefined) => void;
export declare function inject(token: Syringe.Token<any>): (target: any, targetKey: any, index?: number | undefined) => void;
export declare function named(name: Syringe.Named): (target: any, targetKey: any, index?: number | undefined) => void;
export { postConstruct, optional, unmanaged, decorate } from 'inversify';
//# sourceMappingURL=decorator.d.ts.map

@@ -46,3 +46,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

}
export function inject(token) {
export function inject(token
// Typescript 5 makes type-checking more accurate for decorators under --experimentalDecorators,
// We can get a type error: Parameters of type undefined cannot be assigned to parameters of type string,
// Let's leave the targetKey type loose and wait for inversify to fix the type problem.
) {
return inversifyInject(tokenToIdentifier(token));

@@ -49,0 +53,0 @@ }

@@ -6,5 +6,5 @@ import type { Decorator } from './core';

export declare function transient<T = any>(option?: Syringe.DecoratorOption<T>): Decorator<T>;
export declare function inject(token: Syringe.Token<any>): (target: any, targetKey: string, index?: number | undefined) => void;
export declare function named(name: Syringe.Named): (target: any, targetKey: string, index?: number | undefined) => void;
export declare function inject(token: Syringe.Token<any>): (target: any, targetKey: any, index?: number | undefined) => void;
export declare function named(name: Syringe.Named): (target: any, targetKey: any, index?: number | undefined) => void;
export { postConstruct, optional, unmanaged, decorate } from 'inversify';
//# sourceMappingURL=decorator.d.ts.map

@@ -78,3 +78,7 @@ "use strict";

}
function inject(token) {
function inject(token
// Typescript 5 makes type-checking more accurate for decorators under --experimentalDecorators,
// We can get a type error: Parameters of type undefined cannot be assigned to parameters of type string,
// Let's leave the targetKey type loose and wait for inversify to fix the type problem.
) {
return (0, _inversify.inject)((0, _inversifyApi.tokenToIdentifier)(token));

@@ -81,0 +85,0 @@ }

{
"name": "@difizen/mana-syringe",
"version": "0.1.10",
"version": "0.1.11",
"description": "",

@@ -34,3 +34,3 @@ "keywords": [

"dependencies": {
"@difizen/mana-common": "^0.1.10",
"@difizen/mana-common": "^0.1.11",
"inversify": "^5.1.1",

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

@@ -43,3 +43,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

token: Syringe.Token<any>,
): (target: any, targetKey: string, index?: number | undefined) => void {
// Typescript 5 makes type-checking more accurate for decorators under --experimentalDecorators,
// We can get a type error: Parameters of type undefined cannot be assigned to parameters of type string,
// Let's leave the targetKey type loose and wait for inversify to fix the type problem.
): (target: any, targetKey: any, index?: number | undefined) => void {
return inversifyInject(tokenToIdentifier(token));

@@ -49,5 +52,5 @@ }

name: Syringe.Named,
): (target: any, targetKey: string, index?: number | undefined) => void {
): (target: any, targetKey: any, index?: number | undefined) => void {
return inversifyNamed(namedToIdentifier(name));
}
export { postConstruct, optional, unmanaged, decorate } from 'inversify';

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