@cloudflare/vite-plugin 0.0.0-ce8bfbdad → 0.0.0-cf09cfa33

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.
@@ -2526,8 +2526,11 @@ async function tr(t, e, n, r = 1) {
2526
2526
  return o.value !== null && n && n.captureException(new Error(`Initial request for asset ${e} failed, but subsequent request succeeded.`)), o;
2527
2527
  }
2528
2528
  return i;
2529
- } catch {
2530
- if (s >= r) throw new Error(`Requested asset ${e} could not be fetched from KV namespace.`);
2529
+ } catch (i) {
2530
+ if (s >= r) {
2531
+ let o = `Requested asset ${e} could not be fetched from KV namespace.`;
2532
+ throw i instanceof Error && (o = `Requested asset ${e} could not be fetched from KV namespace: ${i.message}`), new Error(o);
2533
+ }
2531
2534
  await new Promise((o) => setTimeout(o, Math.pow(2, s++) * 1e3));
2532
2535
  }
2533
2536
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/vite-plugin",
3
- "version": "0.0.0-ce8bfbdad",
3
+ "version": "0.0.0-cf09cfa33",
4
4
  "description": "Cloudflare plugin for Vite",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -36,19 +36,19 @@
36
36
  "@hattip/adapter-node": "^0.0.49",
37
37
  "unenv": "npm:unenv-nightly@2.0.0-20241218-183400-5d6aec3",
38
38
  "ws": "^8.18.0",
39
- "miniflare": "0.0.0-ce8bfbdad"
39
+ "miniflare": "0.0.0-cf09cfa33"
40
40
  },
41
41
  "devDependencies": {
42
- "@cloudflare/workers-types": "^4.20250121.0",
42
+ "@cloudflare/workers-types": "^4.20250129.0",
43
43
  "@types/node": "^22.10.1",
44
44
  "@types/ws": "^8.5.13",
45
45
  "magic-string": "^0.30.12",
46
46
  "tsup": "8.3.0",
47
47
  "typescript": "^5.7.2",
48
48
  "vite": "^6.0.7",
49
+ "@cloudflare/workers-shared": "0.0.0-cf09cfa33",
49
50
  "@cloudflare/workers-tsconfig": "0.0.0",
50
- "wrangler": "0.0.0-ce8bfbdad",
51
- "@cloudflare/workers-shared": "0.0.0-ce8bfbdad"
51
+ "wrangler": "0.0.0-cf09cfa33"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "vite": "^6.0.7",