@izara_project/izara-core-library-dynamodb 1.0.16 → 1.0.18

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
@@ -15,9 +15,35 @@ You should have received a copy of the GNU Affero General Public License
15
15
  along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
17
 
18
- // Re-export everything from DynamoDBSharedLib
19
- import dynamoDBSharedLib from './src/DynamoDBSharedLib.js';
18
+ import * as DynamoDB from './src/DynamoDBSharedLib.js';
20
19
 
21
20
  export default {
22
-
21
+ // === Table name functions ===
22
+ tableName: DynamoDB.tableName,
23
+
24
+ // === Data conversion helpers ===
25
+ arrayToStringSet: DynamoDB.arrayToStringSet,
26
+ stringSetToArray: DynamoDB.stringSetToArray,
27
+
28
+ // === CRUD operations ===
29
+ getItem: DynamoDB.getItem,
30
+ query: DynamoDB.query,
31
+ queryResults: DynamoDB.queryResults,
32
+ scan: DynamoDB.scan,
33
+ scanResults: DynamoDB.scanResults,
34
+ putItem: DynamoDB.putItem,
35
+ updateItem: DynamoDB.updateItem,
36
+ deleteItem: DynamoDB.deleteItem,
37
+
38
+ // === Batch and transaction operations ===
39
+ transactWriteItems: DynamoDB.transactWriteItems,
40
+ batchDeleteItems: DynamoDB.batchDeleteItems,
41
+ batchPutItems: DynamoDB.batchPutItems,
42
+
43
+ // === Logic & Helpers ===
44
+ processLogicalElements: DynamoDB.processLogicalElements,
45
+ QueryElementConditionalCheckStringSetEquals:
46
+ DynamoDB.QueryElementConditionalCheckStringSetEquals,
47
+ generateNotExistLogicalElements: DynamoDB.generateNotExistLogicalElements,
48
+ refractorAttributesToComplex: DynamoDB.refractorAttributesToComplex
23
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-dynamodb",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Connecting with AWS DynamoDB Resource",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,7 +14,7 @@
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": "^30.4.0"
17
+ "jest": "^30.4.1"
18
18
  },
19
19
  "jest": {
20
20
  "testEnvironment": "node"
@@ -25,7 +25,7 @@
25
25
  "@aws-sdk/lib-dynamodb": "^3.0.0",
26
26
  "@aws-sdk/util-dynamodb": "^3.0.0",
27
27
  "@izara_project/izara-core-library-core": "^1.0.28",
28
- "lodash.clonedeep": "^4.5.0"
28
+ "lodash": "^4.0.0"
29
29
  },
30
30
  "peerDependenciesMeta": {
31
31
  "@aws-sdk/client-dynamodb": {
@@ -40,7 +40,7 @@
40
40
  "@izara_project/izara-core-library-core": {
41
41
  "optional": false
42
42
  },
43
- "lodash.clonedeep": {
43
+ "lodash": {
44
44
  "optional": true
45
45
  }
46
46
  },
@@ -49,6 +49,6 @@
49
49
  "@aws-sdk/lib-dynamodb": "^3.1045.0",
50
50
  "@aws-sdk/util-dynamodb": "^3.996.2",
51
51
  "@izara_project/izara-core-library-core": "^1.0.32",
52
- "lodash.clonedeep": "^4.5.0"
52
+ "lodash": "^4.18.1"
53
53
  }
54
54
  }
@@ -19,7 +19,7 @@ import { DynamoDBDocument } from '@aws-sdk/lib-dynamodb';
19
19
  import { DynamoDB } from '@aws-sdk/client-dynamodb';
20
20
  import { marshall, unmarshall } from '@aws-sdk/util-dynamodb';
21
21
 
22
- import cloneDeep from 'lodash.clonedeep';
22
+ import cloneDeep from 'lodash/cloneDeep';
23
23
 
24
24
  // External Izara project imports
25
25
  import { NoRetryError } from '@izara_project/izara-core-library-core';