@backstage/plugin-catalog-backend-module-logs 0.1.13-next.0 → 0.1.14-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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @backstage/plugin-catalog-backend-module-logs
2
2
 
3
+ ## 0.1.14-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/plugin-catalog-backend@3.0.2-next.0
9
+ - @backstage/backend-plugin-api@1.4.3-next.0
10
+ - @backstage/plugin-events-node@0.4.15-next.0
11
+
12
+ ## 0.1.13
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+ - @backstage/plugin-catalog-backend@3.0.1
18
+ - @backstage/backend-plugin-api@1.4.2
19
+ - @backstage/plugin-events-node@0.4.14
20
+
3
21
  ## 0.1.13-next.0
4
22
 
5
23
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"module.cjs.js","sources":["../src/module.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 {\n coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { CATALOG_ERRORS_TOPIC } from '@backstage/plugin-catalog-backend';\nimport { eventsServiceRef, EventParams } from '@backstage/plugin-events-node';\n\ninterface EventsPayload {\n entity: string;\n location?: string;\n errors: Error[];\n}\n\ninterface EventsParamsWithPayload extends EventParams {\n eventPayload: EventsPayload;\n}\n\n/**\n * A catalog module that logs catalog errors using the logger service.\n *\n * @public\n */\nexport const catalogModuleLogs = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'logs',\n register(env) {\n env.registerInit({\n deps: {\n events: eventsServiceRef,\n logger: coreServices.logger,\n },\n async init({ events, logger }) {\n events.subscribe({\n id: 'catalog',\n topics: [CATALOG_ERRORS_TOPIC],\n async onEvent(params: EventParams): Promise<void> {\n const event = params as EventsParamsWithPayload;\n const { entity, location, errors } = event.eventPayload;\n for (const error of errors) {\n logger.warn(error.message, {\n entity,\n location,\n });\n }\n },\n });\n },\n });\n },\n});\n"],"names":["createBackendModule","eventsServiceRef","coreServices","CATALOG_ERRORS_TOPIC"],"mappings":";;;;;;AAsCO,MAAM,oBAAoBA,oCAAoB,CAAA;AAAA,EACnD,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,MAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,MAAQ,EAAAC,iCAAA;AAAA,QACR,QAAQC,6BAAa,CAAA;AAAA,OACvB;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAQ,QAAU,EAAA;AAC7B,QAAA,MAAA,CAAO,SAAU,CAAA;AAAA,UACf,EAAI,EAAA,SAAA;AAAA,UACJ,MAAA,EAAQ,CAACC,yCAAoB,CAAA;AAAA,UAC7B,MAAM,QAAQ,MAAoC,EAAA;AAChD,YAAA,MAAM,KAAQ,GAAA,MAAA;AACd,YAAA,MAAM,EAAE,MAAA,EAAQ,QAAU,EAAA,MAAA,KAAW,KAAM,CAAA,YAAA;AAC3C,YAAA,KAAA,MAAW,SAAS,MAAQ,EAAA;AAC1B,cAAO,MAAA,CAAA,IAAA,CAAK,MAAM,OAAS,EAAA;AAAA,gBACzB,MAAA;AAAA,gBACA;AAAA,eACD,CAAA;AAAA;AACH;AACF,SACD,CAAA;AAAA;AACH,KACD,CAAA;AAAA;AAEL,CAAC;;;;"}
1
+ {"version":3,"file":"module.cjs.js","sources":["../src/module.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 {\n coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { CATALOG_ERRORS_TOPIC } from '@backstage/plugin-catalog-backend';\nimport { eventsServiceRef, EventParams } from '@backstage/plugin-events-node';\n\ninterface EventsPayload {\n entity: string;\n location?: string;\n errors: Error[];\n}\n\ninterface EventsParamsWithPayload extends EventParams {\n eventPayload: EventsPayload;\n}\n\n/**\n * A catalog module that logs catalog errors using the logger service.\n *\n * @public\n */\nexport const catalogModuleLogs = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'logs',\n register(env) {\n env.registerInit({\n deps: {\n events: eventsServiceRef,\n logger: coreServices.logger,\n },\n async init({ events, logger }) {\n events.subscribe({\n id: 'catalog',\n topics: [CATALOG_ERRORS_TOPIC],\n async onEvent(params: EventParams): Promise<void> {\n const event = params as EventsParamsWithPayload;\n const { entity, location, errors } = event.eventPayload;\n for (const error of errors) {\n logger.warn(error.message, {\n entity,\n location,\n });\n }\n },\n });\n },\n });\n },\n});\n"],"names":["createBackendModule","eventsServiceRef","coreServices","CATALOG_ERRORS_TOPIC"],"mappings":";;;;;;AAsCO,MAAM,oBAAoBA,oCAAA,CAAoB;AAAA,EACnD,QAAA,EAAU,SAAA;AAAA,EACV,QAAA,EAAU,MAAA;AAAA,EACV,SAAS,GAAA,EAAK;AACZ,IAAA,GAAA,CAAI,YAAA,CAAa;AAAA,MACf,IAAA,EAAM;AAAA,QACJ,MAAA,EAAQC,iCAAA;AAAA,QACR,QAAQC,6BAAA,CAAa;AAAA,OACvB;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAQ,QAAO,EAAG;AAC7B,QAAA,MAAA,CAAO,SAAA,CAAU;AAAA,UACf,EAAA,EAAI,SAAA;AAAA,UACJ,MAAA,EAAQ,CAACC,yCAAoB,CAAA;AAAA,UAC7B,MAAM,QAAQ,MAAA,EAAoC;AAChD,YAAA,MAAM,KAAA,GAAQ,MAAA;AACd,YAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,MAAA,KAAW,KAAA,CAAM,YAAA;AAC3C,YAAA,KAAA,MAAW,SAAS,MAAA,EAAQ;AAC1B,cAAA,MAAA,CAAO,IAAA,CAAK,MAAM,OAAA,EAAS;AAAA,gBACzB,MAAA;AAAA,gBACA;AAAA,eACD,CAAA;AAAA,YACH;AAAA,UACF;AAAA,SACD,CAAA;AAAA,MACH;AAAA,KACD,CAAA;AAAA,EACH;AACF,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-logs",
3
- "version": "0.1.13-next.0",
3
+ "version": "0.1.14-next.0",
4
4
  "description": "A module that subscribes to catalog related events and logs them.",
5
5
  "backstage": {
6
6
  "role": "backend-plugin-module",
@@ -36,14 +36,14 @@
36
36
  "test": "backstage-cli package test"
37
37
  },
38
38
  "dependencies": {
39
- "@backstage/backend-plugin-api": "1.4.2-next.0",
40
- "@backstage/plugin-catalog-backend": "3.0.1-next.0",
41
- "@backstage/plugin-events-node": "0.4.14-next.0"
39
+ "@backstage/backend-plugin-api": "1.4.3-next.0",
40
+ "@backstage/plugin-catalog-backend": "3.0.2-next.0",
41
+ "@backstage/plugin-events-node": "0.4.15-next.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@backstage/backend-test-utils": "1.7.1-next.0",
45
- "@backstage/cli": "0.33.2-next.0",
46
- "@backstage/plugin-events-backend-test-utils": "0.1.47-next.0"
44
+ "@backstage/backend-test-utils": "1.9.0-next.1",
45
+ "@backstage/cli": "0.34.2-next.1",
46
+ "@backstage/plugin-events-backend-test-utils": "0.1.48-next.0"
47
47
  },
48
48
  "typesVersions": {
49
49
  "*": {