@backstage/plugin-events-backend-module-bitbucket-cloud 0.2.12-next.0 → 0.2.12-next.1

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-cloud
2
2
 
3
+ ## 0.2.12-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-plugin-api@1.0.1-next.1
9
+ - @backstage/plugin-events-node@0.4.1-next.1
10
+
3
11
  ## 0.2.12-next.0
4
12
 
5
13
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-events-backend-module-bitbucket-cloud__alpha",
3
- "version": "0.2.12-next.0",
3
+ "version": "0.2.12-next.1",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -2,28 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var backendPluginApi = require('@backstage/backend-plugin-api');
6
- var pluginEventsNode = require('@backstage/plugin-events-node');
7
- var BitbucketCloudEventRouter = require('./cjs/BitbucketCloudEventRouter-BI5i5Uza.cjs.js');
5
+ var eventsModuleBitbucketCloudEventRouter = require('./service/eventsModuleBitbucketCloudEventRouter.cjs.js');
8
6
 
9
- const eventsModuleBitbucketCloudEventRouter = backendPluginApi.createBackendModule({
10
- pluginId: "events",
11
- moduleId: "bitbucket-cloud-event-router",
12
- register(env) {
13
- env.registerInit({
14
- deps: {
15
- events: pluginEventsNode.eventsServiceRef
16
- },
17
- async init({ events }) {
18
- const eventRouter = new BitbucketCloudEventRouter.BitbucketCloudEventRouter({
19
- events
20
- });
21
- await eventRouter.subscribe();
22
- }
23
- });
24
- }
25
- });
26
7
 
27
- exports.default = eventsModuleBitbucketCloudEventRouter;
28
- exports.eventsModuleBitbucketCloudEventRouter = eventsModuleBitbucketCloudEventRouter;
8
+
9
+ exports.default = eventsModuleBitbucketCloudEventRouter.eventsModuleBitbucketCloudEventRouter;
10
+ exports.eventsModuleBitbucketCloudEventRouter = eventsModuleBitbucketCloudEventRouter.eventsModuleBitbucketCloudEventRouter;
29
11
  //# sourceMappingURL=alpha.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.cjs.js","sources":["../src/service/eventsModuleBitbucketCloudEventRouter.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 { BitbucketCloudEventRouter } from '../router/BitbucketCloudEventRouter';\n\n/**\n * Module for the events-backend plugin, adding an event router for Bitbucket Cloud.\n *\n * Registers the `BitbucketCloudEventRouter`.\n *\n * @alpha\n */\nexport const eventsModuleBitbucketCloudEventRouter = createBackendModule({\n pluginId: 'events',\n moduleId: 'bitbucket-cloud-event-router',\n register(env) {\n env.registerInit({\n deps: {\n events: eventsServiceRef,\n },\n async init({ events }) {\n const eventRouter = new BitbucketCloudEventRouter({\n events,\n });\n await eventRouter.subscribe();\n },\n });\n },\n});\n"],"names":["createBackendModule","eventsServiceRef","BitbucketCloudEventRouter"],"mappings":";;;;;;;;AA2BO,MAAM,wCAAwCA,oCAAoB,CAAA;AAAA,EACvE,QAAU,EAAA,QAAA;AAAA,EACV,QAAU,EAAA,8BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,MAAQ,EAAAC,iCAAA;AAAA,OACV;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAU,EAAA;AACrB,QAAM,MAAA,WAAA,GAAc,IAAIC,mDAA0B,CAAA;AAAA,UAChD,MAAA;AAAA,SACD,CAAA,CAAA;AACD,QAAA,MAAM,YAAY,SAAU,EAAA,CAAA;AAAA,OAC9B;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;;"}
1
+ {"version":3,"file":"alpha.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
package/dist/index.cjs.js CHANGED
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var BitbucketCloudEventRouter = require('./cjs/BitbucketCloudEventRouter-BI5i5Uza.cjs.js');
4
- require('@backstage/plugin-events-node');
3
+ var BitbucketCloudEventRouter = require('./router/BitbucketCloudEventRouter.cjs.js');
5
4
 
6
5
 
7
6
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -18,4 +18,4 @@ class BitbucketCloudEventRouter extends pluginEventsNode.SubTopicEventRouter {
18
18
  }
19
19
 
20
20
  exports.BitbucketCloudEventRouter = BitbucketCloudEventRouter;
21
- //# sourceMappingURL=BitbucketCloudEventRouter-BI5i5Uza.cjs.js.map
21
+ //# sourceMappingURL=BitbucketCloudEventRouter.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BitbucketCloudEventRouter.cjs.js","sources":["../../src/router/BitbucketCloudEventRouter.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 `bitbucketCloud` 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 BitbucketCloudEventRouter extends SubTopicEventRouter {\n constructor(options: { events: EventsService }) {\n super({\n events: options.events,\n topic: 'bitbucketCloud',\n });\n }\n\n protected getSubscriberId(): string {\n return 'BitbucketCloudEventRouter';\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,kCAAkCA,oCAAoB,CAAA;AAAA,EACjE,YAAY,OAAoC,EAAA;AAC9C,IAAM,KAAA,CAAA;AAAA,MACJ,QAAQ,OAAQ,CAAA,MAAA;AAAA,MAChB,KAAO,EAAA,gBAAA;AAAA,KACR,CAAA,CAAA;AAAA,GACH;AAAA,EAEU,eAA0B,GAAA;AAClC,IAAO,OAAA,2BAAA,CAAA;AAAA,GACT;AAAA,EAEU,kBAAkB,MAAyC,EAAA;AACnE,IAAO,OAAA,MAAA,CAAO,WAAW,aAAa,CAAA,CAAA;AAAA,GACxC;AACF;;;;"}
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var backendPluginApi = require('@backstage/backend-plugin-api');
4
+ var pluginEventsNode = require('@backstage/plugin-events-node');
5
+ var BitbucketCloudEventRouter = require('../router/BitbucketCloudEventRouter.cjs.js');
6
+
7
+ const eventsModuleBitbucketCloudEventRouter = backendPluginApi.createBackendModule({
8
+ pluginId: "events",
9
+ moduleId: "bitbucket-cloud-event-router",
10
+ register(env) {
11
+ env.registerInit({
12
+ deps: {
13
+ events: pluginEventsNode.eventsServiceRef
14
+ },
15
+ async init({ events }) {
16
+ const eventRouter = new BitbucketCloudEventRouter.BitbucketCloudEventRouter({
17
+ events
18
+ });
19
+ await eventRouter.subscribe();
20
+ }
21
+ });
22
+ }
23
+ });
24
+
25
+ exports.eventsModuleBitbucketCloudEventRouter = eventsModuleBitbucketCloudEventRouter;
26
+ //# sourceMappingURL=eventsModuleBitbucketCloudEventRouter.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventsModuleBitbucketCloudEventRouter.cjs.js","sources":["../../src/service/eventsModuleBitbucketCloudEventRouter.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 { BitbucketCloudEventRouter } from '../router/BitbucketCloudEventRouter';\n\n/**\n * Module for the events-backend plugin, adding an event router for Bitbucket Cloud.\n *\n * Registers the `BitbucketCloudEventRouter`.\n *\n * @alpha\n */\nexport const eventsModuleBitbucketCloudEventRouter = createBackendModule({\n pluginId: 'events',\n moduleId: 'bitbucket-cloud-event-router',\n register(env) {\n env.registerInit({\n deps: {\n events: eventsServiceRef,\n },\n async init({ events }) {\n const eventRouter = new BitbucketCloudEventRouter({\n events,\n });\n await eventRouter.subscribe();\n },\n });\n },\n});\n"],"names":["createBackendModule","eventsServiceRef","BitbucketCloudEventRouter"],"mappings":";;;;;;AA2BO,MAAM,wCAAwCA,oCAAoB,CAAA;AAAA,EACvE,QAAU,EAAA,QAAA;AAAA,EACV,QAAU,EAAA,8BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,MAAQ,EAAAC,iCAAA;AAAA,OACV;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAU,EAAA;AACrB,QAAM,MAAA,WAAA,GAAc,IAAIC,mDAA0B,CAAA;AAAA,UAChD,MAAA;AAAA,SACD,CAAA,CAAA;AACD,QAAA,MAAM,YAAY,SAAU,EAAA,CAAA;AAAA,OAC9B;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-events-backend-module-bitbucket-cloud",
3
- "version": "0.2.12-next.0",
3
+ "version": "0.2.12-next.1",
4
4
  "backstage": {
5
5
  "role": "backend-plugin-module",
6
6
  "pluginId": "events",
@@ -46,12 +46,12 @@
46
46
  "test": "backstage-cli package test"
47
47
  },
48
48
  "dependencies": {
49
- "@backstage/backend-plugin-api": "^1.0.1-next.0",
50
- "@backstage/plugin-events-node": "^0.4.1-next.0"
49
+ "@backstage/backend-plugin-api": "1.0.1-next.1",
50
+ "@backstage/plugin-events-node": "0.4.1-next.1"
51
51
  },
52
52
  "devDependencies": {
53
- "@backstage/backend-test-utils": "^1.0.1-next.0",
54
- "@backstage/cli": "^0.28.0-next.0",
55
- "@backstage/plugin-events-backend-test-utils": "^0.1.36-next.0"
53
+ "@backstage/backend-test-utils": "1.0.1-next.2",
54
+ "@backstage/cli": "0.28.0-next.2",
55
+ "@backstage/plugin-events-backend-test-utils": "0.1.36-next.1"
56
56
  }
57
57
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"BitbucketCloudEventRouter-BI5i5Uza.cjs.js","sources":["../../src/router/BitbucketCloudEventRouter.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 `bitbucketCloud` 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 BitbucketCloudEventRouter extends SubTopicEventRouter {\n constructor(options: { events: EventsService }) {\n super({\n events: options.events,\n topic: 'bitbucketCloud',\n });\n }\n\n protected getSubscriberId(): string {\n return 'BitbucketCloudEventRouter';\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,kCAAkCA,oCAAoB,CAAA;AAAA,EACjE,YAAY,OAAoC,EAAA;AAC9C,IAAM,KAAA,CAAA;AAAA,MACJ,QAAQ,OAAQ,CAAA,MAAA;AAAA,MAChB,KAAO,EAAA,gBAAA;AAAA,KACR,CAAA,CAAA;AAAA,GACH;AAAA,EAEU,eAA0B,GAAA;AAClC,IAAO,OAAA,2BAAA,CAAA;AAAA,GACT;AAAA,EAEU,kBAAkB,MAAyC,EAAA;AACnE,IAAO,OAAA,MAAA,CAAO,WAAW,aAAa,CAAA,CAAA;AAAA,GACxC;AACF;;;;"}