Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

noon

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noon - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

14

js/stringify.js

@@ -128,3 +128,3 @@

*/
escape = function(k) {
escape = function(k, arry) {
var es, ref, ref1, sp;

@@ -134,3 +134,3 @@ if (0 <= k.indexOf('\n')) {

es = sp.map(function(s) {
return escape(s);
return escape(s, arry);
});

@@ -141,4 +141,6 @@ es.unshift('...');

}
if (k === '' || k === '...' || ((ref = k[0]) === ' ' || ref === '#' || ref === '|') || ((ref1 = k[k.length - 1]) === ' ' || ref1 === '#' || ref1 === '|') || /\ \ /.test(k)) {
if (k === '' || k === '...' || ((ref = k[0]) === ' ' || ref === '#' || ref === '|') || ((ref1 = k[k.length - 1]) === ' ' || ref1 === '#' || ref1 === '|')) {
k = '|' + k + '|';
} else if (arry && /\ \ /.test(k)) {
k = '|' + k + '|';
}

@@ -195,3 +197,3 @@ return k;

s = ind;
k = escape(k);
k = escape(k, true);
if (k.indexOf(' ') > 0 && k[0] !== '|') {

@@ -274,7 +276,7 @@ k = "|" + k + "|";

if ((colors[rc] != null) && regs[rc].test(o)) {
return colors[rc](beautify(escape(o)));
return colors[rc](beautify(escape(o, arry)));
}
}
}
return colors.string(escape(o));
return colors.string(escape(o, arry));
} else if (t === 'object') {

@@ -281,0 +283,0 @@ if (opt.circular) {

{
"name": "noon",
"version": "1.0.13",
"version": "1.0.14",
"description": "'nother ordinary object notation",
"main": "js/main.js",
"keywords": [
"object-notation",
"command-line-tool",
"noon",
"ordinary",
"object",
"notation",
"json",

@@ -17,9 +16,7 @@ "cson",

"load",
"save",
"write",
"parse",
"write",
"save",
"convert",
"stringify",
"command line",
"tool"
"stringify"
],

@@ -43,12 +40,12 @@ "author": "monsterkodi",

"colors": "^1.1.2",
"lodash": "^4.12.0",
"performance-now": "^0.2.0",
"karg": ">=1.0.7",
"cson": "^3.0.2",
"js-yaml": "^3.6.1"
"lodash": "^4.17.4",
"performance-now": "^2.1.0",
"karg": ">=1.0.9",
"cson": "^4.0.0",
"js-yaml": "^3.8.2"
},
"devDependencies": {
"chai": "^3.5.0",
"mocha": "^2.4.5"
"mocha": "^3.2.0"
}
}
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