Socket
Socket
Sign inDemoInstall

telejson

Package Overview
Dependencies
Maintainers
5
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 7.1.0 to 7.1.1--canary.102.d98334d.0

1

dist/index.d.ts

@@ -8,2 +8,3 @@ interface Options {

allowClass: boolean;
allowError: boolean;
maxDepth: number;

@@ -10,0 +11,0 @@ space: number | undefined;

@@ -1399,2 +1399,15 @@ "use strict";

}
if (value2 instanceof Error && options2.allowError) {
return {
__isConvertedError__: true,
errorProperties: {
...value2.cause ? { cause: value2.cause } : {},
...value2,
name: value2.name,
message: value2.message,
stack: value2.stack,
"_constructor-name_": value2.constructor.name
}
};
}
if (value2.constructor && value2.constructor.name && value2.constructor.name !== "Object" && !Array.isArray(value2) && !options2.allowClass) {

@@ -1444,2 +1457,8 @@ return void 0;

}
if (isObject3(value) && value.__isConvertedError__) {
const { message, ...properties } = value.errorProperties;
const error = new Error(message);
Object.assign(error, properties);
return error;
}
if (isObject3(value) && value["_constructor-name_"] && options.allowFunction) {

@@ -1511,2 +1530,3 @@ const name2 = value["_constructor-name_"];

allowClass: true,
allowError: true,
allowUndefined: true,

@@ -1513,0 +1533,0 @@ allowSymbol: true,

{
"name": "telejson",
"version": "7.1.0",
"version": "7.1.1--canary.102.d98334d.0",
"description": "",

@@ -24,2 +24,3 @@ "keywords": [

"license": "MIT",
"author": "ndelangen@me.com",
"main": "dist/index.js",

@@ -40,3 +41,4 @@ "module": "dist/index.mjs",

"test-browser": "TZ=UTC jest --env=jsdom ./common ./browser",
"test-node": "TZ=UTC jest --env=node ./common ./node"
"test-node": "TZ=UTC jest --env=node ./common ./node",
"release": "yarn build && auto shipit"
},

@@ -59,2 +61,3 @@ "eslintConfig": {

"devDependencies": {
"@auto-it/released": "^11.0.1",
"@babel/preset-env": "^7.20.0",

@@ -66,2 +69,3 @@ "@babel/preset-typescript": "^7.18.6",

"@types/lodash-es": "^4.17.6",
"auto": "^11.0.1",
"babel-core": "7.0.0-bridge.0",

@@ -84,3 +88,9 @@ "babel-jest": "^26.6.3",

"access": "public"
},
"auto": {
"plugins": [
"npm",
"released"
]
}
}

@@ -19,2 +19,3 @@ # TeleJSON

- Symbol
- Error
- etc.

@@ -120,2 +121,4 @@

`allowError`: When set to false, error instances will not be serialized. (default = true)
`allowDate`: When set to false, Date objects will not be serialized. (default = true)

@@ -145,4 +148,12 @@

first, build the package:
```sh
yarn build
```
then run the tests:
```sh
yarn test
```

Sorry, the diff of this file is not supported yet

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