@isomorph.ai/app-sdk 1.35.0 → 1.35.1

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -212,7 +212,11 @@ class Transport {
212
212
  const action = currentAction();
213
213
  // (headers with an undefined value are removed so a multipart body can
214
214
  // clear the JSON default and let the browser set its own boundary)
215
- const response = await this.fetch(`${action?.baseUrl ?? this.baseUrl}${path}`, {
215
+ // A trusted action uses its local gateway for database calls, including
216
+ // transactions. The local gateway deliberately has only the data
217
+ // capability; every other declared surface remains on the shared gateway.
218
+ const baseUrl = action?.baseUrl && path.startsWith('/_harbour/data/') ? action.baseUrl : this.baseUrl;
219
+ const response = await this.fetch(`${baseUrl}${path}`, {
216
220
  credentials: 'same-origin',
217
221
  ...init,
218
222
  headers: mergeHeaders(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isomorph.ai/app-sdk",
3
- "version": "1.35.0",
3
+ "version": "1.35.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",