Skip to content

Commit c87b6b4

Browse files
committed
Make sure all named buffer modules are exported
1 parent 1d403e0 commit c87b6b4

File tree

1 file changed

+41
-3
lines changed

1 file changed

+41
-3
lines changed

shims/buffer/index.ts

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
1-
// eslint-disable-next-line unicorn/prefer-node-protocol, n/no-deprecated-api
2-
import { Buffer, SlowBuffer, kMaxLength } from 'buffer'
1+
import {
2+
Blob,
3+
BlobOptions,
4+
Buffer,
5+
File,
6+
FileOptions,
7+
INSPECT_MAX_BYTES,
8+
// eslint-disable-next-line n/no-deprecated-api
9+
SlowBuffer,
10+
TranscodeEncoding,
11+
atob,
12+
btoa,
13+
constants,
14+
isAscii,
15+
isUtf8,
16+
kMaxLength,
17+
kStringMaxLength,
18+
resolveObjectURL,
19+
transcode,
20+
// eslint-disable-next-line unicorn/prefer-node-protocol
21+
} from 'buffer'
22+
23+
export {
24+
Blob,
25+
BlobOptions,
26+
Buffer,
27+
File,
28+
FileOptions,
29+
INSPECT_MAX_BYTES,
30+
SlowBuffer,
31+
TranscodeEncoding,
32+
atob,
33+
btoa,
34+
constants,
35+
isAscii,
36+
isUtf8,
37+
kMaxLength,
38+
kStringMaxLength,
39+
resolveObjectURL,
40+
transcode,
41+
}
342

4-
export { Buffer, SlowBuffer, kMaxLength }
543
export default Buffer

0 commit comments

Comments
 (0)