Socket
Socket
Sign inDemoInstall

@supercharge/collections

Package Overview
Dependencies
2
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.0 to 3.1.1

6

CHANGELOG.md
# Changelog
## [3.1.1](https://github.com/supercharge/collections/compare/v3.1.0...v3.1.1) - 2021-01-03
### Fixed
- fixed types: make `predicate` parameter optional for `Collection#first`
## [3.1.0](https://github.com/supercharge/collections/compare/v3.0.0...v3.1.0) - 2020-12-02

@@ -4,0 +10,0 @@

2

dist/collection.d.ts

@@ -115,3 +115,3 @@ export declare class Collection {

*/
first(callback: Function): Promise<any>;
first(callback?: Function): Promise<any>;
/**

@@ -118,0 +118,0 @@ * Asynchronous version of Array#flatMap(). It invokes the `callback`

@@ -149,3 +149,3 @@ interface QueueItem {

*/
first<S extends T>(predicate: (value: T, index: number, items: T[]) => value is S): Promise<any>;
first<S extends T>(predicate?: (value: T, index: number, items: T[]) => value is S): Promise<any>;
/**

@@ -152,0 +152,0 @@ * Flattens the collection one level deep.

{
"name": "@supercharge/collections",
"description": "Supercharge collections",
"version": "3.1.0",
"version": "3.1.1",
"author": "Marcus Pöhls <marcus@superchargejs.com>",

@@ -6,0 +6,0 @@ "bugs": {

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