@cloudflare/vite-plugin 1.40.0 → 1.40.1
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/index.mjs
CHANGED
|
@@ -1505,7 +1505,7 @@ async function assertWranglerVersion() {
|
|
|
1505
1505
|
* The default compatibility date to use when the user omits one.
|
|
1506
1506
|
* This value is injected at build time and remains fixed for each release.
|
|
1507
1507
|
*/
|
|
1508
|
-
const DEFAULT_COMPAT_DATE = "2026-06-
|
|
1508
|
+
const DEFAULT_COMPAT_DATE = "2026-06-09";
|
|
1509
1509
|
|
|
1510
1510
|
//#endregion
|
|
1511
1511
|
//#region ../../node_modules/.pnpm/@remix-run+node-fetch-server@0.8.0/node_modules/@remix-run/node-fetch-server/dist/node-fetch-server.js
|
|
@@ -51904,6 +51904,9 @@ const isStringWithValue = (value) => {
|
|
|
51904
51904
|
const isBlob = (value) => {
|
|
51905
51905
|
return typeof value === "object" && typeof value.type === "string" && typeof value.stream === "function" && typeof value.arrayBuffer === "function" && typeof value.constructor === "function" && typeof value.constructor.name === "string" && /^(Blob|File)$/.test(value.constructor.name) && /^(Blob|File)$/.test(value[Symbol.toStringTag]);
|
|
51906
51906
|
};
|
|
51907
|
+
const isErrorResponse = (value) => {
|
|
51908
|
+
return typeof value === "object" && value !== null && "error" in value && typeof value.error === "string";
|
|
51909
|
+
};
|
|
51907
51910
|
const base64 = (str) => {
|
|
51908
51911
|
try {
|
|
51909
51912
|
return btoa(str);
|
|
@@ -51994,6 +51997,7 @@ const parseResponseSchemaV4 = (url, response, responseHeader, responseBody) => {
|
|
|
51994
51997
|
let result;
|
|
51995
51998
|
if (ok) if (fetchResult.result !== void 0) result = fetchResult.result;
|
|
51996
51999
|
else result = {};
|
|
52000
|
+
else if (isErrorResponse(fetchResult)) result = fetchResult;
|
|
51997
52001
|
else result = { error: fetchResult.errors?.[0]?.message };
|
|
51998
52002
|
return {
|
|
51999
52003
|
url,
|