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

@hckrnews/arrays

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hckrnews/arrays - npm Package Compare versions

Comparing version 3.1.8 to 4.0.0

35

package.json
{
"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"
}
}

6

src/helpers.js

@@ -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);
}
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