Socket
Socket
Sign inDemoInstall

jsonc-parser

Package Overview
Dependencies
Maintainers
11
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonc-parser - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

7

lib/main.d.ts

@@ -76,2 +76,5 @@ export declare enum ScanError {

export declare function stripComments(text: string, replaceCh?: string): string;
export interface ParseError {
error: ParseErrorCode;
}
export declare enum ParseErrorCode {

@@ -114,5 +117,3 @@ InvalidSymbol = 0,

*/
export declare function parse(text: string, errors?: {
error: ParseErrorCode;
}[], options?: ParseOptions): any;
export declare function parse(text: string, errors?: ParseError[], options?: ParseOptions): any;
/**

@@ -119,0 +120,0 @@ * Parses the given text and invokes the visitor functions for each object, array and literal reached.

@@ -376,5 +376,2 @@ /*---------------------------------------------------------------------------------------------

}
function isLetter(ch) {
return ch >= CharacterCodes.a && ch <= CharacterCodes.z || ch >= CharacterCodes.A && ch <= CharacterCodes.Z;
}
var CharacterCodes;

@@ -381,0 +378,0 @@ (function (CharacterCodes) {

{
"name": "jsonc-parser",
"version": "0.1.2",
"version": "0.1.3",
"description": "Scanner and parser for JSON with comments.",

@@ -5,0 +5,0 @@ "main": "./lib/main.js",

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