vovk 3.0.0-draft.237 → 3.0.0-draft.238

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.
@@ -18,7 +18,7 @@ export declare class JSONLinesResponse<T> extends Response {
18
18
  [Symbol.asyncIterator](): {
19
19
  next: () => Promise<{
20
20
  done: boolean;
21
- value?: undefined;
21
+ value: string;
22
22
  } | {
23
23
  done: boolean;
24
24
  value: Awaited<T>;
@@ -72,7 +72,7 @@ class JSONLinesResponse extends Response {
72
72
  return {
73
73
  next: async () => {
74
74
  if (this.isClosed) {
75
- return { done: true };
75
+ return { done: true, value: 'xxx' };
76
76
  }
77
77
  return { done: false, value: await this.nextValue() };
78
78
  },
@@ -18,7 +18,7 @@ export declare class JSONLinesResponse<T> extends Response {
18
18
  [Symbol.asyncIterator](): {
19
19
  next: () => Promise<{
20
20
  done: boolean;
21
- value?: undefined;
21
+ value: string;
22
22
  } | {
23
23
  done: boolean;
24
24
  value: Awaited<T>;
@@ -72,7 +72,7 @@ class JSONLinesResponse extends Response {
72
72
  return {
73
73
  next: async () => {
74
74
  if (this.isClosed) {
75
- return { done: true };
75
+ return { done: true, value: 'xxx' };
76
76
  }
77
77
  return { done: false, value: await this.nextValue() };
78
78
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "3.0.0-draft.237",
3
+ "version": "3.0.0-draft.238",
4
4
  "main": "./cjs/index.js",
5
5
  "module": "./mjs/index.js",
6
6
  "types": "./mjs/index.d.ts",