Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

it-batch

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

it-batch - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

dist/src/index.d.ts

@@ -6,4 +6,4 @@ /**

declare function batch<T>(source: Iterable<T>, size?: number): Generator<T[], void, undefined>;
declare function batch<T>(source: AsyncIterable<T> | Iterable<T>, size?: number): AsyncGenerator<T[], void, undefined>;
declare function batch<T>(source: Iterable<T> | AsyncIterable<T>, size?: number): AsyncGenerator<T[], void, undefined>;
export default batch;
//# sourceMappingURL=index.d.ts.map
{
"name": "it-batch",
"version": "3.0.0",
"version": "3.0.1",
"description": "Takes an async iterator that emits things and emits them as fixed size batches",

@@ -5,0 +5,0 @@ "author": "Alex Potsides <alex@achingbrain.net>",

@@ -10,4 +10,4 @@ function isAsyncIterable <T> (thing: any): thing is AsyncIterable<T> {

function batch <T> (source: Iterable<T>, size?: number): Generator<T[], void, undefined>
function batch <T> (source: AsyncIterable<T> | Iterable<T>, size?: number): AsyncGenerator<T[], void, undefined>
function batch <T> (source: AsyncIterable<T> | Iterable<T>, size: number = 1): Generator<T[], void, undefined> | AsyncGenerator<T[], void, undefined> {
function batch <T> (source: Iterable<T> | AsyncIterable<T>, size?: number): AsyncGenerator<T[], void, undefined>
function batch <T> (source: Iterable<T> | AsyncIterable<T>, size: number = 1): Generator<T[], void, undefined> | AsyncGenerator<T[], void, undefined> {
size = Number(size)

@@ -14,0 +14,0 @@

Sorry, the diff of this file is not supported yet

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