@inflector/aura 0.2.11 → 0.2.12

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/function.js +1 -1
  2. package/package.json +1 -1
package/dist/function.js CHANGED
@@ -12,7 +12,7 @@ export function createFunctionHandler(workspace, functionsFolder) {
12
12
  },
13
13
  // 1. Remove 'async' here to prevent native Promise wrapping
14
14
  apply(_, __, args) {
15
- const url = ["api", "fn", workspace, ...path].join("/");
15
+ const url = [window.location.origin, "api", "fn", workspace, ...path].join("/");
16
16
  const isFormData = args != null && args.length === 1 && args[0] instanceof FormData;
17
17
  const body = isFormData ? args[0] : JSON.stringify(args[0] ?? {});
18
18
  const headers = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/aura",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",