Comparing version 2.4.12 to 2.4.13
@@ -0,1 +1,5 @@ | ||
# 2.4.13 / 2021-08-18 | ||
- update: symbol | ||
# 2.4.12 / 2021-08-18 | ||
@@ -2,0 +6,0 @@ |
@@ -354,3 +354,8 @@ "use strict"; | ||
IocContext.prototype.canBeKey = function (obj) { | ||
return ['function', 'string', 'symbol'].includes(typeof obj); | ||
var type = typeof obj; | ||
// ie11 symbol is object | ||
if (type === 'object') { | ||
return obj.toString() !== '[object Object]'; | ||
} | ||
return ['function', 'string', 'symbol'].includes(type); | ||
}; | ||
@@ -357,0 +362,0 @@ IocContext.prototype.genValueFactory = function (data, options) { |
{ | ||
"name": "power-di", | ||
"version": "2.4.12", | ||
"version": "2.4.13", | ||
"description": "A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
102524
2357