@stoplight/json
Advanced tools
Comparing version 3.0.1 to 3.0.2
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[]>; |
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
31660
+ Added@stoplight/types@10.0.1(transitive)
- Removed@stoplight/types@9.1.2(transitive)
Updated@stoplight/types@^10.0.1
Updatedlodash@^4.17.15