Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ardatan/string-interpolation

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ardatan/string-interpolation - npm Package Compare versions

Comparing version 1.2.8 to 1.2.9

coverage/clover.xml

6

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc