Skip to content

Commit

Permalink
fix: remove unnecessary runtime imports of node:stream/web (#7474)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Dec 9, 2024
1 parent 863244e commit 7c5a4ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions packages/serial/src/serialport/ZWaveSerialStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
9 changes: 4 additions & 5 deletions packages/serial/src/zniffer/ZnifferSerialStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 7c5a4ac

Please sign in to comment.