@izara_project/izara-core-library-dynamodb 1.0.7 → 1.0.8

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/index.js CHANGED
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  'use strict';
19
19
 
20
20
  // Import the Dynamodb shared library functions
21
- const dynamodbSharedLib = require('./src/DynamodbSharedLib');
21
+ const dynamodbSharedLib = require('./src/DynamoDBSharedLib');
22
22
 
23
23
  // Export all the functions
24
24
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-dynamodb",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Connecting with AWS DynamoDB Resource",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,18 +14,16 @@
14
14
  "license": "AGPL-3.0-or-later",
15
15
  "homepage": "https://bitbucket.org/izara-core-libraries/izara-core-library-dynamodb/src/master/README.md",
16
16
  "devDependencies": {
17
- "jest": "^29.7.0"
17
+ "jest": "^30.0.5"
18
18
  },
19
19
  "jest": {
20
20
  "testEnvironment": "node"
21
21
  },
22
22
  "dependencies": {
23
- "@aws-sdk/client-dynamodb": "^3.782.0",
24
- "@aws-sdk/lib-dynamodb": "^3.782.0",
25
- "@aws-sdk/util-dynamodb": "^3.782.0",
26
- "@izara_project/izara-core-library-core": "^1.0.18",
27
- "@izara_project/izara-core-library-logger": "^1.0.7",
28
- "@izara_project/izara-core-library-service-schemas": "^1.0.49",
23
+ "@aws-sdk/client-dynamodb": "^3.864.0",
24
+ "@aws-sdk/lib-dynamodb": "^3.864.0",
25
+ "@aws-sdk/util-dynamodb": "^3.864.0",
26
+ "@izara_project/izara-core-library-core": "^1.0.20",
29
27
  "lodash.clonedeep": "^4.5.0"
30
28
  }
31
29
  }
@@ -20,10 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
20
20
  const { DynamoDBDocument } = require('@aws-sdk/lib-dynamodb');
21
21
  const { DynamoDB } = require('@aws-sdk/client-dynamodb');
22
22
  const { marshall, unmarshall } = require('@aws-sdk/util-dynamodb');
23
+
23
24
  const cloneDeep = require('lodash.clonedeep');
24
25
 
25
26
  // External Izara project imports
26
- const Logger = require('@izara_project/izara-core-library-logger');
27
27
  const NoRetryError = require('@izara_project/izara-core-library-core').NoRetryError;
28
28
  // const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas').serviceConfig;
29
29
 
@@ -58,16 +58,6 @@ module.exports.tableName = async (_izContext, tableName, serviceTag = null) => {
58
58
  return serviceTag + process.env.iz_stage + tableName;
59
59
  }
60
60
  }
61
- // /**
62
- // * create table name for external service
63
- // * @param {string} tableName - suffix tablename
64
- // *
65
- // * @returns {string} full tablename
66
- // */
67
- // module.exports.tableNameExternal = (serviceName, tableName) => {
68
- // return serviceName + process.env.iz_stage + tableName;
69
- // }
70
-
71
61
 
72
62
  /**
73
63
  * Creates a string set element for use with documentClient
@@ -86,7 +76,7 @@ module.exports.arrayToStringSet = (stringSetArray) => {
86
76
  return stringSet
87
77
 
88
78
  } catch (e) {
89
- Logger.error('error arrayToStringSet:', e)
79
+ console.error('error arrayToStringSet:', e)
90
80
  throw (e)
91
81
  }
92
82
  };