@awsless/awsless 0.0.186 → 0.0.187
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 -7
- package/package.json +5 -5
package/dist/bin.js
CHANGED
|
@@ -2640,10 +2640,6 @@ export function response(ctx) {
|
|
|
2640
2640
|
return ctx.result
|
|
2641
2641
|
}
|
|
2642
2642
|
`;
|
|
2643
|
-
var baseSchema = `
|
|
2644
|
-
type Query
|
|
2645
|
-
type Mutation
|
|
2646
|
-
`;
|
|
2647
2643
|
var scalarSchema = `
|
|
2648
2644
|
scalar AWSDate
|
|
2649
2645
|
scalar AWSTime
|
|
@@ -2802,9 +2798,9 @@ var graphqlFeature = defineFeature({
|
|
|
2802
2798
|
const source = await readFile5(props.schema, "utf8");
|
|
2803
2799
|
const finger = createHash4("sha1").update(source).digest("hex");
|
|
2804
2800
|
return build3(finger, async (write) => {
|
|
2805
|
-
const defs = mergeTypeDefs([scalarSchema,
|
|
2806
|
-
const
|
|
2807
|
-
const
|
|
2801
|
+
const defs = mergeTypeDefs([scalarSchema, source]);
|
|
2802
|
+
const output = print(defs);
|
|
2803
|
+
const schema2 = buildSchema(output);
|
|
2808
2804
|
for (const [typeName, fields] of Object.entries(props.resolvers ?? {})) {
|
|
2809
2805
|
const type = schema2.getType(typeName);
|
|
2810
2806
|
if (!type || !isObjectType(type)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.187",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@awsless/lambda": "^0.0.18",
|
|
32
|
-
"@awsless/s3": "^0.0.10",
|
|
33
|
-
"@awsless/sns": "^0.0.7",
|
|
34
32
|
"@awsless/redis": "^0.0.12",
|
|
33
|
+
"@awsless/sns": "^0.0.7",
|
|
35
34
|
"@awsless/sqs": "^0.0.7",
|
|
36
|
-
"@awsless/
|
|
35
|
+
"@awsless/s3": "^0.0.10",
|
|
37
36
|
"@awsless/validate": "^0.0.13",
|
|
37
|
+
"@awsless/ssm": "^0.0.7",
|
|
38
38
|
"@awsless/weak-cache": "^0.0.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
"wrap-ansi": "^8.1.0",
|
|
97
97
|
"zod": "^3.21.4",
|
|
98
98
|
"zod-to-json-schema": "^3.22.3",
|
|
99
|
-
"@awsless/formation": "^0.0.12",
|
|
100
99
|
"@awsless/duration": "^0.0.1",
|
|
101
100
|
"@awsless/size": "^0.0.1",
|
|
102
101
|
"@awsless/graphql": "^0.0.9",
|
|
103
102
|
"@awsless/validate": "^0.0.13",
|
|
103
|
+
"@awsless/formation": "^0.0.12",
|
|
104
104
|
"@awsless/code": "^0.0.10"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|