@ardatan/string-interpolation
Advanced tools
Comparing version 1.2.8 to 1.2.9
{ | ||
"name": "@ardatan/string-interpolation", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "Dynamic string manipulation", | ||
"main": "dist/index.js", | ||
"module": "src/index.js", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"lodash": "4.17.20" | ||
}, | ||
"devDependencies": { | ||
@@ -9,0 +11,0 @@ "@babel/cli": "^7.8.4", |
import { defaultOptions } from './statics/DefaultOptions'; | ||
import { getValueFromObject } from './lib/getValueFromObject'; | ||
import { get } from 'lodash'; | ||
import { defaultModifiers } from './modifiers'; | ||
@@ -136,10 +136,3 @@ | ||
applyData(key, data) { | ||
const alias = this.getFromAlias(key); | ||
if (alias) { | ||
const value = getValueFromObject(alias.ref, data); | ||
if (value) { | ||
return value; | ||
} | ||
} | ||
return (key.indexOf('.') > 0 || key.indexOf('[') > 0) ? getValueFromObject(key, data) : data[key]; | ||
return get(data, key); | ||
} | ||
@@ -146,0 +139,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
100595
25
1008
1
1
+ Addedlodash@4.17.20
+ Addedlodash@4.17.20(transitive)