Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

serialize-javascript

Package Overview
Dependencies
Maintainers
3
Versions
30
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.6.0
to
1.6.1
+8
-2
index.js

@@ -86,5 +86,11 @@ /*

var argsStartsAt = serializedFn.indexOf('(');
var def = serializedFn.substr(0, argsStartsAt).trim().split(' ').filter(val => val.length > 0);
var nonReservedSymbols = def.filter(val => RESERVED_SYMBOLS.indexOf(val) === -1);
var def = serializedFn.substr(0, argsStartsAt)
.trim()
.split(' ')
.filter(function(val) { return val.length > 0 });
var nonReservedSymbols = def.filter(function(val) {
return RESERVED_SYMBOLS.indexOf(val) === -1
});
// enhanced literal objects, example: {key() {}}

@@ -91,0 +97,0 @@ if(nonReservedSymbols.length > 0) {

+1
-1
{
"name": "serialize-javascript",
"version": "1.6.0",
"version": "1.6.1",
"description": "Serialize JavaScript to a superset of JSON that includes regular expressions and functions.",

@@ -5,0 +5,0 @@ "main": "index.js",