@oceanprotocol/lib 9.2.2-next.0 → 9.2.2

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.
@@ -158,6 +158,8 @@ export declare class LpFrameReader {
158
158
  private discarded;
159
159
  /** Set when the stream ends in an error, whether raised locally or by the peer. */
160
160
  private closeError;
161
+ /** Set when the peer closed its writable end, i.e. finished sending the response. */
162
+ private remoteEnded;
161
163
  constructor(lp: ReturnType<typeof lpStream>, stream: Stream, maxBufferSize?: number);
162
164
  /** Bytes delivered by the transport that are not yet part of a complete frame. */
163
165
  get pendingBytes(): number;
@@ -165,9 +167,11 @@ export declare class LpFrameReader {
165
167
  signal: AbortSignal;
166
168
  }): Promise<Uint8Array>;
167
169
  /**
168
- * True when `err` is the graceful end of the stream: an end-of-file thrown with
169
- * every delivered byte already accounted for by a complete frame. A truncated
170
- * frame throws the same error type but leaves bytes pending, and returns false.
170
+ * True when `err` is the graceful end of the stream: an end-of-file thrown after the
171
+ * peer closed its writable end, with every delivered byte already accounted for by a
172
+ * complete frame. A truncated frame throws the same error type but leaves bytes
173
+ * pending, and a stream ended by its connection closing never saw the peer's close;
174
+ * both return false.
171
175
  */
172
176
  isCleanEnd(err: unknown): boolean;
173
177
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oceanprotocol/lib",
3
3
  "source": "./src/index.ts",
4
- "version": "9.2.2-next.0",
4
+ "version": "9.2.2",
5
5
  "description": "JavaScript client library for Ocean Protocol",
6
6
  "module": "./dist/lib.module.mjs",
7
7
  "type": "module",