@awsless/validate 0.0.6 → 0.0.7
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/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -188,7 +188,7 @@ var dynamoDbStream = (table) => {
|
|
|
188
188
|
return input.Records.map((record) => {
|
|
189
189
|
const item = record;
|
|
190
190
|
return {
|
|
191
|
-
event: record.eventName,
|
|
191
|
+
event: record.eventName.toLowerCase(),
|
|
192
192
|
keys: item.dynamodb.Keys,
|
|
193
193
|
old: item.dynamodb.OldImage,
|
|
194
194
|
new: item.dynamodb.NewImage
|
package/dist/index.d.cts
CHANGED
|
@@ -48,10 +48,10 @@ type DynamoDBStreamSchema<T extends TableDefinition<any, any, any, any>> = BaseS
|
|
|
48
48
|
};
|
|
49
49
|
}[];
|
|
50
50
|
}, {
|
|
51
|
-
event: EventName
|
|
51
|
+
event: Lowercase<EventName>;
|
|
52
52
|
keys: PrimaryKey<T>;
|
|
53
|
-
old?:
|
|
54
|
-
new?:
|
|
53
|
+
old?: T['schema']['OUTPUT'];
|
|
54
|
+
new?: T['schema']['OUTPUT'];
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const dynamoDbStream: <T extends TableDefinition<any, any, any, any>>(table: T) => DynamoDBStreamSchema<T>;
|
|
57
57
|
|
package/dist/index.d.ts
CHANGED
|
@@ -48,10 +48,10 @@ type DynamoDBStreamSchema<T extends TableDefinition<any, any, any, any>> = BaseS
|
|
|
48
48
|
};
|
|
49
49
|
}[];
|
|
50
50
|
}, {
|
|
51
|
-
event: EventName
|
|
51
|
+
event: Lowercase<EventName>;
|
|
52
52
|
keys: PrimaryKey<T>;
|
|
53
|
-
old?:
|
|
54
|
-
new?:
|
|
53
|
+
old?: T['schema']['OUTPUT'];
|
|
54
|
+
new?: T['schema']['OUTPUT'];
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const dynamoDbStream: <T extends TableDefinition<any, any, any, any>>(table: T) => DynamoDBStreamSchema<T>;
|
|
57
57
|
|
package/dist/index.js
CHANGED
|
@@ -165,7 +165,7 @@ var dynamoDbStream = (table) => {
|
|
|
165
165
|
return input.Records.map((record) => {
|
|
166
166
|
const item = record;
|
|
167
167
|
return {
|
|
168
|
-
event: record.eventName,
|
|
168
|
+
event: record.eventName.toLowerCase(),
|
|
169
169
|
keys: item.dynamodb.Keys,
|
|
170
170
|
old: item.dynamodb.OldImage,
|
|
171
171
|
new: item.dynamodb.NewImage
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/validate",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@awsless/
|
|
28
|
-
"@awsless/
|
|
27
|
+
"@awsless/big-float": "^0.0.4",
|
|
28
|
+
"@awsless/dynamodb": "^0.0.40"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@awsless/big-float": "^0.0.4",
|