@backstage/plugin-techdocs-node 0.0.0-nightly-20241001023625 → 0.0.0-nightly-20241002023110

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,15 +1,30 @@
1
1
  # @backstage/plugin-techdocs-node
2
2
 
3
- ## 0.0.0-nightly-20241001023625
3
+ ## 0.0.0-nightly-20241002023110
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - fbdc631: Allow to pass StorageOptions to GCS Publisher
7
8
  - Updated dependencies
8
- - @backstage/backend-plugin-api@0.0.0-nightly-20241001023625
9
+ - @backstage/integration@0.0.0-nightly-20241002023110
10
+ - @backstage/backend-plugin-api@0.0.0-nightly-20241002023110
11
+ - @backstage/catalog-model@1.7.0
12
+ - @backstage/config@1.2.0
13
+ - @backstage/errors@1.2.4
14
+ - @backstage/integration-aws-node@0.1.12
15
+ - @backstage/plugin-search-common@1.2.14
16
+ - @backstage/plugin-techdocs-common@0.1.0
17
+
18
+ ## 1.12.12-next.1
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+ - @backstage/integration@1.15.1-next.0
24
+ - @backstage/backend-plugin-api@1.0.1-next.0
9
25
  - @backstage/catalog-model@1.7.0
10
26
  - @backstage/config@1.2.0
11
27
  - @backstage/errors@1.2.4
12
- - @backstage/integration@1.15.0
13
28
  - @backstage/integration-aws-node@0.1.12
14
29
  - @backstage/plugin-search-common@1.2.14
15
30
  - @backstage/plugin-techdocs-common@0.1.0
package/dist/index.cjs.js CHANGED
@@ -1737,7 +1737,7 @@ class GoogleGCSPublish {
1737
1737
  this.logger = options.logger;
1738
1738
  this.bucketRootPath = options.bucketRootPath;
1739
1739
  }
1740
- static fromConfig(config, logger) {
1740
+ static fromConfig(config, logger, options) {
1741
1741
  let bucketName = "";
1742
1742
  try {
1743
1743
  bucketName = config.getString("techdocs.publisher.googleGcs.bucketName");
@@ -1765,7 +1765,7 @@ class GoogleGCSPublish {
1765
1765
  );
1766
1766
  }
1767
1767
  }
1768
- const clientOpts = {};
1768
+ const clientOpts = options ?? {};
1769
1769
  if (projectId) {
1770
1770
  clientOpts.projectId = projectId;
1771
1771
  }
@@ -2527,7 +2527,11 @@ class Publisher {
2527
2527
  logger.info("Creating Google Storage Bucket publisher for TechDocs");
2528
2528
  publishers.register(
2529
2529
  publisherType,
2530
- GoogleGCSPublish.fromConfig(config, logger)
2530
+ GoogleGCSPublish.fromConfig(
2531
+ config,
2532
+ logger,
2533
+ options.publisherSettings?.googleGcs
2534
+ )
2531
2535
  );
2532
2536
  break;
2533
2537
  case "awsS3":