Socket
Socket
Sign inDemoInstall

json5

Package Overview
Dependencies
0
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.5.1

LICENSE.md

11

CHANGELOG.md

@@ -0,1 +1,12 @@

### v0.5.1 [[code][c0.5.1], [diff][d0.5.1]]
[c0.5.1]: https://github.com/aseemk/json5/tree/v0.5.1
[d0.5.1]: https://github.com/aseemk/json5/compare/v0.5.0...v0.5.1
This release includes a minor fix for indentations when stringifying empty
arrays.
- Fix: Indents no longer appear in empty arrays when stringified. ([#134])
### v0.5.0 [[code][c0.5.0], [diff][d0.5.0]]

@@ -2,0 +13,0 @@

5

lib/json5.js

@@ -727,3 +727,6 @@ // json5.js

objStack.pop();
buffer += makeIndent(indentStr, objStack.length, true) + "]";
if (obj_part.length) {
buffer += makeIndent(indentStr, objStack.length, true)
}
buffer += "]";
} else {

@@ -730,0 +733,0 @@ checkForCircular(obj_part);

10

package.json
{
"name": "json5",
"version": "0.5.0",
"version": "0.5.1",
"description": "JSON for the ES5 era.",

@@ -23,6 +23,6 @@ "keywords": [

"gulp": "^3.9.1",
"gulp-jshint": "^2.0.0",
"jshint": "^2.9.1",
"jshint-stylish": "^2.1.0",
"mocha": "^2.4.5"
"gulp-jshint": "^2.0.1",
"jshint": "^2.9.3",
"jshint-stylish": "^2.2.1",
"mocha": "^3.1.0"
},

@@ -29,0 +29,0 @@ "scripts": {

# JSON5 – Modern JSON
[![Build Status](https://travis-ci.org/aseemk/json5.png)](https://travis-ci.org/aseemk/json5)
[![Build Status](https://travis-ci.org/json5/json5.svg)](https://travis-ci.org/json5/json5)

@@ -56,2 +56,4 @@ JSON is an excellent data format, but we think it can be better.

implementation.)*
- Object keys can also be single-quoted.

@@ -259,4 +261,3 @@ - Objects can have trailing commas.

MIT License © 2012-2016 Aseem Kishore, and [others](
https://github.com/aseemk/json5/contributors).
MIT. See [LICENSE.md](./LICENSE.md) for details.

@@ -263,0 +264,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc