serialize-javascript
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -15,2 +15,3 @@ /* | ||
var IS_PURE_FUNCTION = /function.*?\(/; | ||
var IS_ARROW_FUNCTION = /.*?=>.*?/; | ||
var UNSAFE_CHARS_REGEXP = /[<>\/\u2028\u2029]/g; | ||
@@ -96,2 +97,7 @@ | ||
// arrow functions, example: arg1 => arg1+5 | ||
if(IS_ARROW_FUNCTION.test(serializedFn)) { | ||
return serializedFn; | ||
} | ||
var argsStartsAt = serializedFn.indexOf('('); | ||
@@ -98,0 +104,0 @@ var def = serializedFn.substr(0, argsStartsAt) |
{ | ||
"name": "serialize-javascript", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"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
13528
138