buffered-async-iterable
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,11 +0,11 @@ | ||
export function mergeIterables<T>(input: (AsyncIterable<T> | Iterable<T> | T[])[], { bufferSize }?: { | ||
export function mergeIterables<T>(input: Array<AsyncIterable<T> | Iterable<T> | T[]>, { bufferSize }?: { | ||
bufferSize?: number | undefined; | ||
} | undefined): AsyncIterable<T>; | ||
export function bufferedAsyncMap<T, R>(input: AsyncIterable<T> | Iterable<T> | T[], callback: (item: T) => Promise<R> | AsyncIterable<R>, options?: { | ||
export function bufferedAsyncMap<T, R>(input: AsyncIterable<T> | Iterable<T> | T[], callback: (item: T) => (Promise<R> | AsyncIterable<R>), options?: { | ||
bufferSize?: number | undefined; | ||
ordered?: boolean | undefined; | ||
} | undefined): AsyncIterableIterator<R> & { | ||
return: (value?: any) => Promise<IteratorResult<R, any>>; | ||
throw: (e?: any) => Promise<IteratorResult<R, any>>; | ||
return: NonNullable<AsyncIterableIterator<R>["return"]>; | ||
throw: NonNullable<AsyncIterableIterator<R>["throw"]>; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,3 +0,1 @@ | ||
/* eslint-disable promise/prefer-await-to-then */ | ||
// TODO: Get inspired by Matteos https://github.com/mcollina/hwp/blob/main/index.js, eg AbortController is nice? | ||
@@ -173,3 +171,2 @@ // TODO: Check docs here https://tc39.es/ecma262/#sec-operations-on-iterator-objects | ||
// eslint-disable-next-line promise/no-callback-in-promise | ||
const callbackResult = callback(result.value); | ||
@@ -176,0 +173,0 @@ const isSubIterator = isAsyncIterable(callbackResult); |
{ | ||
"name": "buffered-async-iterable", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Creates a prefetched async iterable", | ||
@@ -35,3 +35,3 @@ "homepage": "http://github.com/voxpelli/buffered-async-iterable", | ||
"build": "run-s build:*", | ||
"check:installed-check": "installed-check", | ||
"check:installed-check": "installed-check -i @voxpelli/eslint-config -i eslint", | ||
"check:knip": "knip", | ||
@@ -54,32 +54,24 @@ "check:lint": "eslint --report-unused-disable-directives .", | ||
"@types/chai-quantifiers": "^1.0.4", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^18.19.24", | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "^18.19.39", | ||
"@types/sinon": "^17.0.3", | ||
"@types/sinon-chai": "^3.2.12", | ||
"@voxpelli/eslint-config": "^19.0.0", | ||
"@voxpelli/tsconfig": "^11.0.0", | ||
"c8": "^9.1.0", | ||
"@voxpelli/eslint-config": "^20.0.0-beta.3", | ||
"@voxpelli/tsconfig": "^12.0.1", | ||
"c8": "^10.1.2", | ||
"chai": "^4.4.1", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-quantifiers": "^1.0.18", | ||
"eslint": "^8.57.0", | ||
"eslint-plugin-es-x": "^7.6.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jsdoc": "^46.10.1", | ||
"eslint-plugin-mocha": "^10.4.3", | ||
"eslint-plugin-n": "^16.6.2", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-security": "^1.7.1", | ||
"eslint-plugin-sort-destructure-keys": "^1.6.0", | ||
"eslint-plugin-unicorn": "^48.0.1", | ||
"eslint": "^9.5.0", | ||
"husky": "^9.0.11", | ||
"installed-check": "^8.0.1", | ||
"knip": "^5.15.0", | ||
"mocha": "^10.4.0", | ||
"npm-run-all2": "^6.1.2", | ||
"sinon": "^17.0.1", | ||
"installed-check": "^9.3.0", | ||
"knip": "^5.22.3", | ||
"mocha": "^10.5.0", | ||
"npm-run-all2": "^6.2.0", | ||
"sinon": "^18.0.0", | ||
"sinon-chai": "^3.7.0", | ||
"type-coverage": "^2.28.2", | ||
"typescript": "~5.4.5" | ||
"type-coverage": "^2.29.0", | ||
"typescript": "~5.5.2", | ||
"validate-conventional-commit": "^1.0.3" | ||
} | ||
} |
@@ -16,3 +16,3 @@ <div align="center"> | ||
[![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)](https://github.com/voxpelli/types-in-js) | ||
[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg)](https://github.com/voxpelli/eslint-config) | ||
[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-7fffff?style=flat&labelColor=ff80ff)](https://github.com/neostandard/neostandard) | ||
[![Follow @voxpelli@mastodon.social](https://img.shields.io/mastodon/follow/109247025527949675?domain=https%3A%2F%2Fmastodon.social&style=social)](https://mastodon.social/@voxpelli) | ||
@@ -19,0 +19,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22239
24
343