@backstage/plugin-catalog-backend-module-github 0.0.0-nightly-20241014023245 → 0.0.0-nightly-20241015023351

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,18 +1,19 @@
1
1
  # @backstage/plugin-catalog-backend-module-github
2
2
 
3
- ## 0.0.0-nightly-20241014023245
3
+ ## 0.0.0-nightly-20241015023351
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - 094eaa3: Remove references to in-repo backend-common
8
+ - 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.
8
9
  - 720a2f9: Updated dependency `git-url-parse` to `^15.0.0`.
9
10
  - Updated dependencies
10
- - @backstage/plugin-catalog-backend@0.0.0-nightly-20241014023245
11
- - @backstage/plugin-events-node@0.0.0-nightly-20241014023245
12
- - @backstage/plugin-catalog-node@0.0.0-nightly-20241014023245
13
- - @backstage/integration@0.0.0-nightly-20241014023245
14
- - @backstage/catalog-client@0.0.0-nightly-20241014023245
15
- - @backstage/backend-plugin-api@0.0.0-nightly-20241014023245
11
+ - @backstage/plugin-catalog-backend@0.0.0-nightly-20241015023351
12
+ - @backstage/plugin-events-node@0.0.0-nightly-20241015023351
13
+ - @backstage/plugin-catalog-node@0.0.0-nightly-20241015023351
14
+ - @backstage/integration@0.0.0-nightly-20241015023351
15
+ - @backstage/catalog-client@0.0.0-nightly-20241015023351
16
+ - @backstage/backend-plugin-api@0.0.0-nightly-20241015023351
16
17
  - @backstage/catalog-model@1.7.0
17
18
  - @backstage/config@1.2.0
18
19
  - @backstage/plugin-catalog-common@1.1.0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-github__alpha",
3
- "version": "0.0.0-nightly-20241014023245",
3
+ "version": "0.0.0-nightly-20241015023351",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var githubCatalogModule = require('./module/githubCatalogModule.cjs.js');
6
6
 
7
+ const _feature = githubCatalogModule.githubCatalogModule;
7
8
 
8
-
9
- exports.default = githubCatalogModule.githubCatalogModule;
9
+ exports.default = _feature;
10
10
  //# sourceMappingURL=alpha.cjs.js.map
@@ -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 { default as feature } from './module';\n\n/** @alpha */\nconst _feature = feature;\nexport default _feature;\n"],"names":["feature"],"mappings":";;;;;;AAmBA,MAAM,QAAW,GAAAA;;;;"}
package/dist/alpha.d.ts CHANGED
@@ -1,10 +1,6 @@
1
1
  import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
2
 
3
- /**
4
- * Registers the `GithubEntityProvider` with the catalog processing extension point.
5
- *
6
- * @alpha
7
- */
8
- declare const githubCatalogModule: _backstage_backend_plugin_api.BackendFeature;
3
+ /** @alpha */
4
+ declare const _feature: _backstage_backend_plugin_api.BackendFeature;
9
5
 
10
- export { githubCatalogModule as default };
6
+ export { _feature as default };
package/dist/index.cjs.js CHANGED
@@ -1,5 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var githubCatalogModule = require('./module/githubCatalogModule.cjs.js');
3
6
  var GithubLocationAnalyzer = require('./analyzers/GithubLocationAnalyzer.cjs.js');
4
7
  var GithubDiscoveryProcessor = require('./processors/GithubDiscoveryProcessor.cjs.js');
5
8
  var GithubMultiOrgReaderProcessor = require('./processors/GithubMultiOrgReaderProcessor.cjs.js');
@@ -14,6 +17,7 @@ var deprecated = require('./deprecated.cjs.js');
14
17
 
15
18
 
16
19
 
20
+ exports.default = githubCatalogModule.githubCatalogModule;
17
21
  exports.GithubLocationAnalyzer = GithubLocationAnalyzer.GithubLocationAnalyzer;
18
22
  exports.GithubDiscoveryProcessor = GithubDiscoveryProcessor.GithubDiscoveryProcessor;
19
23
  exports.GithubMultiOrgReaderProcessor = GithubMultiOrgReaderProcessor.GithubMultiOrgReaderProcessor;
@@ -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,3 +1,5 @@
1
+ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
+ import { AuthService, LoggerService, SchedulerServiceTaskRunner, SchedulerService } from '@backstage/backend-plugin-api';
1
3
  import * as _backstage_catalog_model from '@backstage/catalog-model';
2
4
  import { Entity, UserEntity } from '@backstage/catalog-model';
3
5
  import { CatalogApi } from '@backstage/catalog-client';
@@ -5,10 +7,16 @@ import { GithubCredentialsProvider, ScmIntegrationRegistry, GithubIntegrationCon
5
7
  import { ScmLocationAnalyzer, AnalyzeOptions, CatalogProcessor, LocationSpec, CatalogProcessorEmit, EntityProvider, EntityProviderConnection } from '@backstage/plugin-catalog-node';
6
8
  import { PluginEndpointDiscovery, TokenManager } from '@backstage/backend-common';
7
9
  import { Config } from '@backstage/config';
8
- import { AuthService, LoggerService, SchedulerServiceTaskRunner, SchedulerService } from '@backstage/backend-plugin-api';
9
10
  import { graphql } from '@octokit/graphql';
10
11
  import { EventSubscriber, EventsService, EventParams } from '@backstage/plugin-events-node';
11
12
 
13
+ /**
14
+ * Registers the `GithubEntityProvider` with the catalog processing extension point.
15
+ *
16
+ * @public
17
+ */
18
+ declare const githubCatalogModule: _backstage_backend_plugin_api.BackendFeature;
19
+
12
20
  /** @public */
13
21
  type GithubLocationAnalyzerOptions = {
14
22
  config: Config;
@@ -558,4 +566,4 @@ declare class GitHubEntityProvider implements EntityProvider {
558
566
  refresh(logger: LoggerService): Promise<void>;
559
567
  }
560
568
 
561
- export { GitHubEntityProvider, GitHubOrgEntityProvider, type GitHubOrgEntityProviderOptions, GithubDiscoveryProcessor, GithubEntityProvider, GithubLocationAnalyzer, type GithubLocationAnalyzerOptions, type GithubMultiOrgConfig, GithubMultiOrgEntityProvider, type GithubMultiOrgEntityProviderOptions, GithubMultiOrgReaderProcessor, GithubOrgEntityProvider, type GithubOrgEntityProviderOptions, GithubOrgReaderProcessor, type GithubTeam, type GithubUser, type TeamTransformer, type TransformerContext, type UserTransformer, defaultOrganizationTeamTransformer, defaultUserTransformer };
569
+ export { GitHubEntityProvider, GitHubOrgEntityProvider, type GitHubOrgEntityProviderOptions, GithubDiscoveryProcessor, GithubEntityProvider, GithubLocationAnalyzer, type GithubLocationAnalyzerOptions, type GithubMultiOrgConfig, GithubMultiOrgEntityProvider, type GithubMultiOrgEntityProviderOptions, GithubMultiOrgReaderProcessor, GithubOrgEntityProvider, type GithubOrgEntityProviderOptions, GithubOrgReaderProcessor, type GithubTeam, type GithubUser, type TeamTransformer, type TransformerContext, type UserTransformer, githubCatalogModule as default, defaultOrganizationTeamTransformer, defaultUserTransformer };
@@ -1 +1 @@
1
- {"version":3,"file":"githubCatalogModule.cjs.js","sources":["../../src/module/githubCatalogModule.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 coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport {\n catalogAnalysisExtensionPoint,\n catalogProcessingExtensionPoint,\n catalogServiceRef,\n} from '@backstage/plugin-catalog-node/alpha';\nimport { eventsServiceRef } from '@backstage/plugin-events-node';\nimport { GithubEntityProvider } from '../providers/GithubEntityProvider';\nimport { GithubLocationAnalyzer } from '../analyzers/GithubLocationAnalyzer';\n\n/**\n * Registers the `GithubEntityProvider` with the catalog processing extension point.\n *\n * @alpha\n */\nexport const githubCatalogModule = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'github',\n register(env) {\n env.registerInit({\n deps: {\n catalogAnalyzers: catalogAnalysisExtensionPoint,\n auth: coreServices.auth,\n catalogProcessing: catalogProcessingExtensionPoint,\n config: coreServices.rootConfig,\n discovery: coreServices.discovery,\n events: eventsServiceRef,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n catalog: catalogServiceRef,\n },\n async init({\n catalogProcessing,\n config,\n events,\n logger,\n scheduler,\n catalogAnalyzers,\n discovery,\n auth,\n catalog,\n }) {\n catalogAnalyzers.addScmLocationAnalyzer(\n new GithubLocationAnalyzer({\n discovery,\n config,\n auth,\n catalog,\n }),\n );\n\n catalogProcessing.addEntityProvider(\n GithubEntityProvider.fromConfig(config, {\n events,\n logger,\n scheduler,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogAnalysisExtensionPoint","coreServices","catalogProcessingExtensionPoint","eventsServiceRef","catalogServiceRef","GithubLocationAnalyzer","GithubEntityProvider"],"mappings":";;;;;;;;AAkCO,MAAM,sBAAsBA,oCAAoB,CAAA;AAAA,EACrD,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,QAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,gBAAkB,EAAAC,mCAAA;AAAA,QAClB,MAAMC,6BAAa,CAAA,IAAA;AAAA,QACnB,iBAAmB,EAAAC,qCAAA;AAAA,QACnB,QAAQD,6BAAa,CAAA,UAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,QACxB,MAAQ,EAAAE,iCAAA;AAAA,QACR,QAAQF,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,QACxB,OAAS,EAAAG,uBAAA;AAAA,OACX;AAAA,MACA,MAAM,IAAK,CAAA;AAAA,QACT,iBAAA;AAAA,QACA,MAAA;AAAA,QACA,MAAA;AAAA,QACA,MAAA;AAAA,QACA,SAAA;AAAA,QACA,gBAAA;AAAA,QACA,SAAA;AAAA,QACA,IAAA;AAAA,QACA,OAAA;AAAA,OACC,EAAA;AACD,QAAiB,gBAAA,CAAA,sBAAA;AAAA,UACf,IAAIC,6CAAuB,CAAA;AAAA,YACzB,SAAA;AAAA,YACA,MAAA;AAAA,YACA,IAAA;AAAA,YACA,OAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAEA,QAAkB,iBAAA,CAAA,iBAAA;AAAA,UAChBC,yCAAA,CAAqB,WAAW,MAAQ,EAAA;AAAA,YACtC,MAAA;AAAA,YACA,MAAA;AAAA,YACA,SAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"githubCatalogModule.cjs.js","sources":["../../src/module/githubCatalogModule.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 coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport {\n catalogAnalysisExtensionPoint,\n catalogProcessingExtensionPoint,\n catalogServiceRef,\n} from '@backstage/plugin-catalog-node/alpha';\nimport { eventsServiceRef } from '@backstage/plugin-events-node';\nimport { GithubEntityProvider } from '../providers/GithubEntityProvider';\nimport { GithubLocationAnalyzer } from '../analyzers/GithubLocationAnalyzer';\n\n/**\n * Registers the `GithubEntityProvider` with the catalog processing extension point.\n *\n * @public\n */\nexport const githubCatalogModule = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'github',\n register(env) {\n env.registerInit({\n deps: {\n catalogAnalyzers: catalogAnalysisExtensionPoint,\n auth: coreServices.auth,\n catalogProcessing: catalogProcessingExtensionPoint,\n config: coreServices.rootConfig,\n discovery: coreServices.discovery,\n events: eventsServiceRef,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n catalog: catalogServiceRef,\n },\n async init({\n catalogProcessing,\n config,\n events,\n logger,\n scheduler,\n catalogAnalyzers,\n discovery,\n auth,\n catalog,\n }) {\n catalogAnalyzers.addScmLocationAnalyzer(\n new GithubLocationAnalyzer({\n discovery,\n config,\n auth,\n catalog,\n }),\n );\n\n catalogProcessing.addEntityProvider(\n GithubEntityProvider.fromConfig(config, {\n events,\n logger,\n scheduler,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogAnalysisExtensionPoint","coreServices","catalogProcessingExtensionPoint","eventsServiceRef","catalogServiceRef","GithubLocationAnalyzer","GithubEntityProvider"],"mappings":";;;;;;;;AAkCO,MAAM,sBAAsBA,oCAAoB,CAAA;AAAA,EACrD,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,QAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,gBAAkB,EAAAC,mCAAA;AAAA,QAClB,MAAMC,6BAAa,CAAA,IAAA;AAAA,QACnB,iBAAmB,EAAAC,qCAAA;AAAA,QACnB,QAAQD,6BAAa,CAAA,UAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,QACxB,MAAQ,EAAAE,iCAAA;AAAA,QACR,QAAQF,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,QACxB,OAAS,EAAAG,uBAAA;AAAA,OACX;AAAA,MACA,MAAM,IAAK,CAAA;AAAA,QACT,iBAAA;AAAA,QACA,MAAA;AAAA,QACA,MAAA;AAAA,QACA,MAAA;AAAA,QACA,SAAA;AAAA,QACA,gBAAA;AAAA,QACA,SAAA;AAAA,QACA,IAAA;AAAA,QACA,OAAA;AAAA,OACC,EAAA;AACD,QAAiB,gBAAA,CAAA,sBAAA;AAAA,UACf,IAAIC,6CAAuB,CAAA;AAAA,YACzB,SAAA;AAAA,YACA,MAAA;AAAA,YACA,IAAA;AAAA,YACA,OAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAEA,QAAkB,iBAAA,CAAA,iBAAA;AAAA,UAChBC,yCAAA,CAAqB,WAAW,MAAQ,EAAA;AAAA,YACtC,MAAA;AAAA,YACA,MAAA;AAAA,YACA,SAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAAA,OACF;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-github",
3
- "version": "0.0.0-nightly-20241014023245",
3
+ "version": "0.0.0-nightly-20241015023351",
4
4
  "description": "A Backstage catalog backend module that helps integrate towards GitHub",
5
5
  "backstage": {
6
6
  "role": "backend-plugin-module",
@@ -22,6 +22,7 @@
22
22
  "license": "Apache-2.0",
23
23
  "exports": {
24
24
  ".": {
25
+ "backstage": "@backstage/BackendFeature",
25
26
  "require": "./dist/index.cjs.js",
26
27
  "types": "./dist/index.d.ts",
27
28
  "default": "./dist/index.cjs.js"
@@ -52,15 +53,15 @@
52
53
  },
53
54
  "dependencies": {
54
55
  "@backstage/backend-common": "^0.25.0",
55
- "@backstage/backend-plugin-api": "0.0.0-nightly-20241014023245",
56
- "@backstage/catalog-client": "0.0.0-nightly-20241014023245",
56
+ "@backstage/backend-plugin-api": "0.0.0-nightly-20241015023351",
57
+ "@backstage/catalog-client": "0.0.0-nightly-20241015023351",
57
58
  "@backstage/catalog-model": "1.7.0",
58
59
  "@backstage/config": "1.2.0",
59
- "@backstage/integration": "0.0.0-nightly-20241014023245",
60
- "@backstage/plugin-catalog-backend": "0.0.0-nightly-20241014023245",
60
+ "@backstage/integration": "0.0.0-nightly-20241015023351",
61
+ "@backstage/plugin-catalog-backend": "0.0.0-nightly-20241015023351",
61
62
  "@backstage/plugin-catalog-common": "1.1.0",
62
- "@backstage/plugin-catalog-node": "0.0.0-nightly-20241014023245",
63
- "@backstage/plugin-events-node": "0.0.0-nightly-20241014023245",
63
+ "@backstage/plugin-catalog-node": "0.0.0-nightly-20241015023351",
64
+ "@backstage/plugin-events-node": "0.0.0-nightly-20241015023351",
64
65
  "@octokit/graphql": "^5.0.0",
65
66
  "@octokit/rest": "^19.0.3",
66
67
  "git-url-parse": "^15.0.0",
@@ -70,8 +71,8 @@
70
71
  "uuid": "^9.0.0"
71
72
  },
72
73
  "devDependencies": {
73
- "@backstage/backend-test-utils": "0.0.0-nightly-20241014023245",
74
- "@backstage/cli": "0.0.0-nightly-20241014023245",
74
+ "@backstage/backend-test-utils": "0.0.0-nightly-20241015023351",
75
+ "@backstage/cli": "0.0.0-nightly-20241015023351",
75
76
  "@types/lodash": "^4.14.151",
76
77
  "luxon": "^3.0.0",
77
78
  "msw": "^1.0.0"