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

moderndash

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moderndash - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

@@ -150,3 +150,3 @@ /**

* @example
* intersection([2, 1], [2, 3])
* intersection([2, 1], [2, 3], [6, 2])
* // => [2]

@@ -819,3 +819,3 @@ *

* @example
* const obj = { a: { b: 2, c: [{ d: 3 }, {d: 4 }] } };
* const obj = { a: { b: 2, c: [{ d: 3 }, { d: 4 }] } };
* flatKeys(obj);

@@ -822,0 +822,0 @@ * // => { 'a.b': 2, 'a.c[0].d': 3, 'a.c[1].d': 4 }

@@ -667,9 +667,7 @@ // src/array/chunk.ts

const words = splitWords(str);
const camelCase2 = words.map((word, index) => {
if (index === 0) {
return word.toLowerCase();
}
return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
});
return camelCase2.join("");
let camelCase2 = "";
for (const [index, word] of words.entries()) {
camelCase2 += index === 0 ? word.toLowerCase() : word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
}
return camelCase2;
}

@@ -676,0 +674,0 @@

{
"name": "moderndash",
"version": "3.0.0",
"version": "3.1.0",
"type": "module",
"description": "A lodash inspired utility framework for ESM/Typescript/ESNext",
"description": "A Typescript-First utility library inspired by Lodash. Optimized for modern browsers.",
"engines": {

@@ -17,3 +17,3 @@ "node": ">=16.15",

"test-dev": "vitest --ui",
"test": "vitest run --coverage"
"test": "cross-env NODE_OPTIONS='--experimental-global-webcrypto' vitest run --coverage"
},

@@ -48,3 +48,4 @@ "repository": {

"require": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},

@@ -56,5 +57,6 @@ "files": [

"devDependencies": {
"tsup": "6.6.3",
"ctix": "1.8.2"
"tsup": "6.7.0",
"ctix": "1.8.2",
"cross-env": "7.0.3"
}
}

@@ -58,3 +58,3 @@ ![ModernDash Logo](https://raw.githubusercontent.com/Maggi64/moderndash/main/website/src/assets/moderndashLogo.svg)

**NodeJS**: >16.14 | **Typescript**: >4.7
**NodeJS**: >=16.15 | **Typescript**: >=4.8

@@ -61,0 +61,0 @@ > `NodeJS 16-18`: Enable the [experimental-global-webcrypto](https://nodejs.dev/en/api/v16/cli#--experimental-global-webcrypto) flag to use crypto functions.

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