@ctx-core/function
Advanced tools
Comparing version 8.0.4 to 8.1.0
13
lib.js
@@ -221,3 +221,7 @@ /** | ||
for (let i = 0; i < a1__name.length; i++) { | ||
value = value && value[a1__name[i]] | ||
const segment = a1__name[i] | ||
const value__ = (value && value[segment]) | ||
value = | ||
value__ | ||
|| (typeof segment === 'function' ? segment(value) : value__) | ||
} | ||
@@ -246,3 +250,8 @@ return value | ||
const segment = a1__name[i] | ||
value = typeof segment === 'function' ? segment(value) : value[segment] | ||
let value__ = (value && value[segment]) | ||
value__ = value__ || ((typeof segment === 'function') ? segment(value) : value__) | ||
value = | ||
(value__ && typeof value__ === 'function') | ||
? value__.call(value) | ||
: value__ | ||
} | ||
@@ -249,0 +258,0 @@ return value |
{ | ||
"name": "@ctx-core/function", | ||
"version": "8.0.4", | ||
"version": "8.1.0", | ||
"description": "ctx-core function", | ||
@@ -27,3 +27,3 @@ "main": "lib.js", | ||
}, | ||
"gitHead": "533f71da75d0fd20cc2584c84d0649306d3b3db7" | ||
"gitHead": "bdcb964274f1a3039e1e2cb19e4e959488cff2e0" | ||
} |
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
16157
585