@alva-ai/toolkit 0.14.0 → 0.14.1-beta.0
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/browser.global.js +2 -2
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.js +5 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3071,11 +3071,11 @@ var AlvaClient = class {
|
|
|
3071
3071
|
if (response.status === 204) {
|
|
3072
3072
|
return void 0;
|
|
3073
3073
|
}
|
|
3074
|
-
const contentType = response.headers.get("content-type") ?? "";
|
|
3075
|
-
if (contentType.includes("application/
|
|
3076
|
-
return response.
|
|
3074
|
+
const contentType = (response.headers.get("content-type") ?? "").toLowerCase();
|
|
3075
|
+
if (contentType.includes("application/json") || contentType.includes("+json")) {
|
|
3076
|
+
return response.json();
|
|
3077
3077
|
}
|
|
3078
|
-
return response.
|
|
3078
|
+
return response.arrayBuffer();
|
|
3079
3079
|
}
|
|
3080
3080
|
};
|
|
3081
3081
|
|
|
@@ -3506,7 +3506,7 @@ var installPlaybookRuntime = (targetWindow) => {
|
|
|
3506
3506
|
};
|
|
3507
3507
|
|
|
3508
3508
|
// src/index.ts
|
|
3509
|
-
var VERSION = true ? "0.14.0" : "dev";
|
|
3509
|
+
var VERSION = true ? "0.14.1-beta.0" : "dev";
|
|
3510
3510
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3511
3511
|
0 && (module.exports = {
|
|
3512
3512
|
AlvaClient,
|