@stoplight/json
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -11,3 +11,4 @@ "use strict"; | ||
function findNodeAtPath(node, path, closest) { | ||
pathLoop: for (const segment of path) { | ||
pathLoop: for (const part of path) { | ||
const segment = Number.isInteger(Number(part)) ? Number(part) : part; | ||
if (typeof segment === 'string') { | ||
@@ -14,0 +15,0 @@ if (node.type !== 'object' || !Array.isArray(node.children)) { |
{ | ||
"name": "@stoplight/json", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Useful functions when working with JSON.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
51709
524