@fusebase/fusebase-gate-sdk 2.2.12-sdk.1 → 2.2.12-sdk.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 @@ export declare class IsolatedStoresApi {
|
|
|
149
149
|
revisionId: IsolatedStoreRevisionIdInPathRequired;
|
|
150
150
|
};
|
|
151
151
|
headers?: Record<string, string>;
|
|
152
|
-
}): Promise<
|
|
152
|
+
}): Promise<ArrayBuffer>;
|
|
153
153
|
/**
|
|
154
154
|
* Run writable SQL statement
|
|
155
155
|
* Runs a single raw DML statement with execute access against the postgres binding of the selected isolated store stage instance. Only INSERT, UPDATE, and DELETE are allowed on this privileged escape hatch. DDL and schema changes are blocked here and must go through applyIsolatedStoreSqlMigrations so the stage migration journal (fusebase_schema_migrations) stays authoritative.
|
|
@@ -25,6 +25,10 @@ function getArrayLikeValues(obj) {
|
|
|
25
25
|
const keys = Object.keys(obj).sort((a, b) => Number(a) - Number(b));
|
|
26
26
|
return keys.map((k) => obj[k]);
|
|
27
27
|
}
|
|
28
|
+
function isBinaryContentType(contentType) {
|
|
29
|
+
return (contentType.includes("application/octet-stream") ||
|
|
30
|
+
contentType.includes("application/pdf"));
|
|
31
|
+
}
|
|
28
32
|
/**
|
|
29
33
|
* Serialize query object. Uses form-style for top-level arrays of primitives
|
|
30
34
|
* (key=val1&key=val2) so servers get a normal repeated key. Array-like objects
|
|
@@ -200,7 +204,7 @@ function createClient(config) {
|
|
|
200
204
|
else if (contentType.includes("text/csv")) {
|
|
201
205
|
data = (await response.text());
|
|
202
206
|
}
|
|
203
|
-
else if (contentType
|
|
207
|
+
else if (isBinaryContentType(contentType)) {
|
|
204
208
|
data = (await response.arrayBuffer());
|
|
205
209
|
}
|
|
206
210
|
else {
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Release Notes 2.2.12-sdk.
|
|
1
|
+
# Release Notes 2.2.12-sdk.2
|
|
2
2
|
|
|
3
3
|
- Current ref: `HEAD`
|
|
4
|
-
- Previous tag: `v2.2.12-sdk.
|
|
5
|
-
- Generated at: 2026-04-
|
|
4
|
+
- Previous tag: `v2.2.12-sdk.2`
|
|
5
|
+
- Generated at: 2026-04-30T19:03:37.870Z
|
|
6
6
|
|
|
7
7
|
## Included Drafts
|
|
8
8
|
|