rison-node
Advanced tools
Comparing version 1.0.2 to 2.0.0
### Changelog | ||
### [v2.0.0](https://github.com/w33ble/rison-node/compare/v1.0.2...v2.0.0) (30 April 2018) | ||
- feat: prevent quoting numeric keys [`01e2be2`](https://github.com/w33ble/rison-node/commit/01e2be2fb546fdeea9f68cd5fd9087660cc1802c) | ||
#### [v1.0.2](https://github.com/w33ble/rison-node/compare/v1.0.1...v1.0.2) (17 April 2018) | ||
@@ -4,0 +7,0 @@ - docs: proper fork, update repo, add badges [`667fc6c`](https://github.com/w33ble/rison-node/commit/667fc6cd6a3ef4022228dd5de6f1d8a28b153eba) |
@@ -173,3 +173,3 @@ // Uses CommonJS, AMD or browser globals to create a module. | ||
var a = ['('], b, i, v, ki, ks=[]; | ||
var a = ['('], b, i, v, k, ki, ks=[]; | ||
for (i in x) | ||
@@ -185,3 +185,4 @@ ks[ks.length] = i; | ||
} | ||
a.push(s.string(i), ':', v); | ||
k = isNaN(parseInt(i)) ? s.string(i) : s.number(i) | ||
a.push(k, ':', v); | ||
b = true; | ||
@@ -188,0 +189,0 @@ } |
{ | ||
"name": "rison-node", | ||
"version": "1.0.2", | ||
"authors": [ | ||
"Nanonid (https://github.com/Nanonid)", | ||
"Spencer Alger (https://github.com/spalger)", | ||
"Joe Fleming (https://github.com/w33ble)", | ||
"Court Ewing (https://github.com/epixa)", | ||
"Jonas Finnemann Jensen (https://github.com/jonasfj)", | ||
"Sam Presnal", | ||
"bryanrideshark (https://github.com/bryanrideshark)" | ||
], | ||
"version": "2.0.0", | ||
"main": "js/rison.js", | ||
"scripts": { | ||
"preversion": "npm run test", | ||
"version": "auto-changelog -p && auto-authors && git add CHANGELOG.md AUTHORS.md", | ||
"test": "npm run lint && tape tests/*.js", | ||
"lint": "eslint \"js/*.js\" \"tests/*.js\"", | ||
"precommit": "lint-staged", | ||
"prepush": "npm run test" | ||
}, | ||
"author": "Joe Fleming (https://github.com/w33ble)", | ||
"description": "data serialization format optimized for compactness in URIs", | ||
@@ -19,3 +20,2 @@ "license": "Apache-2.0", | ||
}, | ||
"main": "js/rison.js", | ||
"files": [ | ||
@@ -27,2 +27,10 @@ "js", | ||
], | ||
"lint-staged": { | ||
"*.{mjs,js}": [ | ||
"eslint --fix" | ||
], | ||
"*.{mjs,js,json,css}": [ | ||
"prettier --write" | ||
] | ||
}, | ||
"prettier": { | ||
@@ -38,11 +46,4 @@ "singleQuote": true, | ||
}, | ||
"scripts": { | ||
"preversion": "npm run test", | ||
"postversion": "npm run changelog", | ||
"changelog": "auto-changelog", | ||
"test": "npm run lint && tape tests/*.js", | ||
"lint": "eslint \"js/*.js\" \"tests/*.js\"", | ||
"prepush": "npm run test" | ||
}, | ||
"devDependencies": { | ||
"auto-authors": "^0.1.1", | ||
"auto-changelog": "^1.4.6", | ||
@@ -53,2 +54,3 @@ "eslint": "^4.19.1", | ||
"husky": "^0.14.3", | ||
"lint-staged": "^7.0.4", | ||
"prettier": "^1.12.0", | ||
@@ -55,0 +57,0 @@ "tape": "^4.2.2" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
42803
468
1
9