Socket
Socket
Sign inDemoInstall

it-take

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

it-take - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

dist/src/index.d.ts

@@ -5,4 +5,4 @@ /**

declare function take<T>(source: Iterable<T>, limit: number): Generator<T, void, undefined>;
declare function take<T>(source: AsyncIterable<T>, limit: number): AsyncGenerator<T, void, undefined>;
declare function take<T>(source: Iterable<T> | AsyncIterable<T>, limit: number): AsyncGenerator<T, void, undefined>;
export default take;
//# sourceMappingURL=index.d.ts.map
{
"name": "it-take",
"version": "3.0.0",
"version": "3.0.1",
"description": "Stop iteration after n items have been received",

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

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

function take <T> (source: Iterable<T>, limit: number): Generator<T, void, undefined>
function take <T> (source: AsyncIterable<T>, limit: number): AsyncGenerator<T, void, undefined>
function take <T> (source: AsyncIterable<T> | Iterable<T>, limit: number): AsyncGenerator<T, void, undefined> | Generator<T, void, undefined> {
function take <T> (source: Iterable<T> | AsyncIterable<T>, limit: number): AsyncGenerator<T, void, undefined>
function take <T> (source: Iterable<T> | AsyncIterable<T>, limit: number): AsyncGenerator<T, void, undefined> | Generator<T, void, undefined> {
if (isAsyncIterable(source)) {

@@ -13,0 +13,0 @@ return (async function * () {

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