@relayfile/sdk 0.1.7 → 0.1.8

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/client.js +1 -1
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -155,7 +155,7 @@ export class RelayFileClient {
155
155
  constructor(options) {
156
156
  this.baseUrl = (options.baseUrl ?? DEFAULT_RELAYFILE_BASE_URL).replace(/\/+$/, "");
157
157
  this.tokenProvider = options.token;
158
- this.fetchImpl = options.fetchImpl ?? fetch;
158
+ this.fetchImpl = options.fetchImpl ?? fetch.bind(globalThis);
159
159
  this.userAgent = options.userAgent;
160
160
  this.retryOptions = normalizeRetryOptions(options.retry);
161
161
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relayfile/sdk",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "TypeScript SDK for relayfile — real-time filesystem for humans and agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",