@backstage/plugin-catalog-backend-module-github 0.3.3-next.0 → 0.3.3-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,26 @@
1
1
  # @backstage/plugin-catalog-backend-module-github
2
2
 
3
+ ## 0.3.3-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-backend@1.12.0-next.1
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/errors@1.2.1
21
+ - @backstage/types@1.1.0
22
+ - @backstage/plugin-catalog-common@1.0.15
23
+
3
24
  ## 0.3.3-next.0
4
25
 
5
26
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-github",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3-next.1",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/config.d.ts CHANGED
@@ -118,9 +118,8 @@ export interface Config {
118
118
  */
119
119
  schedule?: TaskScheduleDefinitionConfig;
120
120
  }
121
- | Record<
122
- string,
123
- {
121
+ | {
122
+ [name: string]: {
124
123
  /**
125
124
  * (Optional) The hostname of your GitHub Enterprise instance.
126
125
  * Default: `github.com`.
@@ -182,8 +181,8 @@ export interface Config {
182
181
  * (Optional) TaskScheduleDefinition for the refresh.
183
182
  */
184
183
  schedule?: TaskScheduleDefinitionConfig;
185
- }
186
- >;
184
+ };
185
+ };
187
186
  };
188
187
  };
189
188
  }
package/dist/alpha.cjs.js CHANGED
@@ -22,7 +22,7 @@ const catalogModuleGithubEntityProvider = backendPluginApi.createBackendModule({
22
22
  env.registerInit({
23
23
  deps: {
24
24
  catalog: alpha.catalogProcessingExtensionPoint,
25
- config: backendPluginApi.coreServices.config,
25
+ config: backendPluginApi.coreServices.rootConfig,
26
26
  logger: backendPluginApi.coreServices.logger,
27
27
  scheduler: backendPluginApi.coreServices.scheduler
28
28
  },
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModuleGithubEntityProvider.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 {\n createBackendModule,\n coreServices,\n} from '@backstage/backend-plugin-api';\nimport { loggerToWinstonLogger } from '@backstage/backend-common';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { GithubEntityProvider } from '../providers/GithubEntityProvider';\n\n/**\n * Registers the `GithubEntityProvider` with the catalog processing extension point.\n *\n * @alpha\n */\nexport const catalogModuleGithubEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'githubEntityProvider',\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 catalog.addEntityProvider(\n GithubEntityProvider.fromConfig(config, {\n logger: loggerToWinstonLogger(logger),\n scheduler,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogProcessingExtensionPoint","coreServices","GithubEntityProvider","loggerToWinstonLogger"],"mappings":";;;;;;;;;;;;;;;;;AA6BO,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,QAAQ,OAAA,CAAA,iBAAA;AAAA,UACNC,yCAAA,CAAqB,WAAW,MAAQ,EAAA;AAAA,YACtC,MAAA,EAAQC,oCAAsB,MAAM,CAAA;AAAA,YACpC,SAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModuleGithubEntityProvider.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 {\n createBackendModule,\n coreServices,\n} from '@backstage/backend-plugin-api';\nimport { loggerToWinstonLogger } from '@backstage/backend-common';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { GithubEntityProvider } from '../providers/GithubEntityProvider';\n\n/**\n * Registers the `GithubEntityProvider` with the catalog processing extension point.\n *\n * @alpha\n */\nexport const catalogModuleGithubEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'githubEntityProvider',\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 catalog.addEntityProvider(\n GithubEntityProvider.fromConfig(config, {\n logger: loggerToWinstonLogger(logger),\n scheduler,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogProcessingExtensionPoint","coreServices","GithubEntityProvider","loggerToWinstonLogger"],"mappings":";;;;;;;;;;;;;;;;;AA6BO,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,QAAQ,OAAA,CAAA,iBAAA;AAAA,UACNC,yCAAA,CAAqB,WAAW,MAAQ,EAAA;AAAA,YACtC,MAAA,EAAQC,oCAAsB,MAAM,CAAA;AAAA,YACpC,SAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAAA,OACF;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-github",
3
3
  "description": "A Backstage catalog backend module that helps integrate towards GitHub",
4
- "version": "0.3.3-next.0",
4
+ "version": "0.3.3-next.1",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -43,18 +43,18 @@
43
43
  "start": "backstage-cli package start"
44
44
  },
45
45
  "dependencies": {
46
- "@backstage/backend-common": "^0.19.2-next.0",
47
- "@backstage/backend-plugin-api": "^0.5.5-next.0",
48
- "@backstage/backend-tasks": "^0.5.5-next.0",
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/errors": "^1.2.1",
53
53
  "@backstage/integration": "^1.5.1",
54
- "@backstage/plugin-catalog-backend": "^1.12.0-next.0",
54
+ "@backstage/plugin-catalog-backend": "^1.12.0-next.1",
55
55
  "@backstage/plugin-catalog-common": "^1.0.15",
56
- "@backstage/plugin-catalog-node": "^1.4.1-next.0",
57
- "@backstage/plugin-events-node": "^0.2.9-next.0",
56
+ "@backstage/plugin-catalog-node": "^1.4.1-next.1",
57
+ "@backstage/plugin-events-node": "^0.2.9-next.1",
58
58
  "@backstage/types": "^1.1.0",
59
59
  "@octokit/graphql": "^5.0.0",
60
60
  "@octokit/rest": "^19.0.3",
@@ -66,8 +66,8 @@
66
66
  "winston": "^3.2.1"
67
67
  },
68
68
  "devDependencies": {
69
- "@backstage/backend-test-utils": "^0.1.40-next.0",
70
- "@backstage/cli": "^0.22.10-next.0",
69
+ "@backstage/backend-test-utils": "^0.2.0-next.1",
70
+ "@backstage/cli": "^0.22.10-next.1",
71
71
  "@types/lodash": "^4.14.151",
72
72
  "luxon": "^3.0.0",
73
73
  "msw": "^1.0.0"