Comparing version 1.0.13 to 1.0.14
@@ -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" | ||
} | ||
} |
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
34409
931
+ Addedcson@4.1.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
- Removedcson@3.0.2(transitive)
- Removedperformance-now@0.2.0(transitive)
Updatedcson@^4.0.0
Updatedjs-yaml@^3.8.2
Updatedkarg@>=1.0.9
Updatedlodash@^4.17.4
Updatedperformance-now@^2.1.0