@orpc/shared 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -120,7 +120,7 @@ function isAsyncIteratorObject(maybe) {
|
|
|
120
120
|
if (!maybe || typeof maybe !== "object") {
|
|
121
121
|
return false;
|
|
122
122
|
}
|
|
123
|
-
return Symbol.asyncIterator in maybe && typeof maybe[Symbol.asyncIterator] === "function";
|
|
123
|
+
return "next" in maybe && typeof maybe.next === "function" && Symbol.asyncIterator in maybe && typeof maybe[Symbol.asyncIterator] === "function";
|
|
124
124
|
}
|
|
125
125
|
const fallbackAsyncDisposeSymbol = Symbol.for("asyncDispose");
|
|
126
126
|
const asyncDisposeSymbol = Symbol.asyncDispose ?? fallbackAsyncDisposeSymbol;
|