@suss/contract-appsync 0.5.9 → 0.5.10
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/index.cjs +10 -0
- package/dist/index.js +10 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -102,6 +102,9 @@ function readSchemaSource(props) {
|
|
|
102
102
|
if (location !== null) {
|
|
103
103
|
return { kind: "location", location };
|
|
104
104
|
}
|
|
105
|
+
if (props.SchemaInline !== void 0 || props.SchemaUri !== void 0) {
|
|
106
|
+
return { kind: "computed" };
|
|
107
|
+
}
|
|
105
108
|
return { kind: "absent" };
|
|
106
109
|
}
|
|
107
110
|
function readAuthType(auth) {
|
|
@@ -265,6 +268,10 @@ function indexSchemasByApi(resources) {
|
|
|
265
268
|
const location = stringField(props.DefinitionS3Location);
|
|
266
269
|
if (location !== null) {
|
|
267
270
|
out.set(apiRef, { kind: "location", location });
|
|
271
|
+
continue;
|
|
272
|
+
}
|
|
273
|
+
if (props.Definition !== void 0 || props.DefinitionS3Location !== void 0) {
|
|
274
|
+
out.set(apiRef, { kind: "computed" });
|
|
268
275
|
}
|
|
269
276
|
}
|
|
270
277
|
return out;
|
|
@@ -443,6 +450,9 @@ function resolveSchemaSource(raw, baseDir) {
|
|
|
443
450
|
if (raw.kind === "absent") {
|
|
444
451
|
return { status: "absent" };
|
|
445
452
|
}
|
|
453
|
+
if (raw.kind === "computed") {
|
|
454
|
+
return { status: "unresolved", location: null, reason: "computed" };
|
|
455
|
+
}
|
|
446
456
|
return resolveLocation(raw.location, baseDir);
|
|
447
457
|
}
|
|
448
458
|
function resolveLocation(location, baseDir) {
|
package/dist/index.js
CHANGED
|
@@ -67,6 +67,9 @@ function readSchemaSource(props) {
|
|
|
67
67
|
if (location !== null) {
|
|
68
68
|
return { kind: "location", location };
|
|
69
69
|
}
|
|
70
|
+
if (props.SchemaInline !== void 0 || props.SchemaUri !== void 0) {
|
|
71
|
+
return { kind: "computed" };
|
|
72
|
+
}
|
|
70
73
|
return { kind: "absent" };
|
|
71
74
|
}
|
|
72
75
|
function readAuthType(auth) {
|
|
@@ -230,6 +233,10 @@ function indexSchemasByApi(resources) {
|
|
|
230
233
|
const location = stringField(props.DefinitionS3Location);
|
|
231
234
|
if (location !== null) {
|
|
232
235
|
out.set(apiRef, { kind: "location", location });
|
|
236
|
+
continue;
|
|
237
|
+
}
|
|
238
|
+
if (props.Definition !== void 0 || props.DefinitionS3Location !== void 0) {
|
|
239
|
+
out.set(apiRef, { kind: "computed" });
|
|
233
240
|
}
|
|
234
241
|
}
|
|
235
242
|
return out;
|
|
@@ -411,6 +418,9 @@ function resolveSchemaSource(raw, baseDir) {
|
|
|
411
418
|
if (raw.kind === "absent") {
|
|
412
419
|
return { status: "absent" };
|
|
413
420
|
}
|
|
421
|
+
if (raw.kind === "computed") {
|
|
422
|
+
return { status: "unresolved", location: null, reason: "computed" };
|
|
423
|
+
}
|
|
414
424
|
return resolveLocation(raw.location, baseDir);
|
|
415
425
|
}
|
|
416
426
|
function resolveLocation(location, baseDir) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/contract-appsync",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Generate suss behavioral summaries from AWS AppSync in CloudFormation (AWS::AppSync::*) and SAM (AWS::Serverless::GraphQLApi) templates, including external .graphql schema files (GraphQL schema-first).",
|
|
6
6
|
"keywords": [
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"typecheck": "tsc --noEmit"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@suss/behavioral-ir": "0.5.
|
|
50
|
-
"@suss/contract-graphql": "0.5.
|
|
51
|
-
"@suss/manifest-aws": "0.5.
|
|
49
|
+
"@suss/behavioral-ir": "0.5.10",
|
|
50
|
+
"@suss/contract-graphql": "0.5.10",
|
|
51
|
+
"@suss/manifest-aws": "0.5.10",
|
|
52
52
|
"graphql": "^16.8.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|