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

injection-js

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

injection-js - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

16

facade/lang.d.ts

@@ -35,13 +35,13 @@ import { Injector } from '../injector';

export declare abstract class DebugContext {
abstract readonly nodeIndex: number | null;
abstract readonly injector: Injector;
abstract readonly component: any;
abstract readonly providerTokens: any[];
abstract readonly references: {
abstract get nodeIndex(): number | null;
abstract get injector(): Injector;
abstract get component(): any;
abstract get providerTokens(): any[];
abstract get references(): {
[key: string]: any;
};
abstract readonly context: any;
abstract readonly componentRenderElement: any;
abstract readonly renderNode: any;
abstract get context(): any;
abstract get componentRenderElement(): any;
abstract get renderNode(): any;
abstract logError(console: Console, ...values: any[]): void;
}

@@ -8,3 +8,3 @@ /**

*/
import * as tslib_1 from "tslib";
import { __extends } from "tslib";
/**

@@ -66,3 +66,3 @@ * Creates a token that can be used in a DI Provider.

var InjectionToken = /** @class */ (function (_super) {
tslib_1.__extends(InjectionToken, _super);
__extends(InjectionToken, _super);
function InjectionToken(desc) {

@@ -69,0 +69,0 @@ return _super.call(this, desc) || this;

{
"name": "injection-js",
"version": "2.3.1",
"version": "2.3.2",
"description": "Dependency Injection library for JavaScript and TypeScript",

@@ -14,3 +14,3 @@ "main": "injection.bundle.js",

"dependencies": {
"tslib": "^1.9.3"
"tslib": "^2.0.0"
},

@@ -17,0 +17,0 @@ "keywords": [

@@ -8,2 +8,3 @@ /**

*/
export {};
//# sourceMappingURL=provider.js.map

@@ -8,2 +8,3 @@ /**

*/
export {};
//# sourceMappingURL=platform_reflection_capabilities.js.map

@@ -8,2 +8,3 @@ /**

*/
import { __spreadArrays } from "tslib";
import { global, stringify } from '../facade/lang';

@@ -28,3 +29,3 @@ import { Type, isType } from '../facade/type';

}
return new (t.bind.apply(t, [void 0].concat(args)))();
return new (t.bind.apply(t, __spreadArrays([void 0], args)))();
};

@@ -232,6 +233,9 @@ };

var annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];
return new (annotationCls.bind.apply(annotationCls, [void 0].concat(annotationArgs)))();
return new (annotationCls.bind.apply(annotationCls, __spreadArrays([void 0], annotationArgs)))();
});
}
function getParentCtor(ctor) {
if (!ctor.prototype) {
return Object;
}
var parentProto = Object.getPrototypeOf(ctor.prototype);

@@ -238,0 +242,0 @@ var parentCtor = parentProto ? parentProto.constructor : null;

@@ -8,3 +8,3 @@ /**

*/
import * as tslib_1 from "tslib";
import { __extends } from "tslib";
import { ReflectorReader } from './reflector_reader';

@@ -16,3 +16,3 @@ /**

var Reflector = /** @class */ (function (_super) {
tslib_1.__extends(Reflector, _super);
__extends(Reflector, _super);
function Reflector(reflectionCapabilities) {

@@ -19,0 +19,0 @@ var _this = _super.call(this) || this;

@@ -8,2 +8,3 @@ /**

*/
export {};
//# sourceMappingURL=types.js.map

@@ -146,3 +146,3 @@ /**

*/
abstract readonly parent: Injector | null;
abstract get parent(): Injector | null;
/**

@@ -262,3 +262,3 @@ * Resolves an array of providers and creates a child injector from those providers.

get(token: any, notFoundValue?: any): any;
readonly parent: Injector | null;
get parent(): Injector | null;
resolveAndCreateChild(providers: Provider[]): ReflectiveInjector;

@@ -275,4 +275,4 @@ createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;

private _getObjByKeyId;
readonly displayName: string;
get displayName(): string;
toString(): string;
}

@@ -175,3 +175,3 @@ /**

},
enumerable: true,
enumerable: false,
configurable: true

@@ -312,3 +312,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -315,0 +315,0 @@ });

@@ -34,3 +34,3 @@ /**

*/
readonly displayName: string;
get displayName(): string;
/**

@@ -43,3 +43,3 @@ * Retrieves a `Key` for a token.

*/
static readonly numberOfKeys: number;
static get numberOfKeys(): number;
}

@@ -44,3 +44,3 @@ /**

},
enumerable: true,
enumerable: false,
configurable: true

@@ -63,3 +63,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -91,3 +91,3 @@ });

},
enumerable: true,
enumerable: false,
configurable: true

@@ -94,0 +94,0 @@ });

@@ -59,3 +59,3 @@ /**

constructor(key: ReflectiveKey, resolvedFactories: ResolvedReflectiveFactory[], multiProvider: boolean);
readonly resolvedFactory: ResolvedReflectiveFactory;
get resolvedFactory(): ResolvedReflectiveFactory;
}

@@ -62,0 +62,0 @@ /**

@@ -43,3 +43,3 @@ /**

},
enumerable: true,
enumerable: false,
configurable: true

@@ -46,0 +46,0 @@ });

@@ -8,2 +8,3 @@ /**

*/
import { __spreadArrays } from "tslib";
import { global, stringify } from '../facade/lang';

@@ -234,3 +235,3 @@ var _nextClassId = 0;

}
var annotationInstance = new ((_a = ParamDecoratorFactory).bind.apply(_a, [void 0].concat(args)))();
var annotationInstance = new ((_a = ParamDecoratorFactory).bind.apply(_a, __spreadArrays([void 0], args)))();
ParamDecorator.annotation = annotationInstance;

@@ -270,3 +271,3 @@ return ParamDecorator;

}
var decoratorInstance = new ((_a = PropDecoratorFactory).bind.apply(_a, [void 0].concat(args)))();
var decoratorInstance = new ((_a = PropDecoratorFactory).bind.apply(_a, __spreadArrays([void 0], args)))();
return function PropDecorator(target, name) {

@@ -273,0 +274,0 @@ var meta = Reflect.getOwnMetadata('propMetadata', target.constructor) || {};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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