Skip to content

Commit

Permalink
Prefixed all internal Node modules with node:.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhop committed Aug 21, 2024
1 parent 4a71139 commit d2bbe9d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/helpers.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import {Readable, Writable} from 'stream';
import {Readable, Writable} from 'node:stream';

export const streamToArray = array =>
new Writable({
Expand Down
2 changes: 1 addition & 1 deletion tests/test-demo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import test from 'tape-six';

import {Transform} from 'stream';
import {Transform} from 'node:stream';
import chain from '../src/index.js';
import readableFrom from '../src/utils/readableFrom.js';

Expand Down
8 changes: 4 additions & 4 deletions tests/test-jsonl-parser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import test from 'tape-six';

import fs from 'fs';
import path from 'path';
import zlib from 'zlib';
import {Writable} from 'stream';
import fs from 'node:fs';
import path from 'node:path';
import zlib from 'node:zlib';
import {Writable} from 'node:stream';

import {readString} from './helpers.mjs';
import chain from '../src/index.js';
Expand Down
8 changes: 4 additions & 4 deletions tests/test-jsonl-parserStream.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import test from 'tape-six';

import fs from 'fs';
import path from 'path';
import zlib from 'zlib';
import {Writable} from 'stream';
import fs from 'node:fs';
import path from 'node:path';
import zlib from 'node:zlib';
import {Writable} from 'node:stream';

import {readString} from './helpers.mjs';

Expand Down
2 changes: 1 addition & 1 deletion tests/test-jsonl-stringerStream.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import test from 'tape-six';

import {Writable, Transform} from 'stream';
import {Writable, Transform} from 'node:stream';

import {readString, writeToArray} from './helpers.mjs';

Expand Down
2 changes: 1 addition & 1 deletion tests/test-simple.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import test from 'tape-six';

import {Transform} from 'stream';
import {Transform} from 'node:stream';
import {streamToArray, delay} from './helpers.mjs';
import chain from '../src/index.js';
import fromIterable from '../src/utils/readableFrom.js';
Expand Down

0 comments on commit d2bbe9d

Please sign in to comment.