@awsless/awsless 0.0.98 → 0.0.100
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 +939 -553
- 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.d.ts +26 -14
- package/package.json +8 -5
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -6,14 +6,15 @@ import { Handler, Loggers } from '@awsless/lambda';
|
|
|
6
6
|
import { BaseSchema, SnsTopicSchema, SqsQueueSchema } from '@awsless/validate';
|
|
7
7
|
import * as valibot from 'valibot';
|
|
8
8
|
|
|
9
|
-
type AssetRead = (
|
|
10
|
-
type AssetWrite = (name: string, data: string | Buffer) => Promise<void>;
|
|
11
|
-
type AssetPublish = (name: string, data: string | Buffer, hash: string) => Promise<{
|
|
9
|
+
type AssetRead = (fingerprint: string, names: string[]) => Promise<Buffer[]>;
|
|
10
|
+
type AssetWrite = (fingerprint: string, cb: (write: (name: string, data: string | Buffer) => Promise<void>) => Promise<void>) => Promise<void>;
|
|
11
|
+
type AssetPublish = (name: string, data: string | Buffer, hash: string | Buffer) => Promise<{
|
|
12
12
|
bucket: string;
|
|
13
13
|
key: string;
|
|
14
14
|
version: string;
|
|
15
15
|
}>;
|
|
16
16
|
type BuildProps = {
|
|
17
|
+
read: AssetRead;
|
|
17
18
|
write: AssetWrite;
|
|
18
19
|
};
|
|
19
20
|
type PublishProps = {
|
|
@@ -11008,6 +11009,22 @@ declare const defaultPlugins: (Plugin<zod.ZodObject<{
|
|
|
11008
11009
|
}[] | undefined;
|
|
11009
11010
|
} | undefined;
|
|
11010
11011
|
}[];
|
|
11012
|
+
}>> | Plugin<zod.ZodObject<{
|
|
11013
|
+
stacks: zod.ZodArray<zod.ZodObject<{
|
|
11014
|
+
tests: zod.ZodOptional<zod.ZodUnion<[zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string[], string>, zod.ZodArray<zod.ZodEffects<zod.ZodString, string, string>, "many">]>>;
|
|
11015
|
+
}, "strip", zod.ZodTypeAny, {
|
|
11016
|
+
tests?: string[] | undefined;
|
|
11017
|
+
}, {
|
|
11018
|
+
tests?: string | string[] | undefined;
|
|
11019
|
+
}>, "many">;
|
|
11020
|
+
}, "strip", zod.ZodTypeAny, {
|
|
11021
|
+
stacks: {
|
|
11022
|
+
tests?: string[] | undefined;
|
|
11023
|
+
}[];
|
|
11024
|
+
}, {
|
|
11025
|
+
stacks: {
|
|
11026
|
+
tests?: string | string[] | undefined;
|
|
11027
|
+
}[];
|
|
11011
11028
|
}>>)[];
|
|
11012
11029
|
type CombinedDefaultPluginsConfigInput = ExtendedConfigInput<(typeof defaultPlugins)[number]['schema']>;
|
|
11013
11030
|
|
|
@@ -11132,22 +11149,15 @@ declare class Function$1 extends Resource {
|
|
|
11132
11149
|
|
|
11133
11150
|
type Binding = (lambda: Function$1) => void;
|
|
11134
11151
|
|
|
11135
|
-
type ExtendedConfigOutput<S extends AnyZodObject | undefined = undefined> =
|
|
11136
|
-
type ExtendedConfigInput<S extends AnyZodObject | undefined = undefined> =
|
|
11137
|
-
type ResourceContext<S extends AnyZodObject | undefined = undefined> = {
|
|
11138
|
-
config: ExtendedConfigOutput<S>;
|
|
11139
|
-
app: App;
|
|
11140
|
-
stack: Stack;
|
|
11141
|
-
bootstrap: Stack;
|
|
11142
|
-
usEastBootstrap: Stack;
|
|
11143
|
-
resource: Resource;
|
|
11144
|
-
};
|
|
11152
|
+
type ExtendedConfigOutput<S extends AnyZodObject | undefined = undefined> = S extends AnyZodObject ? BaseConfig & z.output<S> : BaseConfig;
|
|
11153
|
+
type ExtendedConfigInput<S extends AnyZodObject | undefined = undefined> = S extends AnyZodObject ? AppConfigInput & z.input<S> : AppConfigInput;
|
|
11145
11154
|
type StackContext<S extends AnyZodObject | undefined = undefined> = {
|
|
11146
11155
|
config: ExtendedConfigOutput<S>;
|
|
11147
11156
|
stack: Stack;
|
|
11148
11157
|
stackConfig: ExtendedConfigOutput<S>['stacks'][number];
|
|
11149
11158
|
bootstrap: Stack;
|
|
11150
11159
|
usEastBootstrap: Stack;
|
|
11160
|
+
tests: Map<string, string[]>;
|
|
11151
11161
|
app: App;
|
|
11152
11162
|
bind: (cb: Binding) => void;
|
|
11153
11163
|
};
|
|
@@ -11155,6 +11165,7 @@ type AppContext<S extends AnyZodObject | undefined = undefined> = {
|
|
|
11155
11165
|
config: ExtendedConfigOutput<S>;
|
|
11156
11166
|
bootstrap: Stack;
|
|
11157
11167
|
usEastBootstrap: Stack;
|
|
11168
|
+
tests: Map<string, string[]>;
|
|
11158
11169
|
app: App;
|
|
11159
11170
|
bind: (cb: Binding) => void;
|
|
11160
11171
|
};
|
|
@@ -11166,7 +11177,6 @@ type Plugin<S extends AnyZodObject | undefined = undefined> = {
|
|
|
11166
11177
|
schema?: S;
|
|
11167
11178
|
onApp?: (context: AppContext<S>) => void;
|
|
11168
11179
|
onStack?: (context: StackContext<S>) => void;
|
|
11169
|
-
onResource?: (context: ResourceContext<S>) => void;
|
|
11170
11180
|
onTypeGen?: (context: TypeGenContext<S>) => string | void;
|
|
11171
11181
|
};
|
|
11172
11182
|
declare const definePlugin: <S extends AnyZodObject | undefined = undefined>(plugin: Plugin<S>) => Plugin<S>;
|
|
@@ -12086,6 +12096,8 @@ declare const defineStackConfig: (config: StackConfig) => StackConfig$1 | (Stack
|
|
|
12086
12096
|
effect?: "allow" | "deny" | undefined;
|
|
12087
12097
|
}[] | undefined;
|
|
12088
12098
|
} | undefined;
|
|
12099
|
+
}) | (StackConfig$1 & {
|
|
12100
|
+
tests?: string | string[] | undefined;
|
|
12089
12101
|
});
|
|
12090
12102
|
declare const defineAppConfig: (config: AppConfig | AppConfigFactory<AppConfig>) => CombinedDefaultPluginsConfigInput | AppConfigFactory<CombinedDefaultPluginsConfigInput>;
|
|
12091
12103
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.100",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@awsless/lambda": "^0.0.13",
|
|
28
27
|
"@awsless/redis": "^0.0.8",
|
|
29
28
|
"@awsless/sns": "^0.0.7",
|
|
29
|
+
"@awsless/lambda": "^0.0.13",
|
|
30
30
|
"@awsless/sqs": "^0.0.7",
|
|
31
|
-
"@awsless/
|
|
32
|
-
"@awsless/
|
|
31
|
+
"@awsless/validate": "^0.0.6",
|
|
32
|
+
"@awsless/ssm": "^0.0.7"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@aws-appsync/utils": "^1.5.0",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@types/decompress": "^4.2.4",
|
|
53
53
|
"@types/mime-types": "^2.1.2",
|
|
54
54
|
"@types/pretty-hrtime": "^1.0.1",
|
|
55
|
+
"@vitest/runner": "^0.34.6",
|
|
55
56
|
"aws-cron-expression-validator": "^1.0.5",
|
|
56
57
|
"aws-lambda": "^1.0.7",
|
|
57
58
|
"chalk": "^5.3.0",
|
|
@@ -65,12 +66,14 @@
|
|
|
65
66
|
"graphql": "^16.7.1",
|
|
66
67
|
"jszip": "^3.10.1",
|
|
67
68
|
"mime-types": "^2.1.35",
|
|
69
|
+
"parse-imports": "^1.1.2",
|
|
68
70
|
"pretty-hrtime": "^1.0.3",
|
|
69
|
-
"redis": "^4.6.7",
|
|
70
71
|
"rollup": "^4.0.2",
|
|
71
72
|
"rollup-plugin-replace": "^2.2.0",
|
|
72
73
|
"rollup-plugin-swc3": "^0.10.2",
|
|
73
74
|
"type-fest": "^3.6.0",
|
|
75
|
+
"vite": "^5.0.0",
|
|
76
|
+
"vitest": "^0.34.6",
|
|
74
77
|
"wrap-ansi": "^8.1.0",
|
|
75
78
|
"zod": "^3.21.4",
|
|
76
79
|
"@awsless/code": "^0.0.10"
|