Skip to content

Commit

Permalink
Changed import name for Node streams to be compatible with v12
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxy-Loxy committed Oct 25, 2023
1 parent b499945 commit 5aaa08c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/base_http_controller.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/content/httpContent.ts
Original file line number Diff line number Diff line change
@@ -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 = {};
Expand Down
2 changes: 1 addition & 1 deletion src/content/streamContent.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 { HttpContent } from './httpContent';

export class StreamContent extends HttpContent {
Expand Down
2 changes: 1 addition & 1 deletion src/results/StreamResult.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 { IHttpActionResult } from '../interfaces';
import { HttpResponseMessage } from '../httpResponseMessage';
import { StreamContent } from '../content/streamContent';
Expand Down
2 changes: 1 addition & 1 deletion test/content/streamContent.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Readable, Writable } from 'node:stream';
import { Readable, Writable } from 'stream';
import { StreamContent } from '../../src/content/streamContent';

describe('StreamContent', () => {
Expand Down

0 comments on commit 5aaa08c

Please sign in to comment.