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

serialize-javascript

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serialize-javascript - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

4

index.js

@@ -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 @@

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