Skip to content

Commit

Permalink
fix: do not use node: imports as its not supported in node 14
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Sep 15, 2021
1 parent 5e84a5a commit 7dea1cf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/fs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Readable } from 'node:stream';
import type { Readable } from 'stream';
import { ChunkSource } from '.';

export interface FileInfo {
Expand Down
2 changes: 1 addition & 1 deletion packages/source-aws/src/__test__/fake.s3.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Readable } from 'node:stream';
import { Readable } from 'stream';
import * as s3like from '../type.js';

export class FakeRemote implements s3like.S3Like {
Expand Down
6 changes: 3 additions & 3 deletions packages/source-file/src/file.fs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'node:fs';
import path from 'node:path';
import { Readable } from 'node:stream';
import fs from 'fs';
import path from 'path';
import { Readable } from 'stream';
import { CompositeError, FileInfo, FileSystem, isRecord } from '@chunkd/core';
import { SourceFile } from './file.source.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/source-http/src/http.fs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CompositeError, FileInfo, FileSystem, isRecord } from '@chunkd/core';
import type { Readable } from 'node:stream';
import type { Readable } from 'stream';
import { SourceHttp } from './http.source.js';

export type FsError = { code: string } & Error;
Expand Down

0 comments on commit 7dea1cf

Please sign in to comment.