serialize-javascript
Advanced tools
Comparing version 1.6.0 to 1.6.1
10
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) { |
{ | ||
"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", |
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
12417
119