New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cool-path

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cool-path - npm Package Compare versions

Comparing version 0.1.24 to 0.1.25

2

lib/index.js

@@ -241,3 +241,3 @@ "use strict";

for (var i = 0; i < segments.length; i++) {
if (!utils_1.isEqual(segments[i], _this.segments[i])) {
if (!utils_1.isEqual(String(segments[i]), String(_this.segments[i]))) {
return cacheWith(false);

@@ -244,0 +244,0 @@ }

{
"name": "cool-path",
"version": "0.1.24",
"version": "0.1.25",
"description": "Path Matcher/Getter/Setter for Object/Array",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -360,3 +360,3 @@ import { Parser } from './parser'

for (let i = 0; i < segments.length; i++) {
if (!isEqual(segments[i], this.segments[i])) {
if (!isEqual(String(segments[i]), String(this.segments[i]))) {
return cacheWith(false)

@@ -363,0 +363,0 @@ }

@@ -75,2 +75,16 @@ import { Path } from '../src'

).toEqual(value)
expect(getIn({ bb: undefined, dd: undefined }, `[{aa:bb,cc:dd}]`)).toEqual([])
expect(
getIn(
{ kk: undefined, mm: undefined },
`{
a : {
b : {
c : kk,
d : mm
}
}
}`
)
).toEqual({})
})

@@ -95,2 +109,3 @@

).toEqual({ c: 2, d: 333 })
expect(

@@ -97,0 +112,0 @@ setIn(

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