@lafken/dynamo 0.12.14 → 0.12.15
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.
|
@@ -14,7 +14,10 @@ class FindOneBuilder extends find_1.FindBuilder {
|
|
|
14
14
|
async exec() {
|
|
15
15
|
const { cache, cacheTtl, modelProps, inputProps } = this.queryOptions;
|
|
16
16
|
const fetch = async () => {
|
|
17
|
-
const { data } = await this.runQuery(
|
|
17
|
+
const { data } = await this.runQuery({
|
|
18
|
+
...this.command,
|
|
19
|
+
Limit: inputProps.filter !== undefined ? undefined : 1,
|
|
20
|
+
});
|
|
18
21
|
return data?.[0];
|
|
19
22
|
};
|
|
20
23
|
if (cache && cacheTtl) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lafken/dynamo",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Define DynamoDB tables using TypeScript decorators - type-safe, declarative infrastructure with Lafken",
|
|
6
6
|
"keywords": [
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@aws-sdk/client-dynamodb": "^3.1062.0",
|
|
60
60
|
"@aws-sdk/util-dynamodb": "^3.996.2",
|
|
61
61
|
"reflect-metadata": "^0.2.2",
|
|
62
|
-
"@lafken/resolver": "0.12.
|
|
62
|
+
"@lafken/resolver": "0.12.15"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@cdktn/provider-aws": "^24.4.0",
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
"typescript": "6.0.3",
|
|
74
74
|
"unplugin-swc": "^1.5.9",
|
|
75
75
|
"vitest": "^4.1.8",
|
|
76
|
-
"@lafken/common": "0.12.
|
|
76
|
+
"@lafken/common": "0.12.15"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"@cdktn/provider-aws": ">=23.0.0",
|
|
80
80
|
"cdktn": ">=0.22.0",
|
|
81
81
|
"constructs": "^10.4.5",
|
|
82
|
-
"@lafken/common": "0.12.
|
|
82
|
+
"@lafken/common": "0.12.15"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=20.19"
|