@humanwhocodes/momoa
Advanced tools
Comparing version 3.0.4 to 3.0.6
@@ -62,3 +62,3 @@ //----------------------------------------------------------------------------- | ||
loc: LocationRange; | ||
range?: Range; | ||
range?: Range$1; | ||
} | ||
@@ -158,3 +158,3 @@ | ||
loc?: LocationRange; | ||
range?: Range; | ||
range?: Range$1; | ||
} | ||
@@ -187,3 +187,3 @@ | ||
loc: LocationRange; | ||
range?: Range; | ||
range?: Range$1; | ||
} | ||
@@ -222,3 +222,3 @@ | ||
*/ | ||
type Range = number[]; | ||
type Range$1 = [number, number]; | ||
@@ -231,2 +231,3 @@ type FilterPredicate = (node: Node, index: number, array: Array<Node>) => boolean; | ||
type Token = Token$1; | ||
type Range = Range$1; | ||
type TokenizeOptions = TokenizeOptions$1; | ||
@@ -382,2 +383,2 @@ type NodeParts = NodeParts$1; | ||
export { AnyNode, ArrayNode, BooleanNode, DocumentNode, ElementNode, FilterPredicate, JSONValue, Location, MemberNode, Mode, Node, NodeParts, NullNode, NumberNode, ObjectNode, ParseOptions, StringNode, Token, TokenType, TokenizeOptions, TraversalPhase, ValueNode, evaluate, iterator, parse, print, tokenize, traverse, types }; | ||
export { AnyNode, ArrayNode, BooleanNode, DocumentNode, ElementNode, FilterPredicate, JSONValue, Location, MemberNode, Mode, Node, NodeParts, NullNode, NumberNode, ObjectNode, ParseOptions, Range, StringNode, Token, TokenType, TokenizeOptions, TraversalPhase, ValueNode, evaluate, iterator, parse, print, tokenize, traverse, types }; |
@@ -162,2 +162,3 @@ /** | ||
/** @typedef {import("./typedefs").Range} Range */ | ||
/** @typedef {import("./typedefs").TokenizeOptions} TokenizeOptions */ | ||
@@ -239,3 +240,3 @@ | ||
let range = options.ranges ? { | ||
range: [startLoc.offset, endOffset] | ||
range: /** @type {Range} */ ([startLoc.offset, endOffset]) | ||
} : undefined; | ||
@@ -906,3 +907,3 @@ | ||
* @param {Location} end The end offset for the range. | ||
* @returns {{range:number[]}|undefined} An object with a | ||
* @returns {{range:[number,number]}|undefined} An object with a | ||
*/ | ||
@@ -909,0 +910,0 @@ function createRange(start, end) { |
{ | ||
"name": "@humanwhocodes/momoa", | ||
"version": "3.0.4", | ||
"version": "3.0.6", | ||
"description": "JSON AST parser, tokenizer, printer, traverser.", | ||
@@ -5,0 +5,0 @@ "author": "Nicholas C. Zakas", |
Sorry, the diff of this file is not supported yet
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
107099
2602