@koda-sl/baker-cli 0.132.0-dev.cad5e0bc7 → 0.132.1-dev.42a8955b3
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/README.md +122 -271
- package/dist/chunk-7I2POXSJ.js +153 -0
- package/dist/chunk-7I2POXSJ.js.map +1 -0
- package/dist/{chunk-AVJ3B6LC.js → chunk-BFZELBTE.js} +4 -4
- package/dist/{chunk-5LCTMZJ5.js → chunk-O3TH7JW5.js} +25 -2
- package/dist/chunk-O3TH7JW5.js.map +1 -0
- package/dist/{chunk-ISFSUDEQ.js → chunk-PEBP6G74.js} +3 -3
- package/dist/chunk-RK67WL4O.js +72 -0
- package/dist/{chunk-YTEAWSEM.js.map → chunk-RK67WL4O.js.map} +1 -1
- package/dist/{chunk-K47Q73CK.js → chunk-SCI57ZZ6.js} +40 -4
- package/dist/chunk-SCI57ZZ6.js.map +1 -0
- package/dist/cli.js +2658 -2028
- package/dist/cli.js.map +1 -1
- package/dist/client-N7XWYCHT.js +15 -0
- package/dist/engine/index.js +3 -2
- package/dist/env-3JMYIH25.js +11 -0
- package/dist/{output-2LGBISBQ.js → output-7M5VQPTZ.js} +5 -5
- package/dist/{shared-CQC3YRBA.js → shared-6SZHAUM2.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-5LCTMZJ5.js.map +0 -1
- package/dist/chunk-5WRI5ZAA.js +0 -31
- package/dist/chunk-K47Q73CK.js.map +0 -1
- package/dist/chunk-YTEAWSEM.js +0 -39
- package/dist/client-PGOTU24X.js +0 -15
- package/dist/env-TD4VXCQ7.js +0 -10
- package/dist/shared-CQC3YRBA.js.map +0 -1
- /package/dist/{chunk-AVJ3B6LC.js.map → chunk-BFZELBTE.js.map} +0 -0
- /package/dist/{chunk-ISFSUDEQ.js.map → chunk-PEBP6G74.js.map} +0 -0
- /package/dist/{chunk-5WRI5ZAA.js.map → client-N7XWYCHT.js.map} +0 -0
- /package/dist/{client-PGOTU24X.js.map → env-3JMYIH25.js.map} +0 -0
- /package/dist/{env-TD4VXCQ7.js.map → output-7M5VQPTZ.js.map} +0 -0
- /package/dist/{output-2LGBISBQ.js.map → shared-6SZHAUM2.js.map} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleConnectionError,
|
|
3
3
|
writeAdsJson
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PEBP6G74.js";
|
|
5
5
|
import {
|
|
6
6
|
ApiError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SCI57ZZ6.js";
|
|
8
8
|
import {
|
|
9
9
|
getEnv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RK67WL4O.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/ads/meta/shared.ts
|
|
13
13
|
var DAY_MS = 864e5;
|
|
@@ -94,4 +94,4 @@ export {
|
|
|
94
94
|
csvOrJson,
|
|
95
95
|
resolveEffectiveStatus
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
//# sourceMappingURL=chunk-BFZELBTE.js.map
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
debugLogHttp,
|
|
3
|
+
readBodyForLog
|
|
4
|
+
} from "./chunk-7I2POXSJ.js";
|
|
1
5
|
import {
|
|
2
6
|
__commonJS,
|
|
3
7
|
__toESM
|
|
4
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RK67WL4O.js";
|
|
5
9
|
|
|
6
10
|
// ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/810146e81bae4e3a061fe487864f2fde80c4b03b886877dc0f1fffbc6480b67e/node_modules/safe-stable-stringify/index.js
|
|
7
11
|
var require_safe_stable_stringify = __commonJS({
|
|
@@ -679,6 +683,7 @@ var HttpClient = class {
|
|
|
679
683
|
else signal.addEventListener("abort", onAbort, { once: true });
|
|
680
684
|
}
|
|
681
685
|
const timer = setTimeout(() => controller.abort(new Error("timeout")), this.timeoutMs);
|
|
686
|
+
const startedAt = Date.now();
|
|
682
687
|
try {
|
|
683
688
|
const res = await this.fetchFn(url, {
|
|
684
689
|
method,
|
|
@@ -686,11 +691,29 @@ var HttpClient = class {
|
|
|
686
691
|
body: method === "GET" ? void 0 : JSON.stringify(body),
|
|
687
692
|
signal: controller.signal
|
|
688
693
|
});
|
|
694
|
+
debugLogHttp({
|
|
695
|
+
source: "canvas",
|
|
696
|
+
method,
|
|
697
|
+
url,
|
|
698
|
+
requestBody: method === "GET" ? void 0 : body,
|
|
699
|
+
status: res.status,
|
|
700
|
+
ok: res.ok,
|
|
701
|
+
responseBody: await readBodyForLog(res),
|
|
702
|
+
durationMs: Date.now() - startedAt
|
|
703
|
+
});
|
|
689
704
|
if (res.ok) return { kind: "value", value: await res.json() };
|
|
690
705
|
const err = await parseErrorBody(res);
|
|
691
706
|
if (attempt < this.maxRetries && shouldRetry(err)) return { kind: "retry" };
|
|
692
707
|
return { kind: "throw", error: new BackendHttpError(err) };
|
|
693
708
|
} catch (e) {
|
|
709
|
+
debugLogHttp({
|
|
710
|
+
source: "canvas",
|
|
711
|
+
method,
|
|
712
|
+
url,
|
|
713
|
+
requestBody: method === "GET" ? void 0 : body,
|
|
714
|
+
durationMs: Date.now() - startedAt,
|
|
715
|
+
error: e
|
|
716
|
+
});
|
|
694
717
|
return this.handleAttemptException(e, attempt, signal, method);
|
|
695
718
|
} finally {
|
|
696
719
|
clearTimeout(timer);
|
|
@@ -7696,4 +7719,4 @@ export {
|
|
|
7696
7719
|
defaultRegistry,
|
|
7697
7720
|
createEngineFromEnv
|
|
7698
7721
|
};
|
|
7699
|
-
//# sourceMappingURL=chunk-
|
|
7722
|
+
//# sourceMappingURL=chunk-O3TH7JW5.js.map
|