@allthings/cloud-toolkit 1.5.3 → 1.5.5-dev.1
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/lib.cjs.js +23 -19
- package/dist/lib.esm.js +20 -19
- package/dist/lib.umd.min.js +1 -1
- package/dist/src/aws/dynamodb.d.ts +2 -2
- package/dist/src/aws/lambda.d.ts +2 -2
- package/dist/src/aws/parameterStore.d.ts +2 -2
- package/dist/src/aws/ses.d.ts +2 -2
- package/dist/src/aws/sqs.d.ts +2 -2
- package/dist/src/index.d.ts +1 -0
- package/package.json +25 -25
- package/dist/src/aws/types.d.ts +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DynamoDBClientConfig, PutRequest, QueryOutput, ScanOutput } from '@aws-sdk/client-dynamodb';
|
|
2
2
|
import { DeleteCommandInput, DeleteCommandOutput, GetCommandInput, GetCommandOutput, PutCommandInput, QueryCommandInput, ScanCommandInput, UpdateCommandInput, UpdateCommandOutput } from '@aws-sdk/lib-dynamodb';
|
|
3
|
-
import {
|
|
3
|
+
import { Logger } from 'winston';
|
|
4
4
|
export interface IDynamoDBConfig {
|
|
5
5
|
batchWriteMaxRetries?: number;
|
|
6
6
|
clientConfig?: DynamoDBClientConfig;
|
|
7
7
|
dockerConfig?: {
|
|
8
8
|
endpoint: string;
|
|
9
9
|
};
|
|
10
|
-
logger?:
|
|
10
|
+
logger?: Logger;
|
|
11
11
|
queueConfig?: {
|
|
12
12
|
queueConcurrency?: number | undefined;
|
|
13
13
|
queueDelay?: number | undefined;
|
package/dist/src/aws/lambda.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { InvocationType, LambdaClientConfig } from '@aws-sdk/client-lambda';
|
|
2
|
-
import {
|
|
2
|
+
import { Logger } from 'winston';
|
|
3
3
|
export interface ILambda {
|
|
4
4
|
clientConfig?: LambdaClientConfig;
|
|
5
5
|
functionName: string;
|
|
6
|
-
logger?:
|
|
6
|
+
logger?: Logger;
|
|
7
7
|
}
|
|
8
8
|
export type TInvokeLambda = (invocationType: InvocationType, payload: object) => Promise<boolean>;
|
|
9
9
|
declare const lambda: (userConfig: ILambda) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SSMClientConfig } from '@aws-sdk/client-ssm';
|
|
2
|
-
import {
|
|
2
|
+
import { Logger } from 'winston';
|
|
3
3
|
export interface IParameterStore {
|
|
4
4
|
clientConfig?: SSMClientConfig;
|
|
5
5
|
endpoint?: string;
|
|
6
|
-
logger?:
|
|
6
|
+
logger?: Logger;
|
|
7
7
|
onlyDefault?: boolean;
|
|
8
8
|
prefix?: string;
|
|
9
9
|
}
|
package/dist/src/aws/ses.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as aws from '@aws-sdk/client-ses';
|
|
2
|
-
import {
|
|
2
|
+
import { Logger } from 'winston';
|
|
3
3
|
export interface ISES {
|
|
4
4
|
clientConfig?: aws.SESClientConfig;
|
|
5
5
|
customSMTPConfig?: {
|
|
@@ -7,7 +7,7 @@ export interface ISES {
|
|
|
7
7
|
port: number;
|
|
8
8
|
secure: boolean;
|
|
9
9
|
};
|
|
10
|
-
logger?:
|
|
10
|
+
logger?: Logger;
|
|
11
11
|
}
|
|
12
12
|
export declare const DEFAULT_CLIENT_CONFIG: ISES;
|
|
13
13
|
export interface IEmailAttachment {
|
package/dist/src/aws/sqs.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DeleteMessageCommandInput, MessageAttributeValue, ReceiveMessageCommandOutput, SQSClientConfig } from '@aws-sdk/client-sqs';
|
|
2
|
-
import {
|
|
2
|
+
import { Logger } from 'winston';
|
|
3
3
|
export interface ISQS {
|
|
4
4
|
clientConfig?: SQSClientConfig;
|
|
5
|
-
logger?:
|
|
5
|
+
logger?: Logger;
|
|
6
6
|
}
|
|
7
7
|
export type TGetQueueUrl = (queueName: string) => Promise<string | undefined>;
|
|
8
8
|
export type TSendMessage = (queueUrl: string, message: string, fifoSettings?: {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, DEFAULT_SES_CLIENT_CONFIG, dynamodb, IDynamoDBConfig, IEmailAttachment, IEmailOptions, ILambda, IParameterStore, ISES, ISQS, IUnprocessedItems, lambda, parameterStore, ses, sqs, TBatchWriteItems, TDeleteItem, TDeleteQueueItem, TGetItem, TGetQueueItems, TGetQueueUrl, TGetSecret, TGetSecrets, TInvokeLambda, TPutItem, TQueryTable, TScanTable, TSendMail, TSendMessage, TUpdateItem, } from './aws';
|
|
2
2
|
export { default as logger } from './logger/logger';
|
|
3
|
+
export { Logger } from 'winston';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allthings/cloud-toolkit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5-dev.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Allthings GmbH",
|
|
6
6
|
"keywords": [
|
|
@@ -50,42 +50,42 @@
|
|
|
50
50
|
"serve": "npx serve -l 3333"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
54
|
-
"@aws-sdk/client-lambda": "3.
|
|
55
|
-
"@aws-sdk/client-ses": "3.
|
|
56
|
-
"@aws-sdk/client-sqs": "3.
|
|
57
|
-
"@aws-sdk/client-ssm": "3.
|
|
58
|
-
"@aws-sdk/lib-dynamodb": "3.
|
|
53
|
+
"@aws-sdk/client-dynamodb": "3.733.0",
|
|
54
|
+
"@aws-sdk/client-lambda": "3.731.1",
|
|
55
|
+
"@aws-sdk/client-ses": "3.731.1",
|
|
56
|
+
"@aws-sdk/client-sqs": "3.731.1",
|
|
57
|
+
"@aws-sdk/client-ssm": "3.731.1",
|
|
58
|
+
"@aws-sdk/lib-dynamodb": "3.733.0",
|
|
59
59
|
"bottleneck": "2.19.5",
|
|
60
|
-
"cross-fetch": "4.
|
|
60
|
+
"cross-fetch": "4.1.0",
|
|
61
61
|
"nodemailer": "6.9.16",
|
|
62
62
|
"query-string": "9.1.1",
|
|
63
63
|
"winston": "3.17.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@allthings/eslint-config": "2.1.1",
|
|
67
|
-
"@commitlint/cli": "19.6.
|
|
67
|
+
"@commitlint/cli": "19.6.1",
|
|
68
68
|
"@commitlint/config-conventional": "19.6.0",
|
|
69
|
-
"@rollup/plugin-commonjs": "28.0.
|
|
69
|
+
"@rollup/plugin-commonjs": "28.0.2",
|
|
70
70
|
"@rollup/plugin-json": "6.1.0",
|
|
71
|
-
"@rollup/plugin-node-resolve": "
|
|
72
|
-
"@rollup/plugin-replace": "6.0.
|
|
71
|
+
"@rollup/plugin-node-resolve": "16.0.0",
|
|
72
|
+
"@rollup/plugin-replace": "6.0.2",
|
|
73
73
|
"@rollup/plugin-terser": "0.4.4",
|
|
74
|
-
"@types/jest": "
|
|
75
|
-
"@types/node": "22.10.
|
|
74
|
+
"@types/jest": "29.5.14",
|
|
75
|
+
"@types/node": "22.10.5",
|
|
76
76
|
"@types/nodemailer": "6.4.17",
|
|
77
77
|
"@types/query-string": "6.3.0",
|
|
78
78
|
"aws-sdk-client-mock": "4.1.0",
|
|
79
79
|
"eslint": "8.57.1",
|
|
80
80
|
"husky": "9.1.7",
|
|
81
|
-
"jest": "
|
|
82
|
-
"lint-staged": "15.
|
|
83
|
-
"prettier": "3.4.
|
|
81
|
+
"jest": "29.7.0",
|
|
82
|
+
"lint-staged": "15.4.1",
|
|
83
|
+
"prettier": "3.4.2",
|
|
84
84
|
"rimraf": "5.0.10",
|
|
85
|
-
"rollup": "4.
|
|
86
|
-
"semantic-release": "
|
|
87
|
-
"ts-jest": "
|
|
88
|
-
"typescript": "5.7.
|
|
85
|
+
"rollup": "4.29.2",
|
|
86
|
+
"semantic-release": "24.2.1",
|
|
87
|
+
"ts-jest": "29.2.5",
|
|
88
|
+
"typescript": "5.7.3"
|
|
89
89
|
},
|
|
90
90
|
"prettier": {
|
|
91
91
|
"printWidth": 80,
|
|
@@ -137,10 +137,10 @@
|
|
|
137
137
|
],
|
|
138
138
|
"coverageThreshold": {
|
|
139
139
|
"global": {
|
|
140
|
-
"branches":
|
|
141
|
-
"functions":
|
|
142
|
-
"lines":
|
|
143
|
-
"statements":
|
|
140
|
+
"branches": 75,
|
|
141
|
+
"functions": 89,
|
|
142
|
+
"lines": 90,
|
|
143
|
+
"statements": 90
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
"coveragePathIgnorePatterns": [
|
package/dist/src/aws/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TAWSLogger = (messageType: 'error' | 'info' | 'log', message: string) => void;
|