New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@searchfe/inject-js

Package Overview
Dependencies
Maintainers
10
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@searchfe/inject-js - npm Package Compare versions

Comparing version

to
1.2.0-beta.2

15

dist/amd/di/container.js

@@ -101,4 +101,2 @@ define([

}
console.log(inDegree);
console.log(graph);
var result = [];

@@ -117,4 +115,7 @@ var queue = [];

for (var i = 0; i < toEnQueue.length; i++) {
if (inDegree.get(toEnQueue[i]) === 1) {
var inDegreeVal = inDegree.get(toEnQueue[i]);
if (inDegreeVal === 1) {
queue.push(toEnQueue[i]);
} else {
inDegree.set(toEnQueue[i], inDegreeVal - 1);
}

@@ -124,3 +125,2 @@ }

}
console.log(result);
return result;

@@ -132,6 +132,9 @@ };

var element = providers[index];
if (this.providers.get(element).destory && typeof this.providers.get(element).destory === 'function') {
this.providers.get(element).destory();
var thisProvider = this.providers.get(element);
if (thisProvider.destory && typeof thisProvider.destory === 'function') {
thisProvider.destory();
}
}
this.providers.clear();
this.services = [];
};

@@ -138,0 +141,0 @@ return Container;

@@ -25,2 +25,7 @@ define([

};
FactoryProviderImpl.prototype.destory = function () {
if (typeof this.instance.destory === 'function') {
this.instance.destory();
}
};
FactoryProviderImpl.dependencies = function () {

@@ -27,0 +32,0 @@ return dependency_1.getDependencies(factory);

18

dist/cjs/di/container.js

@@ -87,4 +87,2 @@ "use strict";

}
console.log(inDegree);
console.log(graph);
const result = [];

@@ -102,10 +100,13 @@ const queue = [];

if (toEnQueue && toEnQueue.length) {
for (let i = 0; i < toEnQueue.length; i++) { // 遍历后续课程
if (inDegree.get(toEnQueue[i]) === 1) {
for (let i = 0; i < toEnQueue.length; i++) {
const inDegreeVal = inDegree.get(toEnQueue[i]);
if (inDegreeVal === 1) {
queue.push(toEnQueue[i]);
}
else {
inDegree.set(toEnQueue[i], inDegreeVal - 1);
}
}
}
}
console.log(result);
return result;

@@ -117,8 +118,11 @@ }

const element = providers[index];
if (this.providers.get(element).destory && typeof this.providers.get(element).destory === 'function') {
this.providers.get(element).destory();
const thisProvider = this.providers.get(element);
if (thisProvider.destory && typeof thisProvider.destory === 'function') {
thisProvider.destory();
}
}
this.providers.clear();
this.services = [];
}
}
exports.Container = Container;

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

}
destory() {
if (typeof this.instance.destory === 'function') {
this.instance.destory();
}
}
static dependencies() {

@@ -19,0 +24,0 @@ return dependency_1.getDependencies(factory);

@@ -87,4 +87,2 @@ import { __spreadArrays } from "tslib";

}
console.log(inDegree);
console.log(graph);
var result = [];

@@ -102,10 +100,13 @@ var queue = [];

if (toEnQueue && toEnQueue.length) {
for (var i = 0; i < toEnQueue.length; i++) { // 遍历后续课程
if (inDegree.get(toEnQueue[i]) === 1) {
for (var i = 0; i < toEnQueue.length; i++) {
var inDegreeVal = inDegree.get(toEnQueue[i]);
if (inDegreeVal === 1) {
queue.push(toEnQueue[i]);
}
else {
inDegree.set(toEnQueue[i], inDegreeVal - 1);
}
}
}
}
console.log(result);
return result;

@@ -117,6 +118,9 @@ };

var element = providers[index];
if (this.providers.get(element).destory && typeof this.providers.get(element).destory === 'function') {
this.providers.get(element).destory();
var thisProvider = this.providers.get(element);
if (thisProvider.destory && typeof thisProvider.destory === 'function') {
thisProvider.destory();
}
}
this.providers.clear();
this.services = [];
};

@@ -123,0 +127,0 @@ return Container;

@@ -18,2 +18,7 @@ import { getDependencies } from './dependency';

};
FactoryProviderImpl.prototype.destory = function () {
if (typeof this.instance.destory === 'function') {
this.instance.destory();
}
};
FactoryProviderImpl.dependencies = function () {

@@ -20,0 +25,0 @@ return getDependencies(factory);

@@ -7,4 +7,5 @@ import { InjectToken } from './inject-token';

create(): any;
destory(): void;
};
dependencies(): InjectToken[];
};
{
"name": "@searchfe/inject-js",
"version": "1.2.0-beta.1",
"version": "1.2.0-beta.2",
"description": "A Dependency Injection library",

@@ -5,0 +5,0 @@ "main": "dist/amd/index.js",

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