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

@humanwhocodes/momoa

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@humanwhocodes/momoa - npm Package Compare versions

Comparing version 3.0.4 to 3.0.6

11

dist/momoa.d.ts

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

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