@hckrnews/arrays
Advanced tools
Comparing version 3.1.8 to 4.0.0
{ | ||
"name": "@hckrnews/arrays", | ||
"version": "3.1.8", | ||
"version": "4.0.0", | ||
"description": "Usefull array helpers.", | ||
@@ -22,26 +22,7 @@ "files": [ | ||
"src/modules/unique.js", | ||
"src/modules/update.js", | ||
"dist/helpers.cjs", | ||
"dist/helpers.cjs.map", | ||
"dist/helpers.js", | ||
"dist/helpers.js.map", | ||
"dist/helpers.module.mjs", | ||
"dist/helpers.module.mjs.map", | ||
"dist/helpers.umd.cjs", | ||
"dist/helpers.umd.cjs.map" | ||
"src/modules/update.js" | ||
], | ||
"main": "dist/helpers.umd.cjs", | ||
"main": "src/helpers.js", | ||
"source": "src/helpers.js", | ||
"module": "dist/helpers.module.mjs", | ||
"unpkg": "dist/helpers.umd.cjs", | ||
"umd:main": "dist/helpers.umd.cjs", | ||
"exports": { | ||
"node": { | ||
"default": "./dist/helpers.umd.cjs", | ||
"module": "./src/helpers.js", | ||
"require": "./dist/helpers.umd.cjs" | ||
}, | ||
"require": "./dist/helpers.umd.cjs", | ||
"default": "./dist/helpers.umd.cjs" | ||
}, | ||
"module": "src/helpers.js", | ||
"repository": { | ||
@@ -72,4 +53,3 @@ "type": "git", | ||
"cpd": "node_modules/jscpd/bin/jscpd src", | ||
"vulnerabilities": "npm audit --production", | ||
"build": "microbundle --target node src/helpers.js" | ||
"vulnerabilities": "npm audit --production" | ||
}, | ||
@@ -87,3 +67,2 @@ "devDependencies": { | ||
"jscpd": "^3.4.5", | ||
"microbundle": "^0.15.1", | ||
"prettier": "^3.0.0" | ||
@@ -101,7 +80,3 @@ }, | ||
"xml2js": "^0.5.0" | ||
}, | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/sponsors/w3nl" | ||
} | ||
} |
@@ -41,4 +41,4 @@ import multisort from './modules/multisort.js'; | ||
* @param {string} key | ||
* @param {string} find | ||
* @param {boolean=} operator | ||
* @param {any} find | ||
* @param {(boolean|string)=} operator | ||
* | ||
@@ -54,3 +54,3 @@ * @return {any[]} | ||
* | ||
* @param {string} key | ||
* @param {string|string[]} key | ||
* | ||
@@ -57,0 +57,0 @@ * @return {any[]} |
@@ -6,3 +6,3 @@ export default function first(originalArray) { | ||
return originalArray[0]; | ||
return originalArray.at(0); | ||
} |
@@ -6,3 +6,3 @@ export default function last(originalArray) { | ||
return originalArray[originalArray.length - 1]; | ||
return originalArray.at(-1); | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11
24986
20
452
1