@awsless/awsless 0.0.95 → 0.0.96
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/bin.js +3 -2
- package/dist/features/cognito-client-secret/bundle.zip +0 -0
- package/dist/features/delete-bucket/bundle.zip +0 -0
- package/dist/features/delete-hosted-zone/bundle.zip +0 -0
- package/dist/features/global-exports/bundle.zip +0 -0
- package/dist/features/invalidate-cache/bundle.zip +0 -0
- package/dist/features/upload-bucket-asset/bundle.zip +0 -0
- package/package.json +3 -2
package/dist/bin.js
CHANGED
|
@@ -1572,6 +1572,7 @@ var schema = z6.object({
|
|
|
1572
1572
|
});
|
|
1573
1573
|
var typeGenCode = `
|
|
1574
1574
|
import { InvokeOptions, InvokeResponse } from '@awsless/lambda'
|
|
1575
|
+
import type { PartialDeep } from 'type-fest'
|
|
1575
1576
|
import type { Mock } from 'vitest'
|
|
1576
1577
|
|
|
1577
1578
|
type Func = (...args: any[]) => any
|
|
@@ -1582,8 +1583,8 @@ type Invoke<Name extends string, F extends Func> = {
|
|
|
1582
1583
|
(payload: Parameters<F>[0], options?: Omit<InvokeOptions, 'name' | 'payload'>): InvokeResponse<F>
|
|
1583
1584
|
}
|
|
1584
1585
|
|
|
1585
|
-
type Response<F extends Func> =
|
|
1586
|
-
type MockHandle<F extends Func> = (payload: Parameters<F>[0]) => Response<F> | void
|
|
1586
|
+
type Response<F extends Func> = PartialDeep<Awaited<InvokeResponse<F>>>
|
|
1587
|
+
type MockHandle<F extends Func> = (payload: Parameters<F>[0]) => Promise<Response<F>> | Response<F> | void
|
|
1587
1588
|
type MockHandleOrResponse<F extends Func> = MockHandle<F> | Response<F>
|
|
1588
1589
|
type MockBuilder<F extends Func> = (handleOrResponse?: MockHandleOrResponse<F>) => void
|
|
1589
1590
|
`;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.96",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@awsless/lambda": "^0.0.13",
|
|
28
27
|
"@awsless/sns": "^0.0.7",
|
|
29
28
|
"@awsless/redis": "^0.0.8",
|
|
30
29
|
"@awsless/sqs": "^0.0.7",
|
|
31
30
|
"@awsless/ssm": "^0.0.7",
|
|
31
|
+
"@awsless/lambda": "^0.0.13",
|
|
32
32
|
"@awsless/validate": "^0.0.6"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"rollup": "^4.0.2",
|
|
71
71
|
"rollup-plugin-replace": "^2.2.0",
|
|
72
72
|
"rollup-plugin-swc3": "^0.10.2",
|
|
73
|
+
"type-fest": "^3.6.0",
|
|
73
74
|
"wrap-ansi": "^8.1.0",
|
|
74
75
|
"zod": "^3.21.4",
|
|
75
76
|
"@awsless/code": "^0.0.10"
|