@ikonintegration/ikapi 3.0.14 → 3.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikonintegration/ikapi",
3
- "version": "3.0.14",
3
+ "version": "3.0.17",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "main.js",
@@ -34,7 +34,7 @@ export default class IKDBQueryGet extends IKDBBaseQuery {
34
34
  ...(this.limit > 0 ? { Limit: this.limit - (appendingItems ? appendingItems.length : 0) } : {}),
35
35
  ...(!this.scanIndexForward ? { ScanIndexForward: false } : {}),
36
36
  };
37
- localConsole.log('Querying: ', query, appendingItems.lengthlog);
37
+ localConsole.log('Querying: ', query, appendingItems.length);
38
38
  const resp = await dbManager.connection.query(query);
39
39
  // localConsole.debug('Raw result: ', resp);
40
40
  return resp;
@@ -9,7 +9,7 @@ export default class IKDBQueryScan extends IKDBBaseQuery {
9
9
  }
10
10
  async run(dbManager, appendingItems) {
11
11
  const localConsole = (dbManager.transaction ? dbManager.transaction.logger : console);
12
- const resp = await this.rawRun(dbManager);
12
+ const resp = await this.rawRun(dbManager, appendingItems);
13
13
  if (resp.Items) {
14
14
  let unmarshalled = Utils.decapsulateForDB(resp.Items);
15
15
  localConsole.debug('Parsed result: ', unmarshalled);
@@ -20,7 +20,7 @@ export default class IKDBQueryScan extends IKDBBaseQuery {
20
20
  //Check for continuation
21
21
  this.lastEvaluatedKey = resp.LastEvaluatedKey;
22
22
  if (resp.LastEvaluatedKey && !(this.limit > 0 && unmarshalled.length >= this.limit)) {
23
- localConsole.log('Using continuation key:', resp.LastEvaluatedKey);
23
+ localConsole.log('Using continuation key:', resp.LastEvaluatedKey, unmarshalled.length, this.limit);
24
24
  this.exclusiveStartKey = resp.LastEvaluatedKey;
25
25
  return this.run(dbManager, unmarshalled);
26
26
  } return unmarshalled;
@@ -32,7 +32,7 @@ export default class IKDBQueryScan extends IKDBBaseQuery {
32
32
  ...this._rawQuery(dbManager.tableName),
33
33
  ...(this.limit > 0 ? { Limit: this.limit - (appendingItems ? appendingItems.length : 0) } : {})
34
34
  };
35
- localConsole.log('Scanning: ', query, appendingItems.length);
35
+ localConsole.log('Scanning: ', query, appendingItems ? appendingItems.length : 0);
36
36
  const resp = await dbManager.connection.scan(query);
37
37
  // localConsole.debug('Raw result: ', resp);
38
38
  return resp;