@omnibase/core-js 0.5.9 → 0.5.10

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/index.cjs CHANGED
@@ -1255,7 +1255,10 @@ var OmnibaseClient = class {
1255
1255
  async fetch(endpoint, options = {}) {
1256
1256
  if (this.config.fetch)
1257
1257
  return this.config.fetch(this.config.api_url + endpoint, options);
1258
- return fetch(this.config.api_url + endpoint, options);
1258
+ return fetch(this.config.api_url + endpoint, {
1259
+ ...options,
1260
+ credentials: "include"
1261
+ });
1259
1262
  }
1260
1263
  };
1261
1264
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.js CHANGED
@@ -44,7 +44,10 @@ var OmnibaseClient = class {
44
44
  async fetch(endpoint, options = {}) {
45
45
  if (this.config.fetch)
46
46
  return this.config.fetch(this.config.api_url + endpoint, options);
47
- return fetch(this.config.api_url + endpoint, options);
47
+ return fetch(this.config.api_url + endpoint, {
48
+ ...options,
49
+ credentials: "include"
50
+ });
48
51
  }
49
52
  };
50
53
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnibase/core-js",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "OmniBase core Javascript SDK - framework agnostic",
5
5
  "files": [
6
6
  "dist/**/*"