@backstage/plugin-catalog-backend-module-bitbucket-server 0.1.13-next.0 → 0.1.13-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,21 @@
1
1
  # @backstage/plugin-catalog-backend-module-bitbucket-server
2
2
 
3
+ ## 0.1.13-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-catalog-node@1.4.1-next.1
12
+ - @backstage/backend-plugin-api@0.6.0-next.1
13
+ - @backstage/backend-tasks@0.5.5-next.1
14
+ - @backstage/integration@1.5.1
15
+ - @backstage/catalog-model@1.4.1
16
+ - @backstage/config@1.0.8
17
+ - @backstage/errors@1.2.1
18
+
3
19
  ## 0.1.13-next.0
4
20
 
5
21
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-bitbucket-server",
3
- "version": "0.1.13-next.0",
3
+ "version": "0.1.13-next.1",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/config.d.ts CHANGED
@@ -37,24 +37,23 @@ export interface Config {
37
37
  */
38
38
  filters?: {
39
39
  /**
40
- * (Optional) Filter for the repository slug.
40
+ * (Optional) Regular expression filter for the repository slug.
41
41
  * @visibility frontend
42
42
  */
43
- repoSlug?: RegExp;
43
+ repoSlug?: string;
44
44
  /**
45
- * (Optional) Filter for the project key.
45
+ * (Optional) Regular expression filter for the project key.
46
46
  * @visibility frontend
47
47
  */
48
- projectKey?: RegExp;
48
+ projectKey?: string;
49
49
  };
50
50
  /**
51
51
  * (Optional) TaskScheduleDefinition for the refresh.
52
52
  */
53
53
  schedule?: TaskScheduleDefinitionConfig;
54
54
  }
55
- | Record<
56
- string,
57
- {
55
+ | {
56
+ [name: string]: {
58
57
  /**
59
58
  * (Optional) Path to the catalog file. Default to "/catalog-info.yaml".
60
59
  * @visibility frontend
@@ -66,22 +65,22 @@ export interface Config {
66
65
  */
67
66
  filters?: {
68
67
  /**
69
- * (Optional) Filter for the repository slug.
68
+ * (Optional) Regular expression filter for the repository slug.
70
69
  * @visibility frontend
71
70
  */
72
- repoSlug?: RegExp;
71
+ repoSlug?: string;
73
72
  /**
74
- * (Optional) Filter for the project key.
73
+ * (Optional) Regular expression filter for the project key.
75
74
  * @visibility frontend
76
75
  */
77
- projectKey?: RegExp;
76
+ projectKey?: string;
78
77
  };
79
78
  /**
80
79
  * (Optional) TaskScheduleDefinition for the refresh.
81
80
  */
82
81
  schedule?: TaskScheduleDefinitionConfig;
83
- }
84
- >;
82
+ };
83
+ };
85
84
  };
86
85
  };
87
86
  }
package/dist/alpha.cjs.js CHANGED
@@ -20,7 +20,7 @@ const catalogModuleBitbucketServerEntityProvider = backendPluginApi.createBacken
20
20
  env.registerInit({
21
21
  deps: {
22
22
  catalog: alpha.catalogProcessingExtensionPoint,
23
- config: backendPluginApi.coreServices.config,
23
+ config: backendPluginApi.coreServices.rootConfig,
24
24
  logger: backendPluginApi.coreServices.logger,
25
25
  scheduler: backendPluginApi.coreServices.scheduler
26
26
  },
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModuleBitbucketServerEntityProvider.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 { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { BitbucketServerEntityProvider } from '../providers';\n\n/**\n * @alpha\n */\nexport const catalogModuleBitbucketServerEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'bitbucketServerEntityProvider',\n register(env) {\n env.registerInit({\n deps: {\n catalog: catalogProcessingExtensionPoint,\n config: coreServices.config,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n },\n async init({ catalog, config, logger, scheduler }) {\n const winstonLogger = loggerToWinstonLogger(logger);\n const providers = BitbucketServerEntityProvider.fromConfig(config, {\n logger: winstonLogger,\n scheduler,\n });\n\n catalog.addEntityProvider(providers);\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogProcessingExtensionPoint","coreServices","loggerToWinstonLogger","BitbucketServerEntityProvider"],"mappings":";;;;;;;;;;;;;;;AA2BO,MAAM,6CAA6CA,oCAAoB,CAAA;AAAA,EAC5E,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,+BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,OAAS,EAAAC,qCAAA;AAAA,QACT,QAAQC,6BAAa,CAAA,MAAA;AAAA,QACrB,QAAQA,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,OAC1B;AAAA,MACA,MAAM,IAAK,CAAA,EAAE,SAAS,MAAQ,EAAA,MAAA,EAAQ,WAAa,EAAA;AACjD,QAAM,MAAA,aAAA,GAAgBC,oCAAsB,MAAM,CAAA,CAAA;AAClD,QAAM,MAAA,SAAA,GAAYC,2DAA8B,CAAA,UAAA,CAAW,MAAQ,EAAA;AAAA,UACjE,MAAQ,EAAA,aAAA;AAAA,UACR,SAAA;AAAA,SACD,CAAA,CAAA;AAED,QAAA,OAAA,CAAQ,kBAAkB,SAAS,CAAA,CAAA;AAAA,OACrC;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModuleBitbucketServerEntityProvider.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 { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { BitbucketServerEntityProvider } from '../providers';\n\n/**\n * @alpha\n */\nexport const catalogModuleBitbucketServerEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'bitbucketServerEntityProvider',\n register(env) {\n env.registerInit({\n deps: {\n catalog: catalogProcessingExtensionPoint,\n config: coreServices.rootConfig,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n },\n async init({ catalog, config, logger, scheduler }) {\n const winstonLogger = loggerToWinstonLogger(logger);\n const providers = BitbucketServerEntityProvider.fromConfig(config, {\n logger: winstonLogger,\n scheduler,\n });\n\n catalog.addEntityProvider(providers);\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogProcessingExtensionPoint","coreServices","loggerToWinstonLogger","BitbucketServerEntityProvider"],"mappings":";;;;;;;;;;;;;;;AA2BO,MAAM,6CAA6CA,oCAAoB,CAAA;AAAA,EAC5E,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,+BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,OAAS,EAAAC,qCAAA;AAAA,QACT,QAAQC,6BAAa,CAAA,UAAA;AAAA,QACrB,QAAQA,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,OAC1B;AAAA,MACA,MAAM,IAAK,CAAA,EAAE,SAAS,MAAQ,EAAA,MAAA,EAAQ,WAAa,EAAA;AACjD,QAAM,MAAA,aAAA,GAAgBC,oCAAsB,MAAM,CAAA,CAAA;AAClD,QAAM,MAAA,SAAA,GAAYC,2DAA8B,CAAA,UAAA,CAAW,MAAQ,EAAA;AAAA,UACjE,MAAQ,EAAA,aAAA;AAAA,UACR,SAAA;AAAA,SACD,CAAA,CAAA;AAED,QAAA,OAAA,CAAQ,kBAAkB,SAAS,CAAA,CAAA;AAAA,OACrC;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-bitbucket-server",
3
- "version": "0.1.13-next.0",
3
+ "version": "0.1.13-next.1",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -42,22 +42,22 @@
42
42
  "clean": "backstage-cli package clean"
43
43
  },
44
44
  "dependencies": {
45
- "@backstage/backend-common": "^0.19.2-next.0",
46
- "@backstage/backend-plugin-api": "^0.5.5-next.0",
47
- "@backstage/backend-tasks": "^0.5.5-next.0",
45
+ "@backstage/backend-common": "^0.19.2-next.1",
46
+ "@backstage/backend-plugin-api": "^0.6.0-next.1",
47
+ "@backstage/backend-tasks": "^0.5.5-next.1",
48
48
  "@backstage/catalog-model": "^1.4.1",
49
49
  "@backstage/config": "^1.0.8",
50
50
  "@backstage/errors": "^1.2.1",
51
51
  "@backstage/integration": "^1.5.1",
52
- "@backstage/plugin-catalog-node": "^1.4.1-next.0",
52
+ "@backstage/plugin-catalog-node": "^1.4.1-next.1",
53
53
  "@types/node-fetch": "^2.5.12",
54
54
  "node-fetch": "^2.6.7",
55
55
  "uuid": "^8.0.0",
56
56
  "winston": "^3.2.1"
57
57
  },
58
58
  "devDependencies": {
59
- "@backstage/backend-test-utils": "^0.1.40-next.0",
60
- "@backstage/cli": "^0.22.10-next.0",
59
+ "@backstage/backend-test-utils": "^0.2.0-next.1",
60
+ "@backstage/cli": "^0.22.10-next.1",
61
61
  "luxon": "^3.0.0",
62
62
  "msw": "^1.0.0"
63
63
  },