@koda-sl/baker-cli 0.417.0-dev.fc1af4da8 → 0.417.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/{chunk-INZVJHAI.js → chunk-3BDBEN4C.js} +11 -7
- package/dist/chunk-3BDBEN4C.js.map +1 -0
- package/dist/{chunk-T2MNTMZ7.js → chunk-BWG6FK2K.js} +3 -3
- package/dist/{chunk-ASON7WRD.js → chunk-D76DSHL2.js} +25 -4
- package/dist/chunk-D76DSHL2.js.map +1 -0
- package/dist/{chunk-NIFD47XY.js → chunk-DUKZOH6P.js} +3 -3
- package/dist/{chunk-QEE2SJDW.js → chunk-F4R4AEI4.js} +4 -4
- package/dist/{chunk-SCA25GLY.js → chunk-KQBSLWB2.js} +2 -2
- package/dist/cli.js +213 -206
- package/dist/cli.js.map +1 -1
- package/dist/{client-EXF5LY5N.js → client-JRQD7KHG.js} +4 -4
- package/dist/engine/index.js +3 -3
- package/dist/{env-E565GJBV.js → env-Q5FUIVIJ.js} +2 -2
- package/dist/{output-XPNSPPDN.js → output-FJND5UZ3.js} +5 -5
- package/dist/{shared-OVJIDVGI.js → shared-WUMBSQPX.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-ASON7WRD.js.map +0 -1
- package/dist/chunk-INZVJHAI.js.map +0 -1
- /package/dist/{chunk-T2MNTMZ7.js.map → chunk-BWG6FK2K.js.map} +0 -0
- /package/dist/{chunk-NIFD47XY.js.map → chunk-DUKZOH6P.js.map} +0 -0
- /package/dist/{chunk-QEE2SJDW.js.map → chunk-F4R4AEI4.js.map} +0 -0
- /package/dist/{chunk-SCA25GLY.js.map → chunk-KQBSLWB2.js.map} +0 -0
- /package/dist/{client-EXF5LY5N.js.map → client-JRQD7KHG.js.map} +0 -0
- /package/dist/{env-E565GJBV.js.map → env-Q5FUIVIJ.js.map} +0 -0
- /package/dist/{output-XPNSPPDN.js.map → output-FJND5UZ3.js.map} +0 -0
- /package/dist/{shared-OVJIDVGI.js.map → shared-WUMBSQPX.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
debugLogHttp,
|
|
3
3
|
readBodyForLog
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KQBSLWB2.js";
|
|
5
5
|
import {
|
|
6
6
|
API_KEY_FORMAT_MESSAGE,
|
|
7
7
|
DIRECT_ROUTE,
|
|
@@ -14,15 +14,16 @@ 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
|
+
// ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js
|
|
24
25
|
var require_safe_stable_stringify = __commonJS({
|
|
25
|
-
"
|
|
26
|
+
"../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/index.js"(exports, module) {
|
|
26
27
|
"use strict";
|
|
27
28
|
var { hasOwnProperty } = Object.prototype;
|
|
28
29
|
var stringify = configure2();
|
|
@@ -1144,7 +1145,7 @@ function resolveAdaptFormats(params) {
|
|
|
1144
1145
|
return params.formats ?? [];
|
|
1145
1146
|
}
|
|
1146
1147
|
|
|
1147
|
-
//
|
|
1148
|
+
// ../../node_modules/.pnpm/safe-stable-stringify@2.5.0/node_modules/safe-stable-stringify/esm/wrapper.js
|
|
1148
1149
|
var import__ = __toESM(require_safe_stable_stringify(), 1);
|
|
1149
1150
|
var configure = import__.default.configure;
|
|
1150
1151
|
var wrapper_default = import__.default;
|
|
@@ -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-3BDBEN4C.js.map
|