@awsless/awsless 0.0.133 → 0.0.134
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 +9 -9
- 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 +5 -5
package/dist/bin.js
CHANGED
|
@@ -3034,6 +3034,14 @@ import { mergeTypeDefs as mergeTypeDefs2 } from "@graphql-tools/merge";
|
|
|
3034
3034
|
import { generate } from "@awsless/graphql";
|
|
3035
3035
|
import { buildSchema, print as print2 } from "graphql";
|
|
3036
3036
|
import { readFile as readFile4 } from "fs/promises";
|
|
3037
|
+
|
|
3038
|
+
// src/util/id.ts
|
|
3039
|
+
import { createHash as createHash3 } from "crypto";
|
|
3040
|
+
var shortId = (ns) => {
|
|
3041
|
+
return createHash3("md5").update(ns).digest("hex").substring(0, 10);
|
|
3042
|
+
};
|
|
3043
|
+
|
|
3044
|
+
// src/plugins/graphql/index.ts
|
|
3037
3045
|
var defaultResolver = Code2.fromInline(
|
|
3038
3046
|
"graphql-default-resolver",
|
|
3039
3047
|
`
|
|
@@ -3178,7 +3186,7 @@ var graphqlPlugin = definePlugin({
|
|
|
3178
3186
|
for (const [typeName, fields] of Object.entries(props.resolvers || {})) {
|
|
3179
3187
|
for (const [fieldName, resolverProps] of Object.entries(fields || {})) {
|
|
3180
3188
|
const props2 = isFunctionProps(resolverProps) ? { consumer: resolverProps } : resolverProps;
|
|
3181
|
-
const entryId = paramCase4(`${id}-${typeName}-${fieldName}`);
|
|
3189
|
+
const entryId = paramCase4(`${id}-${shortId(`${typeName}-${fieldName}`)}`);
|
|
3182
3190
|
const lambda = toLambdaFunction(ctx, `graphql-${entryId}`, props2.consumer);
|
|
3183
3191
|
const resolver = props2.resolver ?? defaultProps?.resolver;
|
|
3184
3192
|
let code = defaultResolver;
|
|
@@ -3450,14 +3458,6 @@ var ElbEventSource = class extends Group {
|
|
|
3450
3458
|
// src/plugins/http/index.ts
|
|
3451
3459
|
import { relative as relative3 } from "path";
|
|
3452
3460
|
import { camelCase as camelCase3 } from "change-case";
|
|
3453
|
-
|
|
3454
|
-
// src/util/id.ts
|
|
3455
|
-
import { createHash as createHash3 } from "crypto";
|
|
3456
|
-
var shortId = (ns) => {
|
|
3457
|
-
return createHash3("md5").update(ns).digest("hex").substring(0, 10);
|
|
3458
|
-
};
|
|
3459
|
-
|
|
3460
|
-
// src/plugins/http/index.ts
|
|
3461
3461
|
var parseRoute = (route) => {
|
|
3462
3462
|
const [method, ...paths] = route.split(" ");
|
|
3463
3463
|
const path = paths.join(" ");
|
|
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.134",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@awsless/lambda": "^0.0.15",
|
|
32
|
-
"@awsless/redis": "^0.0.10",
|
|
33
|
-
"@awsless/sns": "^0.0.7",
|
|
34
31
|
"@awsless/sqs": "^0.0.7",
|
|
35
|
-
"@awsless/
|
|
32
|
+
"@awsless/sns": "^0.0.7",
|
|
33
|
+
"@awsless/lambda": "^0.0.15",
|
|
36
34
|
"@awsless/validate": "^0.0.10",
|
|
35
|
+
"@awsless/ssm": "^0.0.7",
|
|
36
|
+
"@awsless/redis": "^0.0.10",
|
|
37
37
|
"@awsless/weak-cache": "^0.0.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|