@allthings/cloud-toolkit 4.2.0 → 4.3.1-beta.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 +3 -0
- package/dist/lib.esm.js +3 -0
- package/package.json +3 -2
- package/dist/src/alagarr/index.test.d.ts +0 -1
- package/dist/src/alagarr/request/index.test.d.ts +0 -1
- package/dist/src/alagarr/request/middleware/base64Body.test.d.ts +0 -1
- package/dist/src/alagarr/request/middleware/cookies.test.d.ts +0 -1
- package/dist/src/alagarr/request/middleware/hostname.test.d.ts +0 -1
- package/dist/src/alagarr/request/middleware/json-body.test.d.ts +0 -1
- package/dist/src/alagarr/request/middleware/meta.test.d.ts +0 -1
- package/dist/src/alagarr/request/middleware/normalizeHeaders.test.d.ts +0 -1
- package/dist/src/alagarr/request/middleware/normalizeProgrammingModel.test.d.ts +0 -1
- package/dist/src/alagarr/request/middleware/timestamp.test.d.ts +0 -1
- package/dist/src/alagarr/request/middleware/urlEncodedBody.test.d.ts +0 -1
- package/dist/src/alagarr/response/helpers/setHeader.test.d.ts +0 -1
- package/dist/src/alagarr/response/html.test.d.ts +0 -1
- package/dist/src/alagarr/response/index.test.d.ts +0 -1
- package/dist/src/alagarr/response/json.test.d.ts +0 -1
- package/dist/src/alagarr/response/makeResponseObject.test.d.ts +0 -1
- package/dist/src/alagarr/response/middleware/compress.test.d.ts +0 -1
- package/dist/src/alagarr/response/middleware/contentLength.test.d.ts +0 -1
- package/dist/src/alagarr/response/middleware/csp.test.d.ts +0 -1
- package/dist/src/alagarr/response/middleware/enforcedHeaders.test.d.ts +0 -1
- package/dist/src/alagarr/response/middleware/etag.test.d.ts +0 -1
- package/dist/src/alagarr/response/redirect.test.d.ts +0 -1
- package/dist/src/alagarr/response/respondTo.test.d.ts +0 -1
- package/dist/src/alagarr/response/text.test.d.ts +0 -1
- package/dist/src/alagarr/utils/applyMiddleware.test.d.ts +0 -1
- package/dist/src/aws/dynamodb.test.d.ts +0 -1
- package/dist/src/aws/lambda.test.d.ts +0 -1
- package/dist/src/aws/parameterStore.test.d.ts +0 -1
- package/dist/src/aws/ses.test.d.ts +0 -1
- package/dist/src/aws/sqs.test.d.ts +0 -1
- package/dist/src/logger/logger.test.d.ts +0 -1
- package/dist/test/fixtures/requests.d.ts +0 -5
- package/dist/test/setup.d.ts +0 -0
package/dist/lib.cjs.js
CHANGED
|
@@ -781,6 +781,9 @@ const makeBatchWriteRequestWithExponentialBackoff = (documentClient, table, batc
|
|
|
781
781
|
if (retries > batchWriteMaxRetries) {
|
|
782
782
|
throw new Error('Reached maximum number of DynamoDB BatchWrite request retries.');
|
|
783
783
|
}
|
|
784
|
+
if (batchItems === undefined) {
|
|
785
|
+
throw new Error('makeBatchWriteRequestWithExponentialBackoff: batchItems must not be undefined.');
|
|
786
|
+
}
|
|
784
787
|
const command = new libDynamodb.BatchWriteCommand({
|
|
785
788
|
RequestItems: batchItems.UnprocessedItems ?? {
|
|
786
789
|
[table]: batchItems.map((Item) => ({
|
package/dist/lib.esm.js
CHANGED
|
@@ -759,6 +759,9 @@ const makeBatchWriteRequestWithExponentialBackoff = (documentClient, table, batc
|
|
|
759
759
|
if (retries > batchWriteMaxRetries) {
|
|
760
760
|
throw new Error('Reached maximum number of DynamoDB BatchWrite request retries.');
|
|
761
761
|
}
|
|
762
|
+
if (batchItems === undefined) {
|
|
763
|
+
throw new Error('makeBatchWriteRequestWithExponentialBackoff: batchItems must not be undefined.');
|
|
764
|
+
}
|
|
762
765
|
const command = new BatchWriteCommand({
|
|
763
766
|
RequestItems: batchItems.UnprocessedItems ?? {
|
|
764
767
|
[table]: batchItems.map((Item) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allthings/cloud-toolkit",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.1-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Allthings GmbH",
|
|
6
6
|
"keywords": [
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"rollup": "4.60.2",
|
|
84
84
|
"semantic-release": "25.0.3",
|
|
85
85
|
"ts-jest": "29.4.9",
|
|
86
|
-
"typescript": "
|
|
86
|
+
"typescript": "6.0.3"
|
|
87
87
|
},
|
|
88
88
|
"prettier": {
|
|
89
89
|
"printWidth": 80,
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
"^.+\\.tsx?$": [
|
|
120
120
|
"ts-jest",
|
|
121
121
|
{
|
|
122
|
+
"tsconfig": "tsconfig.test.json",
|
|
122
123
|
"diagnostics": {
|
|
123
124
|
"warnOnly": true
|
|
124
125
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import AWSLambda from 'aws-lambda';
|
|
2
|
-
import { IInterfaceRequest } from '../../src/alagarr';
|
|
3
|
-
export declare const mockContext: AWSLambda.Context;
|
|
4
|
-
export declare const mockRequestContext: AWSLambda.APIGatewayEventRequestContext;
|
|
5
|
-
export declare const get: IInterfaceRequest;
|
package/dist/test/setup.d.ts
DELETED
|
File without changes
|