graphile-presigned-url-plugin 0.6.1 → 0.6.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.
package/esm/plugin.js CHANGED
@@ -275,9 +275,9 @@ export function createPresignedUrlPlugin(options) {
275
275
  // Track the dedup request
276
276
  await txClient.query({
277
277
  text: `INSERT INTO ${storageConfig.uploadRequestsQualifiedName}
278
- (file_id, bucket_id, key, content_type, content_hash, size, status, expires_at)
279
- VALUES ($1, $2, $3, $4, $5, $6, 'confirmed', NOW())`,
280
- values: [existingFile.id, bucket.id, s3Key, contentType, contentHash, size],
278
+ (file_id, bucket_id, key, content_type, content_hash, status, expires_at)
279
+ VALUES ($1, $2, $3, $4, $5, 'confirmed', NOW())`,
280
+ values: [existingFile.id, bucket.id, s3Key, contentType, contentHash],
281
281
  });
282
282
  return {
283
283
  uploadUrl: null,
@@ -329,9 +329,9 @@ export function createPresignedUrlPlugin(options) {
329
329
  // --- Track the upload request ---
330
330
  await txClient.query({
331
331
  text: `INSERT INTO ${storageConfig.uploadRequestsQualifiedName}
332
- (file_id, bucket_id, key, content_type, content_hash, size, status, expires_at)
333
- VALUES ($1, $2, $3, $4, $5, $6, 'issued', $7)`,
334
- values: [fileId, bucket.id, s3Key, contentType, contentHash, size, expiresAt],
332
+ (file_id, bucket_id, key, content_type, content_hash, status, expires_at)
333
+ VALUES ($1, $2, $3, $4, $5, 'issued', $6)`,
334
+ values: [fileId, bucket.id, s3Key, contentType, contentHash, expiresAt],
335
335
  });
336
336
  return {
337
337
  uploadUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-presigned-url-plugin",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Presigned URL upload plugin for PostGraphile v5 — requestUploadUrl, confirmUpload mutations 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.1.10"
62
62
  },
63
- "gitHead": "b816000e463c796c41160a4ed5d34ad3356a2ad5"
63
+ "gitHead": "15a46bcefd6cf72ba0f40228a6a8279f07feb3f4"
64
64
  }
package/plugin.js CHANGED
@@ -279,9 +279,9 @@ function createPresignedUrlPlugin(options) {
279
279
  // Track the dedup request
280
280
  await txClient.query({
281
281
  text: `INSERT INTO ${storageConfig.uploadRequestsQualifiedName}
282
- (file_id, bucket_id, key, content_type, content_hash, size, status, expires_at)
283
- VALUES ($1, $2, $3, $4, $5, $6, 'confirmed', NOW())`,
284
- values: [existingFile.id, bucket.id, s3Key, contentType, contentHash, size],
282
+ (file_id, bucket_id, key, content_type, content_hash, status, expires_at)
283
+ VALUES ($1, $2, $3, $4, $5, 'confirmed', NOW())`,
284
+ values: [existingFile.id, bucket.id, s3Key, contentType, contentHash],
285
285
  });
286
286
  return {
287
287
  uploadUrl: null,
@@ -333,9 +333,9 @@ function createPresignedUrlPlugin(options) {
333
333
  // --- Track the upload request ---
334
334
  await txClient.query({
335
335
  text: `INSERT INTO ${storageConfig.uploadRequestsQualifiedName}
336
- (file_id, bucket_id, key, content_type, content_hash, size, status, expires_at)
337
- VALUES ($1, $2, $3, $4, $5, $6, 'issued', $7)`,
338
- values: [fileId, bucket.id, s3Key, contentType, contentHash, size, expiresAt],
336
+ (file_id, bucket_id, key, content_type, content_hash, status, expires_at)
337
+ VALUES ($1, $2, $3, $4, $5, 'issued', $6)`,
338
+ values: [fileId, bucket.id, s3Key, contentType, contentHash, expiresAt],
339
339
  });
340
340
  return {
341
341
  uploadUrl,