@backstage/plugin-events-backend-module-bitbucket-server 0.1.4-next.0 → 0.1.4

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,13 @@
1
1
  # @backstage/plugin-events-backend-module-bitbucket-server
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-plugin-api@1.4.2
9
+ - @backstage/plugin-events-node@0.4.14
10
+
3
11
  ## 0.1.4-next.0
4
12
 
5
13
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"BitbucketServerEventRouter.cjs.js","sources":["../../src/router/BitbucketServerEventRouter.ts"],"sourcesContent":["/*\n * Copyright 2022 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 EventParams,\n EventsService,\n SubTopicEventRouter,\n} from '@backstage/plugin-events-node';\n\n/**\n * Subscribes to the generic `bitbucketServer` topic\n * and publishes the events under the more concrete sub-topic\n * depending on the `x-event-key` provided.\n *\n * @public\n */\nexport class BitbucketServerEventRouter extends SubTopicEventRouter {\n constructor(options: { events: EventsService }) {\n super({\n events: options.events,\n topic: 'bitbucketServer',\n });\n }\n\n protected getSubscriberId(): string {\n return 'BitbucketServerEventRouter';\n }\n\n protected determineSubTopic(params: EventParams): string | undefined {\n return params.metadata?.['x-event-key'] as string | undefined;\n }\n}\n"],"names":["SubTopicEventRouter"],"mappings":";;;;AA6BO,MAAM,mCAAmCA,oCAAoB,CAAA;AAAA,EAClE,YAAY,OAAoC,EAAA;AAC9C,IAAM,KAAA,CAAA;AAAA,MACJ,QAAQ,OAAQ,CAAA,MAAA;AAAA,MAChB,KAAO,EAAA;AAAA,KACR,CAAA;AAAA;AACH,EAEU,eAA0B,GAAA;AAClC,IAAO,OAAA,4BAAA;AAAA;AACT,EAEU,kBAAkB,MAAyC,EAAA;AACnE,IAAO,OAAA,MAAA,CAAO,WAAW,aAAa,CAAA;AAAA;AAE1C;;;;"}
1
+ {"version":3,"file":"BitbucketServerEventRouter.cjs.js","sources":["../../src/router/BitbucketServerEventRouter.ts"],"sourcesContent":["/*\n * Copyright 2022 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 EventParams,\n EventsService,\n SubTopicEventRouter,\n} from '@backstage/plugin-events-node';\n\n/**\n * Subscribes to the generic `bitbucketServer` topic\n * and publishes the events under the more concrete sub-topic\n * depending on the `x-event-key` provided.\n *\n * @public\n */\nexport class BitbucketServerEventRouter extends SubTopicEventRouter {\n constructor(options: { events: EventsService }) {\n super({\n events: options.events,\n topic: 'bitbucketServer',\n });\n }\n\n protected getSubscriberId(): string {\n return 'BitbucketServerEventRouter';\n }\n\n protected determineSubTopic(params: EventParams): string | undefined {\n return params.metadata?.['x-event-key'] as string | undefined;\n }\n}\n"],"names":["SubTopicEventRouter"],"mappings":";;;;AA6BO,MAAM,mCAAmCA,oCAAA,CAAoB;AAAA,EAClE,YAAY,OAAA,EAAoC;AAC9C,IAAA,KAAA,CAAM;AAAA,MACJ,QAAQ,OAAA,CAAQ,MAAA;AAAA,MAChB,KAAA,EAAO;AAAA,KACR,CAAA;AAAA,EACH;AAAA,EAEU,eAAA,GAA0B;AAClC,IAAA,OAAO,4BAAA;AAAA,EACT;AAAA,EAEU,kBAAkB,MAAA,EAAyC;AACnE,IAAA,OAAO,MAAA,CAAO,WAAW,aAAa,CAAA;AAAA,EACxC;AACF;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"eventsModuleBitbucketServerEventRouter.cjs.js","sources":["../../src/service/eventsModuleBitbucketServerEventRouter.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { createBackendModule } from '@backstage/backend-plugin-api';\nimport { eventsServiceRef } from '@backstage/plugin-events-node';\nimport { BitbucketServerEventRouter } from '../router/BitbucketServerEventRouter';\n\n/**\n * Module for the events-backend plugin, adding an event router for Bitbucket Server.\n *\n * Registers the `BitbucketServerEventRouter`.\n *\n * @public\n */\nexport const eventsModuleBitbucketServerEventRouter = createBackendModule({\n pluginId: 'events',\n moduleId: 'bitbucket-server-event-router',\n register(env) {\n env.registerInit({\n deps: {\n events: eventsServiceRef,\n },\n async init({ events }) {\n const eventRouter = new BitbucketServerEventRouter({\n events,\n });\n await eventRouter.subscribe();\n },\n });\n },\n});\n"],"names":["createBackendModule","eventsServiceRef","BitbucketServerEventRouter"],"mappings":";;;;;;AA2BO,MAAM,yCAAyCA,oCAAoB,CAAA;AAAA,EACxE,QAAU,EAAA,QAAA;AAAA,EACV,QAAU,EAAA,+BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,MAAQ,EAAAC;AAAA,OACV;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAU,EAAA;AACrB,QAAM,MAAA,WAAA,GAAc,IAAIC,qDAA2B,CAAA;AAAA,UACjD;AAAA,SACD,CAAA;AACD,QAAA,MAAM,YAAY,SAAU,EAAA;AAAA;AAC9B,KACD,CAAA;AAAA;AAEL,CAAC;;;;"}
1
+ {"version":3,"file":"eventsModuleBitbucketServerEventRouter.cjs.js","sources":["../../src/service/eventsModuleBitbucketServerEventRouter.ts"],"sourcesContent":["/*\n * Copyright 2022 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 { createBackendModule } from '@backstage/backend-plugin-api';\nimport { eventsServiceRef } from '@backstage/plugin-events-node';\nimport { BitbucketServerEventRouter } from '../router/BitbucketServerEventRouter';\n\n/**\n * Module for the events-backend plugin, adding an event router for Bitbucket Server.\n *\n * Registers the `BitbucketServerEventRouter`.\n *\n * @public\n */\nexport const eventsModuleBitbucketServerEventRouter = createBackendModule({\n pluginId: 'events',\n moduleId: 'bitbucket-server-event-router',\n register(env) {\n env.registerInit({\n deps: {\n events: eventsServiceRef,\n },\n async init({ events }) {\n const eventRouter = new BitbucketServerEventRouter({\n events,\n });\n await eventRouter.subscribe();\n },\n });\n },\n});\n"],"names":["createBackendModule","eventsServiceRef","BitbucketServerEventRouter"],"mappings":";;;;;;AA2BO,MAAM,yCAAyCA,oCAAA,CAAoB;AAAA,EACxE,QAAA,EAAU,QAAA;AAAA,EACV,QAAA,EAAU,+BAAA;AAAA,EACV,SAAS,GAAA,EAAK;AACZ,IAAA,GAAA,CAAI,YAAA,CAAa;AAAA,MACf,IAAA,EAAM;AAAA,QACJ,MAAA,EAAQC;AAAA,OACV;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAO,EAAG;AACrB,QAAA,MAAM,WAAA,GAAc,IAAIC,qDAAA,CAA2B;AAAA,UACjD;AAAA,SACD,CAAA;AACD,QAAA,MAAM,YAAY,SAAA,EAAU;AAAA,MAC9B;AAAA,KACD,CAAA;AAAA,EACH;AACF,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-events-backend-module-bitbucket-server",
3
- "version": "0.1.4-next.0",
3
+ "version": "0.1.4",
4
4
  "backstage": {
5
5
  "role": "backend-plugin-module",
6
6
  "pluginId": "events",
@@ -50,12 +50,12 @@
50
50
  "test": "backstage-cli package test"
51
51
  },
52
52
  "dependencies": {
53
- "@backstage/backend-plugin-api": "1.4.2-next.0",
54
- "@backstage/plugin-events-node": "0.4.14-next.0"
53
+ "@backstage/backend-plugin-api": "^1.4.2",
54
+ "@backstage/plugin-events-node": "^0.4.14"
55
55
  },
56
56
  "devDependencies": {
57
- "@backstage/backend-test-utils": "1.7.1-next.0",
58
- "@backstage/cli": "0.33.2-next.0",
59
- "@backstage/plugin-events-backend-test-utils": "0.1.47-next.0"
57
+ "@backstage/backend-test-utils": "^1.8.0",
58
+ "@backstage/cli": "^0.34.0",
59
+ "@backstage/plugin-events-backend-test-utils": "^0.1.47"
60
60
  }
61
61
  }