@dmptool/utils 1.0.41 → 1.0.43
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/dist/cloudFormation.js +1 -0
- package/dist/dynamo.js +2 -5
- package/dist/sqs.js +1 -1
- package/package.json +17 -17
package/dist/cloudFormation.js
CHANGED
|
@@ -59,6 +59,7 @@ const getExport = async (logger, name) => {
|
|
|
59
59
|
catch (error) {
|
|
60
60
|
const errMsg = (0, general_1.toErrorMessage)(error);
|
|
61
61
|
logger.fatal({ name, error: errMsg }, 'Error fetching CloudFormation export');
|
|
62
|
+
//eslint-disable-next-line preserve-caught-error
|
|
62
63
|
throw new Error(errMsg);
|
|
63
64
|
}
|
|
64
65
|
};
|
package/dist/dynamo.js
CHANGED
|
@@ -205,14 +205,11 @@ exports.getDMPVersions = getDMPVersions;
|
|
|
205
205
|
* metadata or an empty array if none were found.
|
|
206
206
|
* @throws DMPToolDynamoError if the records could not be fetched due to an error
|
|
207
207
|
*/
|
|
208
|
-
// Fetch the specified DMP metadata record
|
|
209
|
-
// - Version is optional, if it is not provided, ALL versions will be returned
|
|
210
|
-
// - If you just want the latest version, use the DMP_LATEST_VERSION constant
|
|
211
208
|
const getDMPs = async (dynamoConnectionParams, domainName, dmpId, version, includeExtensions = true) => {
|
|
212
209
|
if (!dynamoConnectionParams || !dmpId || dmpId.trim().length === 0) {
|
|
213
210
|
throw new DMPToolDynamoError('Missing Dynamo config or DMP ID');
|
|
214
211
|
}
|
|
215
|
-
let params
|
|
212
|
+
let params;
|
|
216
213
|
if (version) {
|
|
217
214
|
params = {
|
|
218
215
|
KeyConditionExpression: "PK = :pk and SK = :sk",
|
|
@@ -289,7 +286,7 @@ const getDMPExtensions = async (dynamoConnectionParams, domainName, dmpId, versi
|
|
|
289
286
|
if (!dynamoConnectionParams || !dmpId || dmpId.trim().length === 0) {
|
|
290
287
|
throw new DMPToolDynamoError('Missing Dynamo Config or DMP ID');
|
|
291
288
|
}
|
|
292
|
-
let params
|
|
289
|
+
let params;
|
|
293
290
|
if (version) {
|
|
294
291
|
params = {
|
|
295
292
|
KeyConditionExpression: "PK = :pk and SK = :sk",
|
package/dist/sqs.js
CHANGED
|
@@ -20,7 +20,7 @@ const general_1 = require("./general");
|
|
|
20
20
|
const sendMessage = async (logger, queueURL, source, detailType, details, region = 'us-west-2', useTLS = true // Should be false when running in a local dev environment
|
|
21
21
|
) => {
|
|
22
22
|
var _a, _b;
|
|
23
|
-
let errMsg
|
|
23
|
+
let errMsg;
|
|
24
24
|
if (logger && queueURL) {
|
|
25
25
|
// Create a new SQS client instance
|
|
26
26
|
const client = new client_sqs_1.SQSClient({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dmptool/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
4
4
|
"description": "Helper/Utility functions for use in the DMP Tool services. Particularly AWS tooling and maDMP serialization",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,42 +32,42 @@
|
|
|
32
32
|
"trivy-med": "./scripts/trivy-med.sh"
|
|
33
33
|
},
|
|
34
34
|
"overrides": {
|
|
35
|
-
"
|
|
35
|
+
"fast-xml-parser": "5.5.6"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@dmptool/types": "^3.1.
|
|
38
|
+
"@dmptool/types": "^3.1.3",
|
|
39
39
|
"@elastic/ecs-pino-format": "^1.5.0",
|
|
40
40
|
"date-fns": "^4.1.0",
|
|
41
41
|
"jsonschema": "^1.5.0",
|
|
42
|
-
"mysql2": "^3.
|
|
42
|
+
"mysql2": "^3.19.1",
|
|
43
43
|
"pino": "^10.3.1",
|
|
44
44
|
"pino-lambda": "^4.4.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
48
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
49
|
-
"@aws-sdk/client-s3": "^3.
|
|
50
|
-
"@aws-sdk/client-sns": "^3.
|
|
51
|
-
"@aws-sdk/client-sqs": "^3.
|
|
52
|
-
"@aws-sdk/client-ssm": "^3.
|
|
53
|
-
"@smithy/node-http-handler": "^4.
|
|
54
|
-
"@aws-sdk/s3-request-presigner": "^3.
|
|
55
|
-
"@aws-sdk/util-dynamodb": "^3.
|
|
47
|
+
"@aws-sdk/client-cloudformation": "^3.1011.0",
|
|
48
|
+
"@aws-sdk/client-dynamodb": "^3.1011.0",
|
|
49
|
+
"@aws-sdk/client-s3": "^3.1011.0",
|
|
50
|
+
"@aws-sdk/client-sns": "^3.1011.0",
|
|
51
|
+
"@aws-sdk/client-sqs": "^3.1011.0",
|
|
52
|
+
"@aws-sdk/client-ssm": "^3.1011.0",
|
|
53
|
+
"@smithy/node-http-handler": "^4.5.0",
|
|
54
|
+
"@aws-sdk/s3-request-presigner": "^3.1011.0",
|
|
55
|
+
"@aws-sdk/util-dynamodb": "^3.996.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@aws-sdk/util-stream-node": "^3.374.0",
|
|
59
59
|
"@eslint/js": "^10.0.1",
|
|
60
60
|
"@types/jest": "^30.0.0",
|
|
61
|
-
"@types/node": "^25.
|
|
61
|
+
"@types/node": "^25.4.0",
|
|
62
62
|
"aws-sdk-client-mock": "^4.1.0",
|
|
63
|
-
"eslint": "^10.0.
|
|
63
|
+
"eslint": "^10.0.3",
|
|
64
64
|
"husky": "^9.1.7",
|
|
65
|
-
"jest": "^30.
|
|
65
|
+
"jest": "^30.3.0",
|
|
66
66
|
"jest-expect-message": "^1.1.3",
|
|
67
67
|
"ts-jest": "^29.4.6",
|
|
68
68
|
"ts-node": "^10.9.2",
|
|
69
69
|
"ts-node-dev": "^2.0.0",
|
|
70
70
|
"typescript": "^5.9.3",
|
|
71
|
-
"typescript-eslint": "^8.
|
|
71
|
+
"typescript-eslint": "^8.57.1"
|
|
72
72
|
}
|
|
73
73
|
}
|