@omnibase/core-js 0.5.5 → 0.5.7
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 +3 -1
- package/dist/index.js +3 -1
- package/dist/payments/index.d.cts +1 -0
- package/dist/payments/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1258,7 +1258,9 @@ var OmnibaseClient = class {
|
|
|
1258
1258
|
tenants = new TenantHandler(this);
|
|
1259
1259
|
permissions;
|
|
1260
1260
|
async fetch(endpoint, options = {}) {
|
|
1261
|
-
|
|
1261
|
+
if (this.config.fetch)
|
|
1262
|
+
return this.fetch(this.config.api_url + endpoint, options);
|
|
1263
|
+
return fetch(this.config.api_url + endpoint, options);
|
|
1262
1264
|
}
|
|
1263
1265
|
};
|
|
1264
1266
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,9 @@ var OmnibaseClient = class {
|
|
|
43
43
|
tenants = new TenantHandler(this);
|
|
44
44
|
permissions;
|
|
45
45
|
async fetch(endpoint, options = {}) {
|
|
46
|
-
|
|
46
|
+
if (this.config.fetch)
|
|
47
|
+
return this.fetch(this.config.api_url + endpoint, options);
|
|
48
|
+
return fetch(this.config.api_url + endpoint, options);
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
51
|
export {
|
package/dist/payments/index.d.ts
CHANGED