Comparing version 5.0.1 to 5.0.2
@@ -396,3 +396,3 @@ "use strict"; | ||
var mutator = function mutator() { | ||
var mutated = {}; | ||
var mutated = new Map(); | ||
return function mutateUndefined(value) { | ||
@@ -410,4 +410,4 @@ // JSON.parse will not output keys with value of undefined | ||
value[k] = undefined; | ||
} else if (!mutated[v]) { | ||
mutated[v] = true; | ||
} else if (!mutated.get(v)) { | ||
mutated.set(v, true); | ||
mutateUndefined(v); | ||
@@ -420,3 +420,3 @@ } | ||
value.forEach(function (v) { | ||
mutated[v] = true; | ||
mutated.set(v, true); | ||
mutateUndefined(v); | ||
@@ -423,0 +423,0 @@ }); |
{ | ||
"name": "telejson", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"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
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
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
20634
4