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

javascript-stringify

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

javascript-stringify - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

13

javascript-stringify.js

@@ -183,2 +183,5 @@ (function (root, stringify) {

'[object Object]': stringifyObject,
'[object Error]': function (error) {
return 'new Error(' + stringify(error.message) + ')';
},
'[object Date]': function (date) {

@@ -199,2 +202,12 @@ return 'new Date(' + date.getTime() + ')';

},
'[object Set]': function (array, indent, next) {
if (typeof Array.from === 'function') {
return 'new Set(' + stringify(Array.from(array), indent, next) + ')';
} else return undefined;
},
'[object Map]': function (array, indent, next) {
if (typeof Array.from === 'function') {
return 'new Map(' + stringify(Array.from(array), indent, next) + ')';
} else return undefined;
},
'[object RegExp]': String,

@@ -201,0 +214,0 @@ '[object Function]': String,

2

package.json
{
"name": "javascript-stringify",
"version": "1.5.0",
"version": "1.6.0",
"description": "Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`",

@@ -5,0 +5,0 @@ "main": "javascript-stringify.js",

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