@geekmidas/manifest 10.0.0-alpha.136 → 10.0.0-alpha.138
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -23
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +32 -23
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -935,15 +935,15 @@ function provisionOrder(manifest) {
|
|
|
935
935
|
*/
|
|
936
936
|
function dependenciesOf(declaration) {
|
|
937
937
|
const own = "dependencies" in declaration ? declaration.dependencies ?? [] : [];
|
|
938
|
-
const
|
|
939
|
-
const nested = declaration.kind === "rest-api" ? declaration.endpoints.flatMap((endpoint) => endpoint.dependencies) : [];
|
|
938
|
+
const auth = (declaration.kind === "rest-api" || declaration.kind === "websocket-api") && declaration.auth ? [declaration.auth] : [];
|
|
939
|
+
const nested = declaration.kind === "rest-api" ? declaration.endpoints.flatMap((endpoint) => endpoint.dependencies) : declaration.kind === "websocket-api" ? (declaration.routes ?? []).flatMap((route) => route.dependencies) : [];
|
|
940
940
|
const telemetry = "telemetry" in declaration && typeof declaration.telemetry === "string" ? [{
|
|
941
941
|
target: declaration.telemetry,
|
|
942
942
|
kind: "telemetry"
|
|
943
943
|
}] : [];
|
|
944
944
|
return [
|
|
945
945
|
...own,
|
|
946
|
-
...
|
|
946
|
+
...auth,
|
|
947
947
|
...nested,
|
|
948
948
|
...telemetry
|
|
949
949
|
];
|