@tscircuit/cli 0.1.112 → 0.1.113
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/main.js +13 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -437163,7 +437163,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
|
|
|
437163
437163
|
import { execSync as execSync2 } from "node:child_process";
|
|
437164
437164
|
var import_semver = __toESM2(require_semver2(), 1);
|
|
437165
437165
|
// package.json
|
|
437166
|
-
var version = "0.1.
|
|
437166
|
+
var version = "0.1.112";
|
|
437167
437167
|
var package_default = {
|
|
437168
437168
|
name: "@tscircuit/cli",
|
|
437169
437169
|
version,
|
|
@@ -442030,9 +442030,19 @@ var prettyResponseErrorHook = async (_request, _options, response) => {
|
|
|
442030
442030
|
if (!response.ok) {
|
|
442031
442031
|
try {
|
|
442032
442032
|
const errorData = await response.json();
|
|
442033
|
-
|
|
442033
|
+
let requestBody = "";
|
|
442034
|
+
try {
|
|
442035
|
+
requestBody = await _request.clone().text();
|
|
442036
|
+
} catch {}
|
|
442037
|
+
const apiError = errorData?.error;
|
|
442038
|
+
const errorString = apiError ? `
|
|
442039
|
+
${apiError.error_code}: ${apiError.message}` : "";
|
|
442040
|
+
throw new Error(`FAIL [${response.status}]: ${_request.method} ${new URL(_request.url).pathname}` + errorString + (requestBody ? `
|
|
442041
|
+
|
|
442042
|
+
Request Body:
|
|
442043
|
+
${requestBody}` : "") + `
|
|
442034
442044
|
|
|
442035
|
-
|
|
442045
|
+
${JSON.stringify(errorData, null, 2)}`);
|
|
442036
442046
|
} catch (e) {}
|
|
442037
442047
|
}
|
|
442038
442048
|
};
|