Socket
Socket
Sign inDemoInstall

relaxed-json

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

relaxed-json - npm Package Compare versions

Comparing version 0.2.9 to 1.0.0

14

package.json
{
"name": "relaxed-json",
"description": "Relaxed JSON is strict superset JSON, relaxing strictness of valilla JSON",
"version": "0.2.9",
"version": "1.0.0",
"homepage": "https://github.com/phadej/relaxed-json",

@@ -18,8 +18,3 @@ "author": {

},
"licenses": [
{
"type": "BSD3",
"url": "https://github.com/phadej/relaxed-json/blob/master/LICENSE"
}
],
"license": "BSD-3-Clause",
"main": "relaxed-json.js",

@@ -36,7 +31,8 @@ "bin": {

"devDependencies": {
"eslint": "^0.15.0",
"david": "^6.1.4",
"eslint": "^0.24.1",
"istanbul": "~0.3.0",
"jscs": "^1.11.3",
"jshint": "^2.6.0",
"jsverify": "^0.5.1",
"jsverify": "^0.6.0-alpha.1",
"mocha": "^2.1.0",

@@ -43,0 +39,0 @@ "uglify-js": "~2.4.13",

@@ -14,3 +14,3 @@ # Relaxed JSON

[Relaxed JSON](http://oleg.fi/relaxed-json) (modified BSD license) is a strict superset of JSON,
relaxing strictness of valilla JSON.
relaxing strictness of vanilla JSON.
Valid, vanilla JSON will not be changed by `RJSON.transform`. But there are few additional

@@ -59,2 +59,4 @@ features helping writing JSON by hand.

- 1.0.0 — 2015-07-13 — Stable release
- Forward slashes bug fixed
- 0.2.9 Dependencies bump

@@ -86,1 +88,5 @@ - 0.2.8 Dev dependencies update

- [strip-json-comments](https://www.npmjs.org/package/strip-json-comments)
For truly human writable configuration consider using [YAML](http://yaml.org/).
- [js-yaml](https://www.npmjs.com/package/js-yaml)

@@ -68,3 +68,3 @@ /*

if (!matched) {
var err = new SyntaxError("Unexpected character: " + contents[0]);
var err = new SyntaxError("Unexpected character: " + contents[0] + "; input: " + contents.substr(0, 100));
err.line = line;

@@ -171,3 +171,3 @@ throw err;

{ re: /^\-?\d+(\.\d+)?([eE][+-]?\d+)?/, f: fNumber },
{ re: /^"([^"\\]|\\["bnrtf\\]|\\u[0-9a-fA-F]{4})*"/, f: fStringDouble },
{ re: /^"([^"\\]|\\["bnrtf\\\/]|\\u[0-9a-fA-F]{4})*"/, f: fStringDouble },
];

@@ -178,3 +178,3 @@

ret = ret.concat([
{ re: /^'(([^'\\]|\\['bnrtf\\]|\\u[0-9a-fA-F]{4})*)'/, f: fStringSingle },
{ re: /^'(([^'\\]|\\['bnrtf\\\/]|\\u[0-9a-fA-F]{4})*)'/, f: fStringSingle },
{ re: /^\/\/.*?(?:\r\n|\r|\n)/, f: fComment },

@@ -181,0 +181,0 @@ { re: /^\/\*[\s\S]*?\*\//, f: fComment },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc