@naturalcycles/datastore-lib 4.8.1 → 4.9.0

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.
@@ -107,7 +107,9 @@ export class DatastoreStreamReadable extends Readable {
107
107
  this.endCursor = info.endCursor;
108
108
  this.running = false; // ready to take more _reads
109
109
  this.lastQueryDone = Date.now();
110
- rows.forEach(row => this.push(row));
110
+ for (const row of rows) {
111
+ this.push(row);
112
+ }
111
113
  if (!info.endCursor ||
112
114
  info.moreResults === 'NO_MORE_RESULTS' ||
113
115
  (this.originalLimit && this.rowsRetrieved >= this.originalLimit)) {
@@ -8,10 +8,7 @@ export declare class DatastoreKeyValueDB implements CommonKeyValueDB {
8
8
  cfg: DatastoreKeyValueDBCfg;
9
9
  constructor(cfg: DatastoreKeyValueDBCfg);
10
10
  db: DatastoreDB;
11
- support: {
12
- increment: boolean;
13
- count?: boolean;
14
- };
11
+ support: any;
15
12
  ping(): Promise<void>;
16
13
  createTable(): Promise<void>;
17
14
  getByIds(table: string, ids: string[]): Promise<KeyValueDBTuple[]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/datastore-lib",
3
3
  "type": "module",
4
- "version": "4.8.1",
4
+ "version": "4.9.0",
5
5
  "description": "Opinionated library to work with Google Datastore, implements CommonDB",
6
6
  "dependencies": {
7
7
  "@google-cloud/datastore": "^10",
@@ -154,7 +154,9 @@ export class DatastoreStreamReadable<T = any> extends Readable implements Readab
154
154
  this.running = false // ready to take more _reads
155
155
  this.lastQueryDone = Date.now()
156
156
 
157
- rows.forEach(row => this.push(row))
157
+ for (const row of rows) {
158
+ this.push(row)
159
+ }
158
160
 
159
161
  if (
160
162
  !info.endCursor ||