@orpc/standard-server 1.8.2 → 1.8.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -4
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -248,14 +248,11 @@ function replicateStandardLazyResponse(response, count) {
248
248
  replicated.push({
249
249
  ...response,
250
250
  body: once(async () => {
251
- if (replicatedAsyncIteratorObjects) {
252
- return replicatedAsyncIteratorObjects.shift();
253
- }
254
251
  const body = await (bodyPromise ??= response.body());
255
252
  if (!isAsyncIteratorObject(body)) {
256
253
  return body;
257
254
  }
258
- replicatedAsyncIteratorObjects = replicateAsyncIterator(body, count);
255
+ replicatedAsyncIteratorObjects ??= replicateAsyncIterator(body, count);
259
256
  return replicatedAsyncIteratorObjects.shift();
260
257
  })
261
258
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/standard-server",
3
3
  "type": "module",
4
- "version": "1.8.2",
4
+ "version": "1.8.4",
5
5
  "license": "MIT",
6
6
  "homepage": "https://unnoq.com",
7
7
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@orpc/shared": "1.8.2"
31
+ "@orpc/shared": "1.8.4"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "unbuild",