@mistweaverco/kulala-cli 0.8.0 → 0.8.2
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/cli.cjs +16 -17
- package/dist/install-backend.cjs +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -46,7 +46,7 @@ let node_readline = require("node:readline");
|
|
|
46
46
|
node_readline = __toESM(node_readline, 1);
|
|
47
47
|
var package_default = {
|
|
48
48
|
name: "@mistweaverco/kulala-cli",
|
|
49
|
-
version: "0.8.
|
|
49
|
+
version: "0.8.2",
|
|
50
50
|
repository: {
|
|
51
51
|
"type": "git",
|
|
52
52
|
"url": "https://github.com/mistweaverco/kulala-cli"
|
|
@@ -3474,7 +3474,7 @@ function fileWalker(inputPath, extensions) {
|
|
|
3474
3474
|
}
|
|
3475
3475
|
//#endregion
|
|
3476
3476
|
//#region src/versions/backend.ts
|
|
3477
|
-
var KULALA_CORE_VERSION = "0.24.
|
|
3477
|
+
var KULALA_CORE_VERSION = "0.24.2";
|
|
3478
3478
|
//#endregion
|
|
3479
3479
|
//#region src/lib/downloader/index.ts
|
|
3480
3480
|
var BINARY_NAME = "kulala-core";
|
|
@@ -66960,6 +66960,17 @@ function formatRequestHeader(method, url, status, durationMs, failed = false, ht
|
|
|
66960
66960
|
}
|
|
66961
66961
|
return lines.join("\n");
|
|
66962
66962
|
}
|
|
66963
|
+
function appendHttpResponseDetails(parts, item) {
|
|
66964
|
+
if (item.headers && Object.keys(item.headers).length > 0) {
|
|
66965
|
+
parts.push("");
|
|
66966
|
+
parts.push(formatSection("Headers", formatHeaders(item.headers)));
|
|
66967
|
+
}
|
|
66968
|
+
const bodySection = formatBody(item.filteredBody ?? item.body);
|
|
66969
|
+
if (bodySection) {
|
|
66970
|
+
parts.push("");
|
|
66971
|
+
parts.push(formatSection("Response body", bodySection));
|
|
66972
|
+
}
|
|
66973
|
+
}
|
|
66963
66974
|
function appendScriptSections(parts, scriptConsole, requestFile) {
|
|
66964
66975
|
const testsSection = formatTestsAndAsserts(parseAssertionTree(scriptConsole));
|
|
66965
66976
|
const scriptSection = formatScriptOutput(scriptConsole, requestFile);
|
|
@@ -66990,27 +67001,15 @@ function formatItem(item, requestFile) {
|
|
|
66990
67001
|
return parts.join("\n");
|
|
66991
67002
|
}
|
|
66992
67003
|
if (isErrorResponse(item)) {
|
|
66993
|
-
const parts = [header + formatRequestHeader(item.request?.method ?? "GET", item.url ?? item.blockName ?? "unknown", item.status,
|
|
67004
|
+
const parts = [header + formatRequestHeader(item.request?.method ?? "GET", item.url ?? item.blockName ?? "unknown", item.status, item.timings?.total, true, item.httpVersion)];
|
|
66994
67005
|
if (item.error) parts.push(import_picocolors.default.red(`Error: ${item.error}`));
|
|
66995
|
-
|
|
66996
|
-
if (bodySection) {
|
|
66997
|
-
parts.push("");
|
|
66998
|
-
parts.push(formatSection("Response body", bodySection));
|
|
66999
|
-
}
|
|
67006
|
+
appendHttpResponseDetails(parts, item);
|
|
67000
67007
|
appendScriptSections(parts, item.scriptConsole, requestFile);
|
|
67001
67008
|
return parts.join("\n");
|
|
67002
67009
|
}
|
|
67003
67010
|
if (isSuccessResponse(item)) {
|
|
67004
67011
|
const parts = [header + formatRequestHeader(item.request?.method ?? "GET", item.url, item.status, item.timings?.total, false, item.httpVersion)];
|
|
67005
|
-
|
|
67006
|
-
parts.push("");
|
|
67007
|
-
parts.push(formatSection("Headers", formatHeaders(item.headers)));
|
|
67008
|
-
}
|
|
67009
|
-
const bodySection = formatBody(item.filteredBody ?? item.body);
|
|
67010
|
-
if (bodySection) {
|
|
67011
|
-
parts.push("");
|
|
67012
|
-
parts.push(formatSection("Response body", bodySection));
|
|
67013
|
-
}
|
|
67012
|
+
appendHttpResponseDetails(parts, item);
|
|
67014
67013
|
appendScriptSections(parts, item.scriptConsole, requestFile);
|
|
67015
67014
|
return parts.join("\n");
|
|
67016
67015
|
}
|
package/dist/install-backend.cjs
CHANGED
|
@@ -29,7 +29,7 @@ let path = require("path");
|
|
|
29
29
|
path = __toESM(path, 1);
|
|
30
30
|
let stream_promises = require("stream/promises");
|
|
31
31
|
//#region src/versions/backend.ts
|
|
32
|
-
var KULALA_CORE_VERSION = "0.24.
|
|
32
|
+
var KULALA_CORE_VERSION = "0.24.2";
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/lib/downloader/index.ts
|
|
35
35
|
var BINARY_NAME = "kulala-core";
|