@backstage/plugin-catalog-backend-module-gerrit 0.1.16-next.0 → 0.1.16-next.2

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,31 @@
1
1
  # @backstage/plugin-catalog-backend-module-gerrit
2
2
 
3
+ ## 0.1.16-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-plugin-api@0.6.0-next.2
9
+ - @backstage/backend-tasks@0.5.5-next.2
10
+ - @backstage/backend-common@0.19.2-next.2
11
+ - @backstage/plugin-catalog-node@1.4.1-next.2
12
+
13
+ ## 0.1.16-next.1
14
+
15
+ ### Patch Changes
16
+
17
+ - 629cbd194a87: Use `coreServices.rootConfig` instead of `coreService.config`
18
+ - 4b82382ed8c2: Fixed invalid configuration schema. The configuration schema may be more strict as a result.
19
+ - Updated dependencies
20
+ - @backstage/backend-common@0.19.2-next.1
21
+ - @backstage/plugin-catalog-node@1.4.1-next.1
22
+ - @backstage/backend-plugin-api@0.6.0-next.1
23
+ - @backstage/backend-tasks@0.5.5-next.1
24
+ - @backstage/integration@1.5.1
25
+ - @backstage/catalog-model@1.4.1
26
+ - @backstage/config@1.0.8
27
+ - @backstage/errors@1.2.1
28
+
3
29
  ## 0.1.16-next.0
4
30
 
5
31
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-gerrit",
3
- "version": "0.1.16-next.0",
3
+ "version": "0.1.16-next.2",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/config.d.ts CHANGED
@@ -25,9 +25,8 @@ export interface Config {
25
25
  *
26
26
  * Maps provider id with configuration.
27
27
  */
28
- gerrit?: Record<
29
- string,
30
- {
28
+ gerrit?: {
29
+ [name: string]: {
31
30
  /**
32
31
  * (Required) The host of the Gerrit integration to use.
33
32
  */
@@ -42,8 +41,8 @@ export interface Config {
42
41
  * The branch where the provider will try to find entities. Defaults to "master".
43
42
  */
44
43
  branch?: string;
45
- }
46
- >;
44
+ };
45
+ };
47
46
  };
48
47
  };
49
48
  }
package/dist/alpha.cjs.js CHANGED
@@ -20,7 +20,7 @@ const catalogModuleGerritEntityProvider = backendPluginApi.createBackendModule({
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/catalogModuleGerritEntityProvider.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 { GerritEntityProvider } from '../providers/GerritEntityProvider';\n\n/**\n * @alpha\n */\nexport const catalogModuleGerritEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'gerritEntityProvider',\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 = GerritEntityProvider.fromConfig(config, {\n logger: winstonLogger,\n scheduler,\n });\n\n catalog.addEntityProvider(providers);\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogProcessingExtensionPoint","coreServices","loggerToWinstonLogger","GerritEntityProvider"],"mappings":";;;;;;;;;;;;;;;AA2BO,MAAM,oCAAoCA,oCAAoB,CAAA;AAAA,EACnE,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,sBAAA;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,yCAAqB,CAAA,UAAA,CAAW,MAAQ,EAAA;AAAA,UACxD,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/catalogModuleGerritEntityProvider.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 { GerritEntityProvider } from '../providers/GerritEntityProvider';\n\n/**\n * @alpha\n */\nexport const catalogModuleGerritEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'gerritEntityProvider',\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 = GerritEntityProvider.fromConfig(config, {\n logger: winstonLogger,\n scheduler,\n });\n\n catalog.addEntityProvider(providers);\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogProcessingExtensionPoint","coreServices","loggerToWinstonLogger","GerritEntityProvider"],"mappings":";;;;;;;;;;;;;;;AA2BO,MAAM,oCAAoCA,oCAAoB,CAAA;AAAA,EACnE,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,sBAAA;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,yCAAqB,CAAA,UAAA,CAAW,MAAQ,EAAA;AAAA,UACxD,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-gerrit",
3
- "version": "0.1.16-next.0",
3
+ "version": "0.1.16-next.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -39,22 +39,22 @@
39
39
  "clean": "backstage-cli package clean"
40
40
  },
41
41
  "dependencies": {
42
- "@backstage/backend-common": "^0.19.2-next.0",
43
- "@backstage/backend-plugin-api": "^0.5.5-next.0",
44
- "@backstage/backend-tasks": "^0.5.5-next.0",
42
+ "@backstage/backend-common": "^0.19.2-next.2",
43
+ "@backstage/backend-plugin-api": "^0.6.0-next.2",
44
+ "@backstage/backend-tasks": "^0.5.5-next.2",
45
45
  "@backstage/catalog-model": "^1.4.1",
46
46
  "@backstage/config": "^1.0.8",
47
47
  "@backstage/errors": "^1.2.1",
48
48
  "@backstage/integration": "^1.5.1",
49
- "@backstage/plugin-catalog-node": "^1.4.1-next.0",
49
+ "@backstage/plugin-catalog-node": "^1.4.1-next.2",
50
50
  "fs-extra": "10.1.0",
51
51
  "node-fetch": "^2.6.7",
52
52
  "uuid": "^8.0.0",
53
53
  "winston": "^3.2.1"
54
54
  },
55
55
  "devDependencies": {
56
- "@backstage/backend-test-utils": "^0.1.40-next.0",
57
- "@backstage/cli": "^0.22.10-next.0",
56
+ "@backstage/backend-test-utils": "^0.2.0-next.2",
57
+ "@backstage/cli": "^0.22.10-next.1",
58
58
  "@types/fs-extra": "^9.0.1",
59
59
  "luxon": "^3.0.0",
60
60
  "msw": "^1.0.0"