Socket
Socket
Sign inDemoInstall

telejson

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telejson - npm Package Compare versions

Comparing version 4.0.1 to 5.0.0-0

30

dist/index.js

@@ -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 @@ }

2

package.json
{
"name": "telejson",
"version": "4.0.1",
"version": "5.0.0-0",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc