diff --git a/src/base_http_controller.ts b/src/base_http_controller.ts index fefc4214..cc58fca1 100644 --- a/src/base_http_controller.ts +++ b/src/base_http_controller.ts @@ -1,6 +1,6 @@ import { injectable } from 'inversify'; import { URL } from 'node:url'; -import { Readable } from 'node:stream'; +import { Readable } from 'stream'; import { StatusCodes } from 'http-status-codes'; import { injectHttpContext } from './decorators'; import { HttpResponseMessage } from './httpResponseMessage'; diff --git a/src/content/httpContent.ts b/src/content/httpContent.ts index 5404a221..9b2b5b78 100644 --- a/src/content/httpContent.ts +++ b/src/content/httpContent.ts @@ -1,5 +1,5 @@ import type { OutgoingHttpHeaders } from 'node:http'; -import type { Readable } from 'node:stream'; +import type { Readable } from 'stream'; export abstract class HttpContent { private _headers: OutgoingHttpHeaders = {}; diff --git a/src/content/streamContent.ts b/src/content/streamContent.ts index 3d0f3f2d..476ab139 100644 --- a/src/content/streamContent.ts +++ b/src/content/streamContent.ts @@ -1,4 +1,4 @@ -import { Readable } from 'node:stream'; +import { Readable } from 'stream'; import { HttpContent } from './httpContent'; export class StreamContent extends HttpContent { diff --git a/src/results/StreamResult.ts b/src/results/StreamResult.ts index 5ac7f1c7..66509284 100644 --- a/src/results/StreamResult.ts +++ b/src/results/StreamResult.ts @@ -1,4 +1,4 @@ -import { Readable } from 'node:stream'; +import { Readable } from 'stream'; import { IHttpActionResult } from '../interfaces'; import { HttpResponseMessage } from '../httpResponseMessage'; import { StreamContent } from '../content/streamContent'; diff --git a/test/content/streamContent.test.ts b/test/content/streamContent.test.ts index c3b4b7d0..9cc50c6e 100644 --- a/test/content/streamContent.test.ts +++ b/test/content/streamContent.test.ts @@ -1,4 +1,4 @@ -import { Readable, Writable } from 'node:stream'; +import { Readable, Writable } from 'stream'; import { StreamContent } from '../../src/content/streamContent'; describe('StreamContent', () => {