Comparing version 5.0.0 to 5.0.1
@@ -540,10 +540,3 @@ /*! ***************************************************************************** | ||
function uniq(arr) { | ||
var result = []; | ||
for (var idx in arr) { | ||
var item = arr[idx]; | ||
if (result.indexOf(item) === -1) { | ||
result.push(item); | ||
} | ||
} | ||
return result; | ||
return Array.from(new Set(arr)); | ||
} | ||
@@ -550,0 +543,0 @@ |
@@ -470,10 +470,3 @@ import * as glob from 'glob'; | ||
function uniq(arr) { | ||
const result = []; | ||
for (const idx in arr) { | ||
const item = arr[idx]; | ||
if (result.indexOf(item) === -1) { | ||
result.push(item); | ||
} | ||
} | ||
return result; | ||
return Array.from(new Set(arr)); | ||
} | ||
@@ -480,0 +473,0 @@ |
@@ -546,10 +546,3 @@ (function (global, factory) { | ||
function uniq(arr) { | ||
var result = []; | ||
for (var idx in arr) { | ||
var item = arr[idx]; | ||
if (result.indexOf(item) === -1) { | ||
result.push(item); | ||
} | ||
} | ||
return result; | ||
return Array.from(new Set(arr)); | ||
} | ||
@@ -556,0 +549,0 @@ |
@@ -105,12 +105,5 @@ "use strict"; | ||
function uniq(arr) { | ||
const result = []; | ||
for (const idx in arr) { | ||
const item = arr[idx]; | ||
if (result.indexOf(item) === -1) { | ||
result.push(item); | ||
} | ||
} | ||
return result; | ||
return Array.from(new Set(arr)); | ||
} | ||
exports.uniq = uniq; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "awilix", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Extremely powerful dependency injection container.", | ||
@@ -58,4 +58,4 @@ "main": "lib/awilix.js", | ||
"@types/glob": "^7.1.4", | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "^16.4.13", | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "^16.6.1", | ||
"@types/prettier": "^2.3.2", | ||
@@ -78,3 +78,3 @@ "babel-jest": "^27.0.6", | ||
"ts-jest": "^27.0.4", | ||
"tslib": "^2.3.0", | ||
"tslib": "^2.3.1", | ||
"tslint": "^6.1.3", | ||
@@ -81,0 +81,0 @@ "tslint-config-prettier": "^1.18.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
298730
6565