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

skydiet-lib-node

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

skydiet-lib-node - npm Package Compare versions

Comparing version 1.0.29 to 1.0.30

16

dist/index.js

@@ -46,7 +46,17 @@ "use strict";

const ids = {};
const keys = [];
let keys = [];
for (const field of fieldsToGroup) {
if (currentValue[field]) {
keys.push(currentValue[field].toString());
ids[field] = currentValue[field];
// keys.push(currentValue[field].toString())
// ids[field] = currentValue[field]
if (Array.isArray(currentValue[field])) {
currentValue[field].forEach((f) => {
keys = [...keys, f];
ids[f] = currentValue[field];
});
}
else {
keys.push(currentValue[field].toString());
ids[field] = currentValue[field];
}
}

@@ -53,0 +63,0 @@ }

2

package.json
{
"name": "skydiet-lib-node",
"version": "1.0.29",
"version": "1.0.30",
"description": "Biblioteca para funções skydiet",

@@ -5,0 +5,0 @@ "author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",

@@ -66,7 +66,17 @@ /* eslint-disable @typescript-eslint/no-unused-vars */

const ids = {} as { [key: string]: any, id: any, items: any[] }
const keys = []
let keys: any[] = []
for (const field of fieldsToGroup) {
if (currentValue[field]) {
keys.push(currentValue[field].toString())
ids[field] = currentValue[field]
// keys.push(currentValue[field].toString())
// ids[field] = currentValue[field]
if (Array.isArray(currentValue[field])) {
currentValue[field].forEach((f: string) => {
keys = [...keys, f]
ids[f] = currentValue[field];
})
} else {
keys.push(currentValue[field].toString());
ids[field] = currentValue[field];
}
}

@@ -73,0 +83,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