Socket
Socket
Sign inDemoInstall

@supercharge/collections

Package Overview
Dependencies
1
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.0 to 4.3.1

dist/sync-collection-iterator.d.ts

3

dist/collection.js

@@ -528,4 +528,3 @@ 'use strict';

async some(callback) {
const mapped = await this.map(callback);
return mapped.some(value => value);
return !!await this.find(callback);
}

@@ -532,0 +531,0 @@ /**

@@ -264,4 +264,4 @@ import { QueueItem } from './contracts';

*/
map<R>(action: (value: T, index: number, items: T[]) => R): PendingAsyncCollection<R>;
map<R>(action: (value: T, index: number, items: T[]) => Promise<R>): PendingAsyncCollection<R>;
map<R>(action: (value: T, index: number, items: T[]) => R): PendingAsyncCollection<R>;
/**

@@ -275,4 +275,4 @@ * A variant of the `map` method running the async `action`

*/
mapIf<R>(condition: boolean, action: (value: T, index: number, items: T[]) => R): PendingAsyncCollection<R>;
mapIf<R>(condition: boolean, action: (value: T, index: number, items: T[]) => Promise<R>): PendingAsyncCollection<R>;
mapIf<R>(condition: boolean, action: (value: T, index: number, items: T[]) => R): PendingAsyncCollection<R>;
/**

@@ -279,0 +279,0 @@ * Returns the max value in the collection.

{
"name": "@supercharge/collections",
"description": "async/await-ready array methods for JavaScript and Node.js",
"version": "4.3.0",
"version": "4.3.1",
"author": "Marcus Pöhls <marcus@superchargejs.com>",

@@ -13,9 +13,9 @@ "bugs": {

"devDependencies": {
"@supercharge/eslint-config-typescript": "~1.0.1",
"@supercharge/eslint-config-typescript": "~2.3.1",
"@supercharge/tsconfig": "~1.0.0",
"c8": "~7.11.0",
"eslint": "~7.32.0",
"expect": "~27.5.1",
"typescript": "~4.4.4",
"uvu": "~0.5.3"
"c8": "~7.12.0",
"eslint": "~8.26.0",
"expect": "~29.2.2",
"typescript": "~4.8.4",
"uvu": "~0.5.6"
},

@@ -22,0 +22,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc