iter-fest 0.1.1-main.cd8f1a7 → 0.1.1-main.d88474c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -117
- package/dist/{chunk-H27CTQGV.mjs → chunk-27NJVC7K.mjs} +5 -8
- package/dist/chunk-27NJVC7K.mjs.map +1 -0
- package/dist/chunk-44W7OTNE.mjs +12 -0
- package/dist/chunk-44W7OTNE.mjs.map +1 -0
- package/dist/chunk-5CHMNKXJ.mjs +20 -0
- package/dist/chunk-5CHMNKXJ.mjs.map +1 -0
- package/dist/chunk-5CRMPYKD.mjs +19 -0
- package/dist/chunk-5CRMPYKD.mjs.map +1 -0
- package/dist/chunk-6C3P4TNK.mjs +19 -0
- package/dist/chunk-6C3P4TNK.mjs.map +1 -0
- package/dist/{chunk-RVIERPEV.mjs → chunk-EUVK4YM7.mjs} +5 -6
- package/dist/chunk-EUVK4YM7.mjs.map +1 -0
- package/dist/chunk-EZC33HE6.mjs +15 -0
- package/dist/chunk-EZC33HE6.mjs.map +1 -0
- package/dist/chunk-GWZF5BB7.mjs +16 -0
- package/dist/chunk-GWZF5BB7.mjs.map +1 -0
- package/dist/chunk-HYU4EN7J.mjs +20 -0
- package/dist/chunk-HYU4EN7J.mjs.map +1 -0
- package/dist/chunk-JU353VSE.mjs +16 -0
- package/dist/chunk-JU353VSE.mjs.map +1 -0
- package/dist/{chunk-EQZQP6GW.mjs → chunk-KONB7TV6.mjs} +5 -8
- package/dist/chunk-KONB7TV6.mjs.map +1 -0
- package/dist/{chunk-H5ARVU55.mjs → chunk-MDBK7ND5.mjs} +5 -8
- package/dist/chunk-MDBK7ND5.mjs.map +1 -0
- package/dist/chunk-MNLOWKTC.mjs +19 -0
- package/dist/chunk-MNLOWKTC.mjs.map +1 -0
- package/dist/{chunk-YJSIVBF7.mjs → chunk-MOBXUTO5.mjs} +5 -5
- package/dist/chunk-MOBXUTO5.mjs.map +1 -0
- package/dist/chunk-O5SQJUKB.mjs +37 -0
- package/dist/chunk-O5SQJUKB.mjs.map +1 -0
- package/dist/chunk-TEI3K6GT.mjs +21 -0
- package/dist/chunk-TEI3K6GT.mjs.map +1 -0
- package/dist/{chunk-AN54W42O.mjs → chunk-UIEKIMLW.mjs} +5 -8
- package/dist/chunk-UIEKIMLW.mjs.map +1 -0
- package/dist/chunk-V6OWQQ3Q.mjs +20 -0
- package/dist/chunk-V6OWQQ3Q.mjs.map +1 -0
- package/dist/{chunk-IZXDQ25M.mjs → chunk-WKIRSZXX.mjs} +5 -8
- package/dist/chunk-WKIRSZXX.mjs.map +1 -0
- package/dist/chunk-XKBVB2JN.mjs +12 -0
- package/dist/chunk-XKBVB2JN.mjs.map +1 -0
- package/dist/chunk-XW34KZRY.mjs +17 -0
- package/dist/chunk-XW34KZRY.mjs.map +1 -0
- package/dist/chunk-Y5M2C7NQ.mjs +13 -0
- package/dist/chunk-Y5M2C7NQ.mjs.map +1 -0
- package/dist/chunk-ZUBHGSCW.mjs +18 -0
- package/dist/chunk-ZUBHGSCW.mjs.map +1 -0
- package/dist/iter-fest.d.mts +23 -42
- package/dist/iter-fest.d.ts +23 -42
- package/dist/{iter-fest.iteratorAt.d.mts → iter-fest.iterableAt.d.mts} +2 -2
- package/dist/{iter-fest.iteratorAt.d.ts → iter-fest.iterableAt.d.ts} +2 -2
- package/dist/{iter-fest.iteratorAt.js → iter-fest.iterableAt.js} +10 -21
- package/dist/iter-fest.iterableAt.js.map +1 -0
- package/dist/iter-fest.iterableAt.mjs +8 -0
- package/dist/iter-fest.iterableConcat.d.mts +16 -0
- package/dist/iter-fest.iterableConcat.d.ts +16 -0
- package/dist/iter-fest.iterableConcat.js +40 -0
- package/dist/iter-fest.iterableConcat.js.map +1 -0
- package/dist/iter-fest.iterableConcat.mjs +7 -0
- package/dist/iter-fest.iterableEntries.d.mts +6 -0
- package/dist/iter-fest.iterableEntries.d.ts +6 -0
- package/dist/{iter-fest.iteratorEntries.js → iter-fest.iterableEntries.js} +9 -22
- package/dist/iter-fest.iterableEntries.js.map +1 -0
- package/dist/iter-fest.iterableEntries.mjs +7 -0
- package/dist/iter-fest.iterableEvery.d.mts +24 -0
- package/dist/iter-fest.iterableEvery.d.ts +24 -0
- package/dist/iter-fest.iterableEvery.js +43 -0
- package/dist/iter-fest.iterableEvery.js.map +1 -0
- package/dist/iter-fest.iterableEvery.mjs +7 -0
- package/dist/iter-fest.iterableFilter.d.mts +16 -0
- package/dist/iter-fest.iterableFilter.d.ts +16 -0
- package/dist/iter-fest.iterableFilter.js +42 -0
- package/dist/iter-fest.iterableFilter.js.map +1 -0
- package/dist/iter-fest.iterableFilter.mjs +7 -0
- package/dist/iter-fest.iterableFind.d.mts +15 -0
- package/dist/iter-fest.iterableFind.d.ts +15 -0
- package/dist/iter-fest.iterableFind.js +43 -0
- package/dist/iter-fest.iterableFind.js.map +1 -0
- package/dist/iter-fest.iterableFind.mjs +7 -0
- package/dist/{iter-fest.iteratorFindIndex.d.mts → iter-fest.iterableFindIndex.d.mts} +4 -4
- package/dist/{iter-fest.iteratorFindIndex.d.ts → iter-fest.iterableFindIndex.d.ts} +4 -4
- package/dist/{iter-fest.iteratorFindIndex.js → iter-fest.iterableFindIndex.js} +10 -23
- package/dist/iter-fest.iterableFindIndex.js.map +1 -0
- package/dist/iter-fest.iterableFindIndex.mjs +7 -0
- package/dist/{iter-fest.iteratorFindLast.d.mts → iter-fest.iterableFindLast.d.mts} +5 -5
- package/dist/{iter-fest.iteratorFindLast.d.ts → iter-fest.iterableFindLast.d.ts} +5 -5
- package/dist/{iter-fest.iteratorFindLast.js → iter-fest.iterableFindLast.js} +10 -23
- package/dist/iter-fest.iterableFindLast.js.map +1 -0
- package/dist/iter-fest.iterableFindLast.mjs +7 -0
- package/dist/{iter-fest.iteratorFindLastIndex.d.mts → iter-fest.iterableFindLastIndex.d.mts} +4 -4
- package/dist/{iter-fest.iteratorFindLastIndex.d.ts → iter-fest.iterableFindLastIndex.d.ts} +4 -4
- package/dist/{iter-fest.iteratorFindLastIndex.js → iter-fest.iterableFindLastIndex.js} +10 -23
- package/dist/iter-fest.iterableFindLastIndex.js.map +1 -0
- package/dist/iter-fest.iterableFindLastIndex.mjs +7 -0
- package/dist/iter-fest.iterableForEach.d.mts +10 -0
- package/dist/iter-fest.iterableForEach.d.ts +10 -0
- package/dist/iter-fest.iterableForEach.js +40 -0
- package/dist/iter-fest.iterableForEach.js.map +1 -0
- package/dist/iter-fest.iterableForEach.mjs +7 -0
- package/dist/iter-fest.iterableGetReadable.d.mts +3 -0
- package/dist/iter-fest.iterableGetReadable.d.ts +3 -0
- package/dist/{iter-fest.readableStreamFrom.js → iter-fest.iterableGetReadable.js} +9 -9
- package/dist/iter-fest.iterableGetReadable.js.map +1 -0
- package/dist/iter-fest.iterableGetReadable.mjs +7 -0
- package/dist/iter-fest.iterableIncludes.d.mts +9 -0
- package/dist/iter-fest.iterableIncludes.d.ts +9 -0
- package/dist/{iter-fest.iteratorIncludes.js → iter-fest.iterableIncludes.js} +10 -21
- package/dist/iter-fest.iterableIncludes.js.map +1 -0
- package/dist/iter-fest.iterableIncludes.mjs +8 -0
- package/dist/iter-fest.iterableIndexOf.d.mts +9 -0
- package/dist/iter-fest.iterableIndexOf.d.ts +9 -0
- package/dist/{iter-fest.iteratorIndexOf.js → iter-fest.iterableIndexOf.js} +10 -21
- package/dist/iter-fest.iterableIndexOf.js.map +1 -0
- package/dist/iter-fest.iterableIndexOf.mjs +8 -0
- package/dist/iter-fest.iterableJoin.d.mts +8 -0
- package/dist/iter-fest.iterableJoin.d.ts +8 -0
- package/dist/{iter-fest.iteratorToString.js → iter-fest.iterableJoin.js} +9 -27
- package/dist/iter-fest.iterableJoin.js.map +1 -0
- package/dist/iter-fest.iterableJoin.mjs +7 -0
- package/dist/iter-fest.iterableKeys.d.mts +6 -0
- package/dist/iter-fest.iterableKeys.d.ts +6 -0
- package/dist/{iter-fest.iteratorKeys.js → iter-fest.iterableKeys.js} +9 -22
- package/dist/iter-fest.iterableKeys.js.map +1 -0
- package/dist/iter-fest.iterableKeys.mjs +7 -0
- package/dist/iter-fest.iterableMap.d.mts +8 -0
- package/dist/iter-fest.iterableMap.d.ts +8 -0
- package/dist/iter-fest.iterableMap.js +39 -0
- package/dist/iter-fest.iterableMap.js.map +1 -0
- package/dist/iter-fest.iterableMap.mjs +7 -0
- package/dist/{iter-fest.iteratorReduce.d.mts → iter-fest.iterableReduce.d.mts} +9 -13
- package/dist/{iter-fest.iteratorReduce.d.ts → iter-fest.iterableReduce.d.ts} +9 -13
- package/dist/iter-fest.iterableReduce.js +41 -0
- package/dist/iter-fest.iterableReduce.js.map +1 -0
- package/dist/iter-fest.iterableReduce.mjs +7 -0
- package/dist/{iter-fest.iteratorSlice.d.mts → iter-fest.iterableSlice.d.mts} +8 -8
- package/dist/{iter-fest.iteratorSlice.d.ts → iter-fest.iterableSlice.d.ts} +8 -8
- package/dist/{iter-fest.iteratorSlice.js → iter-fest.iterableSlice.js} +10 -21
- package/dist/iter-fest.iterableSlice.js.map +1 -0
- package/dist/iter-fest.iterableSlice.mjs +8 -0
- package/dist/iter-fest.iterableSome.d.mts +12 -0
- package/dist/iter-fest.iterableSome.d.ts +12 -0
- package/dist/iter-fest.iterableSome.js +43 -0
- package/dist/iter-fest.iterableSome.js.map +1 -0
- package/dist/iter-fest.iterableSome.mjs +7 -0
- package/dist/{iter-fest.iteratorToSpliced.d.mts → iter-fest.iterableToSpliced.d.mts} +3 -3
- package/dist/{iter-fest.iteratorToSpliced.d.ts → iter-fest.iterableToSpliced.d.ts} +3 -3
- package/dist/{iter-fest.iteratorToSpliced.js → iter-fest.iterableToSpliced.js} +10 -21
- package/dist/iter-fest.iterableToSpliced.js.map +1 -0
- package/dist/iter-fest.iterableToSpliced.mjs +8 -0
- package/dist/iter-fest.iterableToString.d.mts +6 -0
- package/dist/iter-fest.iterableToString.d.ts +6 -0
- package/dist/{iter-fest.iteratorJoin.js → iter-fest.iterableToString.js} +15 -21
- package/dist/iter-fest.iterableToString.js.map +1 -0
- package/dist/iter-fest.iterableToString.mjs +8 -0
- package/dist/iter-fest.js +237 -370
- package/dist/iter-fest.js.map +1 -1
- package/dist/iter-fest.mjs +76 -152
- package/dist/iter-fest.pushAsyncIterableIterator.d.mts +9 -0
- package/dist/iter-fest.pushAsyncIterableIterator.d.ts +9 -0
- package/dist/{iter-fest.iterableWritableStream.js → iter-fest.pushAsyncIterableIterator.js} +30 -39
- package/dist/iter-fest.pushAsyncIterableIterator.js.map +1 -0
- package/dist/iter-fest.pushAsyncIterableIterator.mjs +7 -0
- package/dist/iter-fest.readerValues.d.mts +3 -0
- package/dist/iter-fest.readerValues.d.ts +3 -0
- package/dist/{iter-fest.readableStreamValues.js → iter-fest.readerValues.js} +9 -10
- package/dist/iter-fest.readerValues.js.map +1 -0
- package/dist/iter-fest.readerValues.mjs +7 -0
- package/package.json +117 -307
- package/dist/chunk-3S6LCGE6.mjs +0 -10
- package/dist/chunk-3S6LCGE6.mjs.map +0 -1
- package/dist/chunk-4RT2FROS.mjs +0 -10
- package/dist/chunk-4RT2FROS.mjs.map +0 -1
- package/dist/chunk-4ZBMXHD6.mjs +0 -10
- package/dist/chunk-4ZBMXHD6.mjs.map +0 -1
- package/dist/chunk-72AEHTPQ.mjs +0 -38
- package/dist/chunk-72AEHTPQ.mjs.map +0 -1
- package/dist/chunk-AN54W42O.mjs.map +0 -1
- package/dist/chunk-AOZVPHE4.mjs +0 -10
- package/dist/chunk-AOZVPHE4.mjs.map +0 -1
- package/dist/chunk-BSAPKNNZ.mjs +0 -16
- package/dist/chunk-BSAPKNNZ.mjs.map +0 -1
- package/dist/chunk-BWMXKULC.mjs +0 -46
- package/dist/chunk-BWMXKULC.mjs.map +0 -1
- package/dist/chunk-CNCNQPK3.mjs +0 -16
- package/dist/chunk-CNCNQPK3.mjs.map +0 -1
- package/dist/chunk-CNKIGQUS.mjs +0 -10
- package/dist/chunk-CNKIGQUS.mjs.map +0 -1
- package/dist/chunk-DC2ZV7KQ.mjs +0 -10
- package/dist/chunk-DC2ZV7KQ.mjs.map +0 -1
- package/dist/chunk-EQZQP6GW.mjs.map +0 -1
- package/dist/chunk-FBST4AUL.mjs +0 -10
- package/dist/chunk-FBST4AUL.mjs.map +0 -1
- package/dist/chunk-FEEBFWAI.mjs +0 -24
- package/dist/chunk-FEEBFWAI.mjs.map +0 -1
- package/dist/chunk-FMIHIL6A.mjs +0 -10
- package/dist/chunk-FMIHIL6A.mjs.map +0 -1
- package/dist/chunk-GFJGWVES.mjs +0 -10
- package/dist/chunk-GFJGWVES.mjs.map +0 -1
- package/dist/chunk-H27CTQGV.mjs.map +0 -1
- package/dist/chunk-H5ARVU55.mjs.map +0 -1
- package/dist/chunk-IZXDQ25M.mjs.map +0 -1
- package/dist/chunk-J3FQSENW.mjs +0 -10
- package/dist/chunk-J3FQSENW.mjs.map +0 -1
- package/dist/chunk-JVR6BUJA.mjs +0 -10
- package/dist/chunk-JVR6BUJA.mjs.map +0 -1
- package/dist/chunk-K4RCFPTZ.mjs +0 -10
- package/dist/chunk-K4RCFPTZ.mjs.map +0 -1
- package/dist/chunk-LB3MK3EU.mjs +0 -10
- package/dist/chunk-LB3MK3EU.mjs.map +0 -1
- package/dist/chunk-LIMQXDFK.mjs +0 -10
- package/dist/chunk-LIMQXDFK.mjs.map +0 -1
- package/dist/chunk-MO7HMLOZ.mjs +0 -24
- package/dist/chunk-MO7HMLOZ.mjs.map +0 -1
- package/dist/chunk-MYSNSDM7.mjs +0 -13
- package/dist/chunk-MYSNSDM7.mjs.map +0 -1
- package/dist/chunk-NLXKATXE.mjs +0 -10
- package/dist/chunk-NLXKATXE.mjs.map +0 -1
- package/dist/chunk-NZRXO7EY.mjs +0 -24
- package/dist/chunk-NZRXO7EY.mjs.map +0 -1
- package/dist/chunk-OCK7PKGO.mjs +0 -23
- package/dist/chunk-OCK7PKGO.mjs.map +0 -1
- package/dist/chunk-ODPKEUIR.mjs +0 -10
- package/dist/chunk-ODPKEUIR.mjs.map +0 -1
- package/dist/chunk-OWUGLCQB.mjs +0 -10
- package/dist/chunk-OWUGLCQB.mjs.map +0 -1
- package/dist/chunk-PGJSIDLV.mjs +0 -25
- package/dist/chunk-PGJSIDLV.mjs.map +0 -1
- package/dist/chunk-QLVU73KN.mjs +0 -10
- package/dist/chunk-QLVU73KN.mjs.map +0 -1
- package/dist/chunk-R6SXIXMH.mjs +0 -10
- package/dist/chunk-R6SXIXMH.mjs.map +0 -1
- package/dist/chunk-RVIERPEV.mjs.map +0 -1
- package/dist/chunk-S2LECQKY.mjs +0 -10
- package/dist/chunk-S2LECQKY.mjs.map +0 -1
- package/dist/chunk-TDHR35S7.mjs +0 -10
- package/dist/chunk-TDHR35S7.mjs.map +0 -1
- package/dist/chunk-VCKLUCOT.mjs +0 -10
- package/dist/chunk-VCKLUCOT.mjs.map +0 -1
- package/dist/chunk-VIMGYUMQ.mjs +0 -10
- package/dist/chunk-VIMGYUMQ.mjs.map +0 -1
- package/dist/chunk-WUFMEPOM.mjs +0 -10
- package/dist/chunk-WUFMEPOM.mjs.map +0 -1
- package/dist/chunk-XQDGXAAF.mjs +0 -10
- package/dist/chunk-XQDGXAAF.mjs.map +0 -1
- package/dist/chunk-YJSIVBF7.mjs.map +0 -1
- package/dist/iter-fest.asyncIteratorDrop.d.mts +0 -12
- package/dist/iter-fest.asyncIteratorDrop.d.ts +0 -12
- package/dist/iter-fest.asyncIteratorDrop.js +0 -44
- package/dist/iter-fest.asyncIteratorDrop.js.map +0 -1
- package/dist/iter-fest.asyncIteratorDrop.mjs +0 -7
- package/dist/iter-fest.asyncIteratorEvery.d.mts +0 -25
- package/dist/iter-fest.asyncIteratorEvery.d.ts +0 -25
- package/dist/iter-fest.asyncIteratorEvery.js +0 -44
- package/dist/iter-fest.asyncIteratorEvery.js.map +0 -1
- package/dist/iter-fest.asyncIteratorEvery.mjs +0 -7
- package/dist/iter-fest.asyncIteratorFilter.d.mts +0 -18
- package/dist/iter-fest.asyncIteratorFilter.d.ts +0 -18
- package/dist/iter-fest.asyncIteratorFilter.js +0 -44
- package/dist/iter-fest.asyncIteratorFilter.js.map +0 -1
- package/dist/iter-fest.asyncIteratorFilter.mjs +0 -7
- package/dist/iter-fest.asyncIteratorFind.d.mts +0 -14
- package/dist/iter-fest.asyncIteratorFind.d.ts +0 -14
- package/dist/iter-fest.asyncIteratorFind.js +0 -44
- package/dist/iter-fest.asyncIteratorFind.js.map +0 -1
- package/dist/iter-fest.asyncIteratorFind.mjs +0 -7
- package/dist/iter-fest.asyncIteratorFlatMap.d.mts +0 -12
- package/dist/iter-fest.asyncIteratorFlatMap.d.ts +0 -12
- package/dist/iter-fest.asyncIteratorFlatMap.js +0 -44
- package/dist/iter-fest.asyncIteratorFlatMap.js.map +0 -1
- package/dist/iter-fest.asyncIteratorFlatMap.mjs +0 -7
- package/dist/iter-fest.asyncIteratorForEach.d.mts +0 -10
- package/dist/iter-fest.asyncIteratorForEach.d.ts +0 -10
- package/dist/iter-fest.asyncIteratorForEach.js +0 -44
- package/dist/iter-fest.asyncIteratorForEach.js.map +0 -1
- package/dist/iter-fest.asyncIteratorForEach.mjs +0 -7
- package/dist/iter-fest.asyncIteratorFrom.d.mts +0 -10
- package/dist/iter-fest.asyncIteratorFrom.d.ts +0 -10
- package/dist/iter-fest.asyncIteratorFrom.js +0 -44
- package/dist/iter-fest.asyncIteratorFrom.js.map +0 -1
- package/dist/iter-fest.asyncIteratorFrom.mjs +0 -7
- package/dist/iter-fest.asyncIteratorMap.d.mts +0 -10
- package/dist/iter-fest.asyncIteratorMap.d.ts +0 -10
- package/dist/iter-fest.asyncIteratorMap.js +0 -44
- package/dist/iter-fest.asyncIteratorMap.js.map +0 -1
- package/dist/iter-fest.asyncIteratorMap.mjs +0 -7
- package/dist/iter-fest.asyncIteratorReduce.d.mts +0 -23
- package/dist/iter-fest.asyncIteratorReduce.d.ts +0 -23
- package/dist/iter-fest.asyncIteratorReduce.js +0 -44
- package/dist/iter-fest.asyncIteratorReduce.js.map +0 -1
- package/dist/iter-fest.asyncIteratorReduce.mjs +0 -7
- package/dist/iter-fest.asyncIteratorSome.d.mts +0 -10
- package/dist/iter-fest.asyncIteratorSome.d.ts +0 -10
- package/dist/iter-fest.asyncIteratorSome.js +0 -44
- package/dist/iter-fest.asyncIteratorSome.js.map +0 -1
- package/dist/iter-fest.asyncIteratorSome.mjs +0 -7
- package/dist/iter-fest.asyncIteratorTake.d.mts +0 -12
- package/dist/iter-fest.asyncIteratorTake.d.ts +0 -12
- package/dist/iter-fest.asyncIteratorTake.js +0 -44
- package/dist/iter-fest.asyncIteratorTake.js.map +0 -1
- package/dist/iter-fest.asyncIteratorTake.mjs +0 -7
- package/dist/iter-fest.asyncIteratorToArray.d.mts +0 -10
- package/dist/iter-fest.asyncIteratorToArray.d.ts +0 -10
- package/dist/iter-fest.asyncIteratorToArray.js +0 -44
- package/dist/iter-fest.asyncIteratorToArray.js.map +0 -1
- package/dist/iter-fest.asyncIteratorToArray.mjs +0 -7
- package/dist/iter-fest.iterableWritableStream.d.mts +0 -7
- package/dist/iter-fest.iterableWritableStream.d.ts +0 -7
- package/dist/iter-fest.iterableWritableStream.js.map +0 -1
- package/dist/iter-fest.iterableWritableStream.mjs +0 -7
- package/dist/iter-fest.iteratorAt.js.map +0 -1
- package/dist/iter-fest.iteratorAt.mjs +0 -9
- package/dist/iter-fest.iteratorConcat.d.mts +0 -16
- package/dist/iter-fest.iteratorConcat.d.ts +0 -16
- package/dist/iter-fest.iteratorConcat.js +0 -56
- package/dist/iter-fest.iteratorConcat.js.map +0 -1
- package/dist/iter-fest.iteratorConcat.mjs +0 -8
- package/dist/iter-fest.iteratorDrop.d.mts +0 -12
- package/dist/iter-fest.iteratorDrop.d.ts +0 -12
- package/dist/iter-fest.iteratorDrop.js +0 -44
- package/dist/iter-fest.iteratorDrop.js.map +0 -1
- package/dist/iter-fest.iteratorDrop.mjs +0 -7
- package/dist/iter-fest.iteratorEntries.d.mts +0 -6
- package/dist/iter-fest.iteratorEntries.d.ts +0 -6
- package/dist/iter-fest.iteratorEntries.js.map +0 -1
- package/dist/iter-fest.iteratorEntries.mjs +0 -8
- package/dist/iter-fest.iteratorEvery.d.mts +0 -25
- package/dist/iter-fest.iteratorEvery.d.ts +0 -25
- package/dist/iter-fest.iteratorEvery.js +0 -44
- package/dist/iter-fest.iteratorEvery.js.map +0 -1
- package/dist/iter-fest.iteratorEvery.mjs +0 -7
- package/dist/iter-fest.iteratorFilter.d.mts +0 -18
- package/dist/iter-fest.iteratorFilter.d.ts +0 -18
- package/dist/iter-fest.iteratorFilter.js +0 -44
- package/dist/iter-fest.iteratorFilter.js.map +0 -1
- package/dist/iter-fest.iteratorFilter.mjs +0 -7
- package/dist/iter-fest.iteratorFind.d.mts +0 -14
- package/dist/iter-fest.iteratorFind.d.ts +0 -14
- package/dist/iter-fest.iteratorFind.js +0 -44
- package/dist/iter-fest.iteratorFind.js.map +0 -1
- package/dist/iter-fest.iteratorFind.mjs +0 -7
- package/dist/iter-fest.iteratorFindIndex.js.map +0 -1
- package/dist/iter-fest.iteratorFindIndex.mjs +0 -8
- package/dist/iter-fest.iteratorFindLast.js.map +0 -1
- package/dist/iter-fest.iteratorFindLast.mjs +0 -8
- package/dist/iter-fest.iteratorFindLastIndex.js.map +0 -1
- package/dist/iter-fest.iteratorFindLastIndex.mjs +0 -8
- package/dist/iter-fest.iteratorFlatMap.d.mts +0 -12
- package/dist/iter-fest.iteratorFlatMap.d.ts +0 -12
- package/dist/iter-fest.iteratorFlatMap.js +0 -44
- package/dist/iter-fest.iteratorFlatMap.js.map +0 -1
- package/dist/iter-fest.iteratorFlatMap.mjs +0 -7
- package/dist/iter-fest.iteratorFlatMap.mjs.map +0 -1
- package/dist/iter-fest.iteratorForEach.d.mts +0 -10
- package/dist/iter-fest.iteratorForEach.d.ts +0 -10
- package/dist/iter-fest.iteratorForEach.js +0 -44
- package/dist/iter-fest.iteratorForEach.js.map +0 -1
- package/dist/iter-fest.iteratorForEach.mjs +0 -7
- package/dist/iter-fest.iteratorForEach.mjs.map +0 -1
- package/dist/iter-fest.iteratorFrom.d.mts +0 -10
- package/dist/iter-fest.iteratorFrom.d.ts +0 -10
- package/dist/iter-fest.iteratorFrom.js +0 -44
- package/dist/iter-fest.iteratorFrom.js.map +0 -1
- package/dist/iter-fest.iteratorFrom.mjs +0 -7
- package/dist/iter-fest.iteratorFrom.mjs.map +0 -1
- package/dist/iter-fest.iteratorIncludes.d.mts +0 -9
- package/dist/iter-fest.iteratorIncludes.d.ts +0 -9
- package/dist/iter-fest.iteratorIncludes.js.map +0 -1
- package/dist/iter-fest.iteratorIncludes.mjs +0 -9
- package/dist/iter-fest.iteratorIncludes.mjs.map +0 -1
- package/dist/iter-fest.iteratorIndexOf.d.mts +0 -9
- package/dist/iter-fest.iteratorIndexOf.d.ts +0 -9
- package/dist/iter-fest.iteratorIndexOf.js.map +0 -1
- package/dist/iter-fest.iteratorIndexOf.mjs +0 -9
- package/dist/iter-fest.iteratorIndexOf.mjs.map +0 -1
- package/dist/iter-fest.iteratorJoin.d.mts +0 -8
- package/dist/iter-fest.iteratorJoin.d.ts +0 -8
- package/dist/iter-fest.iteratorJoin.js.map +0 -1
- package/dist/iter-fest.iteratorJoin.mjs +0 -8
- package/dist/iter-fest.iteratorJoin.mjs.map +0 -1
- package/dist/iter-fest.iteratorKeys.d.mts +0 -6
- package/dist/iter-fest.iteratorKeys.d.ts +0 -6
- package/dist/iter-fest.iteratorKeys.js.map +0 -1
- package/dist/iter-fest.iteratorKeys.mjs +0 -8
- package/dist/iter-fest.iteratorKeys.mjs.map +0 -1
- package/dist/iter-fest.iteratorMap.d.mts +0 -10
- package/dist/iter-fest.iteratorMap.d.ts +0 -10
- package/dist/iter-fest.iteratorMap.js +0 -44
- package/dist/iter-fest.iteratorMap.js.map +0 -1
- package/dist/iter-fest.iteratorMap.mjs +0 -7
- package/dist/iter-fest.iteratorMap.mjs.map +0 -1
- package/dist/iter-fest.iteratorReduce.js +0 -44
- package/dist/iter-fest.iteratorReduce.js.map +0 -1
- package/dist/iter-fest.iteratorReduce.mjs +0 -7
- package/dist/iter-fest.iteratorReduce.mjs.map +0 -1
- package/dist/iter-fest.iteratorSlice.js.map +0 -1
- package/dist/iter-fest.iteratorSlice.mjs +0 -9
- package/dist/iter-fest.iteratorSlice.mjs.map +0 -1
- package/dist/iter-fest.iteratorSome.d.mts +0 -10
- package/dist/iter-fest.iteratorSome.d.ts +0 -10
- package/dist/iter-fest.iteratorSome.js +0 -44
- package/dist/iter-fest.iteratorSome.js.map +0 -1
- package/dist/iter-fest.iteratorSome.mjs +0 -7
- package/dist/iter-fest.iteratorSome.mjs.map +0 -1
- package/dist/iter-fest.iteratorTake.d.mts +0 -12
- package/dist/iter-fest.iteratorTake.d.ts +0 -12
- package/dist/iter-fest.iteratorTake.js +0 -44
- package/dist/iter-fest.iteratorTake.js.map +0 -1
- package/dist/iter-fest.iteratorTake.mjs +0 -7
- package/dist/iter-fest.iteratorTake.mjs.map +0 -1
- package/dist/iter-fest.iteratorToArray.d.mts +0 -10
- package/dist/iter-fest.iteratorToArray.d.ts +0 -10
- package/dist/iter-fest.iteratorToArray.js +0 -44
- package/dist/iter-fest.iteratorToArray.js.map +0 -1
- package/dist/iter-fest.iteratorToArray.mjs +0 -7
- package/dist/iter-fest.iteratorToArray.mjs.map +0 -1
- package/dist/iter-fest.iteratorToAsync.d.mts +0 -10
- package/dist/iter-fest.iteratorToAsync.d.ts +0 -10
- package/dist/iter-fest.iteratorToAsync.js +0 -44
- package/dist/iter-fest.iteratorToAsync.js.map +0 -1
- package/dist/iter-fest.iteratorToAsync.mjs +0 -7
- package/dist/iter-fest.iteratorToAsync.mjs.map +0 -1
- package/dist/iter-fest.iteratorToSpliced.js.map +0 -1
- package/dist/iter-fest.iteratorToSpliced.mjs +0 -9
- package/dist/iter-fest.iteratorToSpliced.mjs.map +0 -1
- package/dist/iter-fest.iteratorToString.d.mts +0 -6
- package/dist/iter-fest.iteratorToString.d.ts +0 -6
- package/dist/iter-fest.iteratorToString.js.map +0 -1
- package/dist/iter-fest.iteratorToString.mjs +0 -9
- package/dist/iter-fest.iteratorToString.mjs.map +0 -1
- package/dist/iter-fest.observableValues.d.mts +0 -7
- package/dist/iter-fest.observableValues.d.ts +0 -7
- package/dist/iter-fest.observableValues.js +0 -102
- package/dist/iter-fest.observableValues.js.map +0 -1
- package/dist/iter-fest.observableValues.mjs +0 -9
- package/dist/iter-fest.observableValues.mjs.map +0 -1
- package/dist/iter-fest.readableStreamFrom.d.mts +0 -3
- package/dist/iter-fest.readableStreamFrom.d.ts +0 -3
- package/dist/iter-fest.readableStreamFrom.js.map +0 -1
- package/dist/iter-fest.readableStreamFrom.mjs +0 -7
- package/dist/iter-fest.readableStreamFrom.mjs.map +0 -1
- package/dist/iter-fest.readableStreamValues.d.mts +0 -3
- package/dist/iter-fest.readableStreamValues.d.ts +0 -3
- package/dist/iter-fest.readableStreamValues.js.map +0 -1
- package/dist/iter-fest.readableStreamValues.mjs +0 -7
- package/dist/iter-fest.readableStreamValues.mjs.map +0 -1
- /package/dist/{iter-fest.asyncIteratorDrop.mjs.map → iter-fest.iterableAt.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorEvery.mjs.map → iter-fest.iterableConcat.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorFilter.mjs.map → iter-fest.iterableEntries.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorFind.mjs.map → iter-fest.iterableEvery.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorFlatMap.mjs.map → iter-fest.iterableFilter.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorForEach.mjs.map → iter-fest.iterableFind.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorFrom.mjs.map → iter-fest.iterableFindIndex.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorMap.mjs.map → iter-fest.iterableFindLast.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorReduce.mjs.map → iter-fest.iterableFindLastIndex.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorSome.mjs.map → iter-fest.iterableForEach.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorTake.mjs.map → iter-fest.iterableGetReadable.mjs.map} +0 -0
- /package/dist/{iter-fest.asyncIteratorToArray.mjs.map → iter-fest.iterableIncludes.mjs.map} +0 -0
- /package/dist/{iter-fest.iterableWritableStream.mjs.map → iter-fest.iterableIndexOf.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorAt.mjs.map → iter-fest.iterableJoin.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorConcat.mjs.map → iter-fest.iterableKeys.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorDrop.mjs.map → iter-fest.iterableMap.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorEntries.mjs.map → iter-fest.iterableReduce.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorEvery.mjs.map → iter-fest.iterableSlice.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorFilter.mjs.map → iter-fest.iterableSome.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorFind.mjs.map → iter-fest.iterableToSpliced.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorFindIndex.mjs.map → iter-fest.iterableToString.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorFindLast.mjs.map → iter-fest.pushAsyncIterableIterator.mjs.map} +0 -0
- /package/dist/{iter-fest.iteratorFindLastIndex.mjs.map → iter-fest.readerValues.mjs.map} +0 -0
package/dist/chunk-72AEHTPQ.mjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
readableStreamValues
|
|
3
|
-
} from "./chunk-RVIERPEV.mjs";
|
|
4
|
-
import {
|
|
5
|
-
observableSubscribeAsReadable
|
|
6
|
-
} from "./chunk-EIIP7YWB.mjs";
|
|
7
|
-
|
|
8
|
-
// src/observableValues.ts
|
|
9
|
-
function observableValues(observable) {
|
|
10
|
-
const readable = observableSubscribeAsReadable(observable);
|
|
11
|
-
const iterable = readableStreamValues(readable);
|
|
12
|
-
const cancellableIterable = {
|
|
13
|
-
[Symbol.asyncIterator]() {
|
|
14
|
-
return cancellableIterable;
|
|
15
|
-
},
|
|
16
|
-
next() {
|
|
17
|
-
return iterable.next();
|
|
18
|
-
},
|
|
19
|
-
return() {
|
|
20
|
-
var _a;
|
|
21
|
-
try {
|
|
22
|
-
return ((_a = iterable.return) == null ? void 0 : _a.call(iterable)) ?? Promise.resolve({ done: true, value: void 0 });
|
|
23
|
-
} finally {
|
|
24
|
-
readable.cancel();
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
throw(error) {
|
|
28
|
-
var _a;
|
|
29
|
-
return ((_a = iterable.throw) == null ? void 0 : _a.call(iterable, error)) ?? Promise.resolve({ done: true, value: void 0 });
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
return cancellableIterable;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export {
|
|
36
|
-
observableValues
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=chunk-72AEHTPQ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/observableValues.ts"],"sourcesContent":["import type { Observable } from './Observable';\nimport { observableSubscribeAsReadable } from './observableSubscribeAsReadable';\nimport { readableStreamValues } from './readableStreamValues';\n\nexport function observableValues<T>(observable: Observable<T>): AsyncIterableIterator<T> {\n const readable = observableSubscribeAsReadable(observable);\n const iterable = readableStreamValues(readable);\n\n const cancellableIterable: AsyncIterableIterator<T> = {\n [Symbol.asyncIterator]() {\n return cancellableIterable;\n },\n next() {\n return iterable.next();\n },\n return() {\n try {\n return iterable.return?.() ?? Promise.resolve({ done: true, value: undefined });\n } finally {\n readable.cancel();\n }\n },\n throw(error) {\n return iterable.throw?.(error) ?? Promise.resolve({ done: true, value: undefined });\n }\n };\n\n return cancellableIterable;\n}\n"],"mappings":";;;;;;;;AAIO,SAAS,iBAAoB,YAAqD;AACvF,QAAM,WAAW,8BAA8B,UAAU;AACzD,QAAM,WAAW,qBAAqB,QAAQ;AAE9C,QAAM,sBAAgD;AAAA,IACpD,CAAC,OAAO,aAAa,IAAI;AACvB,aAAO;AAAA,IACT;AAAA,IACA,OAAO;AACL,aAAO,SAAS,KAAK;AAAA,IACvB;AAAA,IACA,SAAS;AAfb;AAgBM,UAAI;AACF,iBAAO,cAAS,WAAT,sCAAuB,QAAQ,QAAQ,EAAE,MAAM,MAAM,OAAO,OAAU,CAAC;AAAA,MAChF,UAAE;AACA,iBAAS,OAAO;AAAA,MAClB;AAAA,IACF;AAAA,IACA,MAAM,OAAO;AAtBjB;AAuBM,eAAO,cAAS,UAAT,kCAAiB,WAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,OAAO,OAAU,CAAC;AAAA,IACpF;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorIndexOf.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns the index of the first occurrence of a value in an iterator, or -1 if it is not present.\n *\n * @param searchElement The value to locate in the iterator.\n * @param fromIndex The iterator index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\nexport function iteratorIndexOf<T>(iterator: Iterator<T>, searchElement: T, fromIndex: number = 0): number {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iteratorToIterable(iterator)) {\n if (index >= fromIndex && Object.is(item, searchElement)) {\n return index;\n }\n\n index++;\n }\n }\n\n return -1;\n}\n"],"mappings":";;;;;;;;AASO,SAAS,gBAAmB,UAAuB,eAAkB,YAAoB,GAAW;AACzG,MAAI,QAAQ;AAEZ,cAAY,oBAAoB,SAAS;AAEzC,MAAI,cAAc,UAAU;AAC1B,gBAAY,cAAc,YAAY,IAAI;AAE1C,QAAI,YAAY,GAAG;AAEjB,YAAM,IAAI,UAAU,8CAA8C;AAAA,IACpE;AAEA,eAAW,QAAQ,mBAAmB,QAAQ,GAAG;AAC/C,UAAI,SAAS,aAAa,OAAO,GAAG,MAAM,aAAa,GAAG;AACxD,eAAO;AAAA,MACT;AAEA;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
package/dist/chunk-AOZVPHE4.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/asyncIteratorTake.ts
|
|
2
|
-
import take from "core-js-pure/full/async-iterator/take";
|
|
3
|
-
function asyncIteratorTake(asyncIterator, limit) {
|
|
4
|
-
return take(asyncIterator, limit);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
asyncIteratorTake
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-AOZVPHE4.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorTake.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport take from 'core-js-pure/full/async-iterator/take';\n\n/**\n * `take` takes an integer as an argument. It returns an iterator that produces, at most, the given number of elements produced by the underlying iterator.\n *\n * @param limit\n *\n * @return Returns an iterator with items from the original iterator from 0 until the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorTake<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T> {\n return take(asyncIterator, limit);\n}\n"],"mappings":";AACA,OAAO,UAAU;AAWV,SAAS,kBAAqB,eAAiC,OAAiC;AACrG,SAAO,KAAK,eAAe,KAAK;AAClC;","names":[]}
|
package/dist/chunk-BSAPKNNZ.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
iteratorToIterable
|
|
3
|
-
} from "./chunk-MNDAEMYM.mjs";
|
|
4
|
-
|
|
5
|
-
// src/iteratorEntries.ts
|
|
6
|
-
function* iteratorEntries(iterator) {
|
|
7
|
-
let index = 0;
|
|
8
|
-
for (const value of iteratorToIterable(iterator)) {
|
|
9
|
-
yield [index++, value];
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
iteratorEntries
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=chunk-BSAPKNNZ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorEntries.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns an iterator of key, value pairs for every entry in the iterator\n */\nexport function* iteratorEntries<T>(iterator: Iterator<T>): IterableIterator<[number, T]> {\n let index = 0;\n\n for (const value of iteratorToIterable(iterator)) {\n yield [index++, value];\n }\n}\n"],"mappings":";;;;;AAKO,UAAU,gBAAmB,UAAsD;AACxF,MAAI,QAAQ;AAEZ,aAAW,SAAS,mBAAmB,QAAQ,GAAG;AAChD,UAAM,CAAC,SAAS,KAAK;AAAA,EACvB;AACF;","names":[]}
|
package/dist/chunk-BWMXKULC.mjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// src/private/withResolvers.ts
|
|
2
|
-
import coreJSPromiseWithResolvers from "core-js-pure/full/promise/with-resolvers";
|
|
3
|
-
function withResolvers() {
|
|
4
|
-
return coreJSPromiseWithResolvers();
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
// src/iterableWritableStream.ts
|
|
8
|
-
var CLOSE = Symbol();
|
|
9
|
-
var IterableWritableStream = class extends WritableStream {
|
|
10
|
-
constructor() {
|
|
11
|
-
super({
|
|
12
|
-
close: () => {
|
|
13
|
-
this.#buffer.push(CLOSE);
|
|
14
|
-
this.#writeResolvers.resolve();
|
|
15
|
-
},
|
|
16
|
-
write: (chunk) => {
|
|
17
|
-
this.#buffer.push(chunk);
|
|
18
|
-
this.#writeResolvers.resolve();
|
|
19
|
-
this.#writeResolvers = withResolvers();
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
#buffer = [];
|
|
24
|
-
#writeResolvers = withResolvers();
|
|
25
|
-
[Symbol.asyncIterator]() {
|
|
26
|
-
return {
|
|
27
|
-
next: async () => {
|
|
28
|
-
while (!this.#buffer.length) {
|
|
29
|
-
await this.#writeResolvers.promise;
|
|
30
|
-
}
|
|
31
|
-
const value = this.#buffer[0];
|
|
32
|
-
if (value === CLOSE) {
|
|
33
|
-
return { done: true, value: void 0 };
|
|
34
|
-
}
|
|
35
|
-
this.#buffer.shift();
|
|
36
|
-
await void 0;
|
|
37
|
-
return { done: false, value };
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
IterableWritableStream
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=chunk-BWMXKULC.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/private/withResolvers.ts","../src/iterableWritableStream.ts"],"sourcesContent":["// @ts-expect-error \"core-js\" is not typed.\nimport coreJSPromiseWithResolvers from 'core-js-pure/full/promise/with-resolvers';\n\nexport default function withResolvers<T>(): PromiseWithResolvers<T> {\n return coreJSPromiseWithResolvers();\n}\n","import withResolvers from './private/withResolvers';\n\nconst CLOSE = Symbol();\n\nexport class IterableWritableStream<T> extends WritableStream<T> {\n constructor() {\n super({\n close: () => {\n this.#buffer.push(CLOSE);\n this.#writeResolvers.resolve();\n },\n write: (chunk: T) => {\n this.#buffer.push(chunk);\n this.#writeResolvers.resolve();\n this.#writeResolvers = withResolvers();\n }\n });\n }\n\n #buffer: (T | typeof CLOSE)[] = [];\n #writeResolvers: PromiseWithResolvers<void> = withResolvers();\n\n [Symbol.asyncIterator](): AsyncIterator<T> {\n return {\n next: async () => {\n while (!this.#buffer.length) {\n await this.#writeResolvers.promise;\n }\n\n const value = this.#buffer[0] as T | typeof CLOSE;\n\n if (value === CLOSE) {\n return { done: true, value: undefined };\n }\n\n // If it is not CLOSE, remove it from the queue.\n this.#buffer.shift();\n\n // Idle here so concurrent iteration has a chance to pick up the next value in a round robin fashion.\n await undefined;\n\n return { done: false, value };\n }\n };\n }\n}\n"],"mappings":";AACA,OAAO,gCAAgC;AAExB,SAAR,gBAA6D;AAClE,SAAO,2BAA2B;AACpC;;;ACHA,IAAM,QAAQ,OAAO;AAEd,IAAM,yBAAN,cAAwC,eAAkB;AAAA,EAC/D,cAAc;AACZ,UAAM;AAAA,MACJ,OAAO,MAAM;AACX,aAAK,QAAQ,KAAK,KAAK;AACvB,aAAK,gBAAgB,QAAQ;AAAA,MAC/B;AAAA,MACA,OAAO,CAAC,UAAa;AACnB,aAAK,QAAQ,KAAK,KAAK;AACvB,aAAK,gBAAgB,QAAQ;AAC7B,aAAK,kBAAkB,cAAc;AAAA,MACvC;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,UAAgC,CAAC;AAAA,EACjC,kBAA8C,cAAc;AAAA,EAE5D,CAAC,OAAO,aAAa,IAAsB;AACzC,WAAO;AAAA,MACL,MAAM,YAAY;AAChB,eAAO,CAAC,KAAK,QAAQ,QAAQ;AAC3B,gBAAM,KAAK,gBAAgB;AAAA,QAC7B;AAEA,cAAM,QAAQ,KAAK,QAAQ,CAAC;AAE5B,YAAI,UAAU,OAAO;AACnB,iBAAO,EAAE,MAAM,MAAM,OAAO,OAAU;AAAA,QACxC;AAGA,aAAK,QAAQ,MAAM;AAGnB,cAAM;AAEN,eAAO,EAAE,MAAM,OAAO,MAAM;AAAA,MAC9B;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/dist/chunk-CNCNQPK3.mjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
iteratorToIterable
|
|
3
|
-
} from "./chunk-MNDAEMYM.mjs";
|
|
4
|
-
|
|
5
|
-
// src/iteratorKeys.ts
|
|
6
|
-
function* iteratorKeys(iterator) {
|
|
7
|
-
let index = 0;
|
|
8
|
-
for (const _ of iteratorToIterable(iterator)) {
|
|
9
|
-
yield index++;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
iteratorKeys
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=chunk-CNCNQPK3.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorKeys.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns an iterator of keys in the iterator\n */\nexport function* iteratorKeys<T>(iterator: Iterator<T>): IterableIterator<number> {\n let index = 0;\n\n for (const _ of iteratorToIterable(iterator)) {\n yield index++;\n }\n}\n"],"mappings":";;;;;AAKO,UAAU,aAAgB,UAAiD;AAChF,MAAI,QAAQ;AAEZ,aAAW,KAAK,mBAAmB,QAAQ,GAAG;AAC5C,UAAM;AAAA,EACR;AACF;","names":[]}
|
package/dist/chunk-CNKIGQUS.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/asyncIteratorFind.ts
|
|
2
|
-
import find from "core-js-pure/full/async-iterator/find";
|
|
3
|
-
function asyncIteratorFind(asyncIterator, predicate) {
|
|
4
|
-
return find(asyncIterator, predicate);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
asyncIteratorFind
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-CNKIGQUS.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorFind.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport find from 'core-js-pure/full/async-iterator/find';\n\n/**\n * Returns the value of the first element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFind<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<boolean>\n): Promise<S | undefined>;\n\nexport function asyncIteratorFind<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<T | undefined>;\n\nexport function asyncIteratorFind<T, S extends T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<S | undefined> {\n return find(asyncIterator, predicate);\n}\n"],"mappings":";AACA,OAAO,UAAU;AAsBV,SAAS,kBACd,eACA,WACwB;AACxB,SAAO,KAAK,eAAe,SAAS;AACtC;","names":[]}
|
package/dist/chunk-DC2ZV7KQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorFrom.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport from from 'core-js-pure/full/iterator/from';\n\n/**\n * `.from` is a static method (unlike the others listed above) which takes an object as an argument. This method allows wrapping \"iterator-like\" objects with an iterator.\n *\n * @return Returns the object if it is already an iterator, returns a wrapping iterator if the passed object implements a callable @@iterator property.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFrom<T>(iteratorLike: Pick<Iterator<T>, 'next'>): Iterator<T> {\n return from(iteratorLike);\n}\n"],"mappings":";AACA,OAAO,UAAU;AASV,SAAS,aAAgB,cAAsD;AACpF,SAAO,KAAK,YAAY;AAC1B;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorSlice.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns a copy of a section of an iterator.\n * For both start and end, a negative index can be used to indicate an offset from the end of the iterator.\n * For example, -2 refers to the second to last element of the iterator.\n *\n * @param start The beginning index of the specified portion of the iterator.\n * If start is undefined, then the slice begins at index 0.\n *\n * @param end The end index of the specified portion of the iterator. This is exclusive of the element at the index 'end'.\n * If end is undefined, then the slice extends to the end of the iterator.\n */\nexport function* iteratorSlice<T>(\n iterator: Iterator<T>,\n start: number = 0,\n end: number = Infinity\n): IterableIterator<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n end = toIntegerOrInfinity(end);\n end = end === -Infinity ? 0 : end;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n if (end < 0) {\n throw new TypeError('end cannot be a negative finite number');\n }\n\n if (start === Infinity) {\n return;\n }\n\n for (const item of iteratorToIterable(iterator)) {\n if (index >= start && index < end) {\n yield item;\n }\n\n index++;\n\n if (index > end) {\n break;\n }\n }\n}\n"],"mappings":";;;;;;;;AAcO,UAAU,cACf,UACA,QAAgB,GAChB,MAAc,UACO;AACrB,MAAI,QAAQ;AAEZ,UAAQ,oBAAoB,KAAK;AACjC,UAAQ,UAAU,YAAY,IAAI;AAClC,QAAM,oBAAoB,GAAG;AAC7B,QAAM,QAAQ,YAAY,IAAI;AAE9B,MAAI,QAAQ,GAAG;AACb,UAAM,IAAI,UAAU,0CAA0C;AAAA,EAChE;AAEA,MAAI,MAAM,GAAG;AACX,UAAM,IAAI,UAAU,wCAAwC;AAAA,EAC9D;AAEA,MAAI,UAAU,UAAU;AACtB;AAAA,EACF;AAEA,aAAW,QAAQ,mBAAmB,QAAQ,GAAG;AAC/C,QAAI,SAAS,SAAS,QAAQ,KAAK;AACjC,YAAM;AAAA,IACR;AAEA;AAEA,QAAI,QAAQ,KAAK;AACf;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/dist/chunk-FBST4AUL.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorFind.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport find from 'core-js-pure/full/iterator/find';\n\n/**\n * Returns the value of the first element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): S | undefined;\n\nexport function iteratorFind<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): T | undefined;\n\nexport function iteratorFind<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => unknown\n): S | undefined {\n return find(iterator, predicate);\n}\n"],"mappings":";AACA,OAAO,UAAU;AAmBV,SAAS,aACd,UACA,WACe;AACf,SAAO,KAAK,UAAU,SAAS;AACjC;","names":[]}
|
package/dist/chunk-FEEBFWAI.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
iteratorToIterable
|
|
3
|
-
} from "./chunk-MNDAEMYM.mjs";
|
|
4
|
-
|
|
5
|
-
// src/iteratorJoin.ts
|
|
6
|
-
function iteratorJoin(iterator, separator = ",") {
|
|
7
|
-
let index = 0;
|
|
8
|
-
let result = "";
|
|
9
|
-
for (const item of iteratorToIterable(iterator)) {
|
|
10
|
-
if (index) {
|
|
11
|
-
result += separator;
|
|
12
|
-
}
|
|
13
|
-
if (typeof item !== "undefined" && item !== null) {
|
|
14
|
-
result += item;
|
|
15
|
-
}
|
|
16
|
-
index++;
|
|
17
|
-
}
|
|
18
|
-
return result;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
iteratorJoin
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=chunk-FEEBFWAI.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorJoin.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Adds all the elements of an iterator into a string, separated by the specified separator string.\n *\n * @param separator A string used to separate one element of the iterator from the next in the resulting string. If omitted, the iterator elements are separated with a comma.\n */\nexport function iteratorJoin<T>(iterator: Iterator<T>, separator: string = ','): string {\n let index = 0;\n let result = '';\n\n for (const item of iteratorToIterable(iterator)) {\n if (index) {\n result += separator;\n }\n\n if (typeof item !== 'undefined' && item !== null) {\n result += item;\n }\n\n index++;\n }\n\n return result;\n}\n"],"mappings":";;;;;AAOO,SAAS,aAAgB,UAAuB,YAAoB,KAAa;AACtF,MAAI,QAAQ;AACZ,MAAI,SAAS;AAEb,aAAW,QAAQ,mBAAmB,QAAQ,GAAG;AAC/C,QAAI,OAAO;AACT,gBAAU;AAAA,IACZ;AAEA,QAAI,OAAO,SAAS,eAAe,SAAS,MAAM;AAChD,gBAAU;AAAA,IACZ;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
package/dist/chunk-FMIHIL6A.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorForEach.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport forEach from 'core-js-pure/full/iterator/for-each';\n\n/**\n * Performs the specified action for each element in an iterator.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorForEach<T>(iterator: Iterator<T>, callbackfn: (value: T, index: number) => void): void {\n forEach(iterator, callbackfn);\n}\n"],"mappings":";AACA,OAAO,aAAa;AASb,SAAS,gBAAmB,UAAuB,YAAqD;AAC7G,UAAQ,UAAU,UAAU;AAC9B;","names":[]}
|
package/dist/chunk-GFJGWVES.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/asyncIteratorFlatMap.ts
|
|
2
|
-
import flatMap from "core-js-pure/full/async-iterator/flat-map";
|
|
3
|
-
function asyncIteratorFlatMap(asyncIterator, mapperFn) {
|
|
4
|
-
return flatMap(asyncIterator, mapperFn);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
asyncIteratorFlatMap
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-GFJGWVES.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorFlatMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport flatMap from 'core-js-pure/full/async-iterator/flat-map';\n\n/**\n * `.flatMap` takes a mapping function as an argument. It returns an iterator that produces all elements of the iterators produced by applying the mapping function to the elements produced by the underlying iterator.\n *\n * @param mapperFn\n *\n * @return Returns an iterator of flat values.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFlatMap<T, U>(\n asyncIterator: AsyncIterator<T>,\n mapperFn: (value: T, index: number) => Promise<U>\n): AsyncIterator<T> {\n return flatMap(asyncIterator, mapperFn);\n}\n"],"mappings":";AACA,OAAO,aAAa;AAWb,SAAS,qBACd,eACA,UACkB;AAClB,SAAO,QAAQ,eAAe,QAAQ;AACxC;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorIncludes.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Determines whether an iterator includes a certain element, returning true or false as appropriate.\n *\n * @param searchElement The element to search for.\n * @param fromIndex The position in this iterator at which to begin searching for searchElement.\n */\nexport function iteratorIncludes<T>(iterator: Iterator<T>, searchElement: T, fromIndex: number = 0): boolean {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iteratorToIterable(iterator)) {\n if (index++ >= fromIndex && Object.is(item, searchElement)) {\n return true;\n }\n }\n }\n\n return false;\n}\n"],"mappings":";;;;;;;;AASO,SAAS,iBAAoB,UAAuB,eAAkB,YAAoB,GAAY;AAC3G,MAAI,QAAQ;AAEZ,cAAY,oBAAoB,SAAS;AAEzC,MAAI,cAAc,UAAU;AAC1B,gBAAY,cAAc,YAAY,IAAI;AAE1C,QAAI,YAAY,GAAG;AAEjB,YAAM,IAAI,UAAU,8CAA8C;AAAA,IACpE;AAEA,eAAW,QAAQ,mBAAmB,QAAQ,GAAG;AAC/C,UAAI,WAAW,aAAa,OAAO,GAAG,MAAM,aAAa,GAAG;AAC1D,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorAt.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns the item located at the specified index.\n *\n * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.\n */\nexport function iteratorAt<T>(iterator: Iterator<T>, index: number): T | undefined {\n let currentIndex = 0;\n\n index = toIntegerOrInfinity(index);\n\n if (!isFinite(index)) {\n return;\n }\n\n if (index < 0) {\n throw new TypeError('index cannot be a negative finite number');\n }\n\n for (const value of iteratorToIterable(iterator)) {\n if (currentIndex++ === index) {\n return value;\n }\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;AAQO,SAAS,WAAc,UAAuB,OAA8B;AACjF,MAAI,eAAe;AAEnB,UAAQ,oBAAoB,KAAK;AAEjC,MAAI,CAAC,SAAS,KAAK,GAAG;AACpB;AAAA,EACF;AAEA,MAAI,QAAQ,GAAG;AACb,UAAM,IAAI,UAAU,0CAA0C;AAAA,EAChE;AAEA,aAAW,SAAS,mBAAmB,QAAQ,GAAG;AAChD,QAAI,mBAAmB,OAAO;AAC5B,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorToSpliced.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\nimport toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the copied array in place of the deleted elements.\n * @returns The copied array.\n */\nexport function iteratorToSpliced<T>(\n iterator: Iterator<T>,\n start?: number | undefined,\n deleteCount?: number | undefined,\n ...items: T[]\n): IterableIterator<T>;\n\n/**\n * Copies an array and removes elements while returning the remaining elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns A copy of the original array with the remaining elements.\n */\nexport function iteratorToSpliced<T>(\n iterator: Iterator<T>,\n start?: number | undefined,\n deleteCount?: number | undefined\n): IterableIterator<T>;\n\nexport function* iteratorToSpliced<T>(\n iterator: Iterator<T>,\n start: number = 0,\n deleteCount: number = 0,\n ...items: T[]\n): IterableIterator<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n let inserted = false;\n\n for (const item of iteratorToIterable(iterator)) {\n if (index + 1 > start && !inserted) {\n yield* items;\n inserted = true;\n }\n\n if (index < start || index >= start + deleteCount) {\n yield item;\n }\n\n index++;\n }\n\n if (!inserted) {\n yield* items;\n }\n}\n"],"mappings":";;;;;;;;AA6BO,UAAU,kBACf,UACA,QAAgB,GAChB,cAAsB,MACnB,OACkB;AACrB,MAAI,QAAQ;AAEZ,UAAQ,oBAAoB,KAAK;AACjC,UAAQ,UAAU,YAAY,IAAI;AAElC,MAAI,QAAQ,GAAG;AACb,UAAM,IAAI,UAAU,0CAA0C;AAAA,EAChE;AAEA,MAAI,WAAW;AAEf,aAAW,QAAQ,mBAAmB,QAAQ,GAAG;AAC/C,QAAI,QAAQ,IAAI,SAAS,CAAC,UAAU;AAClC,aAAO;AACP,iBAAW;AAAA,IACb;AAEA,QAAI,QAAQ,SAAS,SAAS,QAAQ,aAAa;AACjD,YAAM;AAAA,IACR;AAEA;AAAA,EACF;AAEA,MAAI,CAAC,UAAU;AACb,WAAO;AAAA,EACT;AACF;","names":[]}
|
package/dist/chunk-J3FQSENW.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/asyncIteratorForEach.ts
|
|
2
|
-
import forEach from "core-js-pure/full/async-iterator/for-each";
|
|
3
|
-
function asyncIteratorForEach(asyncIterator, callbackfn) {
|
|
4
|
-
return forEach(asyncIterator, callbackfn);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
asyncIteratorForEach
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-J3FQSENW.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorForEach.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport forEach from 'core-js-pure/full/async-iterator/for-each';\n\n/**\n * Performs the specified action for each element in an iterator.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorForEach<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (value: T, index: number) => Promise<void>\n): Promise<void> {\n return forEach(asyncIterator, callbackfn);\n}\n"],"mappings":";AACA,OAAO,aAAa;AASb,SAAS,qBACd,eACA,YACe;AACf,SAAO,QAAQ,eAAe,UAAU;AAC1C;","names":[]}
|
package/dist/chunk-JVR6BUJA.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/asyncIteratorToArray.ts
|
|
2
|
-
import toArray from "core-js-pure/full/async-iterator/to-array";
|
|
3
|
-
function asyncIteratorToArray(asyncIteratorLike) {
|
|
4
|
-
return toArray(asyncIteratorLike);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
asyncIteratorToArray
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-JVR6BUJA.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorToArray.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport toArray from 'core-js-pure/full/async-iterator/to-array';\n\n/**\n * When you have a non-infinite iterator which you wish to transform into an array, you can do so with the builtin toArray method.\n *\n * @return Returns an Array containing the values from the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorToArray<T>(asyncIteratorLike: Pick<AsyncIterator<T>, 'next'>): Promise<T[]> {\n return toArray(asyncIteratorLike);\n}\n"],"mappings":";AACA,OAAO,aAAa;AASb,SAAS,qBAAwB,mBAAiE;AACvG,SAAO,QAAQ,iBAAiB;AAClC;","names":[]}
|
package/dist/chunk-K4RCFPTZ.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/asyncIteratorDrop.ts
|
|
2
|
-
import drop from "core-js-pure/full/async-iterator/drop";
|
|
3
|
-
function asyncIteratorDrop(asyncIterator, limit) {
|
|
4
|
-
return drop(asyncIterator, limit);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
asyncIteratorDrop
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-K4RCFPTZ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorDrop.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport drop from 'core-js-pure/full/async-iterator/drop';\n\n/**\n * `drop` takes an integer as an argument. It skips the given number of elements produced by the underlying iterator before itself producing any remaining elements.\n *\n * @param limit\n *\n * @return Returns an iterator of items after the limit.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorDrop<T>(asyncIterator: AsyncIterator<T>, limit: number): AsyncIterator<T> {\n return drop(asyncIterator, limit);\n}\n"],"mappings":";AACA,OAAO,UAAU;AAWV,SAAS,kBAAqB,eAAiC,OAAiC;AACrG,SAAO,KAAK,eAAe,KAAK;AAClC;","names":[]}
|
package/dist/chunk-LB3MK3EU.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/asyncIteratorMap.ts
|
|
2
|
-
import map from "core-js-pure/full/async-iterator/map";
|
|
3
|
-
function asyncIteratorMap(asyncIterator, callbackfn) {
|
|
4
|
-
return map(asyncIterator, callbackfn);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
asyncIteratorMap
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-LB3MK3EU.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorMap.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport map from 'core-js-pure/full/async-iterator/map';\n\n/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n *\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorMap<T, U>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (value: T, index: number) => U\n): AsyncIterableIterator<U> {\n return map(asyncIterator, callbackfn);\n}\n"],"mappings":";AACA,OAAO,SAAS;AAST,SAAS,iBACd,eACA,YAC0B;AAC1B,SAAO,IAAI,eAAe,UAAU;AACtC;","names":[]}
|
package/dist/chunk-LIMQXDFK.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/iteratorReduce.ts
|
|
2
|
-
import reduce from "core-js-pure/full/iterator/reduce";
|
|
3
|
-
function iteratorReduce(iterator, callbackfn, initialValue) {
|
|
4
|
-
return reduce(iterator, callbackfn, initialValue);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
iteratorReduce
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-LIMQXDFK.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorReduce.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport reduce from 'core-js-pure/full/iterator/reduce';\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an iterator value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorReduce<T>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T\n): T;\n\nexport function iteratorReduce<T>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T,\n initialValue: T\n): T;\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorReduce<T, U>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U,\n initialValue: U\n): U;\n\nexport function iteratorReduce<T, U = undefined>(\n iterator: Iterator<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number) => U,\n initialValue?: U\n): U | undefined {\n return reduce(iterator, callbackfn, initialValue);\n}\n"],"mappings":";AACA,OAAO,YAAY;AAqCZ,SAAS,eACd,UACA,YACA,cACe;AACf,SAAO,OAAO,UAAU,YAAY,YAAY;AAClD;","names":[]}
|
package/dist/chunk-MO7HMLOZ.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
iteratorToIterable
|
|
3
|
-
} from "./chunk-MNDAEMYM.mjs";
|
|
4
|
-
|
|
5
|
-
// src/iteratorFindIndex.ts
|
|
6
|
-
function iteratorFindIndex(iterator, predicate, thisArg) {
|
|
7
|
-
let index = 0;
|
|
8
|
-
if (typeof predicate !== "function") {
|
|
9
|
-
throw new TypeError(`${predicate} is not a function`);
|
|
10
|
-
}
|
|
11
|
-
const boundPredicate = predicate.bind(thisArg);
|
|
12
|
-
for (const value of iteratorToIterable(iterator)) {
|
|
13
|
-
if (boundPredicate(value, index, iterator)) {
|
|
14
|
-
return index;
|
|
15
|
-
}
|
|
16
|
-
index++;
|
|
17
|
-
}
|
|
18
|
-
return -1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
iteratorFindIndex
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=chunk-MO7HMLOZ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorFindIndex.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns the index of the first element in the iterator where predicate is true, and -1\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterator, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iteratorFindIndex<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, obj: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iteratorToIterable(iterator)) {\n if (boundPredicate(value, index, iterator)) {\n return index;\n }\n\n index++;\n }\n\n return -1;\n}\n"],"mappings":";;;;;AAaO,SAAS,kBACd,UACA,WAEA,SACQ;AACR,MAAI,QAAQ;AAEZ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,mBAAmB,QAAQ,GAAG;AAChD,QAAI,eAAe,OAAO,OAAO,QAAQ,GAAG;AAC1C,aAAO;AAAA,IACT;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
package/dist/chunk-MYSNSDM7.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorToString.ts"],"sourcesContent":["import { iteratorJoin } from './iteratorJoin';\n\n/**\n * Returns a string representation of an iterator.\n */\nexport function iteratorToString<T>(iterator: Iterator<T>): string {\n return iteratorJoin(iterator);\n}\n"],"mappings":";;;;;AAKO,SAAS,iBAAoB,UAA+B;AACjE,SAAO,aAAa,QAAQ;AAC9B;","names":[]}
|
package/dist/chunk-NLXKATXE.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorFrom.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport from from 'core-js-pure/full/async-iterator/from';\n\n/**\n * `.from` is a static method (unlike the others listed above) which takes an object as an argument. This method allows wrapping \"iterator-like\" objects with an iterator.\n *\n * @return Returns the object if it is already an iterator, returns a wrapping iterator if the passed object implements a callable @@iterator property.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorFrom<T>(asyncIteratorLike: Pick<AsyncIterator<T>, 'next'>): AsyncIterator<T> {\n return from(asyncIteratorLike);\n}\n"],"mappings":";AACA,OAAO,UAAU;AASV,SAAS,kBAAqB,mBAAqE;AACxG,SAAO,KAAK,iBAAiB;AAC/B;","names":[]}
|
package/dist/chunk-NZRXO7EY.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
iteratorToIterable
|
|
3
|
-
} from "./chunk-MNDAEMYM.mjs";
|
|
4
|
-
|
|
5
|
-
// src/iteratorFindLast.ts
|
|
6
|
-
function iteratorFindLast(iterator, predicate, thisArg) {
|
|
7
|
-
let index = 0;
|
|
8
|
-
let last;
|
|
9
|
-
if (typeof predicate !== "function") {
|
|
10
|
-
throw new TypeError(`${predicate} is not a function`);
|
|
11
|
-
}
|
|
12
|
-
const boundPredicate = predicate.bind(thisArg);
|
|
13
|
-
for (const value of iteratorToIterable(iterator)) {
|
|
14
|
-
if (boundPredicate(value, index++, iterator)) {
|
|
15
|
-
last = value;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return last;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
iteratorFindLast
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=chunk-NZRXO7EY.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorFindLast.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns the value of the last element in the iterator where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate findLast calls predicate once for each element of the iterator, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iteratorFindLast<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iteratorFindLast<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iteratorFindLast<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\n let index = 0;\n let last: S | undefined;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iteratorToIterable(iterator)) {\n if (boundPredicate(value, index++, iterator)) {\n last = value as S;\n }\n }\n\n return last;\n}\n"],"mappings":";;;;;AA2BO,SAAS,iBACd,UACA,WAEA,SACe;AACf,MAAI,QAAQ;AACZ,MAAI;AAEJ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,mBAAmB,QAAQ,GAAG;AAChD,QAAI,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC5C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
package/dist/chunk-OCK7PKGO.mjs
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
iteratorToIterable
|
|
3
|
-
} from "./chunk-MNDAEMYM.mjs";
|
|
4
|
-
|
|
5
|
-
// src/iteratorConcat.ts
|
|
6
|
-
function isIterator(value) {
|
|
7
|
-
return !!value && typeof value === "object" && Symbol.iterator in value;
|
|
8
|
-
}
|
|
9
|
-
function* iteratorConcat(iterator, ...items) {
|
|
10
|
-
yield* iteratorToIterable(iterator);
|
|
11
|
-
for (const item of items) {
|
|
12
|
-
if (isIterator(item)) {
|
|
13
|
-
yield* iteratorToIterable(item);
|
|
14
|
-
} else {
|
|
15
|
-
yield item;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
iteratorConcat
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=chunk-OCK7PKGO.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorConcat.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\nfunction isIterator<T>(value: unknown): value is Iterator<T> {\n return !!value && typeof value === 'object' && Symbol.iterator in value;\n}\n\n/**\n * Combines two or more iterators.\n * This method returns a new iterator without modifying any existing iterators.\n *\n * @param items Additional iterators and/or items to add to the end of the iterator.\n */\nexport function iteratorConcat<T>(iterator: Iterator<T>, ...items: Iterator<T>[]): IterableIterator<T>;\n\n/**\n * Combines two or more iterators.\n * This method returns a new iterator without modifying any existing iterators.\n *\n * @param items Additional iterators and/or items to add to the end of the iterator.\n */\nexport function iteratorConcat<T>(iterator: Iterator<T>, ...items: (T | Iterator<T>)[]): IterableIterator<T>;\n\nexport function* iteratorConcat<T>(iterator: Iterator<T>, ...items: (T | Iterator<T>)[]): IterableIterator<T> {\n yield* iteratorToIterable(iterator);\n\n for (const item of items) {\n if (isIterator(item)) {\n yield* iteratorToIterable(item);\n } else {\n yield item;\n }\n }\n}\n"],"mappings":";;;;;AAEA,SAAS,WAAc,OAAsC;AAC3D,SAAO,CAAC,CAAC,SAAS,OAAO,UAAU,YAAY,OAAO,YAAY;AACpE;AAkBO,UAAU,eAAkB,aAA0B,OAAiD;AAC5G,SAAO,mBAAmB,QAAQ;AAElC,aAAW,QAAQ,OAAO;AACxB,QAAI,WAAW,IAAI,GAAG;AACpB,aAAO,mBAAmB,IAAI;AAAA,IAChC,OAAO;AACL,YAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
|
package/dist/chunk-ODPKEUIR.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/asyncIteratorSome.ts
|
|
2
|
-
import some from "core-js-pure/full/async-iterator/some";
|
|
3
|
-
function asyncIteratorSome(asyncIterator, predicate) {
|
|
4
|
-
return some(asyncIterator, predicate);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
asyncIteratorSome
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-ODPKEUIR.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorSome.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport some from 'core-js-pure/full/async-iterator/some';\n\n/**\n * Determines whether the specified callback function returns true for any element of an iterable.\n *\n * @param predicate A function that accepts up to three arguments. The some method calls the predicate function for each element in the iterable until the predicate returns a value which is coercible to the Boolean value true, or until the end of the iterable.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorSome<T>(\n asyncIterator: AsyncIterator<T>,\n predicate: (value: T, index: number) => Promise<unknown>\n): Promise<boolean> {\n return some(asyncIterator, predicate);\n}\n"],"mappings":";AACA,OAAO,UAAU;AASV,SAAS,kBACd,eACA,WACkB;AAClB,SAAO,KAAK,eAAe,SAAS;AACtC;","names":[]}
|
package/dist/chunk-OWUGLCQB.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorEvery.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport every from 'core-js-pure/full/iterator/every';\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T, S extends T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number) => value is S\n): iterator is Iterator<S>;\n\n/**\n * Determines whether all the members of an iterator satisfy the specified test.\n *\n * @param predicate A function that accepts up to three arguments. The every method calls\n * the predicate function for each element in the iterator until the predicate returns a value\n * which is coercible to the Boolean value false, or until the end of the iterator.\n *\n * @param thisArg An object to which the this keyword can refer in the predicate function.\n * If thisArg is omitted, undefined is used as the this value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean;\n\nexport function iteratorEvery<T>(iterator: Iterator<T>, predicate: (value: T, index: number) => unknown): boolean {\n return every(iterator, predicate);\n}\n"],"mappings":";AACA,OAAO,WAAW;AA8BX,SAAS,cAAiB,UAAuB,WAA0D;AAChH,SAAO,MAAM,UAAU,SAAS;AAClC;","names":[]}
|
package/dist/chunk-PGJSIDLV.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
iteratorToIterable
|
|
3
|
-
} from "./chunk-MNDAEMYM.mjs";
|
|
4
|
-
|
|
5
|
-
// src/iteratorFindLastIndex.ts
|
|
6
|
-
function iteratorFindLastIndex(iterator, predicate, thisArg) {
|
|
7
|
-
let index = 0;
|
|
8
|
-
let lastIndex = -1;
|
|
9
|
-
if (typeof predicate !== "function") {
|
|
10
|
-
throw new TypeError(`${predicate} is not a function`);
|
|
11
|
-
}
|
|
12
|
-
const boundPredicate = predicate.bind(thisArg);
|
|
13
|
-
for (const value of iteratorToIterable(iterator)) {
|
|
14
|
-
if (boundPredicate(value, index, iterator)) {
|
|
15
|
-
lastIndex = index;
|
|
16
|
-
}
|
|
17
|
-
index++;
|
|
18
|
-
}
|
|
19
|
-
return lastIndex;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
iteratorFindLastIndex
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=chunk-PGJSIDLV.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/iteratorFindLastIndex.ts"],"sourcesContent":["import { iteratorToIterable } from './iteratorToIterable';\n\n/**\n * Returns the index of the last element in the iterator where predicate is true, and -1\n * otherwise.\n *\n * @param predicate findLastIndex calls predicate once for each element of the iterator, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iteratorFindLastIndex<T>(\n iterator: Iterator<T>,\n predicate: (value: T, index: number, iterator: Iterator<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n let lastIndex: number = -1;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iteratorToIterable(iterator)) {\n if (boundPredicate(value, index, iterator)) {\n lastIndex = index;\n }\n\n index++;\n }\n\n return lastIndex;\n}\n"],"mappings":";;;;;AAaO,SAAS,sBACd,UACA,WAEA,SACQ;AACR,MAAI,QAAQ;AACZ,MAAI,YAAoB;AAExB,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,mBAAmB,QAAQ,GAAG;AAChD,QAAI,eAAe,OAAO,OAAO,QAAQ,GAAG;AAC1C,kBAAY;AAAA,IACd;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
|
package/dist/chunk-QLVU73KN.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// src/asyncIteratorReduce.ts
|
|
2
|
-
import reduce from "core-js-pure/full/async-iterator/reduce";
|
|
3
|
-
function asyncIteratorReduce(asyncIterator, callbackfn, initialValue) {
|
|
4
|
-
return reduce(asyncIterator, callbackfn, initialValue);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
asyncIteratorReduce
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=chunk-QLVU73KN.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/asyncIteratorReduce.ts"],"sourcesContent":["// @ts-expect-error core-js-pure is not typed.\nimport reduce from 'core-js-pure/full/async-iterator/reduce';\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an iterator value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorReduce<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => Promise<T>\n): Promise<T>;\n\nexport function asyncIteratorReduce<T>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => Promise<T>,\n initialValue: T\n): T;\n\n/**\n * Calls the specified callback function for all the elements in an iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterator.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n *\n * @link https://github.com/tc39/proposal-iterator-helpers/blob/main/README.md\n */\nexport function asyncIteratorReduce<T, U>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => Promise<U>,\n initialValue: U\n): U;\n\nexport function asyncIteratorReduce<T, U = undefined>(\n asyncIterator: AsyncIterator<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number) => Promise<U>,\n initialValue?: U\n): Promise<U | undefined> {\n return reduce(asyncIterator, callbackfn, initialValue);\n}\n"],"mappings":";AACA,OAAO,YAAY;AAqCZ,SAAS,oBACd,eACA,YACA,cACwB;AACxB,SAAO,OAAO,eAAe,YAAY,YAAY;AACvD;","names":[]}
|