@pi-r/aws 0.12.5 → 0.13.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.
Files changed (2) hide show
  1. package/client/index.js +1 -1
  2. package/package.json +2 -2
package/client/index.js CHANGED
@@ -297,7 +297,7 @@ async function executeBatchQuery(credential, batch, sessionKey) {
297
297
  throw formatError(item, "Missing database table");
298
298
  }
299
299
  if (useCache) {
300
- queryString = TableName + '_' + Cloud.asString(key, true) + (id !== undefined ? '_' + Cloud.asString(id, true) : '');
300
+ queryString = Cloud.keyForResult(TableName, key, id);
301
301
  if (!update && (rows = this.getCacheResult(service, credential, queryString, cacheValue, ignoreCache))) {
302
302
  result[i] = rows;
303
303
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/aws",
3
- "version": "0.12.5",
3
+ "version": "0.13.0",
4
4
  "description": "AWS V2 cloud functions for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "types": "client/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "@e-mc/cloud": "^0.14.6",
21
21
  "@e-mc/module": "^0.14.6",
22
22
  "@e-mc/types": "^0.14.6",
23
- "@pi-r/aws-lib": "^0.12.5",
23
+ "@pi-r/aws-lib": "^0.13.0",
24
24
  "aws-sdk": "^2.1693.0"
25
25
  }
26
26
  }