@backstage-community/plugin-nomad-backend 0.1.24 → 0.1.25
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/CHANGELOG.md +6 -0
- package/dist/index.cjs.js +4 -109
- package/dist/index.cjs.js.map +1 -1
- package/dist/plugin.cjs.js +35 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/service/router.cjs.js +85 -0
- package/dist/service/router.cjs.js.map +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -2,116 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var errors = require('@backstage/errors');
|
|
8
|
-
var express = require('express');
|
|
9
|
-
var Router = require('express-promise-router');
|
|
10
|
-
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
5
|
+
var router = require('./service/router.cjs.js');
|
|
6
|
+
var plugin = require('./plugin.cjs.js');
|
|
11
7
|
|
|
12
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
13
8
|
|
|
14
|
-
var fetch__default = /*#__PURE__*/_interopDefaultCompat(fetch);
|
|
15
|
-
var express__default = /*#__PURE__*/_interopDefaultCompat(express);
|
|
16
|
-
var Router__default = /*#__PURE__*/_interopDefaultCompat(Router);
|
|
17
9
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const addr = config.getString("nomad.addr");
|
|
21
|
-
const token = config.getOptionalString("nomad.token");
|
|
22
|
-
const router = Router__default.default();
|
|
23
|
-
router.use(express__default.default.json());
|
|
24
|
-
router.get("/health", (_, resp) => {
|
|
25
|
-
resp.json({ status: "ok" });
|
|
26
|
-
});
|
|
27
|
-
router.get("/v1/allocations", async (req, res) => {
|
|
28
|
-
const namespace = req.query.namespace ?? "";
|
|
29
|
-
if (!namespace || namespace === "") {
|
|
30
|
-
throw new errors.InputError(`Missing "namespace" query parameter`);
|
|
31
|
-
}
|
|
32
|
-
const filter = req.query.filter ?? "";
|
|
33
|
-
logger.debug(`request headers: namespace=${namespace} filter=${filter}`);
|
|
34
|
-
const endpoint = `${addr}/v1/allocations?namespace=${encodeURIComponent(
|
|
35
|
-
namespace
|
|
36
|
-
)}&filter=${encodeURIComponent(filter)}`;
|
|
37
|
-
const allocationsResp = await fetch__default.default(endpoint, {
|
|
38
|
-
method: "GET",
|
|
39
|
-
headers: {
|
|
40
|
-
Accept: "application/json",
|
|
41
|
-
"X-Nomad-Token": token || ""
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
if (allocationsResp.status !== 200) {
|
|
45
|
-
const body = await allocationsResp.text();
|
|
46
|
-
logger.error(`failed to call /v1/allocations endpoint: ${body}`);
|
|
47
|
-
res.status(allocationsResp.status).json({ message: body });
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
const allocationsBody = await allocationsResp.json();
|
|
51
|
-
logger.debug(`/v1/allocations response: ${allocationsBody}`);
|
|
52
|
-
res.json(allocationsBody);
|
|
53
|
-
});
|
|
54
|
-
router.get("/v1/job/:job_id/versions", async (req, resp) => {
|
|
55
|
-
const namespace = req.query.namespace ?? "";
|
|
56
|
-
if (!namespace || namespace === "") {
|
|
57
|
-
throw new errors.InputError(`Missing "namespace" query parameter`);
|
|
58
|
-
}
|
|
59
|
-
const jobID = req.params.job_id ?? "";
|
|
60
|
-
const apiResp = await fetch__default.default(
|
|
61
|
-
`${addr}/v1/job/${jobID}/versions?namespace=${encodeURIComponent(
|
|
62
|
-
namespace
|
|
63
|
-
)}`,
|
|
64
|
-
{
|
|
65
|
-
method: "GET",
|
|
66
|
-
headers: {
|
|
67
|
-
Accept: "application/json",
|
|
68
|
-
"X-Nomad-Token": token || ""
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
if (apiResp.status !== 200) {
|
|
73
|
-
const body = await apiResp.text();
|
|
74
|
-
logger.error(`failed to call /v1/job/:job_id/versions endpoint: ${body}`);
|
|
75
|
-
resp.status(apiResp.status).json({ message: body });
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
const versionsBody = await apiResp.json();
|
|
79
|
-
logger.debug(`/v1/job/:job_id/versions response: ${versionsBody}`);
|
|
80
|
-
resp.json(versionsBody);
|
|
81
|
-
});
|
|
82
|
-
router.use(backendCommon.requestLoggingHandler());
|
|
83
|
-
router.use(backendCommon.errorHandler());
|
|
84
|
-
return router;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const nomadPlugin = backendPluginApi.createBackendPlugin({
|
|
88
|
-
pluginId: "nomad",
|
|
89
|
-
register(env) {
|
|
90
|
-
env.registerInit({
|
|
91
|
-
deps: {
|
|
92
|
-
logger: backendPluginApi.coreServices.logger,
|
|
93
|
-
config: backendPluginApi.coreServices.rootConfig,
|
|
94
|
-
httpRouter: backendPluginApi.coreServices.httpRouter
|
|
95
|
-
},
|
|
96
|
-
async init({ logger, config, httpRouter }) {
|
|
97
|
-
httpRouter.use(
|
|
98
|
-
await createRouter({
|
|
99
|
-
/**
|
|
100
|
-
* Logger for logging purposes
|
|
101
|
-
*/
|
|
102
|
-
logger,
|
|
103
|
-
config
|
|
104
|
-
})
|
|
105
|
-
);
|
|
106
|
-
httpRouter.addAuthPolicy({
|
|
107
|
-
path: "/health",
|
|
108
|
-
allow: "unauthenticated"
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
exports.createRouter = createRouter;
|
|
116
|
-
exports.default = nomadPlugin;
|
|
10
|
+
exports.createRouter = router.createRouter;
|
|
11
|
+
exports.default = plugin.nomadPlugin;
|
|
117
12
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
4
|
+
var router = require('./service/router.cjs.js');
|
|
5
|
+
|
|
6
|
+
const nomadPlugin = backendPluginApi.createBackendPlugin({
|
|
7
|
+
pluginId: "nomad",
|
|
8
|
+
register(env) {
|
|
9
|
+
env.registerInit({
|
|
10
|
+
deps: {
|
|
11
|
+
logger: backendPluginApi.coreServices.logger,
|
|
12
|
+
config: backendPluginApi.coreServices.rootConfig,
|
|
13
|
+
httpRouter: backendPluginApi.coreServices.httpRouter
|
|
14
|
+
},
|
|
15
|
+
async init({ logger, config, httpRouter }) {
|
|
16
|
+
httpRouter.use(
|
|
17
|
+
await router.createRouter({
|
|
18
|
+
/**
|
|
19
|
+
* Logger for logging purposes
|
|
20
|
+
*/
|
|
21
|
+
logger,
|
|
22
|
+
config
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
httpRouter.addAuthPolicy({
|
|
26
|
+
path: "/health",
|
|
27
|
+
allow: "unauthenticated"
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
exports.nomadPlugin = nomadPlugin;
|
|
35
|
+
//# sourceMappingURL=plugin.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n coreServices,\n createBackendPlugin,\n} from '@backstage/backend-plugin-api';\nimport { createRouter } from './service/router';\n\n/**\n * Nomad backend plugin\n *\n * @public\n */\nexport const nomadPlugin = createBackendPlugin({\n pluginId: 'nomad',\n register(env) {\n env.registerInit({\n deps: {\n logger: coreServices.logger,\n config: coreServices.rootConfig,\n httpRouter: coreServices.httpRouter,\n },\n async init({ logger, config, httpRouter }) {\n httpRouter.use(\n await createRouter({\n /**\n * Logger for logging purposes\n */\n logger,\n config,\n }),\n );\n httpRouter.addAuthPolicy({\n path: '/health',\n allow: 'unauthenticated',\n });\n },\n });\n },\n});\n"],"names":["createBackendPlugin","coreServices","createRouter"],"mappings":";;;;;AA2BO,MAAM,cAAcA,oCAAoB,CAAA;AAAA,EAC7C,QAAU,EAAA,OAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,QAAQC,6BAAa,CAAA,MAAA;AAAA,QACrB,QAAQA,6BAAa,CAAA,UAAA;AAAA,QACrB,YAAYA,6BAAa,CAAA,UAAA;AAAA,OAC3B;AAAA,MACA,MAAM,IAAK,CAAA,EAAE,MAAQ,EAAA,MAAA,EAAQ,YAAc,EAAA;AACzC,QAAW,UAAA,CAAA,GAAA;AAAA,UACT,MAAMC,mBAAa,CAAA;AAAA;AAAA;AAAA;AAAA,YAIjB,MAAA;AAAA,YACA,MAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AACA,QAAA,UAAA,CAAW,aAAc,CAAA;AAAA,UACvB,IAAM,EAAA,SAAA;AAAA,UACN,KAAO,EAAA,iBAAA;AAAA,SACR,CAAA,CAAA;AAAA,OACH;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var fetch = require('node-fetch');
|
|
4
|
+
var backendCommon = require('@backstage/backend-common');
|
|
5
|
+
var errors = require('@backstage/errors');
|
|
6
|
+
var express = require('express');
|
|
7
|
+
var Router = require('express-promise-router');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var fetch__default = /*#__PURE__*/_interopDefaultCompat(fetch);
|
|
12
|
+
var express__default = /*#__PURE__*/_interopDefaultCompat(express);
|
|
13
|
+
var Router__default = /*#__PURE__*/_interopDefaultCompat(Router);
|
|
14
|
+
|
|
15
|
+
async function createRouter(options) {
|
|
16
|
+
const { config, logger } = options;
|
|
17
|
+
const addr = config.getString("nomad.addr");
|
|
18
|
+
const token = config.getOptionalString("nomad.token");
|
|
19
|
+
const router = Router__default.default();
|
|
20
|
+
router.use(express__default.default.json());
|
|
21
|
+
router.get("/health", (_, resp) => {
|
|
22
|
+
resp.json({ status: "ok" });
|
|
23
|
+
});
|
|
24
|
+
router.get("/v1/allocations", async (req, res) => {
|
|
25
|
+
const namespace = req.query.namespace ?? "";
|
|
26
|
+
if (!namespace || namespace === "") {
|
|
27
|
+
throw new errors.InputError(`Missing "namespace" query parameter`);
|
|
28
|
+
}
|
|
29
|
+
const filter = req.query.filter ?? "";
|
|
30
|
+
logger.debug(`request headers: namespace=${namespace} filter=${filter}`);
|
|
31
|
+
const endpoint = `${addr}/v1/allocations?namespace=${encodeURIComponent(
|
|
32
|
+
namespace
|
|
33
|
+
)}&filter=${encodeURIComponent(filter)}`;
|
|
34
|
+
const allocationsResp = await fetch__default.default(endpoint, {
|
|
35
|
+
method: "GET",
|
|
36
|
+
headers: {
|
|
37
|
+
Accept: "application/json",
|
|
38
|
+
"X-Nomad-Token": token || ""
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
if (allocationsResp.status !== 200) {
|
|
42
|
+
const body = await allocationsResp.text();
|
|
43
|
+
logger.error(`failed to call /v1/allocations endpoint: ${body}`);
|
|
44
|
+
res.status(allocationsResp.status).json({ message: body });
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const allocationsBody = await allocationsResp.json();
|
|
48
|
+
logger.debug(`/v1/allocations response: ${allocationsBody}`);
|
|
49
|
+
res.json(allocationsBody);
|
|
50
|
+
});
|
|
51
|
+
router.get("/v1/job/:job_id/versions", async (req, resp) => {
|
|
52
|
+
const namespace = req.query.namespace ?? "";
|
|
53
|
+
if (!namespace || namespace === "") {
|
|
54
|
+
throw new errors.InputError(`Missing "namespace" query parameter`);
|
|
55
|
+
}
|
|
56
|
+
const jobID = req.params.job_id ?? "";
|
|
57
|
+
const apiResp = await fetch__default.default(
|
|
58
|
+
`${addr}/v1/job/${jobID}/versions?namespace=${encodeURIComponent(
|
|
59
|
+
namespace
|
|
60
|
+
)}`,
|
|
61
|
+
{
|
|
62
|
+
method: "GET",
|
|
63
|
+
headers: {
|
|
64
|
+
Accept: "application/json",
|
|
65
|
+
"X-Nomad-Token": token || ""
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
if (apiResp.status !== 200) {
|
|
70
|
+
const body = await apiResp.text();
|
|
71
|
+
logger.error(`failed to call /v1/job/:job_id/versions endpoint: ${body}`);
|
|
72
|
+
resp.status(apiResp.status).json({ message: body });
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const versionsBody = await apiResp.json();
|
|
76
|
+
logger.debug(`/v1/job/:job_id/versions response: ${versionsBody}`);
|
|
77
|
+
resp.json(versionsBody);
|
|
78
|
+
});
|
|
79
|
+
router.use(backendCommon.requestLoggingHandler());
|
|
80
|
+
router.use(backendCommon.errorHandler());
|
|
81
|
+
return router;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
exports.createRouter = createRouter;
|
|
85
|
+
//# sourceMappingURL=router.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.cjs.js","sources":["../../src/service/router.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport fetch from 'node-fetch';\nimport { errorHandler, requestLoggingHandler } from '@backstage/backend-common';\nimport { Config } from '@backstage/config';\nimport { InputError } from '@backstage/errors';\nimport express from 'express';\nimport Router from 'express-promise-router';\nimport { LoggerService } from '@backstage/backend-plugin-api';\n\n/** @public */\nexport interface RouterOptions {\n logger: LoggerService;\n config: Config;\n}\n\n/** @public */\nexport async function createRouter(\n options: RouterOptions,\n): Promise<express.Router> {\n const { config, logger } = options;\n\n // Get Nomad addr and token from config\n const addr = config.getString('nomad.addr');\n const token = config.getOptionalString('nomad.token');\n\n const router = Router();\n router.use(express.json());\n\n router.get('/health', (_, resp) => {\n resp.json({ status: 'ok' });\n });\n\n router.get('/v1/allocations', async (req, res) => {\n // Check namespace argument\n const namespace = (req.query.namespace as string) ?? '';\n if (!namespace || namespace === '') {\n throw new InputError(`Missing \"namespace\" query parameter`);\n }\n\n // Check filter argument\n const filter = (req.query.filter as string) ?? '';\n logger.debug(`request headers: namespace=${namespace} filter=${filter}`);\n\n // Issue the request\n const endpoint = `${addr}/v1/allocations?namespace=${encodeURIComponent(\n namespace,\n )}&filter=${encodeURIComponent(filter)}`;\n const allocationsResp = await fetch(endpoint, {\n method: 'GET',\n headers: {\n Accept: 'application/json',\n 'X-Nomad-Token': token || '',\n },\n });\n\n // Check response\n if (allocationsResp.status !== 200) {\n const body = await allocationsResp.text();\n logger.error(`failed to call /v1/allocations endpoint: ${body}`);\n res.status(allocationsResp.status).json({ message: body });\n return;\n }\n\n // Deserialize and return\n const allocationsBody = await allocationsResp.json();\n logger.debug(`/v1/allocations response: ${allocationsBody}`);\n res.json(allocationsBody);\n });\n\n router.get('/v1/job/:job_id/versions', async (req, resp) => {\n // Check namespace argument\n const namespace = (req.query.namespace as string) ?? '';\n if (!namespace || namespace === '') {\n throw new InputError(`Missing \"namespace\" query parameter`);\n }\n\n // Get job ID\n const jobID = (req.params.job_id as string) ?? '';\n\n // Issue the request\n const apiResp = await fetch(\n `${addr}/v1/job/${jobID}/versions?namespace=${encodeURIComponent(\n namespace,\n )}`,\n {\n method: 'GET',\n headers: {\n Accept: 'application/json',\n 'X-Nomad-Token': token || '',\n },\n },\n );\n\n // Check response\n if (apiResp.status !== 200) {\n const body = await apiResp.text();\n logger.error(`failed to call /v1/job/:job_id/versions endpoint: ${body}`);\n resp.status(apiResp.status).json({ message: body });\n return;\n }\n\n // Deserialize and return\n const versionsBody = await apiResp.json();\n logger.debug(`/v1/job/:job_id/versions response: ${versionsBody}`);\n resp.json(versionsBody);\n });\n\n router.use(requestLoggingHandler());\n router.use(errorHandler());\n return router;\n}\n"],"names":["Router","express","InputError","fetch","requestLoggingHandler","errorHandler"],"mappings":";;;;;;;;;;;;;;AA+BA,eAAsB,aACpB,OACyB,EAAA;AACzB,EAAM,MAAA,EAAE,MAAQ,EAAA,MAAA,EAAW,GAAA,OAAA,CAAA;AAG3B,EAAM,MAAA,IAAA,GAAO,MAAO,CAAA,SAAA,CAAU,YAAY,CAAA,CAAA;AAC1C,EAAM,MAAA,KAAA,GAAQ,MAAO,CAAA,iBAAA,CAAkB,aAAa,CAAA,CAAA;AAEpD,EAAA,MAAM,SAASA,uBAAO,EAAA,CAAA;AACtB,EAAO,MAAA,CAAA,GAAA,CAAIC,wBAAQ,CAAA,IAAA,EAAM,CAAA,CAAA;AAEzB,EAAA,MAAA,CAAO,GAAI,CAAA,SAAA,EAAW,CAAC,CAAA,EAAG,IAAS,KAAA;AACjC,IAAA,IAAA,CAAK,IAAK,CA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MAAA,CAAO,QAAQ,MAAM,CAAA,CAAE,KAAK,EAAE,OAAA,EAAS,MAAM,CAAA,CAAA;AAClD,MAAA,OAAA;AAAA,KACF;AAGA,IAAM,MAAA,YAAA,GAAe,MAAM,OAAA,CAAQ,IAAK,EAAA,CAAA;AACxC,IAAO,MAAA,CAAA,KAAA,CAAM,CAAsC,mCAAA,EAAA,YAAY,CAAE,CAAA,CAAA,CAAA;AACjE,IAAA,IAAA,CAAK,KAAK,YAAY,CAAA,CAAA;AAAA,GACvB,CAAA,CAAA;AAED,EAAO,MAAA,CAAA,GAAA,CAAIC,qCAAuB,CAAA,CAAA;AAClC,EAAO,MAAA,CAAA,GAAA,CAAIC,4BAAc,CAAA,CAAA;AACzB,EAAO,OAAA,MAAA,CAAA;AACT;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-nomad-backend",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "backend-plugin",
|
|
6
6
|
"pluginId": "nomad",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@backstage/backend-common": "^0.25.0",
|
|
40
|
-
"@backstage/backend-plugin-api": "^1.0.
|
|
40
|
+
"@backstage/backend-plugin-api": "^1.0.1",
|
|
41
41
|
"@backstage/config": "^1.2.0",
|
|
42
42
|
"@backstage/errors": "^1.2.4",
|
|
43
43
|
"@types/express": "*",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"yn": "^4.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@backstage/backend-defaults": "^0.5.
|
|
51
|
-
"@backstage/cli": "^0.
|
|
52
|
-
"@backstage/plugin-auth-backend": "^0.23.
|
|
53
|
-
"@backstage/plugin-auth-backend-module-guest-provider": "^0.2.
|
|
50
|
+
"@backstage/backend-defaults": "^0.5.2",
|
|
51
|
+
"@backstage/cli": "^0.28.0",
|
|
52
|
+
"@backstage/plugin-auth-backend": "^0.23.1",
|
|
53
|
+
"@backstage/plugin-auth-backend-module-guest-provider": "^0.2.1",
|
|
54
54
|
"@types/node-fetch": "^2.5.12",
|
|
55
55
|
"@types/supertest": "^6.0.0",
|
|
56
56
|
"supertest": "^7.0.0"
|