@functionalcms/svelte-components 4.36.2 → 4.36.3

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.
@@ -48,6 +48,7 @@ export const getAuthService = (locals, endpoint = undefined) => {
48
48
  export const getFileService = (locals, endpoint = undefined) => {
49
49
  const accessToken = getAccessToken(locals);
50
50
  const serviceEndopint = endpoint ?? ENDPOINT;
51
- const service = new FilesService(accessToken, DOMAIN, serviceEndopint);
51
+ const finalDomain = locals?.domain || DOMAIN;
52
+ const service = new FilesService(accessToken, finalDomain, serviceEndopint);
52
53
  return service;
53
54
  };
@@ -1,4 +1,5 @@
1
1
  import type { Token } from "../auth/types.js";
2
2
  export interface Locals {
3
3
  token: Token;
4
+ domain?: string;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "4.36.2",
3
+ "version": "4.36.3",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {