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

@stoplight/json

Package Overview
Dependencies
Maintainers
12
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/json - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

3

getLocationForJsonPath.js

@@ -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

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