Skip to content

Commit 40d0e33

Browse files
💥 refactor(asyncIterableToArray)!: Reuse from other package.
BREAKING CHANGE: We do not export asyncIterableToArray anymore.
1 parent 8742d9f commit 40d0e33

File tree

5 files changed

+16
-22
lines changed

5 files changed

+16
-22
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
"test:module": "IMPORT_MAP_PATH=test/import-maps/dist/index.module.json npm run test-cmd",
6666
"test:src": "IMPORT_MAP_PATH=test/import-maps/src/index.json npm run test-cmd"
6767
},
68-
"dependencies": {},
68+
"dependencies": {
69+
"@async-iterable-iterator/async-iterable-to-array": "^0.0.1"
70+
},
6971
"devDependencies": {
7072
"@babel/core": "7.16.5",
7173
"@babel/preset-env": "7.16.5",

src/asyncIterableToArray.js

-19
This file was deleted.

src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export {default as Tape} from './Tape.js';
22
export {default as asyncIterableChain} from './asyncIterableChain.js';
33
export {default as asyncIterableMap} from './asyncIterableMap.js';
4-
export {default as asyncIterableToArray} from './asyncIterableToArray.js';
54
export {default as chain} from './chain.js';
65
export {default as eof} from './eof.js';
76
export {default as exhaust} from './exhaust.js';

src/toArray.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import {asyncIterableToArray} from '@async-iterable-iterator/async-iterable-to-array';
12
import toAsyncIterable from './toAsyncIterable.js';
2-
import asyncIterableToArray from './asyncIterableToArray.js';
33

44
/**
55
* Converts a tape to an array.

yarn.lock

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
# yarn lockfile v1
33

44

5+
"@async-iterable-iterator/async-iterable-to-array@^0.0.1":
6+
version "0.0.1"
7+
resolved "https://registry.yarnpkg.com/@async-iterable-iterator/async-iterable-to-array/-/async-iterable-to-array-0.0.1.tgz#919786e9394d3530dbfa47325d2eb405c29b2413"
8+
integrity sha512-KkKdBzXTi5saccAsxEXWTCi4ZvehZX0PKRF2crCa4URFMp4VG5pAgmauB3CuLvF3wPrp8AwsGV1QAfJy/zgTEA==
9+
dependencies:
10+
"@async-iterable-iterator/async-iterator-to-array" "^0.0.1"
11+
12+
"@async-iterable-iterator/async-iterator-to-array@^0.0.1":
13+
version "0.0.1"
14+
resolved "https://registry.yarnpkg.com/@async-iterable-iterator/async-iterator-to-array/-/async-iterator-to-array-0.0.1.tgz#4bbd362eb42586812f79e07fea8f8c58feeaeacd"
15+
integrity sha512-VaFBhYBdTJ4DdVblOmZRjDMzPFzf46lm/hA7rMqWYguArQHho0wGe8gADpraXqD2REwGL0q/FvO8cnZ9+rMoUQ==
16+
517
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.16.0":
618
version "7.16.0"
719
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.0.tgz#0dfc80309beec8411e65e706461c408b0bb9b431"

0 commit comments

Comments
 (0)