Socket
Socket
Sign inDemoInstall

@stoplight/json

Package Overview
Dependencies
Maintainers
16
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 3.0.1 to 3.0.2

4

getJsonPathForPosition.d.ts
import { GetJsonPathForPosition } from '@stoplight/types';
import { IJsonASTNode } from './types';
export declare const getJsonPathForPosition: GetJsonPathForPosition<IJsonASTNode, number[]>;
import { JsonParserResult } from './types';
export declare const getJsonPathForPosition: GetJsonPathForPosition<JsonParserResult<unknown>>;
import { GetLocationForJsonPath } from '@stoplight/types';
import { IJsonASTNode } from './types';
export declare const getLocationForJsonPath: GetLocationForJsonPath<IJsonASTNode, number[]>;
import { JsonParserResult } from './types';
export declare const getLocationForJsonPath: GetLocationForJsonPath<JsonParserResult<unknown>>;
{
"name": "@stoplight/json",
"version": "3.0.1",
"version": "3.0.2",
"description": "Useful functions when working with JSON.",

@@ -26,5 +26,5 @@ "keywords": [

"dependencies": {
"@stoplight/types": "^9.1.2",
"@stoplight/types": "^10.0.1",
"jsonc-parser": "~2.1",
"lodash": "^4.17",
"lodash": "^4.17.15",
"safe-stable-stringify": "^1.1"

@@ -31,0 +31,0 @@ },

@@ -1,5 +0,4 @@

import { IDiagnostic, IParserASTResult, IParserResult } from '@stoplight/types';
import { Node } from 'jsonc-parser';
import { IDiagnostic, IParserASTResult } from '@stoplight/types';
import { IJsonASTNode, IParseOptions } from './types';
export declare const parseWithPointers: <T = any>(value: string, options?: IParseOptions) => IParserResult<T, IJsonASTNode, number[]>;
export declare function parseTree<T>(text: string, errors: IDiagnostic[] | undefined, options: IParseOptions): IParserASTResult<T, Node, number[]>;
export declare const parseWithPointers: <T = any>(value: string, options?: IParseOptions) => import("@stoplight/types").IParserResult<T, IJsonASTNode, number[], unknown>;
export declare function parseTree<T>(text: string, errors: IDiagnostic[] | undefined, options: IParseOptions): IParserASTResult<T, IJsonASTNode, number[]>;

@@ -1,2 +0,2 @@

import { IRange } from '@stoplight/types';
import { IParserResult, IRange } from '@stoplight/types';
import { Node, NodeType, ParseOptions } from 'jsonc-parser';

@@ -16,1 +16,2 @@ export interface IJsonASTNode extends Node {

}
export declare type JsonParserResult<T> = IParserResult<T, IJsonASTNode, number[]>;
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