@backstage/plugin-events-backend-module-bitbucket-cloud 0.2.12-next.1 → 0.2.13
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 +17 -0
- package/README.md +1 -3
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +5 -4
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +5 -8
- package/dist/index.cjs.js +4 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/service/eventsModuleBitbucketCloudEventRouter.cjs.js.map +1 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @backstage/plugin-events-backend-module-bitbucket-cloud
|
|
2
2
|
|
|
3
|
+
## 0.2.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/plugin-events-node@0.4.2
|
|
9
|
+
- @backstage/backend-plugin-api@1.0.1
|
|
10
|
+
|
|
11
|
+
## 0.2.12
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 3109c24: The export for the new backend system at the `/alpha` export is now also available via the main entry point, which means that you can remove the `/alpha` suffix from the import.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @backstage/plugin-events-node@0.4.1
|
|
18
|
+
- @backstage/backend-plugin-api@1.0.1
|
|
19
|
+
|
|
3
20
|
## 0.2.12-next.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -29,9 +29,7 @@ yarn --cwd packages/backend add @backstage/plugin-events-backend-module-bitbucke
|
|
|
29
29
|
|
|
30
30
|
```ts
|
|
31
31
|
// packages/backend/src/index.ts
|
|
32
|
-
backend.add(
|
|
33
|
-
import('@backstage/plugin-events-backend-module-bitbucket-cloud/alpha'),
|
|
34
|
-
);
|
|
32
|
+
backend.add(import('@backstage/plugin-events-backend-module-bitbucket-cloud'));
|
|
35
33
|
```
|
|
36
34
|
|
|
37
35
|
### Legacy Backend System
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var eventsModuleBitbucketCloudEventRouter = require('./service/eventsModuleBitbucketCloudEventRouter.cjs.js');
|
|
5
|
+
var eventsModuleBitbucketCloudEventRouter$1 = require('./service/eventsModuleBitbucketCloudEventRouter.cjs.js');
|
|
6
6
|
|
|
7
|
+
const _feature = eventsModuleBitbucketCloudEventRouter$1.eventsModuleBitbucketCloudEventRouter;
|
|
8
|
+
const eventsModuleBitbucketCloudEventRouter = _feature;
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
exports.
|
|
10
|
-
exports.eventsModuleBitbucketCloudEventRouter = eventsModuleBitbucketCloudEventRouter.eventsModuleBitbucketCloudEventRouter;
|
|
10
|
+
exports.default = _feature;
|
|
11
|
+
exports.eventsModuleBitbucketCloudEventRouter = eventsModuleBitbucketCloudEventRouter;
|
|
11
12
|
//# sourceMappingURL=alpha.cjs.js.map
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.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 { eventsModuleBitbucketCloudEventRouter as feature } from './service/eventsModuleBitbucketCloudEventRouter';\n\n/** @alpha */\nconst _feature = feature;\nexport default _feature;\n/** @alpha */\nexport const eventsModuleBitbucketCloudEventRouter = _feature;\n"],"names":["feature"],"mappings":";;;;;;AAmBA,MAAM,QAAW,GAAAA,8EAAA;AAGV,MAAM,qCAAwC,GAAA;;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
* @alpha
|
|
9
|
-
*/
|
|
3
|
+
/** @alpha */
|
|
4
|
+
declare const _feature: _backstage_backend_plugin_api.BackendFeature;
|
|
5
|
+
|
|
6
|
+
/** @alpha */
|
|
10
7
|
declare const eventsModuleBitbucketCloudEventRouter: _backstage_backend_plugin_api.BackendFeature;
|
|
11
8
|
|
|
12
|
-
export {
|
|
9
|
+
export { _feature as default, eventsModuleBitbucketCloudEventRouter };
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var eventsModuleBitbucketCloudEventRouter = require('./service/eventsModuleBitbucketCloudEventRouter.cjs.js');
|
|
3
6
|
var BitbucketCloudEventRouter = require('./router/BitbucketCloudEventRouter.cjs.js');
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
|
|
10
|
+
exports.default = eventsModuleBitbucketCloudEventRouter.eventsModuleBitbucketCloudEventRouter;
|
|
7
11
|
exports.BitbucketCloudEventRouter = BitbucketCloudEventRouter.BitbucketCloudEventRouter;
|
|
8
12
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
1
2
|
import { SubTopicEventRouter, EventsService, EventParams } from '@backstage/plugin-events-node';
|
|
2
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Module for the events-backend plugin, adding an event router for Bitbucket Cloud.
|
|
6
|
+
*
|
|
7
|
+
* Registers the `BitbucketCloudEventRouter`.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
declare const eventsModuleBitbucketCloudEventRouter: _backstage_backend_plugin_api.BackendFeature;
|
|
12
|
+
|
|
3
13
|
/**
|
|
4
14
|
* Subscribes to the generic `bitbucketCloud` topic
|
|
5
15
|
* and publishes the events under the more concrete sub-topic
|
|
@@ -15,4 +25,4 @@ declare class BitbucketCloudEventRouter extends SubTopicEventRouter {
|
|
|
15
25
|
protected determineSubTopic(params: EventParams): string | undefined;
|
|
16
26
|
}
|
|
17
27
|
|
|
18
|
-
export { BitbucketCloudEventRouter };
|
|
28
|
+
export { BitbucketCloudEventRouter, eventsModuleBitbucketCloudEventRouter as default };
|
|
@@ -1 +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 * @
|
|
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 * @public\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.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "backend-plugin-module",
|
|
6
6
|
"pluginId": "events",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
|
+
"backstage": "@backstage/BackendFeature",
|
|
21
22
|
"require": "./dist/index.cjs.js",
|
|
22
23
|
"types": "./dist/index.d.ts",
|
|
23
24
|
"default": "./dist/index.cjs.js"
|
|
@@ -46,12 +47,12 @@
|
|
|
46
47
|
"test": "backstage-cli package test"
|
|
47
48
|
},
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@backstage/backend-plugin-api": "1.0.1
|
|
50
|
-
"@backstage/plugin-events-node": "0.4.
|
|
50
|
+
"@backstage/backend-plugin-api": "^1.0.1",
|
|
51
|
+
"@backstage/plugin-events-node": "^0.4.2"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@backstage/backend-test-utils": "1.0.
|
|
54
|
-
"@backstage/cli": "0.28.0
|
|
55
|
-
"@backstage/plugin-events-backend-test-utils": "0.1.
|
|
54
|
+
"@backstage/backend-test-utils": "^1.0.2",
|
|
55
|
+
"@backstage/cli": "^0.28.0",
|
|
56
|
+
"@backstage/plugin-events-backend-test-utils": "^0.1.37"
|
|
56
57
|
}
|
|
57
58
|
}
|