@geekmidas/cloud 10.0.0-alpha.136 → 10.0.0-alpha.137
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/cloud",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.137",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"lodash.snakecase": "~4.1.1",
|
|
44
|
-
"@geekmidas/envkit": "10.0.0-alpha.
|
|
45
|
-
"@geekmidas/manifest": "10.0.0-alpha.
|
|
44
|
+
"@geekmidas/envkit": "10.0.0-alpha.137",
|
|
45
|
+
"@geekmidas/manifest": "10.0.0-alpha.137"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/lodash.get": "~4.4.9",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"@pulumi/aws": ">=7.47.0",
|
|
59
59
|
"@pulumi/random": ">=4.21.2",
|
|
60
60
|
"@pulumi/pulumi": ">=3.263.0",
|
|
61
|
-
"@geekmidas/manifest": "^10.0.0-alpha.
|
|
62
|
-
"@geekmidas/storage": "^10.0.0-alpha.
|
|
63
|
-
"@geekmidas/events": "^10.0.0-alpha.
|
|
64
|
-
"@geekmidas/db": "^10.0.0-alpha.
|
|
61
|
+
"@geekmidas/manifest": "^10.0.0-alpha.137",
|
|
62
|
+
"@geekmidas/storage": "^10.0.0-alpha.137",
|
|
63
|
+
"@geekmidas/events": "^10.0.0-alpha.137",
|
|
64
|
+
"@geekmidas/db": "^10.0.0-alpha.137"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@geekmidas/manifest": {
|
|
@@ -93,7 +93,7 @@ function manifest(): ConstructManifest {
|
|
|
93
93
|
dependencies: [],
|
|
94
94
|
},
|
|
95
95
|
],
|
|
96
|
-
|
|
96
|
+
auth: { target: 'Auth', kind: 'rest-api' },
|
|
97
97
|
provides: keys('Api', 'rest-api', SURFACE),
|
|
98
98
|
},
|
|
99
99
|
Auth: {
|
|
@@ -288,7 +288,7 @@ describe('fromManifest', () => {
|
|
|
288
288
|
'Api:',
|
|
289
289
|
' GET /orders → Orders (database)',
|
|
290
290
|
' GET /health → nothing',
|
|
291
|
-
'
|
|
291
|
+
' auth Auth (origin only; grants nothing)',
|
|
292
292
|
'Auth:',
|
|
293
293
|
' (no routes)',
|
|
294
294
|
]);
|
package/src/sst/fromManifest.ts
CHANGED
|
@@ -642,8 +642,8 @@ export function describeRoutes(manifest: ConstructManifest): string[] {
|
|
|
642
642
|
lines.push(`${id}:`);
|
|
643
643
|
|
|
644
644
|
if (declaration.endpoints.length === 0) {
|
|
645
|
-
// Empty is
|
|
646
|
-
//
|
|
645
|
+
// Empty is genuinely empty: discovery nests every route in the
|
|
646
|
+
// surface that serves it, so a surface with none has none.
|
|
647
647
|
lines.push(' (no routes)');
|
|
648
648
|
}
|
|
649
649
|
|
|
@@ -657,11 +657,11 @@ export function describeRoutes(manifest: ConstructManifest): string[] {
|
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
//
|
|
661
|
-
// nothing
|
|
662
|
-
if (declaration.
|
|
660
|
+
// What authenticates it, printed apart from the routes because it grants
|
|
661
|
+
// nothing: the auth server learns this surface's origin.
|
|
662
|
+
if (declaration.auth) {
|
|
663
663
|
lines.push(
|
|
664
|
-
`
|
|
664
|
+
` auth ${declaration.auth.target} (origin only; grants nothing)`,
|
|
665
665
|
);
|
|
666
666
|
}
|
|
667
667
|
}
|