@awsless/awsless 0.0.94 → 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/dist/index.js +4 -4
- package/package.json +5 -4
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/dist/index.js
CHANGED
|
@@ -297,7 +297,7 @@ var mockFunction = (cb) => {
|
|
|
297
297
|
};
|
|
298
298
|
|
|
299
299
|
// src/node/mock/topic.ts
|
|
300
|
-
import {
|
|
300
|
+
import { mockSNS } from "@awsless/sns";
|
|
301
301
|
var mockTopic = (cb) => {
|
|
302
302
|
const list = {};
|
|
303
303
|
const mock = createProxy((name) => {
|
|
@@ -307,14 +307,14 @@ var mockTopic = (cb) => {
|
|
|
307
307
|
};
|
|
308
308
|
});
|
|
309
309
|
cb(mock);
|
|
310
|
-
const result =
|
|
310
|
+
const result = mockSNS(list);
|
|
311
311
|
return createProxy((name) => {
|
|
312
312
|
return result[getTopicName(name)];
|
|
313
313
|
});
|
|
314
314
|
};
|
|
315
315
|
|
|
316
316
|
// src/node/mock/queue.ts
|
|
317
|
-
import { mockSQS
|
|
317
|
+
import { mockSQS } from "@awsless/sqs";
|
|
318
318
|
var mockQueue = (cb) => {
|
|
319
319
|
const list = {};
|
|
320
320
|
const mock = createProxy((stack) => {
|
|
@@ -326,7 +326,7 @@ var mockQueue = (cb) => {
|
|
|
326
326
|
});
|
|
327
327
|
});
|
|
328
328
|
cb(mock);
|
|
329
|
-
const result =
|
|
329
|
+
const result = mockSQS(list);
|
|
330
330
|
return createProxy((stack) => {
|
|
331
331
|
return createProxy((name) => {
|
|
332
332
|
return result[getQueueName(stack, name)];
|
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/redis": "^0.0.8",
|
|
28
27
|
"@awsless/sns": "^0.0.7",
|
|
29
|
-
"@awsless/
|
|
30
|
-
"@awsless/ssm": "^0.0.7",
|
|
28
|
+
"@awsless/redis": "^0.0.8",
|
|
31
29
|
"@awsless/sqs": "^0.0.7",
|
|
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"
|