graphile-settings 6.11.9 → 6.11.10

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.
@@ -75,7 +75,11 @@ export function getPresignedUrlS3Config() {
75
75
  */
76
76
  export function createBucketNameResolver() {
77
77
  const { cdn } = getEnvOptions();
78
- const prefix = cdn?.bucketName || 'test-bucket';
78
+ const prefix = cdn?.bucketName;
79
+ if (!prefix) {
80
+ throw new Error('[presigned-url-resolver] Missing CDN bucket name prefix. ' +
81
+ 'Set CDN_BUCKET_NAME environment variable; there is no default bucket name.');
82
+ }
79
83
  return (databaseId, bucketKey) => {
80
84
  return `${prefix}-${bucketKey}-${databaseId}`;
81
85
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-settings",
3
- "version": "6.11.9",
3
+ "version": "6.11.10",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "graphile settings",
6
6
  "main": "index.js",
@@ -46,7 +46,7 @@
46
46
  "express": "^5.2.1",
47
47
  "grafast": "1.0.2",
48
48
  "grafserv": "1.0.0",
49
- "graphile-bucket-provisioner-plugin": "1.9.3",
49
+ "graphile-bucket-provisioner-plugin": "1.10.0",
50
50
  "graphile-build": "5.0.2",
51
51
  "graphile-build-pg": "5.0.2",
52
52
  "graphile-bulk-mutations": "^1.10.9",
@@ -59,7 +59,7 @@
59
59
  "graphile-meta": "^1.6.4",
60
60
  "graphile-pg-aggregates": "^2.10.9",
61
61
  "graphile-postgis": "^3.10.9",
62
- "graphile-presigned-url-plugin": "^1.9.3",
62
+ "graphile-presigned-url-plugin": "^1.10.0",
63
63
  "graphile-realtime-subscriptions": "^1.9.3",
64
64
  "graphile-search": "^2.10.9",
65
65
  "graphile-upload-plugin": "^2.23.3",
@@ -91,5 +91,5 @@
91
91
  "constructive",
92
92
  "graphql"
93
93
  ],
94
- "gitHead": "e6a7a57f88c9deb2a4acecaba2451320d1be8203"
94
+ "gitHead": "c438821362ceaf70b2a20d74ecf25ad4191c1748"
95
95
  }
@@ -81,7 +81,11 @@ function getPresignedUrlS3Config() {
81
81
  */
82
82
  function createBucketNameResolver() {
83
83
  const { cdn } = (0, graphql_env_1.getEnvOptions)();
84
- const prefix = cdn?.bucketName || 'test-bucket';
84
+ const prefix = cdn?.bucketName;
85
+ if (!prefix) {
86
+ throw new Error('[presigned-url-resolver] Missing CDN bucket name prefix. ' +
87
+ 'Set CDN_BUCKET_NAME environment variable; there is no default bucket name.');
88
+ }
85
89
  return (databaseId, bucketKey) => {
86
90
  return `${prefix}-${bucketKey}-${databaseId}`;
87
91
  };