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

@furystack/inject

Package Overview
Dependencies
Maintainers
1
Versions
151
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 5.0.7 to 6.0.0

dist/models/constructable.js

2

dist/index.js

@@ -6,3 +6,3 @@ "use strict";

tslib_1.__exportStar(require("./injector"), exports);
tslib_1.__exportStar(require("./types"), exports);
tslib_1.__exportStar(require("./models"), exports);
//# sourceMappingURL=index.js.map

@@ -5,3 +5,2 @@ "use strict";

const injectable_1 = require("./injectable");
// tslint:disable:max-classes-per-file
describe('Tests', () => {

@@ -8,0 +7,0 @@ it('Should decorate classes', () => {

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

const injector_1 = require("./injector");
// tslint:disable:max-classes-per-file
describe('Injector', () => {

@@ -59,3 +58,2 @@ it('Shold be constructed', () => {

expect(i.getInstance(InstanceClass)).toBe(instance);
// tslint:disable-next-line:no-string-literal
expect(parent.cachedSingletons.get(InstanceClass)).toBe(instance);

@@ -72,5 +70,3 @@ });

expect(i.getInstance(InstanceClass)).toBeInstanceOf(InstanceClass);
expect(
// tslint:disable-next-line:no-string-literal
parent.cachedSingletons.get(InstanceClass)).toBeInstanceOf(InstanceClass);
expect(parent.cachedSingletons.get(InstanceClass)).toBeInstanceOf(InstanceClass);
});

@@ -174,3 +170,2 @@ it('Should resolve parameters', () => {

i.remove(Object);
// tslint:disable-next-line: no-string-literal
expect(i.cachedSingletons.size).toBe(0);

@@ -177,0 +172,0 @@ });

{
"name": "@furystack/inject",
"version": "5.0.7",
"version": "6.0.0",
"description": "Core FuryStack package",

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

"dist",
"types",
"src"

@@ -32,4 +33,4 @@ ],

"dependencies": {
"@furystack/utils": "^2.1.0",
"tslib": "^2.3.1"
"@furystack/utils": "^3.0.0",
"tslib": "^2.4.0"
},

@@ -39,4 +40,4 @@ "devDependencies": {

},
"typings": "./dist/index.d.ts",
"typings": "./types/index.d.ts",
"gitHead": "1045d854bfd8c475b7035471d130d401417a2321"
}
export * from './injectable'
export * from './injector'
export * from './types'
export * from './models'
import { Injectable } from './injectable'
// tslint:disable:max-classes-per-file
describe('Tests', () => {

@@ -5,0 +4,0 @@ it('Should decorate classes', () => {

import { Injector } from './injector'
import { Constructable } from './types/constructable'
import { Constructable } from './models/constructable'

@@ -4,0 +4,0 @@ import './reflect-metadata-polyfill'

@@ -5,4 +5,2 @@ import { Disposable, using, usingAsync } from '@furystack/utils'

// tslint:disable:max-classes-per-file
describe('Injector', () => {

@@ -53,3 +51,2 @@ it('Shold be constructed', () => {

expect(i.getInstance(InstanceClass)).toBe(instance)
// tslint:disable-next-line:no-string-literal
expect(parent.cachedSingletons.get(InstanceClass)).toBe(instance)

@@ -64,6 +61,3 @@ })

expect(i.getInstance(InstanceClass)).toBeInstanceOf(InstanceClass)
expect(
// tslint:disable-next-line:no-string-literal
parent.cachedSingletons.get(InstanceClass),
).toBeInstanceOf(InstanceClass)
expect(parent.cachedSingletons.get(InstanceClass)).toBeInstanceOf(InstanceClass)
})

@@ -156,3 +150,2 @@

i.remove(Object)
// tslint:disable-next-line: no-string-literal
expect(i.cachedSingletons.size).toBe(0)

@@ -159,0 +152,0 @@ })

import { Disposable } from '@furystack/utils'
import { defaultInjectableOptions } from './injectable'
import { Constructable } from './types/constructable'
import { Constructable } from './models/constructable'

@@ -5,0 +5,0 @@ export class Injector implements Disposable {

/* eslint-disable no-redeclare */
/* eslint-disable @typescript-eslint/no-namespace */
import { Constructable } from './types/constructable'
import { Constructable } from './models/constructable'

@@ -5,0 +5,0 @@ declare global {

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