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

moderndash

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moderndash - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

34

dist/index.js

@@ -407,22 +407,22 @@ // src/array/chunk.ts

function flatKeys(obj) {
const result = {};
function addToResult(prefix, value) {
if (isPlainObject(value)) {
const flatObj = flatKeys(value);
for (const [flatKey, flatValue] of Object.entries(flatObj)) {
result[`${prefix}.${flatKey}`] = flatValue;
}
} else if (Array.isArray(value)) {
for (const [index, element] of value.entries()) {
addToResult(`${prefix}[${index}]`, element);
}
} else {
result[prefix] = value;
}
}
const flatObject = {};
for (const [key, value] of Object.entries(obj)) {
addToResult(key, value);
addToResult(key, value, flatObject);
}
return result;
return flatObject;
}
function addToResult(prefix, value, flatObject) {
if (isPlainObject(value)) {
const flatObj = flatKeys(value);
for (const [flatKey, flatValue] of Object.entries(flatObj)) {
flatObject[`${prefix}.${flatKey}`] = flatValue;
}
} else if (Array.isArray(value)) {
for (const [index, element] of value.entries()) {
addToResult(`${prefix}[${index}]`, element, flatObject);
}
} else {
flatObject[prefix] = value;
}
}

@@ -429,0 +429,0 @@ // src/object/merge.ts

{
"name": "moderndash",
"version": "2.2.0",
"version": "2.2.1",
"type": "module",

@@ -5,0 +5,0 @@ "description": "A lodash inspired utility framework for ESM/Typescript/ESNext",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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