@izara_project/izara-core-library-dynamodb 1.0.11 → 1.0.12

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,4 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  'use strict';
19
19
 
20
20
  // Re-export everything from DynamoDBSharedLib
21
- module.exports = require('./src/DynamoDBSharedLib');
21
+ import dynamoDBSharedLib from './src/DynamoDBSharedLib.js';
22
+
23
+ export default dynamoDBSharedLib;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-dynamodb",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Connecting with AWS DynamoDB Resource",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,16 +14,17 @@
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.0.5"
17
+ "jest": "^30.2.0"
18
18
  },
19
19
  "jest": {
20
20
  "testEnvironment": "node"
21
21
  },
22
+ "type": "module",
22
23
  "dependencies": {
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",
24
+ "@aws-sdk/client-dynamodb": "^3.932.0",
25
+ "@aws-sdk/lib-dynamodb": "^3.932.0",
26
+ "@aws-sdk/util-dynamodb": "^3.932.0",
27
+ "@izara_project/izara-core-library-core": "^1.0.28",
27
28
  "lodash.clonedeep": "^4.5.0"
28
29
  }
29
30
  }
@@ -17,15 +17,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
18
  'use strict';
19
19
 
20
- const { DynamoDBDocument } = require('@aws-sdk/lib-dynamodb');
21
- const { DynamoDB } = require('@aws-sdk/client-dynamodb');
22
- const { marshall, unmarshall } = require('@aws-sdk/util-dynamodb');
20
+ import { DynamoDBDocument } from '@aws-sdk/lib-dynamodb';
21
+ import { DynamoDB } from '@aws-sdk/client-dynamodb';
22
+ import { marshall, unmarshall } from '@aws-sdk/util-dynamodb';
23
23
 
24
- const cloneDeep = require('lodash.clonedeep');
24
+ import cloneDeep from 'lodash.clonedeep';
25
25
 
26
26
  // External Izara project imports
27
- const NoRetryError = require('@izara_project/izara-core-library-core').NoRetryError;
28
- // const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas').serviceConfig;
27
+ import { NoRetryError } from '@izara_project/izara-core-library-core';
28
+ // import { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas').serviceConfig;
29
29
 
30
30
  // Constants
31
31
  const MAX_RECURSION_LEVEL = 20;
@@ -1718,7 +1718,7 @@ async function captureCapacityUsed(_izContext, capacityUsed, capacityStatus, que
1718
1718
  }
1719
1719
 
1720
1720
  // Consolidated exports
1721
- module.exports = {
1721
+ export default {
1722
1722
  // Table name functions
1723
1723
  tableName,
1724
1724