From 7c5a4acbc2b963d7650183f605fdeed974455f7b Mon Sep 17 00:00:00 2001 From: AlCalzone Date: Mon, 9 Dec 2024 14:49:20 +0100 Subject: [PATCH] fix: remove unnecessary runtime imports of `node:stream/web` (#7474) --- packages/serial/src/serialport/ZWaveSerialStream.ts | 9 ++++----- packages/serial/src/zniffer/ZnifferSerialStream.ts | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/packages/serial/src/serialport/ZWaveSerialStream.ts b/packages/serial/src/serialport/ZWaveSerialStream.ts index ea274d155f23..ef6a4e8e7a20 100644 --- a/packages/serial/src/serialport/ZWaveSerialStream.ts +++ b/packages/serial/src/serialport/ZWaveSerialStream.ts @@ -11,11 +11,10 @@ import { type ZWaveLogContainer } from "@zwave-js/core"; import { noop } from "@zwave-js/shared"; -import { - ReadableStream, - type ReadableWritablePair, - type UnderlyingSink, - type UnderlyingSource, +import type { + ReadableWritablePair, + UnderlyingSink, + UnderlyingSource, } from "node:stream/web"; import { SerialLogger } from "../log/Logger.js"; import { MessageHeaders } from "../message/MessageHeaders.js"; diff --git a/packages/serial/src/zniffer/ZnifferSerialStream.ts b/packages/serial/src/zniffer/ZnifferSerialStream.ts index d7ddf3389132..66c102f3a895 100644 --- a/packages/serial/src/zniffer/ZnifferSerialStream.ts +++ b/packages/serial/src/zniffer/ZnifferSerialStream.ts @@ -11,11 +11,10 @@ import { type ZWaveLogContainer } from "@zwave-js/core"; import { noop } from "@zwave-js/shared"; -import { - ReadableStream, - type ReadableWritablePair, - type UnderlyingSink, - type UnderlyingSource, +import type { + ReadableWritablePair, + UnderlyingSink, + UnderlyingSource, } from "node:stream/web"; import { SerialLogger } from "../log/Logger.js"; import { ZnifferParser } from "../parsers/ZnifferParser.js";