stringify-object
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -127,2 +127,3 @@ import isRegexp from 'is-regexp'; | ||
input = input.replace(/\\/g, '\\\\'); | ||
input = String(input).replace(/[\r\n]/g, x => x === '\n' ? '\\n' : '\\r'); | ||
@@ -135,5 +136,5 @@ | ||
input = input.replace(/\\?'/g, '\\\''); | ||
input = input.replace(/'/g, '\\\''); | ||
return `'${input}'`; | ||
})(input, options, pad); | ||
} |
{ | ||
"name": "stringify-object", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Stringify an object/array like JSON.stringify just without all the double-quotes", | ||
@@ -5,0 +5,0 @@ "license": "BSD-2-Clause", |
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
9101
109