graphile-presigned-url-plugin 0.20.1 → 0.21.0
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/download-url-field.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.21.0",
|
|
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",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@aws-sdk/client-s3": "^3.1052.0",
|
|
44
44
|
"@aws-sdk/s3-request-presigner": "^3.1052.0",
|
|
45
|
-
"@pgpmjs/logger": "^2.
|
|
45
|
+
"@pgpmjs/logger": "^2.13.0",
|
|
46
46
|
"@pgsql/quotes": "^17.1.0",
|
|
47
47
|
"lru-cache": "^11.2.7"
|
|
48
48
|
},
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"postgraphile": "5.0.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@constructive-io/s3-utils": "^2.
|
|
59
|
+
"@constructive-io/s3-utils": "^2.19.0",
|
|
60
60
|
"@types/node": "^22.19.11",
|
|
61
61
|
"makage": "^0.3.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "958154492690368ffffef974122ea243c68055e2"
|
|
64
64
|
}
|