Socket
Socket
Sign inDemoInstall

jsonc-parser

Package Overview
Dependencies
0
Maintainers
11
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.2.1

2

CHANGELOG.md
2.2.0 2019-10-25
==================
* added *ParseOptions.allowTrailingComma*. Default is `false`.
* added *ParseOptions.allowEmptyContent*. Default is `false`.
* New API *getNodeType*: Returns the type of a value returned by parse.

@@ -5,0 +5,0 @@ * parse: Fix issue with empty property name

@@ -208,2 +208,3 @@ /*---------------------------------------------------------------------------------------------

onObjectEnd: function (offset, length) {
ensurePropertyComplete(offset + length); // in case of a missing value for a property: make sure property is complete
currentParent.length = offset + length - currentParent.offset;

@@ -210,0 +211,0 @@ currentParent = currentParent.parent;

@@ -220,2 +220,3 @@ (function (factory) {

onObjectEnd: function (offset, length) {
ensurePropertyComplete(offset + length); // in case of a missing value for a property: make sure property is complete
currentParent.length = offset + length - currentParent.offset;

@@ -222,0 +223,0 @@ currentParent = currentParent.parent;

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc