serialize-javascript
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -28,3 +28,3 @@ /* | ||
module.exports = function serialize(obj) { | ||
module.exports = function serialize(obj, space) { | ||
var functions = []; | ||
@@ -47,3 +47,3 @@ var regexps = []; | ||
return value; | ||
}); | ||
}, space); | ||
@@ -50,0 +50,0 @@ // Protects against `JSON.stringify()` returning `undefined`, by serializing |
{ | ||
"name": "serialize-javascript", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Serialize JavaScript to a superset of JSON that includes regular expressions and functions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -51,2 +51,4 @@ Serialize JavaScript | ||
Note: to produced a beautified string, you can pass an optional second argument to `serialize()` to define the number of spaces to be used for the indentation. | ||
### Automatic Escaping of HTML Characters | ||
@@ -53,0 +55,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
8369
83