Comparing version 5.0.2 to 5.1.0
@@ -14,3 +14,3 @@ interface Options { | ||
interface ValueContainer { | ||
'_constructor-name_': string; | ||
'_constructor-name_'?: string; | ||
[keys: string]: any; | ||
@@ -17,0 +17,0 @@ } |
@@ -417,5 +417,11 @@ "use strict"; | ||
if (Array.isArray(value)) { | ||
value.forEach(function (v) { | ||
value.forEach(function (v, index) { | ||
mutated.set(v, true); | ||
mutateUndefined(v); | ||
if (v === '_undefined_') { | ||
mutated.set(v, true); // eslint-disable-next-line no-param-reassign | ||
value[index] = undefined; | ||
} | ||
}); | ||
@@ -422,0 +428,0 @@ } |
{ | ||
"name": "telejson", | ||
"version": "5.0.2", | ||
"version": "5.1.0", | ||
"description": "", | ||
@@ -50,21 +50,21 @@ "keywords": [ | ||
"isobject": "^4.0.0", | ||
"lodash": "^4.17.19", | ||
"lodash": "^4.17.20", | ||
"memoizerific": "^1.11.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.10.5", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@babel/cli": "^7.12.1", | ||
"@babel/core": "^7.12.3", | ||
"@babel/preset-env": "^7.12.1", | ||
"@babel/preset-typescript": "^7.12.1", | ||
"@storybook/eslint-config-storybook": "^2.4.0", | ||
"@types/jest": "^26.0.6", | ||
"@types/lodash": "^4.14.158", | ||
"@types/jest": "^26.0.15", | ||
"@types/lodash": "^4.14.165", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^26.1.0", | ||
"babel-jest": "^26.6.3", | ||
"common-tags": "^1.8.0", | ||
"eslint": "^7.5.0", | ||
"jest": "^26.1.0", | ||
"prettier": "^2.0.5", | ||
"eslint": "^7.13.0", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.1.2", | ||
"regenerator-runtime": "^0.13.7", | ||
"typescript": "^3.9.7" | ||
"typescript": "^4.0.5" | ||
}, | ||
@@ -71,0 +71,0 @@ "publishConfig": { |
@@ -80,3 +80,3 @@ # TeleJSON | ||
const stringified = JSON.stringify(data, reviver(), 2); | ||
const stringified = JSON.stringify(data, replacer(), 2); | ||
const parsed = JSON.parse(stringified, reviver(), 2); | ||
@@ -88,3 +88,3 @@ ``` | ||
``` | ||
const stringified = JSON.stringify(data, reviver, 2); | ||
const stringified = JSON.stringify(data, replacer, 2); | ||
const parsed = JSON.parse(stringified, reviver, 2); | ||
@@ -91,0 +91,0 @@ ``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20807
364
3
Updatedlodash@^4.17.20