@pipe0/client 0.0.23 → 0.0.24

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/pipe0.d.ts CHANGED
@@ -54,6 +54,7 @@ export interface BatchOptions {
54
54
  export interface Pipe0Options {
55
55
  apiKey?: string;
56
56
  baseUrl?: string;
57
+ credentials?: RequestInit["credentials"];
57
58
  /**
58
59
  * Default timeout for polling operations in milliseconds
59
60
  * @default 900000 (15 minutes)
package/dist/pipe0.js CHANGED
@@ -67,7 +67,11 @@ export class Pipe0 {
67
67
  }
68
68
  this.client = createFetchClient({
69
69
  baseUrl: options.baseUrl ?? "https://api.pipe0.com",
70
- credentials: "include",
70
+ credentials: options.credentials
71
+ ? options.credentials
72
+ : options.baseUrl
73
+ ? "same-origin"
74
+ : "include",
71
75
  headers,
72
76
  });
73
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipe0/client",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "type": "module",