From 89422dfd2fabe0d2bcc244ffbb54531f3828736d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Thu, 12 Dec 2024 15:27:07 +0100 Subject: [PATCH] Use `isStreamx()` --- web.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web.js b/web.js index ca5f950..0faa5ba 100644 --- a/web.js +++ b/web.js @@ -1,4 +1,4 @@ -const { Readable, getStreamError, isStream, isDisturbed } = require('streamx') +const { Readable, getStreamError, isStreamx, isDisturbed } = require('streamx') // https://streams.spec.whatwg.org/#readablestreamdefaultreader exports.ReadableStreamDefaultReader = class ReadableStreamDefaultReader { @@ -98,7 +98,7 @@ exports.ReadableStreamDefaultController = class ReadableStreamDefaultController // https://streams.spec.whatwg.org/#readablestream exports.ReadableStream = class ReadableStream { constructor(underlyingSource = {}, queuingStrategy) { - if (isStream(underlyingSource)) { + if (isStreamx(underlyingSource)) { this._stream = underlyingSource } else { if (queuingStrategy === undefined) {