[Pkg-javascript-commits] [node-json5] 01/12: New upstream version 0.5.1
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Fri Feb 9 15:11:56 UTC 2018
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository node-json5.
commit 822670ad96e2848c87399ee0543da4e73ce415de
Author: Pirate Praveen <praveen at debian.org>
Date: Fri Feb 9 19:17:39 2018 +0530
New upstream version 0.5.1
---
.gitmodules | 3 +
CHANGELOG.md | 11 +++
LICENSE.md | 21 ++++
README.md | 7 +-
lib/json5.js | 5 +-
package.json | 10 +-
package.json5 | 14 +--
test/parse-cases/arrays/empty-array.json | 1 -
test/parse-cases/arrays/leading-comma-array.js | 3 -
.../arrays/lone-trailing-comma-array.js | 3 -
test/parse-cases/arrays/no-comma-array.errorSpec | 6 --
test/parse-cases/arrays/no-comma-array.txt | 4 -
test/parse-cases/arrays/regular-array.json | 5 -
test/parse-cases/arrays/trailing-comma-array.json5 | 3 -
.../block-comment-following-array-element.json5 | 6 --
.../block-comment-following-top-level-value.json5 | 5 -
.../comments/block-comment-in-string.json | 1 -
.../block-comment-preceding-top-level-value.json5 | 5 -
.../comments/block-comment-with-asterisks.json5 | 7 --
.../inline-comment-following-array-element.json5 | 3 -
.../inline-comment-following-top-level-value.json5 | 1 -
.../comments/inline-comment-in-string.json | 1 -
.../inline-comment-preceding-top-level-value.json5 | 2 -
.../comments/top-level-block-comment.errorSpec | 6 --
.../comments/top-level-block-comment.txt | 4 -
.../comments/top-level-inline-comment.errorSpec | 6 --
.../comments/top-level-inline-comment.txt | 1 -
.../comments/unterminated-block-comment.txt | 5 -
test/parse-cases/misc/empty.txt | 0
test/parse-cases/misc/npm-package.json | 106 ---------------------
test/parse-cases/misc/npm-package.json5 | 106 ---------------------
test/parse-cases/misc/readme-example.json5 | 25 -----
test/parse-cases/misc/valid-whitespace.json5 | 5 -
test/parse-cases/new-lines/.editorconfig | 13 ---
test/parse-cases/new-lines/.gitattributes | 4 -
test/parse-cases/new-lines/comment-cr.json5 | 1 -
test/parse-cases/new-lines/comment-crlf.json5 | 3 -
test/parse-cases/new-lines/comment-lf.json5 | 3 -
test/parse-cases/new-lines/escaped-cr.json5 | 1 -
test/parse-cases/new-lines/escaped-crlf.json5 | 5 -
test/parse-cases/new-lines/escaped-lf.json5 | 5 -
.../numbers/float-leading-decimal-point.json5 | 1 -
test/parse-cases/numbers/float-leading-zero.json | 1 -
...iling-decimal-point-with-integer-exponent.json5 | 1 -
.../numbers/float-trailing-decimal-point.json5 | 1 -
.../numbers/float-with-integer-exponent.json | 1 -
test/parse-cases/numbers/float.json | 1 -
test/parse-cases/numbers/hexadecimal-empty.txt | 1 -
.../numbers/hexadecimal-lowercase-letter.json5 | 1 -
.../numbers/hexadecimal-uppercase-x.json5 | 1 -
.../hexadecimal-with-integer-exponent.json5 | 1 -
test/parse-cases/numbers/hexadecimal.json5 | 1 -
test/parse-cases/numbers/infinity.json5 | 1 -
.../numbers/integer-with-float-exponent.txt | 1 -
.../numbers/integer-with-hexadecimal-exponent.txt | 1 -
.../numbers/integer-with-integer-exponent.json | 1 -
.../integer-with-negative-float-exponent.txt | 1 -
.../integer-with-negative-hexadecimal-exponent.txt | 1 -
.../integer-with-negative-integer-exponent.json | 1 -
...nteger-with-negative-zero-integer-exponent.json | 1 -
.../integer-with-positive-float-exponent.txt | 1 -
.../integer-with-positive-hexadecimal-exponent.txt | 1 -
.../integer-with-positive-integer-exponent.json | 1 -
...nteger-with-positive-zero-integer-exponent.json | 1 -
.../integer-with-zero-integer-exponent.json | 1 -
test/parse-cases/numbers/integer.json | 1 -
test/parse-cases/numbers/lone-decimal-point.txt | 1 -
test/parse-cases/numbers/nan.json5 | 1 -
.../negative-float-leading-decimal-point.json5 | 1 -
.../numbers/negative-float-leading-zero.json | 1 -
.../negative-float-trailing-decimal-point.json5 | 1 -
test/parse-cases/numbers/negative-float.json | 1 -
.../parse-cases/numbers/negative-hexadecimal.json5 | 1 -
test/parse-cases/numbers/negative-infinity.json5 | 1 -
test/parse-cases/numbers/negative-integer.json | 1 -
test/parse-cases/numbers/negative-noctal.js | 1 -
test/parse-cases/numbers/negative-octal.txt | 1 -
...negative-zero-float-leading-decimal-point.json5 | 1 -
...egative-zero-float-trailing-decimal-point.json5 | 1 -
test/parse-cases/numbers/negative-zero-float.json | 1 -
.../numbers/negative-zero-hexadecimal.json5 | 1 -
.../parse-cases/numbers/negative-zero-integer.json | 1 -
test/parse-cases/numbers/negative-zero-octal.txt | 1 -
.../numbers/noctal-with-leading-octal-digit.js | 1 -
test/parse-cases/numbers/noctal.js | 1 -
test/parse-cases/numbers/octal.txt | 1 -
.../positive-float-leading-decimal-point.json5 | 1 -
.../numbers/positive-float-leading-zero.json5 | 1 -
.../positive-float-trailing-decimal-point.json5 | 1 -
test/parse-cases/numbers/positive-float.json5 | 1 -
.../parse-cases/numbers/positive-hexadecimal.json5 | 1 -
test/parse-cases/numbers/positive-infinity.json5 | 1 -
test/parse-cases/numbers/positive-integer.json5 | 1 -
test/parse-cases/numbers/positive-noctal.js | 1 -
test/parse-cases/numbers/positive-octal.txt | 1 -
...positive-zero-float-leading-decimal-point.json5 | 1 -
...ositive-zero-float-trailing-decimal-point.json5 | 1 -
test/parse-cases/numbers/positive-zero-float.json5 | 1 -
.../numbers/positive-zero-hexadecimal.json5 | 1 -
.../numbers/positive-zero-integer.json5 | 1 -
test/parse-cases/numbers/positive-zero-octal.txt | 1 -
.../numbers/zero-float-leading-decimal-point.json5 | 1 -
.../zero-float-trailing-decimal-point.json5 | 1 -
test/parse-cases/numbers/zero-float.json | 1 -
test/parse-cases/numbers/zero-hexadecimal.json5 | 1 -
.../zero-integer-with-integer-exponent.json | 1 -
test/parse-cases/numbers/zero-integer.json | 1 -
test/parse-cases/numbers/zero-octal.txt | 1 -
test/parse-cases/objects/duplicate-keys.json | 4 -
test/parse-cases/objects/empty-object.json | 1 -
.../objects/illegal-unquoted-key-number.errorSpec | 6 --
.../objects/illegal-unquoted-key-number.txt | 3 -
.../objects/illegal-unquoted-key-symbol.errorSpec | 6 --
.../objects/illegal-unquoted-key-symbol.txt | 3 -
.../objects/leading-comma-object.errorSpec | 6 --
test/parse-cases/objects/leading-comma-object.txt | 3 -
.../objects/lone-trailing-comma-object.txt | 3 -
test/parse-cases/objects/no-comma-object.txt | 4 -
.../objects/reserved-unquoted-key.json5 | 3 -
test/parse-cases/objects/single-quoted-key.json5 | 3 -
.../objects/trailing-comma-object.json5 | 3 -
test/parse-cases/objects/unquoted-keys.json5 | 8 --
.../strings/escaped-single-quoted-string.json5 | 1 -
test/parse-cases/strings/multi-line-string.json5 | 2 -
test/parse-cases/strings/no-comma-array.errorSpec | 6 --
.../parse-cases/strings/single-quoted-string.json5 | 1 -
.../strings/unescaped-multi-line-string.errorSpec | 6 --
.../strings/unescaped-multi-line-string.txt | 2 -
.../todo/unicode-escaped-unquoted-key.json5 | 3 -
test/parse-cases/todo/unicode-unquoted-key.json5 | 3 -
test/parse.js | 7 +-
test/stringify.js | 1 +
132 files changed, 62 insertions(+), 519 deletions(-)
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..60a80f3
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "test/parse-cases"]
+ path = test/parse-cases
+ url = https://github.com/json5/json5-tests
diff --git a/CHANGELOG.md b/CHANGELOG.md
index af2c608..6db820c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,14 @@
+### 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]]
[c0.5.0]: https://github.com/aseemk/json5/tree/v0.5.0
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..861df26
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2012-2016 Aseem Kishore, and [others](https://github.com/aseemk/json5/contributors).
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
index 7194ed4..a428514 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# 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)
JSON is an excellent data format, but we think it can be better.
@@ -53,6 +53,8 @@ JSON5. **All of these are optional**, and **all of these come from ES5**.
*(TODO: Unicode characters and escape sequences aren’t yet supported in this
implementation.)*
+
+- Object keys can also be single-quoted.
- Objects can have trailing commas.
@@ -255,8 +257,7 @@ tests, and ensure that `npm test` continues to pass.
## License
-MIT License © 2012-2016 Aseem Kishore, and [others](
-https://github.com/aseemk/json5/contributors).
+MIT. See [LICENSE.md](./LICENSE.md) for details.
## Credits
diff --git a/lib/json5.js b/lib/json5.js
index ead6862..4a4590d 100644
--- a/lib/json5.js
+++ b/lib/json5.js
@@ -724,7 +724,10 @@ JSON5.stringify = function (obj, replacer, space) {
}
}
objStack.pop();
- buffer += makeIndent(indentStr, objStack.length, true) + "]";
+ if (obj_part.length) {
+ buffer += makeIndent(indentStr, objStack.length, true)
+ }
+ buffer += "]";
} else {
checkForCircular(obj_part);
buffer = "{";
diff --git a/package.json b/package.json
index 4e619cd..44059b4 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "json5",
- "version": "0.5.0",
+ "version": "0.5.1",
"description": "JSON for the ES5 era.",
"keywords": [
"json",
@@ -20,10 +20,10 @@
"dependencies": {},
"devDependencies": {
"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"
},
"scripts": {
"build": "node ./lib/cli.js -c package.json5",
diff --git a/package.json5 b/package.json5
index 4eca12a..a715d41 100644
--- a/package.json5
+++ b/package.json5
@@ -3,7 +3,7 @@
{
name: 'json5',
- version: '0.5.0',
+ version: '0.5.1',
description: 'JSON for the ES5 era.',
keywords: ['json', 'es5'],
author: 'Aseem Kishore <aseem.kishore at gmail.com>',
@@ -16,14 +16,14 @@
],
main: 'lib/json5.js',
bin: 'lib/cli.js',
- files: ["lib/"],
+ files: ['lib/'],
dependencies: {},
devDependencies: {
- gulp: "^3.9.1",
- 'gulp-jshint': "^2.0.0",
- jshint: "^2.9.1",
- 'jshint-stylish': "^2.1.0",
- mocha: "^2.4.5"
+ gulp: '^3.9.1',
+ 'gulp-jshint': '^2.0.1',
+ jshint: '^2.9.3',
+ 'jshint-stylish': '^2.2.1',
+ mocha: '^3.1.0'
},
scripts: {
build: 'node ./lib/cli.js -c package.json5',
diff --git a/test/parse-cases/arrays/empty-array.json b/test/parse-cases/arrays/empty-array.json
deleted file mode 100644
index 0637a08..0000000
--- a/test/parse-cases/arrays/empty-array.json
+++ /dev/null
@@ -1 +0,0 @@
-[]
\ No newline at end of file
diff --git a/test/parse-cases/arrays/leading-comma-array.js b/test/parse-cases/arrays/leading-comma-array.js
deleted file mode 100644
index 23c097c..0000000
--- a/test/parse-cases/arrays/leading-comma-array.js
+++ /dev/null
@@ -1,3 +0,0 @@
-[
- ,null
-]
\ No newline at end of file
diff --git a/test/parse-cases/arrays/lone-trailing-comma-array.js b/test/parse-cases/arrays/lone-trailing-comma-array.js
deleted file mode 100644
index 013b45c..0000000
--- a/test/parse-cases/arrays/lone-trailing-comma-array.js
+++ /dev/null
@@ -1,3 +0,0 @@
-[
- ,
-]
\ No newline at end of file
diff --git a/test/parse-cases/arrays/no-comma-array.errorSpec b/test/parse-cases/arrays/no-comma-array.errorSpec
deleted file mode 100644
index b476eca..0000000
--- a/test/parse-cases/arrays/no-comma-array.errorSpec
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- at: 16,
- lineNumber: 3,
- columnNumber: 5,
- message: "Expected ']' instead of 'f'"
-}
\ No newline at end of file
diff --git a/test/parse-cases/arrays/no-comma-array.txt b/test/parse-cases/arrays/no-comma-array.txt
deleted file mode 100644
index 22b41c1..0000000
--- a/test/parse-cases/arrays/no-comma-array.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-[
- true
- false
-]
\ No newline at end of file
diff --git a/test/parse-cases/arrays/regular-array.json b/test/parse-cases/arrays/regular-array.json
deleted file mode 100644
index 9072780..0000000
--- a/test/parse-cases/arrays/regular-array.json
+++ /dev/null
@@ -1,5 +0,0 @@
-[
- true,
- false,
- null
-]
\ No newline at end of file
diff --git a/test/parse-cases/arrays/trailing-comma-array.json5 b/test/parse-cases/arrays/trailing-comma-array.json5
deleted file mode 100644
index 6e6b6ed..0000000
--- a/test/parse-cases/arrays/trailing-comma-array.json5
+++ /dev/null
@@ -1,3 +0,0 @@
-[
- null,
-]
\ No newline at end of file
diff --git a/test/parse-cases/comments/block-comment-following-array-element.json5 b/test/parse-cases/comments/block-comment-following-array-element.json5
deleted file mode 100644
index 8677f63..0000000
--- a/test/parse-cases/comments/block-comment-following-array-element.json5
+++ /dev/null
@@ -1,6 +0,0 @@
-[
- false
- /*
- true
- */
-]
\ No newline at end of file
diff --git a/test/parse-cases/comments/block-comment-following-top-level-value.json5 b/test/parse-cases/comments/block-comment-following-top-level-value.json5
deleted file mode 100644
index 1e6ccfd..0000000
--- a/test/parse-cases/comments/block-comment-following-top-level-value.json5
+++ /dev/null
@@ -1,5 +0,0 @@
-null
-/*
- Some non-comment top-level value is needed;
- we use null above.
-*/
\ No newline at end of file
diff --git a/test/parse-cases/comments/block-comment-in-string.json b/test/parse-cases/comments/block-comment-in-string.json
deleted file mode 100644
index 7d2916c..0000000
--- a/test/parse-cases/comments/block-comment-in-string.json
+++ /dev/null
@@ -1 +0,0 @@
-"This /* block comment */ isn't really a block comment."
\ No newline at end of file
diff --git a/test/parse-cases/comments/block-comment-preceding-top-level-value.json5 b/test/parse-cases/comments/block-comment-preceding-top-level-value.json5
deleted file mode 100644
index df1e520..0000000
--- a/test/parse-cases/comments/block-comment-preceding-top-level-value.json5
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
- Some non-comment top-level value is needed;
- we use null below.
-*/
-null
\ No newline at end of file
diff --git a/test/parse-cases/comments/block-comment-with-asterisks.json5 b/test/parse-cases/comments/block-comment-with-asterisks.json5
deleted file mode 100644
index 94c44e7..0000000
--- a/test/parse-cases/comments/block-comment-with-asterisks.json5
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * This is a JavaDoc-like block comment.
- * It contains asterisks inside of it.
- * It might also be closed with multiple asterisks.
- * Like this:
- **/
-true
\ No newline at end of file
diff --git a/test/parse-cases/comments/inline-comment-following-array-element.json5 b/test/parse-cases/comments/inline-comment-following-array-element.json5
deleted file mode 100644
index d6a3f8c..0000000
--- a/test/parse-cases/comments/inline-comment-following-array-element.json5
+++ /dev/null
@@ -1,3 +0,0 @@
-[
- false // true
-]
\ No newline at end of file
diff --git a/test/parse-cases/comments/inline-comment-following-top-level-value.json5 b/test/parse-cases/comments/inline-comment-following-top-level-value.json5
deleted file mode 100644
index cf9ed01..0000000
--- a/test/parse-cases/comments/inline-comment-following-top-level-value.json5
+++ /dev/null
@@ -1 +0,0 @@
-null // Some non-comment top-level value is needed; we use null here.
\ No newline at end of file
diff --git a/test/parse-cases/comments/inline-comment-in-string.json b/test/parse-cases/comments/inline-comment-in-string.json
deleted file mode 100644
index f0fb14f..0000000
--- a/test/parse-cases/comments/inline-comment-in-string.json
+++ /dev/null
@@ -1 +0,0 @@
-"This inline comment // isn't really an inline comment."
\ No newline at end of file
diff --git a/test/parse-cases/comments/inline-comment-preceding-top-level-value.json5 b/test/parse-cases/comments/inline-comment-preceding-top-level-value.json5
deleted file mode 100644
index d4b9b4d..0000000
--- a/test/parse-cases/comments/inline-comment-preceding-top-level-value.json5
+++ /dev/null
@@ -1,2 +0,0 @@
-// Some non-comment top-level value is needed; we use null below.
-null
\ No newline at end of file
diff --git a/test/parse-cases/comments/top-level-block-comment.errorSpec b/test/parse-cases/comments/top-level-block-comment.errorSpec
deleted file mode 100644
index 9bf5cf5..0000000
--- a/test/parse-cases/comments/top-level-block-comment.errorSpec
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- at: 77,
- lineNumber: 4,
- columnNumber: 3,
- message: "Unexpected EOF"
-}
\ No newline at end of file
diff --git a/test/parse-cases/comments/top-level-block-comment.txt b/test/parse-cases/comments/top-level-block-comment.txt
deleted file mode 100644
index 7466bd2..0000000
--- a/test/parse-cases/comments/top-level-block-comment.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-/*
- This should fail;
- comments cannot be the only top-level value.
-*/
\ No newline at end of file
diff --git a/test/parse-cases/comments/top-level-inline-comment.errorSpec b/test/parse-cases/comments/top-level-inline-comment.errorSpec
deleted file mode 100644
index 3d915cd..0000000
--- a/test/parse-cases/comments/top-level-inline-comment.errorSpec
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- at: 66,
- lineNumber: 1,
- columnNumber: 67,
- message: "Unexpected EOF"
-}
\ No newline at end of file
diff --git a/test/parse-cases/comments/top-level-inline-comment.txt b/test/parse-cases/comments/top-level-inline-comment.txt
deleted file mode 100644
index c5577f1..0000000
--- a/test/parse-cases/comments/top-level-inline-comment.txt
+++ /dev/null
@@ -1 +0,0 @@
-// This should fail; comments cannot be the only top-level value.
\ No newline at end of file
diff --git a/test/parse-cases/comments/unterminated-block-comment.txt b/test/parse-cases/comments/unterminated-block-comment.txt
deleted file mode 100644
index 627b7bd..0000000
--- a/test/parse-cases/comments/unterminated-block-comment.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-true
-/*
- This block comment doesn't terminate.
- There was a legitimate value before this,
- but this is still invalid JS/JSON5.
diff --git a/test/parse-cases/misc/empty.txt b/test/parse-cases/misc/empty.txt
deleted file mode 100644
index e69de29..0000000
diff --git a/test/parse-cases/misc/npm-package.json b/test/parse-cases/misc/npm-package.json
deleted file mode 100644
index 85568da..0000000
--- a/test/parse-cases/misc/npm-package.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "name": "npm",
- "publishConfig": {
- "proprietary-attribs": false
- },
- "description": "A package manager for node",
- "keywords": [
- "package manager",
- "modules",
- "install",
- "package.json"
- ],
- "version": "1.1.22",
- "preferGlobal": true,
- "config": {
- "publishtest": false
- },
- "homepage": "http://npmjs.org/",
- "author": "Isaac Z. Schlueter <i at izs.me> (http://blog.izs.me)",
- "repository": {
- "type": "git",
- "url": "https://github.com/isaacs/npm"
- },
- "bugs": {
- "email": "npm- at googlegroups.com",
- "url": "http://github.com/isaacs/npm/issues"
- },
- "directories": {
- "doc": "./doc",
- "man": "./man",
- "lib": "./lib",
- "bin": "./bin"
- },
- "main": "./lib/npm.js",
- "bin": "./bin/npm-cli.js",
- "dependencies": {
- "semver": "~1.0.14",
- "ini": "1",
- "slide": "1",
- "abbrev": "1",
- "graceful-fs": "~1.1.1",
- "minimatch": "~0.2",
- "nopt": "1",
- "node-uuid": "~1.3",
- "proto-list": "1",
- "rimraf": "2",
- "request": "~2.9",
- "which": "1",
- "tar": "~0.1.12",
- "fstream": "~0.1.17",
- "block-stream": "*",
- "inherits": "1",
- "mkdirp": "0.3",
- "read": "0",
- "lru-cache": "1",
- "node-gyp": "~0.4.1",
- "fstream-npm": "0 >=0.0.5",
- "uid-number": "0",
- "archy": "0",
- "chownr": "0"
- },
- "bundleDependencies": [
- "slide",
- "ini",
- "semver",
- "abbrev",
- "graceful-fs",
- "minimatch",
- "nopt",
- "node-uuid",
- "rimraf",
- "request",
- "proto-list",
- "which",
- "tar",
- "fstream",
- "block-stream",
- "inherits",
- "mkdirp",
- "read",
- "lru-cache",
- "node-gyp",
- "fstream-npm",
- "uid-number",
- "archy",
- "chownr"
- ],
- "devDependencies": {
- "ronn": "https://github.com/isaacs/ronnjs/tarball/master"
- },
- "engines": {
- "node": "0.6 || 0.7 || 0.8",
- "npm": "1"
- },
- "scripts": {
- "test": "node ./test/run.js",
- "prepublish": "npm prune; rm -rf node_modules/*/{test,example,bench}*; make -j4 doc",
- "dumpconf": "env | grep npm | sort | uniq"
- },
- "licenses": [
- {
- "type": "MIT +no-false-attribs",
- "url": "http://github.com/isaacs/npm/raw/master/LICENSE"
- }
- ]
-}
diff --git a/test/parse-cases/misc/npm-package.json5 b/test/parse-cases/misc/npm-package.json5
deleted file mode 100644
index 6994406..0000000
--- a/test/parse-cases/misc/npm-package.json5
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- name: 'npm',
- publishConfig: {
- 'proprietary-attribs': false,
- },
- description: 'A package manager for node',
- keywords: [
- 'package manager',
- 'modules',
- 'install',
- 'package.json',
- ],
- version: '1.1.22',
- preferGlobal: true,
- config: {
- publishtest: false,
- },
- homepage: 'http://npmjs.org/',
- author: 'Isaac Z. Schlueter <i at izs.me> (http://blog.izs.me)',
- repository: {
- type: 'git',
- url: 'https://github.com/isaacs/npm',
- },
- bugs: {
- email: 'npm- at googlegroups.com',
- url: 'http://github.com/isaacs/npm/issues',
- },
- directories: {
- doc: './doc',
- man: './man',
- lib: './lib',
- bin: './bin',
- },
- main: './lib/npm.js',
- bin: './bin/npm-cli.js',
- dependencies: {
- semver: '~1.0.14',
- ini: '1',
- slide: '1',
- abbrev: '1',
- 'graceful-fs': '~1.1.1',
- minimatch: '~0.2',
- nopt: '1',
- 'node-uuid': '~1.3',
- 'proto-list': '1',
- rimraf: '2',
- request: '~2.9',
- which: '1',
- tar: '~0.1.12',
- fstream: '~0.1.17',
- 'block-stream': '*',
- inherits: '1',
- mkdirp: '0.3',
- read: '0',
- 'lru-cache': '1',
- 'node-gyp': '~0.4.1',
- 'fstream-npm': '0 >=0.0.5',
- 'uid-number': '0',
- archy: '0',
- chownr: '0',
- },
- bundleDependencies: [
- 'slide',
- 'ini',
- 'semver',
- 'abbrev',
- 'graceful-fs',
- 'minimatch',
- 'nopt',
- 'node-uuid',
- 'rimraf',
- 'request',
- 'proto-list',
- 'which',
- 'tar',
- 'fstream',
- 'block-stream',
- 'inherits',
- 'mkdirp',
- 'read',
- 'lru-cache',
- 'node-gyp',
- 'fstream-npm',
- 'uid-number',
- 'archy',
- 'chownr',
- ],
- devDependencies: {
- ronn: 'https://github.com/isaacs/ronnjs/tarball/master',
- },
- engines: {
- node: '0.6 || 0.7 || 0.8',
- npm: '1',
- },
- scripts: {
- test: 'node ./test/run.js',
- prepublish: 'npm prune; rm -rf node_modules/*/{test,example,bench}*; make -j4 doc',
- dumpconf: 'env | grep npm | sort | uniq',
- },
- licenses: [
- {
- type: 'MIT +no-false-attribs',
- url: 'http://github.com/isaacs/npm/raw/master/LICENSE',
- },
- ],
-}
diff --git a/test/parse-cases/misc/readme-example.json5 b/test/parse-cases/misc/readme-example.json5
deleted file mode 100644
index 25c920a..0000000
--- a/test/parse-cases/misc/readme-example.json5
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- foo: 'bar',
- while: true,
-
- this: 'is a \
-multi-line string',
-
- // this is an inline comment
- here: 'is another', // inline comment
-
- /* this is a block comment
- that continues on another line */
-
- hex: 0xDEADbeef,
- half: .5,
- delta: +10,
- to: Infinity, // and beyond!
-
- finally: 'a trailing comma',
- oh: [
- "we shouldn't forget",
- 'arrays can have',
- 'trailing commas too',
- ],
-}
diff --git a/test/parse-cases/misc/valid-whitespace.json5 b/test/parse-cases/misc/valid-whitespace.json5
deleted file mode 100644
index 5cb57d3..0000000
--- a/test/parse-cases/misc/valid-whitespace.json5
+++ /dev/null
@@ -1,5 +0,0 @@
-{
-
// An invalid form feed character (\x0c) has been entered before this comment.
- // Be careful not to delete it.
- "a": true
-}
diff --git a/test/parse-cases/new-lines/.editorconfig b/test/parse-cases/new-lines/.editorconfig
deleted file mode 100644
index 1784f9e..0000000
--- a/test/parse-cases/new-lines/.editorconfig
+++ /dev/null
@@ -1,13 +0,0 @@
-# Since we're testing different representations of new lines,
-# make sure the editor doesn't mangle line endings.
-# Don't commit files in this directory unless you've checked
-# their escaped new lines.
-
-[*-lf.*]
-end_of_line = lf
-
-[*-cr.*]
-end_of_line = cr
-
-[*-crlf.*]
-end_of_line = crlf
diff --git a/test/parse-cases/new-lines/.gitattributes b/test/parse-cases/new-lines/.gitattributes
deleted file mode 100644
index 2b3eea6..0000000
--- a/test/parse-cases/new-lines/.gitattributes
+++ /dev/null
@@ -1,4 +0,0 @@
-# Since we're testing different representations of new lines,
-# treat all tests in this folder as binary files.
-
-* binary
diff --git a/test/parse-cases/new-lines/comment-cr.json5 b/test/parse-cases/new-lines/comment-cr.json5
deleted file mode 100644
index e55aff8..0000000
--- a/test/parse-cases/new-lines/comment-cr.json5
+++ /dev/null
@@ -1 +0,0 @@
-{
// This comment is terminated with `\r`.
}
\ No newline at end of file
diff --git a/test/parse-cases/new-lines/comment-crlf.json5 b/test/parse-cases/new-lines/comment-crlf.json5
deleted file mode 100644
index 3791ee6..0000000
--- a/test/parse-cases/new-lines/comment-crlf.json5
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- // This comment is terminated with `\r\n`.
-}
diff --git a/test/parse-cases/new-lines/comment-lf.json5 b/test/parse-cases/new-lines/comment-lf.json5
deleted file mode 100644
index e17dd72..0000000
--- a/test/parse-cases/new-lines/comment-lf.json5
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- // This comment is terminated with `\n`.
-}
diff --git a/test/parse-cases/new-lines/escaped-cr.json5 b/test/parse-cases/new-lines/escaped-cr.json5
deleted file mode 100644
index 38e55b6..0000000
--- a/test/parse-cases/new-lines/escaped-cr.json5
+++ /dev/null
@@ -1 +0,0 @@
-{
// the following string contains an escaped `\r`
a: 'line 1 \
line 2'
}
\ No newline at end of file
diff --git a/test/parse-cases/new-lines/escaped-crlf.json5 b/test/parse-cases/new-lines/escaped-crlf.json5
deleted file mode 100644
index 7e3f1ce..0000000
--- a/test/parse-cases/new-lines/escaped-crlf.json5
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- // the following string contains an escaped `\r\n`
- a: 'line 1 \
-line 2'
-}
diff --git a/test/parse-cases/new-lines/escaped-lf.json5 b/test/parse-cases/new-lines/escaped-lf.json5
deleted file mode 100644
index 2235e8c..0000000
--- a/test/parse-cases/new-lines/escaped-lf.json5
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- // the following string contains an escaped `\n`
- a: 'line 1 \
-line 2'
-}
diff --git a/test/parse-cases/numbers/float-leading-decimal-point.json5 b/test/parse-cases/numbers/float-leading-decimal-point.json5
deleted file mode 100644
index d6c9fff..0000000
--- a/test/parse-cases/numbers/float-leading-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
-.5
diff --git a/test/parse-cases/numbers/float-leading-zero.json b/test/parse-cases/numbers/float-leading-zero.json
deleted file mode 100644
index 2eb3c4f..0000000
--- a/test/parse-cases/numbers/float-leading-zero.json
+++ /dev/null
@@ -1 +0,0 @@
-0.5
diff --git a/test/parse-cases/numbers/float-trailing-decimal-point-with-integer-exponent.json5 b/test/parse-cases/numbers/float-trailing-decimal-point-with-integer-exponent.json5
deleted file mode 100644
index 70b8720..0000000
--- a/test/parse-cases/numbers/float-trailing-decimal-point-with-integer-exponent.json5
+++ /dev/null
@@ -1 +0,0 @@
-5.e4
diff --git a/test/parse-cases/numbers/float-trailing-decimal-point.json5 b/test/parse-cases/numbers/float-trailing-decimal-point.json5
deleted file mode 100644
index e4c8c31..0000000
--- a/test/parse-cases/numbers/float-trailing-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
-5.
diff --git a/test/parse-cases/numbers/float-with-integer-exponent.json b/test/parse-cases/numbers/float-with-integer-exponent.json
deleted file mode 100644
index 0e957c6..0000000
--- a/test/parse-cases/numbers/float-with-integer-exponent.json
+++ /dev/null
@@ -1 +0,0 @@
-1.2e3
diff --git a/test/parse-cases/numbers/float.json b/test/parse-cases/numbers/float.json
deleted file mode 100644
index 5625e59..0000000
--- a/test/parse-cases/numbers/float.json
+++ /dev/null
@@ -1 +0,0 @@
-1.2
diff --git a/test/parse-cases/numbers/hexadecimal-empty.txt b/test/parse-cases/numbers/hexadecimal-empty.txt
deleted file mode 100644
index ec68726..0000000
--- a/test/parse-cases/numbers/hexadecimal-empty.txt
+++ /dev/null
@@ -1 +0,0 @@
-0x
diff --git a/test/parse-cases/numbers/hexadecimal-lowercase-letter.json5 b/test/parse-cases/numbers/hexadecimal-lowercase-letter.json5
deleted file mode 100644
index 57e27ee..0000000
--- a/test/parse-cases/numbers/hexadecimal-lowercase-letter.json5
+++ /dev/null
@@ -1 +0,0 @@
-0xc8
diff --git a/test/parse-cases/numbers/hexadecimal-uppercase-x.json5 b/test/parse-cases/numbers/hexadecimal-uppercase-x.json5
deleted file mode 100644
index 1a35066..0000000
--- a/test/parse-cases/numbers/hexadecimal-uppercase-x.json5
+++ /dev/null
@@ -1 +0,0 @@
-0XC8
diff --git a/test/parse-cases/numbers/hexadecimal-with-integer-exponent.json5 b/test/parse-cases/numbers/hexadecimal-with-integer-exponent.json5
deleted file mode 100644
index 3c2204a..0000000
--- a/test/parse-cases/numbers/hexadecimal-with-integer-exponent.json5
+++ /dev/null
@@ -1 +0,0 @@
-0xc8e4
diff --git a/test/parse-cases/numbers/hexadecimal.json5 b/test/parse-cases/numbers/hexadecimal.json5
deleted file mode 100644
index cf832ed..0000000
--- a/test/parse-cases/numbers/hexadecimal.json5
+++ /dev/null
@@ -1 +0,0 @@
-0xC8
diff --git a/test/parse-cases/numbers/infinity.json5 b/test/parse-cases/numbers/infinity.json5
deleted file mode 100644
index 3c62151..0000000
--- a/test/parse-cases/numbers/infinity.json5
+++ /dev/null
@@ -1 +0,0 @@
-Infinity
diff --git a/test/parse-cases/numbers/integer-with-float-exponent.txt b/test/parse-cases/numbers/integer-with-float-exponent.txt
deleted file mode 100644
index fa0688c..0000000
--- a/test/parse-cases/numbers/integer-with-float-exponent.txt
+++ /dev/null
@@ -1 +0,0 @@
-1e2.3
diff --git a/test/parse-cases/numbers/integer-with-hexadecimal-exponent.txt b/test/parse-cases/numbers/integer-with-hexadecimal-exponent.txt
deleted file mode 100644
index 0f58237..0000000
--- a/test/parse-cases/numbers/integer-with-hexadecimal-exponent.txt
+++ /dev/null
@@ -1 +0,0 @@
-1e0x4
diff --git a/test/parse-cases/numbers/integer-with-integer-exponent.json b/test/parse-cases/numbers/integer-with-integer-exponent.json
deleted file mode 100644
index 0d5cde8..0000000
--- a/test/parse-cases/numbers/integer-with-integer-exponent.json
+++ /dev/null
@@ -1 +0,0 @@
-2e23
diff --git a/test/parse-cases/numbers/integer-with-negative-float-exponent.txt b/test/parse-cases/numbers/integer-with-negative-float-exponent.txt
deleted file mode 100644
index 5be0915..0000000
--- a/test/parse-cases/numbers/integer-with-negative-float-exponent.txt
+++ /dev/null
@@ -1 +0,0 @@
-1e-2.3
diff --git a/test/parse-cases/numbers/integer-with-negative-hexadecimal-exponent.txt b/test/parse-cases/numbers/integer-with-negative-hexadecimal-exponent.txt
deleted file mode 100644
index adeb2b9..0000000
--- a/test/parse-cases/numbers/integer-with-negative-hexadecimal-exponent.txt
+++ /dev/null
@@ -1 +0,0 @@
-1e-0x4
diff --git a/test/parse-cases/numbers/integer-with-negative-integer-exponent.json b/test/parse-cases/numbers/integer-with-negative-integer-exponent.json
deleted file mode 100644
index 6118c3e..0000000
--- a/test/parse-cases/numbers/integer-with-negative-integer-exponent.json
+++ /dev/null
@@ -1 +0,0 @@
-2e-23
diff --git a/test/parse-cases/numbers/integer-with-negative-zero-integer-exponent.json b/test/parse-cases/numbers/integer-with-negative-zero-integer-exponent.json
deleted file mode 100644
index eb67bf4..0000000
--- a/test/parse-cases/numbers/integer-with-negative-zero-integer-exponent.json
+++ /dev/null
@@ -1 +0,0 @@
-5e-0
diff --git a/test/parse-cases/numbers/integer-with-positive-float-exponent.txt b/test/parse-cases/numbers/integer-with-positive-float-exponent.txt
deleted file mode 100644
index f89d55e..0000000
--- a/test/parse-cases/numbers/integer-with-positive-float-exponent.txt
+++ /dev/null
@@ -1 +0,0 @@
-1e+2.3
diff --git a/test/parse-cases/numbers/integer-with-positive-hexadecimal-exponent.txt b/test/parse-cases/numbers/integer-with-positive-hexadecimal-exponent.txt
deleted file mode 100644
index a6c75d9..0000000
--- a/test/parse-cases/numbers/integer-with-positive-hexadecimal-exponent.txt
+++ /dev/null
@@ -1 +0,0 @@
-1e+0x4
diff --git a/test/parse-cases/numbers/integer-with-positive-integer-exponent.json b/test/parse-cases/numbers/integer-with-positive-integer-exponent.json
deleted file mode 100644
index 90c0616..0000000
--- a/test/parse-cases/numbers/integer-with-positive-integer-exponent.json
+++ /dev/null
@@ -1 +0,0 @@
-1e+2
diff --git a/test/parse-cases/numbers/integer-with-positive-zero-integer-exponent.json b/test/parse-cases/numbers/integer-with-positive-zero-integer-exponent.json
deleted file mode 100644
index 1d7002f..0000000
--- a/test/parse-cases/numbers/integer-with-positive-zero-integer-exponent.json
+++ /dev/null
@@ -1 +0,0 @@
-5e+0
diff --git a/test/parse-cases/numbers/integer-with-zero-integer-exponent.json b/test/parse-cases/numbers/integer-with-zero-integer-exponent.json
deleted file mode 100644
index a5e3196..0000000
--- a/test/parse-cases/numbers/integer-with-zero-integer-exponent.json
+++ /dev/null
@@ -1 +0,0 @@
-5e0
diff --git a/test/parse-cases/numbers/integer.json b/test/parse-cases/numbers/integer.json
deleted file mode 100644
index 60d3b2f..0000000
--- a/test/parse-cases/numbers/integer.json
+++ /dev/null
@@ -1 +0,0 @@
-15
diff --git a/test/parse-cases/numbers/lone-decimal-point.txt b/test/parse-cases/numbers/lone-decimal-point.txt
deleted file mode 100644
index 9c558e3..0000000
--- a/test/parse-cases/numbers/lone-decimal-point.txt
+++ /dev/null
@@ -1 +0,0 @@
-.
diff --git a/test/parse-cases/numbers/nan.json5 b/test/parse-cases/numbers/nan.json5
deleted file mode 100644
index 736991a..0000000
--- a/test/parse-cases/numbers/nan.json5
+++ /dev/null
@@ -1 +0,0 @@
-NaN
diff --git a/test/parse-cases/numbers/negative-float-leading-decimal-point.json5 b/test/parse-cases/numbers/negative-float-leading-decimal-point.json5
deleted file mode 100644
index c6eaee5..0000000
--- a/test/parse-cases/numbers/negative-float-leading-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
--.5
diff --git a/test/parse-cases/numbers/negative-float-leading-zero.json b/test/parse-cases/numbers/negative-float-leading-zero.json
deleted file mode 100644
index e118203..0000000
--- a/test/parse-cases/numbers/negative-float-leading-zero.json
+++ /dev/null
@@ -1 +0,0 @@
--0.5
diff --git a/test/parse-cases/numbers/negative-float-trailing-decimal-point.json5 b/test/parse-cases/numbers/negative-float-trailing-decimal-point.json5
deleted file mode 100644
index 52e5245..0000000
--- a/test/parse-cases/numbers/negative-float-trailing-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
--5.
diff --git a/test/parse-cases/numbers/negative-float.json b/test/parse-cases/numbers/negative-float.json
deleted file mode 100644
index 1d94c8a..0000000
--- a/test/parse-cases/numbers/negative-float.json
+++ /dev/null
@@ -1 +0,0 @@
--1.2
diff --git a/test/parse-cases/numbers/negative-hexadecimal.json5 b/test/parse-cases/numbers/negative-hexadecimal.json5
deleted file mode 100644
index 8882fae..0000000
--- a/test/parse-cases/numbers/negative-hexadecimal.json5
+++ /dev/null
@@ -1 +0,0 @@
--0xC8
diff --git a/test/parse-cases/numbers/negative-infinity.json5 b/test/parse-cases/numbers/negative-infinity.json5
deleted file mode 100644
index 879e80e..0000000
--- a/test/parse-cases/numbers/negative-infinity.json5
+++ /dev/null
@@ -1 +0,0 @@
--Infinity
diff --git a/test/parse-cases/numbers/negative-integer.json b/test/parse-cases/numbers/negative-integer.json
deleted file mode 100644
index 2192236..0000000
--- a/test/parse-cases/numbers/negative-integer.json
+++ /dev/null
@@ -1 +0,0 @@
--15
diff --git a/test/parse-cases/numbers/negative-noctal.js b/test/parse-cases/numbers/negative-noctal.js
deleted file mode 100644
index 8826f48..0000000
--- a/test/parse-cases/numbers/negative-noctal.js
+++ /dev/null
@@ -1 +0,0 @@
--098
diff --git a/test/parse-cases/numbers/negative-octal.txt b/test/parse-cases/numbers/negative-octal.txt
deleted file mode 100644
index 2e7a4b4..0000000
--- a/test/parse-cases/numbers/negative-octal.txt
+++ /dev/null
@@ -1 +0,0 @@
--0123
diff --git a/test/parse-cases/numbers/negative-zero-float-leading-decimal-point.json5 b/test/parse-cases/numbers/negative-zero-float-leading-decimal-point.json5
deleted file mode 100644
index 8dd8e03..0000000
--- a/test/parse-cases/numbers/negative-zero-float-leading-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
--.0
diff --git a/test/parse-cases/numbers/negative-zero-float-trailing-decimal-point.json5 b/test/parse-cases/numbers/negative-zero-float-trailing-decimal-point.json5
deleted file mode 100644
index 90cc048..0000000
--- a/test/parse-cases/numbers/negative-zero-float-trailing-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
--0.
diff --git a/test/parse-cases/numbers/negative-zero-float.json b/test/parse-cases/numbers/negative-zero-float.json
deleted file mode 100644
index 1344bfd..0000000
--- a/test/parse-cases/numbers/negative-zero-float.json
+++ /dev/null
@@ -1 +0,0 @@
--0.0
diff --git a/test/parse-cases/numbers/negative-zero-hexadecimal.json5 b/test/parse-cases/numbers/negative-zero-hexadecimal.json5
deleted file mode 100644
index 8847d05..0000000
--- a/test/parse-cases/numbers/negative-zero-hexadecimal.json5
+++ /dev/null
@@ -1 +0,0 @@
--0x0
diff --git a/test/parse-cases/numbers/negative-zero-integer.json b/test/parse-cases/numbers/negative-zero-integer.json
deleted file mode 100644
index ec064f6..0000000
--- a/test/parse-cases/numbers/negative-zero-integer.json
+++ /dev/null
@@ -1 +0,0 @@
--0
diff --git a/test/parse-cases/numbers/negative-zero-octal.txt b/test/parse-cases/numbers/negative-zero-octal.txt
deleted file mode 100644
index 200a801..0000000
--- a/test/parse-cases/numbers/negative-zero-octal.txt
+++ /dev/null
@@ -1 +0,0 @@
--00
diff --git a/test/parse-cases/numbers/noctal-with-leading-octal-digit.js b/test/parse-cases/numbers/noctal-with-leading-octal-digit.js
deleted file mode 100644
index 1fd7c08..0000000
--- a/test/parse-cases/numbers/noctal-with-leading-octal-digit.js
+++ /dev/null
@@ -1 +0,0 @@
-0780
diff --git a/test/parse-cases/numbers/noctal.js b/test/parse-cases/numbers/noctal.js
deleted file mode 100644
index fa5c783..0000000
--- a/test/parse-cases/numbers/noctal.js
+++ /dev/null
@@ -1 +0,0 @@
-080
diff --git a/test/parse-cases/numbers/octal.txt b/test/parse-cases/numbers/octal.txt
deleted file mode 100644
index 9e8493e..0000000
--- a/test/parse-cases/numbers/octal.txt
+++ /dev/null
@@ -1 +0,0 @@
-010
diff --git a/test/parse-cases/numbers/positive-float-leading-decimal-point.json5 b/test/parse-cases/numbers/positive-float-leading-decimal-point.json5
deleted file mode 100644
index 0434608..0000000
--- a/test/parse-cases/numbers/positive-float-leading-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
-+.5
diff --git a/test/parse-cases/numbers/positive-float-leading-zero.json5 b/test/parse-cases/numbers/positive-float-leading-zero.json5
deleted file mode 100644
index d89b45d..0000000
--- a/test/parse-cases/numbers/positive-float-leading-zero.json5
+++ /dev/null
@@ -1 +0,0 @@
-+0.5
diff --git a/test/parse-cases/numbers/positive-float-trailing-decimal-point.json5 b/test/parse-cases/numbers/positive-float-trailing-decimal-point.json5
deleted file mode 100644
index bee758a..0000000
--- a/test/parse-cases/numbers/positive-float-trailing-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
-+5.
diff --git a/test/parse-cases/numbers/positive-float.json5 b/test/parse-cases/numbers/positive-float.json5
deleted file mode 100644
index c5732cb..0000000
--- a/test/parse-cases/numbers/positive-float.json5
+++ /dev/null
@@ -1 +0,0 @@
-+1.2
diff --git a/test/parse-cases/numbers/positive-hexadecimal.json5 b/test/parse-cases/numbers/positive-hexadecimal.json5
deleted file mode 100644
index c91ede9..0000000
--- a/test/parse-cases/numbers/positive-hexadecimal.json5
+++ /dev/null
@@ -1 +0,0 @@
-+0xC8
diff --git a/test/parse-cases/numbers/positive-infinity.json5 b/test/parse-cases/numbers/positive-infinity.json5
deleted file mode 100644
index 9bcb989..0000000
--- a/test/parse-cases/numbers/positive-infinity.json5
+++ /dev/null
@@ -1 +0,0 @@
-+Infinity
diff --git a/test/parse-cases/numbers/positive-integer.json5 b/test/parse-cases/numbers/positive-integer.json5
deleted file mode 100644
index 8ed01e0..0000000
--- a/test/parse-cases/numbers/positive-integer.json5
+++ /dev/null
@@ -1 +0,0 @@
-+15
diff --git a/test/parse-cases/numbers/positive-noctal.js b/test/parse-cases/numbers/positive-noctal.js
deleted file mode 100644
index 2f450fc..0000000
--- a/test/parse-cases/numbers/positive-noctal.js
+++ /dev/null
@@ -1 +0,0 @@
-+098
diff --git a/test/parse-cases/numbers/positive-octal.txt b/test/parse-cases/numbers/positive-octal.txt
deleted file mode 100644
index faa8600..0000000
--- a/test/parse-cases/numbers/positive-octal.txt
+++ /dev/null
@@ -1 +0,0 @@
-+0123
diff --git a/test/parse-cases/numbers/positive-zero-float-leading-decimal-point.json5 b/test/parse-cases/numbers/positive-zero-float-leading-decimal-point.json5
deleted file mode 100644
index 557bcde..0000000
--- a/test/parse-cases/numbers/positive-zero-float-leading-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
-+.0
diff --git a/test/parse-cases/numbers/positive-zero-float-trailing-decimal-point.json5 b/test/parse-cases/numbers/positive-zero-float-trailing-decimal-point.json5
deleted file mode 100644
index d8912d1..0000000
--- a/test/parse-cases/numbers/positive-zero-float-trailing-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
-+0.
diff --git a/test/parse-cases/numbers/positive-zero-float.json5 b/test/parse-cases/numbers/positive-zero-float.json5
deleted file mode 100644
index 11e8402..0000000
--- a/test/parse-cases/numbers/positive-zero-float.json5
+++ /dev/null
@@ -1 +0,0 @@
-+0.0
diff --git a/test/parse-cases/numbers/positive-zero-hexadecimal.json5 b/test/parse-cases/numbers/positive-zero-hexadecimal.json5
deleted file mode 100644
index 40a9ce6..0000000
--- a/test/parse-cases/numbers/positive-zero-hexadecimal.json5
+++ /dev/null
@@ -1 +0,0 @@
-+0x0
diff --git a/test/parse-cases/numbers/positive-zero-integer.json5 b/test/parse-cases/numbers/positive-zero-integer.json5
deleted file mode 100644
index 9317bcb..0000000
--- a/test/parse-cases/numbers/positive-zero-integer.json5
+++ /dev/null
@@ -1 +0,0 @@
-+0
diff --git a/test/parse-cases/numbers/positive-zero-octal.txt b/test/parse-cases/numbers/positive-zero-octal.txt
deleted file mode 100644
index 80959e5..0000000
--- a/test/parse-cases/numbers/positive-zero-octal.txt
+++ /dev/null
@@ -1 +0,0 @@
-+00
diff --git a/test/parse-cases/numbers/zero-float-leading-decimal-point.json5 b/test/parse-cases/numbers/zero-float-leading-decimal-point.json5
deleted file mode 100644
index 7d856fd..0000000
--- a/test/parse-cases/numbers/zero-float-leading-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
-.0
diff --git a/test/parse-cases/numbers/zero-float-trailing-decimal-point.json5 b/test/parse-cases/numbers/zero-float-trailing-decimal-point.json5
deleted file mode 100644
index 17a5757..0000000
--- a/test/parse-cases/numbers/zero-float-trailing-decimal-point.json5
+++ /dev/null
@@ -1 +0,0 @@
-0.
diff --git a/test/parse-cases/numbers/zero-float.json b/test/parse-cases/numbers/zero-float.json
deleted file mode 100644
index ba66466..0000000
--- a/test/parse-cases/numbers/zero-float.json
+++ /dev/null
@@ -1 +0,0 @@
-0.0
diff --git a/test/parse-cases/numbers/zero-hexadecimal.json5 b/test/parse-cases/numbers/zero-hexadecimal.json5
deleted file mode 100644
index 9982566..0000000
--- a/test/parse-cases/numbers/zero-hexadecimal.json5
+++ /dev/null
@@ -1 +0,0 @@
-0x0
diff --git a/test/parse-cases/numbers/zero-integer-with-integer-exponent.json b/test/parse-cases/numbers/zero-integer-with-integer-exponent.json
deleted file mode 100644
index da219e3..0000000
--- a/test/parse-cases/numbers/zero-integer-with-integer-exponent.json
+++ /dev/null
@@ -1 +0,0 @@
-0e23
diff --git a/test/parse-cases/numbers/zero-integer.json b/test/parse-cases/numbers/zero-integer.json
deleted file mode 100644
index 573541a..0000000
--- a/test/parse-cases/numbers/zero-integer.json
+++ /dev/null
@@ -1 +0,0 @@
-0
diff --git a/test/parse-cases/numbers/zero-octal.txt b/test/parse-cases/numbers/zero-octal.txt
deleted file mode 100644
index 4daddb7..0000000
--- a/test/parse-cases/numbers/zero-octal.txt
+++ /dev/null
@@ -1 +0,0 @@
-00
diff --git a/test/parse-cases/objects/duplicate-keys.json b/test/parse-cases/objects/duplicate-keys.json
deleted file mode 100644
index bb0e4cc..0000000
--- a/test/parse-cases/objects/duplicate-keys.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "a": true,
- "a": false
-}
diff --git a/test/parse-cases/objects/empty-object.json b/test/parse-cases/objects/empty-object.json
deleted file mode 100644
index 9e26dfe..0000000
--- a/test/parse-cases/objects/empty-object.json
+++ /dev/null
@@ -1 +0,0 @@
-{}
\ No newline at end of file
diff --git a/test/parse-cases/objects/illegal-unquoted-key-number.errorSpec b/test/parse-cases/objects/illegal-unquoted-key-number.errorSpec
deleted file mode 100644
index e44dc85..0000000
--- a/test/parse-cases/objects/illegal-unquoted-key-number.errorSpec
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- at: 7,
- lineNumber: 2,
- columnNumber: 5,
- message: "Bad identifier as unquoted key"
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/illegal-unquoted-key-number.txt b/test/parse-cases/objects/illegal-unquoted-key-number.txt
deleted file mode 100644
index aebcac2..0000000
--- a/test/parse-cases/objects/illegal-unquoted-key-number.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- 10twenty: "ten twenty"
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/illegal-unquoted-key-symbol.errorSpec b/test/parse-cases/objects/illegal-unquoted-key-symbol.errorSpec
deleted file mode 100644
index 95ba468..0000000
--- a/test/parse-cases/objects/illegal-unquoted-key-symbol.errorSpec
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- at: 12,
- lineNumber: 2,
- columnNumber: 10,
- message: "Expected ':' instead of '-'"
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/illegal-unquoted-key-symbol.txt b/test/parse-cases/objects/illegal-unquoted-key-symbol.txt
deleted file mode 100644
index 4cb2bd5..0000000
--- a/test/parse-cases/objects/illegal-unquoted-key-symbol.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- multi-word: "multi-word"
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/leading-comma-object.errorSpec b/test/parse-cases/objects/leading-comma-object.errorSpec
deleted file mode 100644
index e44dc85..0000000
--- a/test/parse-cases/objects/leading-comma-object.errorSpec
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- at: 7,
- lineNumber: 2,
- columnNumber: 5,
- message: "Bad identifier as unquoted key"
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/leading-comma-object.txt b/test/parse-cases/objects/leading-comma-object.txt
deleted file mode 100644
index bfb3c51..0000000
--- a/test/parse-cases/objects/leading-comma-object.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- ,"foo": "bar"
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/lone-trailing-comma-object.txt b/test/parse-cases/objects/lone-trailing-comma-object.txt
deleted file mode 100644
index 3f3f9f7..0000000
--- a/test/parse-cases/objects/lone-trailing-comma-object.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- ,
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/no-comma-object.txt b/test/parse-cases/objects/no-comma-object.txt
deleted file mode 100644
index c073875..0000000
--- a/test/parse-cases/objects/no-comma-object.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "foo": "bar"
- "hello": "world"
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/reserved-unquoted-key.json5 b/test/parse-cases/objects/reserved-unquoted-key.json5
deleted file mode 100644
index 4b80a63..0000000
--- a/test/parse-cases/objects/reserved-unquoted-key.json5
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- while: true
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/single-quoted-key.json5 b/test/parse-cases/objects/single-quoted-key.json5
deleted file mode 100644
index 842ca19..0000000
--- a/test/parse-cases/objects/single-quoted-key.json5
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- 'hello': "world"
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/trailing-comma-object.json5 b/test/parse-cases/objects/trailing-comma-object.json5
deleted file mode 100644
index ab61ba7..0000000
--- a/test/parse-cases/objects/trailing-comma-object.json5
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "foo": "bar",
-}
\ No newline at end of file
diff --git a/test/parse-cases/objects/unquoted-keys.json5 b/test/parse-cases/objects/unquoted-keys.json5
deleted file mode 100644
index 0c06f3f..0000000
--- a/test/parse-cases/objects/unquoted-keys.json5
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- hello: "world",
- _: "underscore",
- $: "dollar sign",
- one1: "numerals",
- _$_: "multiple symbols",
- $_$hello123world_$_: "mixed"
-}
\ No newline at end of file
diff --git a/test/parse-cases/strings/escaped-single-quoted-string.json5 b/test/parse-cases/strings/escaped-single-quoted-string.json5
deleted file mode 100644
index 1c79910..0000000
--- a/test/parse-cases/strings/escaped-single-quoted-string.json5
+++ /dev/null
@@ -1 +0,0 @@
-'I can\'t wait'
\ No newline at end of file
diff --git a/test/parse-cases/strings/multi-line-string.json5 b/test/parse-cases/strings/multi-line-string.json5
deleted file mode 100644
index 964dc2d..0000000
--- a/test/parse-cases/strings/multi-line-string.json5
+++ /dev/null
@@ -1,2 +0,0 @@
-'hello\
- world'
\ No newline at end of file
diff --git a/test/parse-cases/strings/no-comma-array.errorSpec b/test/parse-cases/strings/no-comma-array.errorSpec
deleted file mode 100644
index 9835561..0000000
--- a/test/parse-cases/strings/no-comma-array.errorSpec
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- at: 16,
- lineNumber: 3,
- columNumber: 5,
- message: "Expected ']' instead of 'f'"
-}
\ No newline at end of file
diff --git a/test/parse-cases/strings/single-quoted-string.json5 b/test/parse-cases/strings/single-quoted-string.json5
deleted file mode 100644
index 5dadd33..0000000
--- a/test/parse-cases/strings/single-quoted-string.json5
+++ /dev/null
@@ -1 +0,0 @@
-'hello world'
\ No newline at end of file
diff --git a/test/parse-cases/strings/unescaped-multi-line-string.errorSpec b/test/parse-cases/strings/unescaped-multi-line-string.errorSpec
deleted file mode 100644
index a85f1ad..0000000
--- a/test/parse-cases/strings/unescaped-multi-line-string.errorSpec
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- at: 5,
- lineNumber: 2,
- columnNumber: 0,
- message: "Bad string"
-}
\ No newline at end of file
diff --git a/test/parse-cases/strings/unescaped-multi-line-string.txt b/test/parse-cases/strings/unescaped-multi-line-string.txt
deleted file mode 100644
index 7325139..0000000
--- a/test/parse-cases/strings/unescaped-multi-line-string.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-"foo
-bar"
diff --git a/test/parse-cases/todo/unicode-escaped-unquoted-key.json5 b/test/parse-cases/todo/unicode-escaped-unquoted-key.json5
deleted file mode 100644
index 56c3457..0000000
--- a/test/parse-cases/todo/unicode-escaped-unquoted-key.json5
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- sig\u03A3ma: "the sum of all things"
-}
\ No newline at end of file
diff --git a/test/parse-cases/todo/unicode-unquoted-key.json5 b/test/parse-cases/todo/unicode-unquoted-key.json5
deleted file mode 100644
index 98382e6..0000000
--- a/test/parse-cases/todo/unicode-unquoted-key.json5
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- ümlåût: "that's not really an ümlaüt, but this is"
-}
\ No newline at end of file
diff --git a/test/parse.js b/test/parse.js
index d96e1a1..0e20c53 100644
--- a/test/parse.js
+++ b/test/parse.js
@@ -19,7 +19,12 @@ var Path = require('path');
// http://mxr.mozilla.org/mozilla-central/source/js/src/tests/ecma_5/JSON/
var dirsPath = Path.resolve(__dirname, 'parse-cases');
-var dirs = FS.readdirSync(dirsPath);
+var dirs = FS.readdirSync(dirsPath).filter(function(fn) {
+ if (fn.substr(0, 1) == '.') {
+ return false;
+ }
+ return FS.statSync(Path.join(dirsPath, fn)).isDirectory();
+});
var readErrorSpec = function (filePath) {
var specName = Path.basename(filePath, '.txt') + '.errorSpec';
diff --git a/test/stringify.js b/test/stringify.js
index 7d86a69..0a9f5ac 100644
--- a/test/stringify.js
+++ b/test/stringify.js
@@ -50,6 +50,7 @@ exports.stringify.oddities = function test() {
};
exports.stringify.arrays = function test() {
+ assertStringify([]);
assertStringify([""]);
assertStringify([1, 2]);
assertStringify([undefined]);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-json5.git
More information about the Pkg-javascript-commits
mailing list