json5
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -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 @@ |
@@ -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); |
{ | ||
"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 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
43718
7
717
287
0