@izara_project/izara-core-library-dynamodb 1.0.2 → 1.0.3

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": "@izara_project/izara-core-library-dynamodb",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Connecting with AWS DynamoDB Resource",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@ const cloneDeep = require('lodash.clonedeep');
25
25
  // External Izara project imports
26
26
  const Logger = require('@izara_project/izara-core-library-logger');
27
27
  const NoRetryError = require('@izara_project/izara-core-library-core').NoRetryError;
28
- const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas').serviceConfig;
28
+ // const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas').serviceConfig;
29
29
 
30
30
  // Constants
31
31
  const MAX_RECURSION_LEVEL = 20;
@@ -53,9 +53,9 @@ const dynamodb = DynamoDBDocument.from(new DynamoDB(), {
53
53
 
54
54
  module.exports.tableName = async (_izContext, tableName, serviceTag = null) => {
55
55
  if (!serviceTag) {
56
- return process.env.iz_resourcePrefix + tableName;
56
+ return process.env.iz_serviceTag + process.env.iz_stage + tableName;
57
57
  } else {
58
- return (await getServiceNameWithCache(_izContext, serviceTag)) + process.env.iz_stage + tableName;
58
+ return serviceTag + process.env.iz_stage + tableName;
59
59
  }
60
60
  }
61
61
  // /**