@backstage/plugin-catalog-backend-module-unprocessed 0.5.4 → 0.5.5-next.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 +14 -0
- package/dist/module.cjs.js +5 -4
- package/dist/module.cjs.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-unprocessed
|
|
2
2
|
|
|
3
|
+
## 0.5.5-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4e073c7: Use new `PermissionsRegistryService` instead of the deprecated `catalogPermissionExtensionPoint`.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/plugin-catalog-node@1.15.2-next.0
|
|
10
|
+
- @backstage/backend-plugin-api@1.2.0-next.0
|
|
11
|
+
- @backstage/catalog-model@1.7.3
|
|
12
|
+
- @backstage/errors@1.2.7
|
|
13
|
+
- @backstage/plugin-auth-node@0.5.7-next.0
|
|
14
|
+
- @backstage/plugin-catalog-unprocessed-entities-common@0.0.7
|
|
15
|
+
- @backstage/plugin-permission-common@0.8.4
|
|
16
|
+
|
|
3
17
|
## 0.5.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/module.cjs.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
4
4
|
var UnprocessedEntitiesModule = require('./UnprocessedEntitiesModule.cjs.js');
|
|
5
|
-
var alpha = require('@backstage/plugin-catalog-node/alpha');
|
|
6
5
|
var pluginCatalogUnprocessedEntitiesCommon = require('@backstage/plugin-catalog-unprocessed-entities-common');
|
|
7
6
|
|
|
8
7
|
const catalogModuleUnprocessedEntities = backendPluginApi.createBackendModule({
|
|
@@ -17,7 +16,7 @@ const catalogModuleUnprocessedEntities = backendPluginApi.createBackendModule({
|
|
|
17
16
|
httpAuth: backendPluginApi.coreServices.httpAuth,
|
|
18
17
|
discovery: backendPluginApi.coreServices.discovery,
|
|
19
18
|
permissions: backendPluginApi.coreServices.permissions,
|
|
20
|
-
|
|
19
|
+
permissionsRegistry: backendPluginApi.coreServices.permissionsRegistry
|
|
21
20
|
},
|
|
22
21
|
async init({
|
|
23
22
|
database,
|
|
@@ -26,7 +25,7 @@ const catalogModuleUnprocessedEntities = backendPluginApi.createBackendModule({
|
|
|
26
25
|
permissions,
|
|
27
26
|
httpAuth,
|
|
28
27
|
discovery,
|
|
29
|
-
|
|
28
|
+
permissionsRegistry
|
|
30
29
|
}) {
|
|
31
30
|
const module = UnprocessedEntitiesModule.UnprocessedEntitiesModule.create({
|
|
32
31
|
database: await database.getClient(),
|
|
@@ -35,7 +34,9 @@ const catalogModuleUnprocessedEntities = backendPluginApi.createBackendModule({
|
|
|
35
34
|
discovery,
|
|
36
35
|
httpAuth
|
|
37
36
|
});
|
|
38
|
-
|
|
37
|
+
permissionsRegistry.addPermissions([
|
|
38
|
+
pluginCatalogUnprocessedEntitiesCommon.unprocessedEntitiesDeletePermission
|
|
39
|
+
]);
|
|
39
40
|
module.registerRoutes();
|
|
40
41
|
logger.info(
|
|
41
42
|
"registered additional routes for catalogModuleUnprocessedEntities"
|
package/dist/module.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.cjs.js","sources":["../src/module.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 createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { UnprocessedEntitiesModule } from './UnprocessedEntitiesModule';\nimport {
|
|
1
|
+
{"version":3,"file":"module.cjs.js","sources":["../src/module.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 createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { UnprocessedEntitiesModule } from './UnprocessedEntitiesModule';\nimport { unprocessedEntitiesDeletePermission } from '@backstage/plugin-catalog-unprocessed-entities-common';\n\n/**\n * Catalog Module for Unprocessed Entities\n *\n * @public\n */\nexport const catalogModuleUnprocessedEntities = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'catalog-module-unprocessed-entities',\n register(env) {\n env.registerInit({\n deps: {\n database: coreServices.database,\n router: coreServices.httpRouter,\n logger: coreServices.logger,\n httpAuth: coreServices.httpAuth,\n discovery: coreServices.discovery,\n permissions: coreServices.permissions,\n permissionsRegistry: coreServices.permissionsRegistry,\n },\n async init({\n database,\n router,\n logger,\n permissions,\n httpAuth,\n discovery,\n permissionsRegistry,\n }) {\n const module = UnprocessedEntitiesModule.create({\n database: await database.getClient(),\n router,\n permissions,\n discovery,\n httpAuth,\n });\n\n permissionsRegistry.addPermissions([\n unprocessedEntitiesDeletePermission,\n ]);\n\n module.registerRoutes();\n\n logger.info(\n 'registered additional routes for catalogModuleUnprocessedEntities',\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","coreServices","UnprocessedEntitiesModule","unprocessedEntitiesDeletePermission"],"mappings":";;;;;;AA4BO,MAAM,mCAAmCA,oCAAoB,CAAA;AAAA,EAClE,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,qCAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,UAAUC,6BAAa,CAAA,QAAA;AAAA,QACvB,QAAQA,6BAAa,CAAA,UAAA;AAAA,QACrB,QAAQA,6BAAa,CAAA,MAAA;AAAA,QACrB,UAAUA,6BAAa,CAAA,QAAA;AAAA,QACvB,WAAWA,6BAAa,CAAA,SAAA;AAAA,QACxB,aAAaA,6BAAa,CAAA,WAAA;AAAA,QAC1B,qBAAqBA,6BAAa,CAAA;AAAA,OACpC;AAAA,MACA,MAAM,IAAK,CAAA;AAAA,QACT,QAAA;AAAA,QACA,MAAA;AAAA,QACA,MAAA;AAAA,QACA,WAAA;AAAA,QACA,QAAA;AAAA,QACA,SAAA;AAAA,QACA;AAAA,OACC,EAAA;AACD,QAAM,MAAA,MAAA,GAASC,oDAA0B,MAAO,CAAA;AAAA,UAC9C,QAAA,EAAU,MAAM,QAAA,CAAS,SAAU,EAAA;AAAA,UACnC,MAAA;AAAA,UACA,WAAA;AAAA,UACA,SAAA;AAAA,UACA;AAAA,SACD,CAAA;AAED,QAAA,mBAAA,CAAoB,cAAe,CAAA;AAAA,UACjCC;AAAA,SACD,CAAA;AAED,QAAA,MAAA,CAAO,cAAe,EAAA;AAEtB,QAAO,MAAA,CAAA,IAAA;AAAA,UACL;AAAA,SACF;AAAA;AACF,KACD,CAAA;AAAA;AAEL,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-unprocessed",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5-next.0",
|
|
4
4
|
"description": "Backstage Catalog module to view unprocessed entities",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin-module",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@backstage/backend-common": "^0.25.0",
|
|
37
|
-
"@backstage/backend-plugin-api": "
|
|
38
|
-
"@backstage/catalog-model": "
|
|
39
|
-
"@backstage/errors": "
|
|
40
|
-
"@backstage/plugin-auth-node": "
|
|
41
|
-
"@backstage/plugin-catalog-node": "
|
|
42
|
-
"@backstage/plugin-catalog-unprocessed-entities-common": "
|
|
43
|
-
"@backstage/plugin-permission-common": "
|
|
37
|
+
"@backstage/backend-plugin-api": "1.2.0-next.0",
|
|
38
|
+
"@backstage/catalog-model": "1.7.3",
|
|
39
|
+
"@backstage/errors": "1.2.7",
|
|
40
|
+
"@backstage/plugin-auth-node": "0.5.7-next.0",
|
|
41
|
+
"@backstage/plugin-catalog-node": "1.15.2-next.0",
|
|
42
|
+
"@backstage/plugin-catalog-unprocessed-entities-common": "0.0.7",
|
|
43
|
+
"@backstage/plugin-permission-common": "0.8.4",
|
|
44
44
|
"express-promise-router": "^4.1.1",
|
|
45
45
|
"knex": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@backstage/cli": "
|
|
48
|
+
"@backstage/cli": "0.30.0-next.0",
|
|
49
49
|
"@types/express": "^4.17.6"
|
|
50
50
|
},
|
|
51
51
|
"typesVersions": {
|