New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@apigames/json

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apigames/json - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

2

package.json

@@ -6,3 +6,3 @@ {

"license": "UNLICENSED",
"version": "1.0.23",
"version": "1.0.24",
"main": "index.js",

@@ -9,0 +9,0 @@ "scripts": {

@@ -84,5 +84,35 @@ const deepEqual = require("deep-equal"),

function clone(value) {
function RedactUndefinedValues(document) {
if (isArray(document)) {
for (let index = document.length - 1; index >= 0 ; index--) {
if (isDefined(document[index])) {
RedactUndefinedValues(document[index]);
} else {
document = document.splice(index, 1);
}
}
} else {
if (isObject(document)) {
for (let key in document) {
if (document.hasOwnProperty(key)) {
if (isDefined(document[key])) {
RedactUndefinedValues(document[key]);
} else {
delete document[key]
}
}
}
}
}
}
function clone(value, redactUndefinedValues = true) {
if (value) {
return clonedeep(value);
const clonedDocument = clonedeep(value);
if (redactUndefinedValues) {
RedactUndefinedValues(clonedDocument);
}
return clonedDocument;
}

@@ -89,0 +119,0 @@ }

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