@cloudflare/vitest-plugin 1.2.6 → 1.2.7
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/pool/index.mjs +9 -5
- package/dist/pool/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/pool/index.mjs
CHANGED
|
@@ -13846,7 +13846,7 @@ function createFatalError$1(message, isJson, options) {
|
|
|
13846
13846
|
__name$3(createFatalError$1, "createFatalError");
|
|
13847
13847
|
|
|
13848
13848
|
//#endregion
|
|
13849
|
-
//#region ../workers-utils/dist/chunk-
|
|
13849
|
+
//#region ../workers-utils/dist/chunk-FLRJ77A6.mjs
|
|
13850
13850
|
function hasKnownExportType(entry) {
|
|
13851
13851
|
const type = entry?.type;
|
|
13852
13852
|
return type === "durable-object" || type === "worker" || type === "workflow";
|
|
@@ -13866,6 +13866,11 @@ function partitionExports(exports$1) {
|
|
|
13866
13866
|
return partitioned;
|
|
13867
13867
|
}
|
|
13868
13868
|
__name$3(partitionExports, "partitionExports");
|
|
13869
|
+
function isLiveDurableObjectExport(exportConfig) {
|
|
13870
|
+
const state = exportConfig.state ?? "created";
|
|
13871
|
+
return state === "created" || state === "expecting-transfer";
|
|
13872
|
+
}
|
|
13873
|
+
__name$3(isLiveDurableObjectExport, "isLiveDurableObjectExport");
|
|
13869
13874
|
function getDurableObjectExports(exports$1) {
|
|
13870
13875
|
return partitionExports(exports$1)["durable-object"];
|
|
13871
13876
|
}
|
|
@@ -13940,7 +13945,7 @@ function getDurableObjectClassNameToUseSQLiteMap(migrations, exports$1) {
|
|
|
13940
13945
|
const durableObjectExports = getDurableObjectExports(exports$1 ?? {});
|
|
13941
13946
|
for (const [className, entry] of Object.entries(durableObjectExports)) {
|
|
13942
13947
|
if (entry.type !== "durable-object") continue;
|
|
13943
|
-
if (entry
|
|
13948
|
+
if (isLiveDurableObjectExport(entry)) durableObjectClassNameToUseSQLiteMap.set(className, entry.storage === "sqlite");
|
|
13944
13949
|
}
|
|
13945
13950
|
return durableObjectClassNameToUseSQLiteMap;
|
|
13946
13951
|
}
|
|
@@ -45019,8 +45024,7 @@ function warnIfDurableObjectsHaveNoLifecycleConfig(diagnostics, durableObjects,
|
|
|
45019
45024
|
const exportsCovers = /* @__PURE__ */ __name$3((className) => {
|
|
45020
45025
|
const entry = exports$1?.[className];
|
|
45021
45026
|
if (entry === void 0 || entry.type !== "durable-object") return false;
|
|
45022
|
-
|
|
45023
|
-
return state === "created" || state === "expecting-transfer";
|
|
45027
|
+
return isLiveDurableObjectExport(entry);
|
|
45024
45028
|
}, "exportsCovers");
|
|
45025
45029
|
const uncoveredByExports = exportedDurableObjects.filter((binding) => typeof binding.class_name !== "string" || !exportsCovers(binding.class_name));
|
|
45026
45030
|
if (uncoveredByExports.length === 0 || migrations.length > 0) return;
|
|
@@ -61172,7 +61176,7 @@ __name$1(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
61172
61176
|
//#endregion
|
|
61173
61177
|
//#region ../remote-bindings/dist/index.mjs
|
|
61174
61178
|
var import_undici = require_undici();
|
|
61175
|
-
var version = "0.0.
|
|
61179
|
+
var version = "0.0.35";
|
|
61176
61180
|
var NoDefaultValueProvided = class extends UserError$1 {
|
|
61177
61181
|
constructor() {
|
|
61178
61182
|
super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
|