@sfutureapps/gateway-sdk 1.0.22 → 1.0.23

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.
package/dist/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export type GatewayRequestOptions = {
2
2
  /** Extra headers to send with gateway requests (e.g., Authorization). */
3
3
  headers?: HeadersInit;
4
- /** Override the gateway endpoint path (default: `/api/gateway`). */
4
+ /** Override the gateway endpoint path (default: `/v3/api/exec`). */
5
5
  endpoint?: string;
6
6
  /** Pass through fetch options if needed. */
7
7
  credentials?: RequestCredentials;
package/dist/client.js CHANGED
@@ -23,7 +23,7 @@ export class ApiClient {
23
23
  form.append("function", fn);
24
24
  form.append("payload", JSON.stringify(payload ?? {}));
25
25
  const fetchImpl = requestOptions.fetch ?? serviceOptions.fetch ?? this.defaultOptions.fetch ?? fetch;
26
- const endpoint = requestOptions.endpoint ?? serviceOptions.endpoint ?? this.defaultOptions.endpoint ?? "/api/gateway";
26
+ const endpoint = requestOptions.endpoint ?? serviceOptions.endpoint ?? this.defaultOptions.endpoint ?? "/v3/api/exec";
27
27
  const url = `${this.baseUrl}${endpoint}`;
28
28
  const headers = mergeHeaders(mergeHeaders(this.defaultOptions.headers, serviceOptions.headers), requestOptions.headers);
29
29
  const response = await fetchImpl(url, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sfutureapps/gateway-sdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",