@koda-sl/baker-cli 0.196.0-dev.6d2f498f5 → 0.198.0-dev.6d2f498f5

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  debugLogHttp,
3
3
  readBodyForLog
4
- } from "./chunk-YUTDQ4PV.js";
4
+ } from "./chunk-RN2XKQIJ.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __toESM,
@@ -10,8 +10,9 @@ import {
10
10
  isChallengeBody,
11
11
  isProxyFailure,
12
12
  plannedRoutes,
13
+ refuseNonPublicUrl,
13
14
  shouldEscalate
14
- } from "./chunk-F6OHDJIX.js";
15
+ } from "./chunk-MVCCSWDE.js";
15
16
 
16
17
  // ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/810146e81bae4e3a061fe487864f2fde80c4b03b886877dc0f1fffbc6480b67e/node_modules/safe-stable-stringify/index.js
17
18
  var require_safe_stable_stringify = __commonJS({
@@ -5099,6 +5100,9 @@ var ExternalFetchError = class extends Error {
5099
5100
  }
5100
5101
  };
5101
5102
  async function fetchExternal(url, options = {}) {
5103
+ if (refuseNonPublicUrl(url) !== null) {
5104
+ throw new ExternalFetchError("That address is not reachable from the public web, so there is nothing to read.", false);
5105
+ }
5102
5106
  const result = await fetchWithEscalation(
5103
5107
  url,
5104
5108
  { headers: { ...BROWSER_HEADERS, ...options.headers } },
@@ -8650,4 +8654,4 @@ export {
8650
8654
  defaultRegistry,
8651
8655
  createEngineFromEnv
8652
8656
  };
8653
- //# sourceMappingURL=chunk-SSDYBIZB.js.map
8657
+ //# sourceMappingURL=chunk-CVJCXDWD.js.map