@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.js
CHANGED
|
@@ -3016,11 +3016,11 @@ var AlvaClient = class {
|
|
|
3016
3016
|
if (response.status === 204) {
|
|
3017
3017
|
return void 0;
|
|
3018
3018
|
}
|
|
3019
|
-
const contentType = response.headers.get("content-type") ?? "";
|
|
3020
|
-
if (contentType.includes("application/
|
|
3021
|
-
return response.
|
|
3019
|
+
const contentType = (response.headers.get("content-type") ?? "").toLowerCase();
|
|
3020
|
+
if (contentType.includes("application/json") || contentType.includes("+json")) {
|
|
3021
|
+
return response.json();
|
|
3022
3022
|
}
|
|
3023
|
-
return response.
|
|
3023
|
+
return response.arrayBuffer();
|
|
3024
3024
|
}
|
|
3025
3025
|
};
|
|
3026
3026
|
|
|
@@ -3451,7 +3451,7 @@ var installPlaybookRuntime = (targetWindow) => {
|
|
|
3451
3451
|
};
|
|
3452
3452
|
|
|
3453
3453
|
// src/index.ts
|
|
3454
|
-
var VERSION = true ? "0.14.0" : "dev";
|
|
3454
|
+
var VERSION = true ? "0.14.1-beta.0" : "dev";
|
|
3455
3455
|
export {
|
|
3456
3456
|
AlvaClient,
|
|
3457
3457
|
AlvaError,
|