@backstage/plugin-catalog-backend-module-bitbucket-cloud 0.1.14 → 0.1.15-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 +36 -0
- package/alpha/package.json +1 -1
- package/config.d.ts +12 -13
- package/dist/alpha.cjs.js +1 -1
- package/dist/alpha.cjs.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-bitbucket-cloud
|
|
2
2
|
|
|
3
|
+
## 0.1.15-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 629cbd194a87: Use `coreServices.rootConfig` instead of `coreService.config`
|
|
8
|
+
- 4b82382ed8c2: Fixed invalid configuration schema. The configuration schema may be more strict as a result.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/backend-common@0.19.2-next.1
|
|
11
|
+
- @backstage/plugin-bitbucket-cloud-common@0.2.9-next.0
|
|
12
|
+
- @backstage/plugin-catalog-node@1.4.1-next.1
|
|
13
|
+
- @backstage/plugin-events-node@0.2.9-next.1
|
|
14
|
+
- @backstage/backend-plugin-api@0.6.0-next.1
|
|
15
|
+
- @backstage/backend-tasks@0.5.5-next.1
|
|
16
|
+
- @backstage/integration@1.5.1
|
|
17
|
+
- @backstage/catalog-client@1.4.3
|
|
18
|
+
- @backstage/catalog-model@1.4.1
|
|
19
|
+
- @backstage/config@1.0.8
|
|
20
|
+
- @backstage/plugin-catalog-common@1.0.15
|
|
21
|
+
|
|
22
|
+
## 0.1.15-next.0
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
- @backstage/backend-common@0.19.2-next.0
|
|
28
|
+
- @backstage/backend-plugin-api@0.5.5-next.0
|
|
29
|
+
- @backstage/backend-tasks@0.5.5-next.0
|
|
30
|
+
- @backstage/catalog-client@1.4.3
|
|
31
|
+
- @backstage/catalog-model@1.4.1
|
|
32
|
+
- @backstage/config@1.0.8
|
|
33
|
+
- @backstage/integration@1.5.1
|
|
34
|
+
- @backstage/plugin-bitbucket-cloud-common@0.2.8
|
|
35
|
+
- @backstage/plugin-catalog-common@1.0.15
|
|
36
|
+
- @backstage/plugin-catalog-node@1.4.1-next.0
|
|
37
|
+
- @backstage/plugin-events-node@0.2.9-next.0
|
|
38
|
+
|
|
3
39
|
## 0.1.14
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/config.d.ts
CHANGED
|
@@ -45,24 +45,23 @@ export interface Config {
|
|
|
45
45
|
*/
|
|
46
46
|
filters?: {
|
|
47
47
|
/**
|
|
48
|
-
* (Optional)
|
|
48
|
+
* (Optional) Regular expression filter for the repository slug.
|
|
49
49
|
* @visibility frontend
|
|
50
50
|
*/
|
|
51
|
-
repoSlug?:
|
|
51
|
+
repoSlug?: string;
|
|
52
52
|
/**
|
|
53
|
-
* (Optional)
|
|
53
|
+
* (Optional) Regular expression filter for the project key.
|
|
54
54
|
* @visibility frontend
|
|
55
55
|
*/
|
|
56
|
-
projectKey?:
|
|
56
|
+
projectKey?: string;
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
59
|
* (Optional) TaskScheduleDefinition for the discovery.
|
|
60
60
|
*/
|
|
61
61
|
schedule?: TaskScheduleDefinitionConfig;
|
|
62
62
|
}
|
|
63
|
-
|
|
|
64
|
-
string
|
|
65
|
-
{
|
|
63
|
+
| {
|
|
64
|
+
[name: string]: {
|
|
66
65
|
/**
|
|
67
66
|
* (Optional) Path to the catalog file. Default to "/catalog-info.yaml".
|
|
68
67
|
* @visibility frontend
|
|
@@ -79,22 +78,22 @@ export interface Config {
|
|
|
79
78
|
*/
|
|
80
79
|
filters?: {
|
|
81
80
|
/**
|
|
82
|
-
* (Optional)
|
|
81
|
+
* (Optional) Regular expression filter for the repository slug.
|
|
83
82
|
* @visibility frontend
|
|
84
83
|
*/
|
|
85
|
-
repoSlug?:
|
|
84
|
+
repoSlug?: string;
|
|
86
85
|
/**
|
|
87
|
-
* (Optional)
|
|
86
|
+
* (Optional) Regular expression filter for the project key.
|
|
88
87
|
* @visibility frontend
|
|
89
88
|
*/
|
|
90
|
-
projectKey?:
|
|
89
|
+
projectKey?: string;
|
|
91
90
|
};
|
|
92
91
|
/**
|
|
93
92
|
* (Optional) TaskScheduleDefinition for the discovery.
|
|
94
93
|
*/
|
|
95
94
|
schedule?: TaskScheduleDefinitionConfig;
|
|
96
|
-
}
|
|
97
|
-
|
|
95
|
+
};
|
|
96
|
+
};
|
|
98
97
|
};
|
|
99
98
|
};
|
|
100
99
|
}
|
package/dist/alpha.cjs.js
CHANGED
|
@@ -21,7 +21,7 @@ const catalogModuleBitbucketCloudEntityProvider = backendPluginApi.createBackend
|
|
|
21
21
|
deps: {
|
|
22
22
|
catalog: alpha.catalogProcessingExtensionPoint,
|
|
23
23
|
catalogApi: alpha.catalogServiceRef,
|
|
24
|
-
config: backendPluginApi.coreServices.
|
|
24
|
+
config: backendPluginApi.coreServices.rootConfig,
|
|
25
25
|
// TODO(pjungermann): How to make this optional for those which only want the provider without event support?
|
|
26
26
|
// Do we even want to support this?
|
|
27
27
|
events: alpha$1.eventsExtensionPoint,
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModuleBitbucketCloudEntityProvider.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 { loggerToWinstonLogger } from '@backstage/backend-common';\nimport {\n coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport {\n catalogProcessingExtensionPoint,\n catalogServiceRef,\n} from '@backstage/plugin-catalog-node/alpha';\nimport { eventsExtensionPoint } from '@backstage/plugin-events-node/alpha';\nimport { BitbucketCloudEntityProvider } from '../providers/BitbucketCloudEntityProvider';\n\n/**\n * @alpha\n */\nexport const catalogModuleBitbucketCloudEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'bitbucketCloudEntityProvider',\n register(env) {\n env.registerInit({\n deps: {\n catalog: catalogProcessingExtensionPoint,\n catalogApi: catalogServiceRef,\n config: coreServices.
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModuleBitbucketCloudEntityProvider.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 { loggerToWinstonLogger } from '@backstage/backend-common';\nimport {\n coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport {\n catalogProcessingExtensionPoint,\n catalogServiceRef,\n} from '@backstage/plugin-catalog-node/alpha';\nimport { eventsExtensionPoint } from '@backstage/plugin-events-node/alpha';\nimport { BitbucketCloudEntityProvider } from '../providers/BitbucketCloudEntityProvider';\n\n/**\n * @alpha\n */\nexport const catalogModuleBitbucketCloudEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'bitbucketCloudEntityProvider',\n register(env) {\n env.registerInit({\n deps: {\n catalog: catalogProcessingExtensionPoint,\n catalogApi: catalogServiceRef,\n config: coreServices.rootConfig,\n // TODO(pjungermann): How to make this optional for those which only want the provider without event support?\n // Do we even want to support this?\n events: eventsExtensionPoint,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n tokenManager: coreServices.tokenManager,\n },\n async init({\n catalog,\n catalogApi,\n config,\n events,\n logger,\n scheduler,\n tokenManager,\n }) {\n const winstonLogger = loggerToWinstonLogger(logger);\n const providers = BitbucketCloudEntityProvider.fromConfig(config, {\n catalogApi,\n logger: winstonLogger,\n scheduler,\n tokenManager,\n });\n\n catalog.addEntityProvider(providers);\n events.addSubscribers(providers);\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogProcessingExtensionPoint","catalogServiceRef","coreServices","eventsExtensionPoint","loggerToWinstonLogger","BitbucketCloudEntityProvider"],"mappings":";;;;;;;;;;;;;;;AA+BO,MAAM,4CAA4CA,oCAAoB,CAAA;AAAA,EAC3E,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,8BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,OAAS,EAAAC,qCAAA;AAAA,QACT,UAAY,EAAAC,uBAAA;AAAA,QACZ,QAAQC,6BAAa,CAAA,UAAA;AAAA;AAAA;AAAA,QAGrB,MAAQ,EAAAC,4BAAA;AAAA,QACR,QAAQD,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,QACxB,cAAcA,6BAAa,CAAA,YAAA;AAAA,OAC7B;AAAA,MACA,MAAM,IAAK,CAAA;AAAA,QACT,OAAA;AAAA,QACA,UAAA;AAAA,QACA,MAAA;AAAA,QACA,MAAA;AAAA,QACA,MAAA;AAAA,QACA,SAAA;AAAA,QACA,YAAA;AAAA,OACC,EAAA;AACD,QAAM,MAAA,aAAA,GAAgBE,oCAAsB,MAAM,CAAA,CAAA;AAClD,QAAM,MAAA,SAAA,GAAYC,yDAA6B,CAAA,UAAA,CAAW,MAAQ,EAAA;AAAA,UAChE,UAAA;AAAA,UACA,MAAQ,EAAA,aAAA;AAAA,UACR,SAAA;AAAA,UACA,YAAA;AAAA,SACD,CAAA,CAAA;AAED,QAAA,OAAA,CAAQ,kBAAkB,SAAS,CAAA,CAAA;AACnC,QAAA,MAAA,CAAO,eAAe,SAAS,CAAA,CAAA;AAAA,OACjC;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-bitbucket-cloud",
|
|
3
3
|
"description": "A Backstage catalog backend module that helps integrate towards Bitbucket Cloud",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.15-next.1",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -43,24 +43,24 @@
|
|
|
43
43
|
"clean": "backstage-cli package clean"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@backstage/backend-common": "^0.19.1",
|
|
47
|
-
"@backstage/backend-plugin-api": "^0.
|
|
48
|
-
"@backstage/backend-tasks": "^0.5.
|
|
46
|
+
"@backstage/backend-common": "^0.19.2-next.1",
|
|
47
|
+
"@backstage/backend-plugin-api": "^0.6.0-next.1",
|
|
48
|
+
"@backstage/backend-tasks": "^0.5.5-next.1",
|
|
49
49
|
"@backstage/catalog-client": "^1.4.3",
|
|
50
50
|
"@backstage/catalog-model": "^1.4.1",
|
|
51
51
|
"@backstage/config": "^1.0.8",
|
|
52
52
|
"@backstage/integration": "^1.5.1",
|
|
53
|
-
"@backstage/plugin-bitbucket-cloud-common": "^0.2.
|
|
53
|
+
"@backstage/plugin-bitbucket-cloud-common": "^0.2.9-next.0",
|
|
54
54
|
"@backstage/plugin-catalog-common": "^1.0.15",
|
|
55
|
-
"@backstage/plugin-catalog-node": "^1.4.
|
|
56
|
-
"@backstage/plugin-events-node": "^0.2.
|
|
55
|
+
"@backstage/plugin-catalog-node": "^1.4.1-next.1",
|
|
56
|
+
"@backstage/plugin-events-node": "^0.2.9-next.1",
|
|
57
57
|
"uuid": "^8.0.0",
|
|
58
58
|
"winston": "^3.2.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@backstage/backend-common": "^0.19.1",
|
|
62
|
-
"@backstage/backend-test-utils": "^0.1
|
|
63
|
-
"@backstage/cli": "^0.22.
|
|
61
|
+
"@backstage/backend-common": "^0.19.2-next.1",
|
|
62
|
+
"@backstage/backend-test-utils": "^0.2.0-next.1",
|
|
63
|
+
"@backstage/cli": "^0.22.10-next.1",
|
|
64
64
|
"luxon": "^3.0.0",
|
|
65
65
|
"msw": "^1.0.0"
|
|
66
66
|
},
|