@cloudflare/vite-plugin 1.11.2 → 1.11.3

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.
Files changed (2) hide show
  1. package/dist/index.js +31 -1
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -13849,7 +13849,8 @@ var OpenAPI = {
13849
13849
  USERNAME: void 0,
13850
13850
  PASSWORD: void 0,
13851
13851
  HEADERS: void 0,
13852
- ENCODE_PATH: void 0
13852
+ ENCODE_PATH: void 0,
13853
+ LOGGER: void 0
13853
13854
  };
13854
13855
 
13855
13856
  // ../containers-shared/src/client/models/ApplicationRollout.ts
@@ -14271,6 +14272,7 @@ var request = (config, options) => {
14271
14272
  const formData = getFormData(options);
14272
14273
  const body = getRequestBody(options);
14273
14274
  const headers = await getHeaders(config, options);
14275
+ debugLogRequest(config, url, headers, formData ?? body ?? {});
14274
14276
  if (!onCancel.isCancelled) {
14275
14277
  const response = await sendRequest(
14276
14278
  config,
@@ -14303,6 +14305,7 @@ var request = (config, options) => {
14303
14305
  body: responseHeader ?? responseBody
14304
14306
  };
14305
14307
  }
14308
+ debugLogResponse(config, result);
14306
14309
  catchErrorCodes(options, result);
14307
14310
  resolve9(result.body);
14308
14311
  }
@@ -14311,6 +14314,33 @@ var request = (config, options) => {
14311
14314
  }
14312
14315
  });
14313
14316
  };
14317
+ var debugLogRequest = async (config, url, headers, body) => {
14318
+ config.LOGGER?.debug(`-- START CF API REQUEST: ${url}`);
14319
+ const logHeaders = new Headers(headers);
14320
+ logHeaders.delete("Authorization");
14321
+ config.LOGGER?.debugWithSanitization(
14322
+ "HEADERS:",
14323
+ JSON.stringify(logHeaders, null, 2)
14324
+ );
14325
+ config.LOGGER?.debugWithSanitization(
14326
+ "BODY:",
14327
+ JSON.stringify(
14328
+ body instanceof FormData ? await new Response(body).text() : body,
14329
+ null,
14330
+ 2
14331
+ )
14332
+ );
14333
+ config.LOGGER?.debug("-- END CF API REQUEST");
14334
+ };
14335
+ var debugLogResponse = (config, response) => {
14336
+ config.LOGGER?.debug(
14337
+ "-- START CF API RESPONSE:",
14338
+ response.statusText,
14339
+ response.status
14340
+ );
14341
+ config.LOGGER?.debugWithSanitization("RESPONSE:", response.body);
14342
+ config.LOGGER?.debug("-- END CF API RESPONSE");
14343
+ };
14314
14344
 
14315
14345
  // ../containers-shared/src/client/services/ImageRegistriesService.ts
14316
14346
  var ImageRegistriesService = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/vite-plugin",
3
- "version": "1.11.2",
3
+ "version": "1.11.3",
4
4
  "description": "Cloudflare plugin for Vite",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -40,9 +40,9 @@
40
40
  "tinyglobby": "^0.2.12",
41
41
  "unenv": "2.0.0-rc.19",
42
42
  "ws": "8.18.0",
43
- "@cloudflare/unenv-preset": "2.6.0",
44
- "miniflare": "4.20250803.0",
45
- "wrangler": "4.28.1"
43
+ "@cloudflare/unenv-preset": "2.6.1",
44
+ "miniflare": "4.20250803.1",
45
+ "wrangler": "4.29.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@cloudflare/workers-types": "^4.20250803.0",
@@ -55,13 +55,13 @@
55
55
  "vite": "7.0.0",
56
56
  "vitest": "~3.2.0",
57
57
  "@cloudflare/mock-npm-registry": "0.0.0",
58
- "@cloudflare/containers-shared": "0.2.8",
59
58
  "@cloudflare/workers-shared": "0.18.5",
60
- "@cloudflare/workers-tsconfig": "0.0.0"
59
+ "@cloudflare/workers-tsconfig": "0.0.0",
60
+ "@cloudflare/containers-shared": "0.2.9"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "vite": "^6.1.0 || ^7.0.0",
64
- "wrangler": "^4.28.1"
64
+ "wrangler": "^4.29.0"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"