Comparing version 4.0.1 to 5.0.0-0
@@ -140,15 +140,7 @@ "use strict"; | ||
if ((0, _isRegex["default"])(value)) { | ||
if (!options.allowRegExp) { | ||
return undefined; | ||
} | ||
if (options.allowRegExp && (0, _isRegex["default"])(value)) { | ||
return "_regexp_".concat(value.flags, "|").concat(value.source); | ||
} | ||
if ((0, _isFunction["default"])(value)) { | ||
if (!options.allowFunction) { | ||
return undefined; | ||
} | ||
if (options.allowFunction && (0, _isFunction["default"])(value)) { | ||
var name = value.name; | ||
@@ -164,23 +156,11 @@ var stringified = value.toString(); | ||
if ((0, _isSymbol["default"])(value)) { | ||
if (!options.allowSymbol) { | ||
return undefined; | ||
} | ||
if (options.allowSymbol && (0, _isSymbol["default"])(value)) { | ||
return "_symbol_".concat(value.toString().slice(7, -1)); | ||
} | ||
if (typeof value === 'string' && dateFormat.test(value)) { | ||
if (!options.allowDate) { | ||
return undefined; | ||
} | ||
if (options.allowDate && typeof value === 'string' && dateFormat.test(value)) { | ||
return "_date_".concat(value); | ||
} | ||
if (value === undefined) { | ||
if (!options.allowUndefined) { | ||
return undefined; | ||
} | ||
if (options.allowUndefined && value === undefined) { | ||
return '_undefined_'; | ||
@@ -187,0 +167,0 @@ } |
{ | ||
"name": "telejson", | ||
"version": "4.0.1", | ||
"version": "5.0.0-0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
20182
353
1