Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

devalue

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devalue - npm Package Compare versions

Comparing version
5.7.0
to
5.7.1
+1
-1
package.json
{
"name": "devalue",
"description": "Gets the job done when JSON.stringify can't",
"version": "5.7.0",
"version": "5.7.1",
"repository": "sveltejs/devalue",

@@ -6,0 +6,0 @@ "sideEffects": false,

@@ -183,3 +183,6 @@ import {

case 'RegExp':
return `new RegExp(${stringify_string(thing.source)}, "${thing.flags}")`;
const { source, flags } = thing;
return flags
? `new RegExp(${stringify_string(source)},"${flags}")`
: `new RegExp(${stringify_string(source)})`;

@@ -388,3 +391,7 @@ case 'Date':

case 'RegExp':
values.push(thing.toString());
const { source, flags } = thing;
const regexp = flags
? `new RegExp(${stringify_string(source)},"${flags}")`
: `new RegExp(${stringify_string(source)})`
values.push(regexp);
break;

@@ -391,0 +398,0 @@