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

@neoskop/injector

Package Overview
Dependencies
Maintainers
8
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoskop/injector - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

12

bundle/injector.bundle.js

@@ -1289,7 +1289,2 @@ (function (global, factory) {

exports.ɵisClassProvider = isClassProvider;
exports.ɵREFLECTOR = REFLECTOR;
exports.ɵresolveDeps = resolveDeps;
exports.ɵresolveProvider = resolveProvider;
exports.ɵresolveProviders = resolveProviders;
exports.Injector = core.Injector;

@@ -1301,3 +1296,10 @@ exports.Inject = core.Inject;

exports.SkipSelf = core.SkipSelf;
exports.Injectable = core.Injectable;
exports.InjectionToken = core.InjectionToken;
exports.InjectorFactory = InjectorFactory;
exports.ɵisClassProvider = isClassProvider;
exports.ɵREFLECTOR = REFLECTOR;
exports.ɵresolveDeps = resolveDeps;
exports.ɵresolveProvider = resolveProvider;
exports.ɵresolveProviders = resolveProviders;

@@ -1304,0 +1306,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

@@ -1,6 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var core_1 = require("@angular/core");
var resolver_1 = require("./resolver");
import * as tslib_1 from "tslib";
import { Injector } from '@angular/core';
import { resolveProviders } from './resolver';
var InjectorFactory = /** @class */ (function () {

@@ -11,8 +9,8 @@ function InjectorFactory() {

var providers = _a.providers, options = tslib_1.__rest(_a, ["providers"]);
var staticProviders = resolver_1.resolveProviders(providers);
return core_1.Injector.create(tslib_1.__assign({}, options, { providers: staticProviders }));
var staticProviders = resolveProviders(providers);
return Injector.create(tslib_1.__assign({}, options, { providers: staticProviders }));
};
return InjectorFactory;
}());
exports.InjectorFactory = InjectorFactory;
export { InjectorFactory };
//# sourceMappingURL=factory.js.map

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var resolver_1 = require("./resolver");
exports.ɵisClassProvider = resolver_1.isClassProvider;
exports.ɵREFLECTOR = resolver_1.REFLECTOR;
exports.ɵresolveDeps = resolver_1.resolveDeps;
exports.ɵresolveProvider = resolver_1.resolveProvider;
exports.ɵresolveProviders = resolver_1.resolveProviders;
export { isClassProvider as ɵisClassProvider, REFLECTOR as ɵREFLECTOR, resolveDeps as ɵresolveDeps, resolveProvider as ɵresolveProvider, resolveProviders as ɵresolveProviders } from './resolver';
//# sourceMappingURL=private_api.js.map

@@ -1,15 +0,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
tslib_1.__exportStar(require("./factory"), exports);
tslib_1.__exportStar(require("./private_api"), exports);
var core_1 = require("@angular/core");
exports.Injector = core_1.Injector;
exports.Inject = core_1.Inject;
exports.Optional = core_1.Optional;
exports.Host = core_1.Host;
exports.Self = core_1.Self;
exports.SkipSelf = core_1.SkipSelf;
exports.Injectable = core_1.Injectable;
exports.InjectionToken = core_1.InjectionToken;
export * from './factory';
export * from './private_api';
export { Injector, Inject, Optional, Host, Self, SkipSelf, Injectable, InjectionToken } from '@angular/core';
//# sourceMappingURL=public_api.js.map

@@ -1,12 +0,9 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
require("reflect-metadata");
var core_1 = require("@angular/core");
exports.REFLECTOR = new core_1.ɵReflectionCapabilities();
function isClassProvider(provider) {
import * as tslib_1 from "tslib";
import 'reflect-metadata';
import { Host, Inject, Optional, resolveForwardRef, Self, SkipSelf, Type, ɵReflectionCapabilities as ReflectionCapabilities } from '@angular/core';
export var REFLECTOR = new ReflectionCapabilities();
export function isClassProvider(provider) {
return !!(provider && provider.provide && provider.useClass && !provider.deps);
}
exports.isClassProvider = isClassProvider;
function resolveProviders(providers) {
export function resolveProviders(providers) {
return providers.map(function (provider) {

@@ -19,4 +16,3 @@ if (Array.isArray(provider)) {

}
exports.resolveProviders = resolveProviders;
function resolveProvider(provider) {
export function resolveProvider(provider) {
if (typeof provider === 'function') {

@@ -34,5 +30,4 @@ return {

}
exports.resolveProvider = resolveProvider;
function resolveDeps(klass) {
var params = exports.REFLECTOR.parameters(klass);
export function resolveDeps(klass) {
var params = REFLECTOR.parameters(klass);
if (!params.length) {

@@ -46,3 +41,2 @@ return [];

}
exports.resolveDeps = resolveDeps;
function resolveDep(klass, metadata, params) {

@@ -53,14 +47,14 @@ var dep = null;

var paramMetadata = metadata[i];
if (paramMetadata instanceof core_1.Type) {
if (paramMetadata instanceof Type) {
dep = paramMetadata;
}
if (paramMetadata instanceof core_1.Inject) {
if (paramMetadata instanceof Inject) {
dep = paramMetadata.token;
}
if (paramMetadata instanceof core_1.Optional || paramMetadata instanceof core_1.SkipSelf
|| paramMetadata instanceof core_1.Self || paramMetadata instanceof core_1.Host) {
if (paramMetadata instanceof Optional || paramMetadata instanceof SkipSelf
|| paramMetadata instanceof Self || paramMetadata instanceof Host) {
decorator.push(paramMetadata);
}
}
dep = core_1.resolveForwardRef(dep);
dep = resolveForwardRef(dep);
if (dep == null) {

@@ -67,0 +61,0 @@ throw noAnnotationError(klass, params);

{
"name": "@neoskop/injector",
"version": "1.1.0",
"version": "1.1.1",
"description": "A replacement for the core functionallity of the deprecated ReflectiveInjector from @angular/core",

@@ -5,0 +5,0 @@ "main": "bundle/injector.bundle.js",

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