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

get-value

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-value - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

15

index.js

@@ -52,10 +52,13 @@ /*!

function replaceStr(str, pattern, replacement) {
var i = str.indexOf(pattern);
var end = i + pattern.length;
str = str.substr(0, i) + replacement + str.substr(end, str.length);
if (str.indexOf(pattern, end) !== -1) {
str = replace(str, pattern, replacement);
function replaceStr(str, token, replacement) {
var i, from = 0;
while (str.indexOf(token, from) !== -1) {
i = str.indexOf(token, from);
from = i + token.length;
str = str.substr(0, i)
+ replacement
+ str.substr(from, str.length);
from = i + replacement.length;
}
return str;
}

2

package.json
{
"name": "get-value",
"description": "Use property paths (`a.b.c`) get a nested value from an object.",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "https://github.com/jonschlinkert/get-value",

@@ -6,0 +6,0 @@ "author": {

@@ -70,2 +70,2 @@ # get-value [![NPM version](https://badge.fury.io/js/get-value.svg)](http://badge.fury.io/js/get-value)

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 26, 2014._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 01, 2014._
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