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.3 to 3.1.4

6

CHANGELOG.md
# Changelog
## [3.1.3](https://github.com/supercharge/collections/compare/v3.1.3...v3.1.4) - 2021-02-05
### Fixed
- fixed types for `first` and `shift`
## [3.1.3](https://github.com/supercharge/collections/compare/v3.1.2...v3.1.3) - 2021-01-28

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

7

dist/sync-collection.d.ts

@@ -133,3 +133,3 @@ import { PendingAsyncCollection } from './pending-async-collection';

*/
find(predicate: (value: T, index: number, items: T[]) => T): T;
find(predicate: (value: T, index: number, items: T[]) => T): T | undefined;
find(predicate: (value: T, index: number, items: T[]) => Promise<T>): Promise<T>;

@@ -144,3 +144,4 @@ /**

*/
first(predicate?: (value: T, index: number, items: T[]) => T): T;
first(): T | undefined;
first(predicate?: (value: T, index: number, items: T[]) => T): T | undefined;
first(predicate?: (value: T, index: number, items: T[]) => Promise<T>): PendingAsyncCollection<T>;

@@ -363,3 +364,3 @@ /**

*/
shift(): T;
shift(): T | undefined;
/**

@@ -366,0 +367,0 @@ * Returns the number of items in the collection.

{
"name": "@supercharge/collections",
"description": "Supercharge collections",
"version": "3.1.3",
"version": "3.1.4",
"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