@backstage/plugin-search-backend 1.5.18-next.2 → 1.6.0
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 +22 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +3 -103
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +3 -6
- package/dist/index.cjs.js +4 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/plugin.cjs.js +110 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/package.json +15 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @backstage/plugin-search-backend
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3109c24: The export for the new backend system at the `/alpha` export is now also available via the main entry point, which means that you can remove the `/alpha` suffix from the import.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 66af016: Fix to schema to allow arbitrary query parameters.
|
|
12
|
+
- 094eaa3: Remove references to in-repo backend-common
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @backstage/backend-defaults@0.5.1
|
|
15
|
+
- @backstage/plugin-search-backend-node@1.3.3
|
|
16
|
+
- @backstage/plugin-permission-node@0.8.4
|
|
17
|
+
- @backstage/backend-openapi-utils@0.2.0
|
|
18
|
+
- @backstage/backend-plugin-api@1.0.1
|
|
19
|
+
- @backstage/config@1.2.0
|
|
20
|
+
- @backstage/errors@1.2.4
|
|
21
|
+
- @backstage/types@1.1.1
|
|
22
|
+
- @backstage/plugin-permission-common@0.8.1
|
|
23
|
+
- @backstage/plugin-search-common@1.2.14
|
|
24
|
+
|
|
3
25
|
## 1.5.18-next.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -2,109 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var pluginSearchBackendNode = require('@backstage/plugin-search-backend-node');
|
|
7
|
-
var alpha$1 = require('@backstage/plugin-search-backend-node/alpha');
|
|
8
|
-
var router = require('./service/router.cjs.js');
|
|
5
|
+
var plugin = require('./plugin.cjs.js');
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
collators = [];
|
|
12
|
-
decorators = [];
|
|
13
|
-
addCollator(options) {
|
|
14
|
-
this.collators.push(options);
|
|
15
|
-
}
|
|
16
|
-
addDecorator(options) {
|
|
17
|
-
this.decorators.push(options);
|
|
18
|
-
}
|
|
19
|
-
getCollators() {
|
|
20
|
-
return this.collators;
|
|
21
|
-
}
|
|
22
|
-
getDecorators() {
|
|
23
|
-
return this.decorators;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
class SearchEngineRegistry {
|
|
27
|
-
searchEngine = null;
|
|
28
|
-
setSearchEngine(searchEngine) {
|
|
29
|
-
if (this.searchEngine) {
|
|
30
|
-
throw new Error("Multiple Search engines is not supported at this time");
|
|
31
|
-
}
|
|
32
|
-
this.searchEngine = searchEngine;
|
|
33
|
-
}
|
|
34
|
-
getSearchEngine() {
|
|
35
|
-
return this.searchEngine;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
var alpha = backendPluginApi.createBackendPlugin({
|
|
39
|
-
pluginId: "search",
|
|
40
|
-
register(env) {
|
|
41
|
-
const searchIndexRegistry = new SearchIndexRegistry();
|
|
42
|
-
env.registerExtensionPoint(
|
|
43
|
-
alpha$1.searchIndexRegistryExtensionPoint,
|
|
44
|
-
searchIndexRegistry
|
|
45
|
-
);
|
|
46
|
-
const searchEngineRegistry = new SearchEngineRegistry();
|
|
47
|
-
env.registerExtensionPoint(
|
|
48
|
-
alpha$1.searchEngineRegistryExtensionPoint,
|
|
49
|
-
searchEngineRegistry
|
|
50
|
-
);
|
|
51
|
-
env.registerInit({
|
|
52
|
-
deps: {
|
|
53
|
-
logger: backendPluginApi.coreServices.logger,
|
|
54
|
-
config: backendPluginApi.coreServices.rootConfig,
|
|
55
|
-
discovery: backendPluginApi.coreServices.discovery,
|
|
56
|
-
permissions: backendPluginApi.coreServices.permissions,
|
|
57
|
-
auth: backendPluginApi.coreServices.auth,
|
|
58
|
-
http: backendPluginApi.coreServices.httpRouter,
|
|
59
|
-
httpAuth: backendPluginApi.coreServices.httpAuth,
|
|
60
|
-
lifecycle: backendPluginApi.coreServices.rootLifecycle,
|
|
61
|
-
searchIndexService: alpha$1.searchIndexServiceRef
|
|
62
|
-
},
|
|
63
|
-
async init({
|
|
64
|
-
config,
|
|
65
|
-
logger,
|
|
66
|
-
discovery,
|
|
67
|
-
permissions,
|
|
68
|
-
auth,
|
|
69
|
-
http,
|
|
70
|
-
httpAuth,
|
|
71
|
-
lifecycle,
|
|
72
|
-
searchIndexService
|
|
73
|
-
}) {
|
|
74
|
-
let searchEngine = searchEngineRegistry.getSearchEngine();
|
|
75
|
-
if (!searchEngine) {
|
|
76
|
-
searchEngine = new pluginSearchBackendNode.LunrSearchEngine({
|
|
77
|
-
logger
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
const collators = searchIndexRegistry.getCollators();
|
|
81
|
-
const decorators = searchIndexRegistry.getDecorators();
|
|
82
|
-
searchIndexService.init({
|
|
83
|
-
searchEngine,
|
|
84
|
-
collators,
|
|
85
|
-
decorators
|
|
86
|
-
});
|
|
87
|
-
lifecycle.addStartupHook(async () => {
|
|
88
|
-
await searchIndexService.start();
|
|
89
|
-
});
|
|
90
|
-
lifecycle.addShutdownHook(async () => {
|
|
91
|
-
await searchIndexService.stop();
|
|
92
|
-
});
|
|
93
|
-
const router$1 = await router.createRouter({
|
|
94
|
-
config,
|
|
95
|
-
discovery,
|
|
96
|
-
permissions,
|
|
97
|
-
auth,
|
|
98
|
-
httpAuth,
|
|
99
|
-
logger,
|
|
100
|
-
engine: searchEngine,
|
|
101
|
-
types: searchIndexService.getDocumentTypes()
|
|
102
|
-
});
|
|
103
|
-
http.use(router$1);
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
});
|
|
7
|
+
const _feature = plugin.default;
|
|
108
8
|
|
|
109
|
-
exports.default =
|
|
9
|
+
exports.default = _feature;
|
|
110
10
|
//# sourceMappingURL=alpha.cjs.js.map
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { default as feature } from './plugin';\n\n/** @alpha */\nconst _feature = feature;\nexport default _feature;\n"],"names":["feature"],"mappings":";;;;;;AAmBA,MAAM,QAAW,GAAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
* @alpha
|
|
6
|
-
*/
|
|
7
|
-
declare const _default: _backstage_backend_plugin_api.BackendFeature;
|
|
3
|
+
/** @alpha */
|
|
4
|
+
declare const _feature: _backstage_backend_plugin_api.BackendFeature;
|
|
8
5
|
|
|
9
|
-
export {
|
|
6
|
+
export { _feature as default };
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var plugin = require('./plugin.cjs.js');
|
|
3
6
|
var router = require('./service/router.cjs.js');
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
|
|
10
|
+
exports.default = plugin.default;
|
|
7
11
|
exports.createRouter = router.createRouter;
|
|
8
12
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
2
|
+
import { DiscoveryService, LoggerService, AuthService, HttpAuthService } from '@backstage/backend-plugin-api';
|
|
1
3
|
import express from 'express';
|
|
2
4
|
import { Config } from '@backstage/config';
|
|
3
5
|
import { PermissionEvaluator, PermissionAuthorizer } from '@backstage/plugin-permission-common';
|
|
4
6
|
import { DocumentTypeInfo } from '@backstage/plugin-search-common';
|
|
5
7
|
import { SearchEngine } from '@backstage/plugin-search-backend-node';
|
|
6
|
-
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The Search plugin is responsible for starting search indexing processes and return search results.
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
declare const _default: _backstage_backend_plugin_api.BackendFeature;
|
|
7
14
|
|
|
8
15
|
/**
|
|
9
16
|
* @public
|
|
@@ -25,4 +32,4 @@ type RouterOptions = {
|
|
|
25
32
|
*/
|
|
26
33
|
declare function createRouter(options: RouterOptions): Promise<express.Router>;
|
|
27
34
|
|
|
28
|
-
export { type RouterOptions, createRouter };
|
|
35
|
+
export { type RouterOptions, createRouter, _default as default };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
6
|
+
var pluginSearchBackendNode = require('@backstage/plugin-search-backend-node');
|
|
7
|
+
var alpha = require('@backstage/plugin-search-backend-node/alpha');
|
|
8
|
+
var router = require('./service/router.cjs.js');
|
|
9
|
+
|
|
10
|
+
class SearchIndexRegistry {
|
|
11
|
+
collators = [];
|
|
12
|
+
decorators = [];
|
|
13
|
+
addCollator(options) {
|
|
14
|
+
this.collators.push(options);
|
|
15
|
+
}
|
|
16
|
+
addDecorator(options) {
|
|
17
|
+
this.decorators.push(options);
|
|
18
|
+
}
|
|
19
|
+
getCollators() {
|
|
20
|
+
return this.collators;
|
|
21
|
+
}
|
|
22
|
+
getDecorators() {
|
|
23
|
+
return this.decorators;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
class SearchEngineRegistry {
|
|
27
|
+
searchEngine = null;
|
|
28
|
+
setSearchEngine(searchEngine) {
|
|
29
|
+
if (this.searchEngine) {
|
|
30
|
+
throw new Error("Multiple Search engines is not supported at this time");
|
|
31
|
+
}
|
|
32
|
+
this.searchEngine = searchEngine;
|
|
33
|
+
}
|
|
34
|
+
getSearchEngine() {
|
|
35
|
+
return this.searchEngine;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
var feature = backendPluginApi.createBackendPlugin({
|
|
39
|
+
pluginId: "search",
|
|
40
|
+
register(env) {
|
|
41
|
+
const searchIndexRegistry = new SearchIndexRegistry();
|
|
42
|
+
env.registerExtensionPoint(
|
|
43
|
+
alpha.searchIndexRegistryExtensionPoint,
|
|
44
|
+
searchIndexRegistry
|
|
45
|
+
);
|
|
46
|
+
const searchEngineRegistry = new SearchEngineRegistry();
|
|
47
|
+
env.registerExtensionPoint(
|
|
48
|
+
alpha.searchEngineRegistryExtensionPoint,
|
|
49
|
+
searchEngineRegistry
|
|
50
|
+
);
|
|
51
|
+
env.registerInit({
|
|
52
|
+
deps: {
|
|
53
|
+
logger: backendPluginApi.coreServices.logger,
|
|
54
|
+
config: backendPluginApi.coreServices.rootConfig,
|
|
55
|
+
discovery: backendPluginApi.coreServices.discovery,
|
|
56
|
+
permissions: backendPluginApi.coreServices.permissions,
|
|
57
|
+
auth: backendPluginApi.coreServices.auth,
|
|
58
|
+
http: backendPluginApi.coreServices.httpRouter,
|
|
59
|
+
httpAuth: backendPluginApi.coreServices.httpAuth,
|
|
60
|
+
lifecycle: backendPluginApi.coreServices.rootLifecycle,
|
|
61
|
+
searchIndexService: alpha.searchIndexServiceRef
|
|
62
|
+
},
|
|
63
|
+
async init({
|
|
64
|
+
config,
|
|
65
|
+
logger,
|
|
66
|
+
discovery,
|
|
67
|
+
permissions,
|
|
68
|
+
auth,
|
|
69
|
+
http,
|
|
70
|
+
httpAuth,
|
|
71
|
+
lifecycle,
|
|
72
|
+
searchIndexService
|
|
73
|
+
}) {
|
|
74
|
+
let searchEngine = searchEngineRegistry.getSearchEngine();
|
|
75
|
+
if (!searchEngine) {
|
|
76
|
+
searchEngine = new pluginSearchBackendNode.LunrSearchEngine({
|
|
77
|
+
logger
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
const collators = searchIndexRegistry.getCollators();
|
|
81
|
+
const decorators = searchIndexRegistry.getDecorators();
|
|
82
|
+
searchIndexService.init({
|
|
83
|
+
searchEngine,
|
|
84
|
+
collators,
|
|
85
|
+
decorators
|
|
86
|
+
});
|
|
87
|
+
lifecycle.addStartupHook(async () => {
|
|
88
|
+
await searchIndexService.start();
|
|
89
|
+
});
|
|
90
|
+
lifecycle.addShutdownHook(async () => {
|
|
91
|
+
await searchIndexService.stop();
|
|
92
|
+
});
|
|
93
|
+
const router$1 = await router.createRouter({
|
|
94
|
+
config,
|
|
95
|
+
discovery,
|
|
96
|
+
permissions,
|
|
97
|
+
auth,
|
|
98
|
+
httpAuth,
|
|
99
|
+
logger,
|
|
100
|
+
engine: searchEngine,
|
|
101
|
+
types: searchIndexService.getDocumentTypes()
|
|
102
|
+
});
|
|
103
|
+
http.use(router$1);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
exports.default = feature;
|
|
110
|
+
//# 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 {\n LunrSearchEngine,\n RegisterCollatorParameters,\n RegisterDecoratorParameters,\n SearchEngine,\n} from '@backstage/plugin-search-backend-node';\nimport {\n SearchEngineRegistryExtensionPoint,\n searchEngineRegistryExtensionPoint,\n searchIndexRegistryExtensionPoint,\n SearchIndexRegistryExtensionPoint,\n searchIndexServiceRef,\n} from '@backstage/plugin-search-backend-node/alpha';\n\nimport { createRouter } from './service/router';\n\nclass SearchIndexRegistry implements SearchIndexRegistryExtensionPoint {\n private collators: RegisterCollatorParameters[] = [];\n private decorators: RegisterDecoratorParameters[] = [];\n\n public addCollator(options: RegisterCollatorParameters): void {\n this.collators.push(options);\n }\n\n public addDecorator(options: RegisterDecoratorParameters): void {\n this.decorators.push(options);\n }\n\n public getCollators(): RegisterCollatorParameters[] {\n return this.collators;\n }\n\n public getDecorators(): RegisterDecoratorParameters[] {\n return this.decorators;\n }\n}\n\nclass SearchEngineRegistry implements SearchEngineRegistryExtensionPoint {\n private searchEngine: SearchEngine | null = null;\n\n public setSearchEngine(searchEngine: SearchEngine): void {\n if (this.searchEngine) {\n throw new Error('Multiple Search engines is not supported at this time');\n }\n this.searchEngine = searchEngine;\n }\n\n public getSearchEngine(): SearchEngine | null {\n return this.searchEngine;\n }\n}\n\n/**\n * The Search plugin is responsible for starting search indexing processes and return search results.\n * @public\n */\nexport default createBackendPlugin({\n pluginId: 'search',\n register(env) {\n const searchIndexRegistry = new SearchIndexRegistry();\n env.registerExtensionPoint(\n searchIndexRegistryExtensionPoint,\n searchIndexRegistry,\n );\n\n const searchEngineRegistry = new SearchEngineRegistry();\n env.registerExtensionPoint(\n searchEngineRegistryExtensionPoint,\n searchEngineRegistry,\n );\n\n env.registerInit({\n deps: {\n logger: coreServices.logger,\n config: coreServices.rootConfig,\n discovery: coreServices.discovery,\n permissions: coreServices.permissions,\n auth: coreServices.auth,\n http: coreServices.httpRouter,\n httpAuth: coreServices.httpAuth,\n lifecycle: coreServices.rootLifecycle,\n searchIndexService: searchIndexServiceRef,\n },\n async init({\n config,\n logger,\n discovery,\n permissions,\n auth,\n http,\n httpAuth,\n lifecycle,\n searchIndexService,\n }) {\n let searchEngine = searchEngineRegistry.getSearchEngine();\n if (!searchEngine) {\n searchEngine = new LunrSearchEngine({\n logger,\n });\n }\n\n const collators = searchIndexRegistry.getCollators();\n const decorators = searchIndexRegistry.getDecorators();\n searchIndexService.init({\n searchEngine: searchEngine!,\n collators,\n decorators,\n });\n\n lifecycle.addStartupHook(async () => {\n await searchIndexService.start();\n });\n\n lifecycle.addShutdownHook(async () => {\n await searchIndexService.stop();\n });\n\n const router = await createRouter({\n config,\n discovery,\n permissions,\n auth,\n httpAuth,\n logger,\n engine: searchEngine,\n types: searchIndexService.getDocumentTypes(),\n });\n\n http.use(router);\n },\n });\n },\n});\n"],"names":["createBackendPlugin","searchIndexRegistryExtens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AM,mBAAmB,IAAK,EAAA,CAAA;AAAA,SAC/B,CAAA,CAAA;AAED,QAAM,MAAAC,QAAA,GAAS,MAAMC,mBAAa,CAAA;AAAA,UAChC,MAAA;AAAA,UACA,SAAA;AAAA,UACA,WAAA;AAAA,UACA,IAAA;AAAA,UACA,QAAA;AAAA,UACA,MAAA;AAAA,UACA,MAAQ,EAAA,YAAA;AAAA,UACR,KAAA,EAAO,mBAAmB,gBAAiB,EAAA;AAAA,SAC5C,CAAA,CAAA;AAED,QAAA,IAAA,CAAK,IAAID,QAAM,CAAA,CAAA;AAAA,OACjB;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-search-backend",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "The Backstage backend plugin that provides your backstage app with search",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
|
+
"backstage": "@backstage/BackendFeature",
|
|
28
29
|
"require": "./dist/index.cjs.js",
|
|
29
30
|
"types": "./dist/index.d.ts",
|
|
30
31
|
"default": "./dist/index.cjs.js"
|
|
@@ -57,16 +58,16 @@
|
|
|
57
58
|
},
|
|
58
59
|
"dependencies": {
|
|
59
60
|
"@backstage/backend-common": "^0.25.0",
|
|
60
|
-
"@backstage/backend-defaults": "0.5.1
|
|
61
|
-
"@backstage/backend-openapi-utils": "0.2.0
|
|
62
|
-
"@backstage/backend-plugin-api": "1.0.1
|
|
63
|
-
"@backstage/config": "1.2.0",
|
|
64
|
-
"@backstage/errors": "1.2.4",
|
|
65
|
-
"@backstage/plugin-permission-common": "0.8.1",
|
|
66
|
-
"@backstage/plugin-permission-node": "0.8.4
|
|
67
|
-
"@backstage/plugin-search-backend-node": "1.3.3
|
|
68
|
-
"@backstage/plugin-search-common": "1.2.14",
|
|
69
|
-
"@backstage/types": "1.1.1",
|
|
61
|
+
"@backstage/backend-defaults": "^0.5.1",
|
|
62
|
+
"@backstage/backend-openapi-utils": "^0.2.0",
|
|
63
|
+
"@backstage/backend-plugin-api": "^1.0.1",
|
|
64
|
+
"@backstage/config": "^1.2.0",
|
|
65
|
+
"@backstage/errors": "^1.2.4",
|
|
66
|
+
"@backstage/plugin-permission-common": "^0.8.1",
|
|
67
|
+
"@backstage/plugin-permission-node": "^0.8.4",
|
|
68
|
+
"@backstage/plugin-search-backend-node": "^1.3.3",
|
|
69
|
+
"@backstage/plugin-search-common": "^1.2.14",
|
|
70
|
+
"@backstage/types": "^1.1.1",
|
|
70
71
|
"@types/express": "^4.17.6",
|
|
71
72
|
"dataloader": "^2.0.0",
|
|
72
73
|
"express": "^4.17.1",
|
|
@@ -76,9 +77,9 @@
|
|
|
76
77
|
"zod": "^3.22.4"
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|
|
79
|
-
"@backstage/backend-test-utils": "1.0.1
|
|
80
|
-
"@backstage/cli": "0.28.0
|
|
81
|
-
"@backstage/repo-tools": "0.10.0
|
|
80
|
+
"@backstage/backend-test-utils": "^1.0.1",
|
|
81
|
+
"@backstage/cli": "^0.28.0",
|
|
82
|
+
"@backstage/repo-tools": "^0.10.0",
|
|
82
83
|
"@types/supertest": "^2.0.8",
|
|
83
84
|
"supertest": "^7.0.0"
|
|
84
85
|
},
|