@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/cli.js
CHANGED
|
@@ -12498,11 +12498,11 @@ var AlvaClient = class {
|
|
|
12498
12498
|
if (response.status === 204) {
|
|
12499
12499
|
return void 0;
|
|
12500
12500
|
}
|
|
12501
|
-
const contentType = response.headers.get("content-type") ?? "";
|
|
12502
|
-
if (contentType.includes("application/
|
|
12503
|
-
return response.
|
|
12501
|
+
const contentType = (response.headers.get("content-type") ?? "").toLowerCase();
|
|
12502
|
+
if (contentType.includes("application/json") || contentType.includes("+json")) {
|
|
12503
|
+
return response.json();
|
|
12504
12504
|
}
|
|
12505
|
-
return response.
|
|
12505
|
+
return response.arrayBuffer();
|
|
12506
12506
|
}
|
|
12507
12507
|
};
|
|
12508
12508
|
|
|
@@ -13316,7 +13316,7 @@ import * as fs2 from "fs";
|
|
|
13316
13316
|
import * as os2 from "os";
|
|
13317
13317
|
import * as fsPromises2 from "fs/promises";
|
|
13318
13318
|
import { Agent, setGlobalDispatcher } from "undici";
|
|
13319
|
-
var CLI_VERSION = true ? "0.14.0" : "dev";
|
|
13319
|
+
var CLI_VERSION = true ? "0.14.1-beta.0" : "dev";
|
|
13320
13320
|
var DEFAULT_RUN_TIMEOUT_MS = 6e5;
|
|
13321
13321
|
var RUN_TIMEOUT_ENV = "ALVA_RUN_TIMEOUT_MS";
|
|
13322
13322
|
var configuredRunFetchTimeoutMs;
|