@backstage/plugin-events-backend-module-bitbucket-cloud 0.1.19-next.1 → 0.1.19
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 +18 -0
- package/README.md +10 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +1 -0
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @backstage/plugin-events-backend-module-bitbucket-cloud
|
|
2
2
|
|
|
3
|
+
## 0.1.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- af76a95: Add default exports for the new backend system and documentation.
|
|
8
|
+
- 4016f21: Remove some unused dependencies
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/backend-plugin-api@0.6.9
|
|
11
|
+
- @backstage/plugin-events-node@0.2.18
|
|
12
|
+
|
|
13
|
+
## 0.1.19-next.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/backend-plugin-api@0.6.9-next.2
|
|
19
|
+
- @backstage/plugin-events-node@0.2.18-next.2
|
|
20
|
+
|
|
3
21
|
## 0.1.19-next.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -31,6 +31,16 @@ Install this module:
|
|
|
31
31
|
yarn add --cwd packages/backend @backstage/plugin-events-backend-module-bitbucket-cloud
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
+
### Add to backend
|
|
35
|
+
|
|
36
|
+
```ts title="packages/backend/src/index.ts"
|
|
37
|
+
backend.add(
|
|
38
|
+
import('@backstage/plugin-events-backend-module-bitbucket-cloud/alpha'),
|
|
39
|
+
);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Add to backend (old)
|
|
43
|
+
|
|
34
44
|
Add the event router to the `EventsBackend` instance in `packages/backend/src/plugins/events.ts`:
|
|
35
45
|
|
|
36
46
|
```diff
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -24,5 +24,6 @@ const eventsModuleBitbucketCloudEventRouter = backendPluginApi.createBackendModu
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
+
exports["default"] = eventsModuleBitbucketCloudEventRouter;
|
|
27
28
|
exports.eventsModuleBitbucketCloudEventRouter = eventsModuleBitbucketCloudEventRouter;
|
|
28
29
|
//# sourceMappingURL=alpha.cjs.js.map
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -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 { eventsExtensionPoint } from '@backstage/plugin-events-node/alpha';\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: eventsExtensionPoint,\n },\n async init({ events }) {\n const eventRouter = new BitbucketCloudEventRouter();\n\n events.addPublishers(eventRouter);\n events.addSubscribers(eventRouter);\n },\n });\n },\n});\n"],"names":["createBackendModule","eventsExtensionPoint","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,0BAAA;AAAA,OACV;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAU,EAAA;AACrB,QAAM,MAAA,WAAA,GAAc,IAAIC,mDAA0B,EAAA,CAAA;AAElD,QAAA,MAAA,CAAO,cAAc,WAAW,CAAA,CAAA;AAChC,QAAA,MAAA,CAAO,eAAe,WAAW,CAAA,CAAA;AAAA,OACnC;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC
|
|
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 { eventsExtensionPoint } from '@backstage/plugin-events-node/alpha';\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: eventsExtensionPoint,\n },\n async init({ events }) {\n const eventRouter = new BitbucketCloudEventRouter();\n\n events.addPublishers(eventRouter);\n events.addSubscribers(eventRouter);\n },\n });\n },\n});\n"],"names":["createBackendModule","eventsExtensionPoint","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,0BAAA;AAAA,OACV;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,MAAA,EAAU,EAAA;AACrB,QAAM,MAAA,WAAA,GAAc,IAAIC,mDAA0B,EAAA,CAAA;AAElD,QAAA,MAAA,CAAO,cAAc,WAAW,CAAA,CAAA;AAChC,QAAA,MAAA,CAAO,eAAe,WAAW,CAAA,CAAA;AAAA,OACnC;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const eventsModuleBitbucketCloudEventRouter: () => _backstage_backend_plugin_api.BackendFeature;
|
|
11
11
|
|
|
12
|
-
export { eventsModuleBitbucketCloudEventRouter };
|
|
12
|
+
export { eventsModuleBitbucketCloudEventRouter as default, eventsModuleBitbucketCloudEventRouter };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-events-backend-module-bitbucket-cloud",
|
|
3
|
-
"version": "0.1.19
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"main": "./dist/index.cjs.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"postpack": "backstage-cli package postpack"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@backstage/backend-plugin-api": "^0.6.9
|
|
43
|
-
"@backstage/plugin-events-node": "^0.2.18
|
|
42
|
+
"@backstage/backend-plugin-api": "^0.6.9",
|
|
43
|
+
"@backstage/plugin-events-node": "^0.2.18",
|
|
44
44
|
"winston": "^3.2.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@backstage/backend-test-utils": "^0.2.10
|
|
48
|
-
"@backstage/cli": "^0.25.1
|
|
49
|
-
"@backstage/plugin-events-backend-test-utils": "^0.1.19
|
|
47
|
+
"@backstage/backend-test-utils": "^0.2.10",
|
|
48
|
+
"@backstage/cli": "^0.25.1",
|
|
49
|
+
"@backstage/plugin-events-backend-test-utils": "^0.1.19"
|
|
50
50
|
},
|
|
51
51
|
"files": [
|
|
52
52
|
"dist",
|