@koda-sl/baker-cli 0.418.0-dev.6af3f5093 → 0.419.0-dev.4248c4e66
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 +7 -55
- package/dist/{chunk-LMMZ3FAC.js → chunk-4RN4CBIQ.js} +3 -3
- package/dist/{chunk-AKX7S6ZW.js → chunk-D76DSHL2.js} +28 -15
- package/dist/chunk-D76DSHL2.js.map +1 -0
- package/dist/{chunk-HTPY7G2Y.js → chunk-FQ7WNNOG.js} +8 -4
- package/dist/{chunk-HTPY7G2Y.js.map → chunk-FQ7WNNOG.js.map} +1 -1
- package/dist/{chunk-3FJU7BNQ.js → chunk-HFH5HQTP.js} +2 -2
- package/dist/{chunk-6V6B7RPR.js → chunk-TTBMFAGF.js} +4 -4
- package/dist/{chunk-OEI3NLGH.js → chunk-VF77MVEM.js} +3 -11
- package/dist/chunk-VF77MVEM.js.map +1 -0
- package/dist/cli.js +6550 -8805
- package/dist/cli.js.map +1 -1
- package/dist/{client-6CLQVK65.js → client-OA2QMHOI.js} +4 -4
- package/dist/engine/index.js +3 -3
- package/dist/{env-ZJLFGNH5.js → env-Q5FUIVIJ.js} +2 -4
- package/dist/output-NMXF2VIL.js +18 -0
- package/dist/{shared-C5EZVLDS.js → shared-PD226SU6.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-AKX7S6ZW.js.map +0 -1
- package/dist/chunk-OEI3NLGH.js.map +0 -1
- package/dist/output-BTVIL27G.js +0 -22
- /package/dist/{chunk-LMMZ3FAC.js.map → chunk-4RN4CBIQ.js.map} +0 -0
- /package/dist/{chunk-3FJU7BNQ.js.map → chunk-HFH5HQTP.js.map} +0 -0
- /package/dist/{chunk-6V6B7RPR.js.map → chunk-TTBMFAGF.js.map} +0 -0
- /package/dist/{client-6CLQVK65.js.map → client-OA2QMHOI.js.map} +0 -0
- /package/dist/{env-ZJLFGNH5.js.map → env-Q5FUIVIJ.js.map} +0 -0
- /package/dist/{output-BTVIL27G.js.map → output-NMXF2VIL.js.map} +0 -0
- /package/dist/{shared-C5EZVLDS.js.map → shared-PD226SU6.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
debugLogHttp,
|
|
3
3
|
readBodyForLog
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HFH5HQTP.js";
|
|
5
5
|
import {
|
|
6
6
|
API_KEY_FORMAT_MESSAGE,
|
|
7
7
|
DIRECT_ROUTE,
|
|
@@ -14,11 +14,12 @@ import {
|
|
|
14
14
|
isChallengeBody,
|
|
15
15
|
isPrivateAddress,
|
|
16
16
|
isProxyFailure,
|
|
17
|
+
nextPlannedRoute,
|
|
17
18
|
plannedRoutes,
|
|
18
19
|
refuseNonPublicUrl,
|
|
19
20
|
requireConnection,
|
|
20
21
|
shouldEscalate
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-D76DSHL2.js";
|
|
22
23
|
|
|
23
24
|
// ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/index.js
|
|
24
25
|
var require_safe_stable_stringify = __commonJS({
|
|
@@ -6818,9 +6819,12 @@ async function fetchWithEscalation(url, init, options) {
|
|
|
6818
6819
|
let originResponse = null;
|
|
6819
6820
|
let originTier = "direct";
|
|
6820
6821
|
let lastError;
|
|
6821
|
-
|
|
6822
|
+
const routes = plannedRoutes(url, options.credentials, options.routeOptions);
|
|
6823
|
+
const tried = [];
|
|
6824
|
+
for (let route = routes[0] ?? null; route !== null; route = nextPlannedRoute(routes, tried)) {
|
|
6822
6825
|
const rung = await attemptRoute(url, init, route, options);
|
|
6823
6826
|
attempts.push(rung.attempt);
|
|
6827
|
+
tried.push({ tier: rung.attempt.tier, proxyFailure: rung.attempt.outcome === "proxy_unavailable" });
|
|
6824
6828
|
if (rung.response !== null) {
|
|
6825
6829
|
originResponse = rung.response;
|
|
6826
6830
|
originTier = rung.attempt.tier;
|
|
@@ -11630,4 +11634,4 @@ export {
|
|
|
11630
11634
|
defaultRegistry,
|
|
11631
11635
|
createEngineFromEnv
|
|
11632
11636
|
};
|
|
11633
|
-
//# sourceMappingURL=chunk-
|
|
11637
|
+
//# sourceMappingURL=chunk-FQ7WNNOG.js.map
|