graphile-presigned-url-plugin 0.20.1 → 0.20.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.
@@ -149,7 +149,7 @@ function createDownloadUrlPlugin(options) {
149
149
  // Fall back to global config if lookup fails
150
150
  }
151
151
  if (isPublic && s3ForDb.publicUrlPrefix) {
152
- return `${s3ForDb.publicUrlPrefix}/${key}`;
152
+ return `${s3ForDb.publicUrlPrefix}/${s3ForDb.bucket}/${key}`;
153
153
  }
154
154
  return (0, s3_signer_1.generatePresignedGetUrl)(s3ForDb, key, downloadUrlExpirySeconds, filename || undefined);
155
155
  });
@@ -146,7 +146,7 @@ export function createDownloadUrlPlugin(options) {
146
146
  // Fall back to global config if lookup fails
147
147
  }
148
148
  if (isPublic && s3ForDb.publicUrlPrefix) {
149
- return `${s3ForDb.publicUrlPrefix}/${key}`;
149
+ return `${s3ForDb.publicUrlPrefix}/${s3ForDb.bucket}/${key}`;
150
150
  }
151
151
  return generatePresignedGetUrl(s3ForDb, key, downloadUrlExpirySeconds, filename || undefined);
152
152
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-presigned-url-plugin",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "Presigned URL upload plugin for PostGraphile v5 — requestUploadUrl mutation and downloadUrl computed field",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "homepage": "https://github.com/constructive-io/constructive",
@@ -60,5 +60,5 @@
60
60
  "@types/node": "^22.19.11",
61
61
  "makage": "^0.3.0"
62
62
  },
63
- "gitHead": "d398ac2288f57fa02713353ce36024a63dd6b9f1"
63
+ "gitHead": "00ebac5e8314330aa47564ed71758a4bcc8f8f8e"
64
64
  }