@cloudflare/vitest-plugin 1.1.0 → 1.1.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/pool/index.mjs +15 -3
- package/dist/pool/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/pool/index.mjs
CHANGED
|
@@ -28,8 +28,8 @@ import P from "node:readline";
|
|
|
28
28
|
import * as z$1 from "zod";
|
|
29
29
|
import { z } from "zod";
|
|
30
30
|
|
|
31
|
-
//#region ../workers-utils/dist/chunk-
|
|
32
|
-
var DEFAULT_COMPAT_DATE = "2026-08-
|
|
31
|
+
//#region ../workers-utils/dist/chunk-RB2KBB2C.mjs
|
|
32
|
+
var DEFAULT_COMPAT_DATE = "2026-08-26";
|
|
33
33
|
function assertNever(_value) {}
|
|
34
34
|
__name$3(assertNever, "assertNever");
|
|
35
35
|
function mapWorkerMetadataBindings(bindings$1) {
|
|
@@ -41803,12 +41803,24 @@ var validateWorkflowBinding = /* @__PURE__ */ __name$3((diagnostics, field, valu
|
|
|
41803
41803
|
for (const key of ["success_retention", "error_retention"]) if (defaultRetention[key] !== void 0 && !validateWorkflowRetentionValue(diagnostics, field, key, defaultRetention[key])) isValid = false;
|
|
41804
41804
|
validateAdditionalProperties(diagnostics, `${field}.default_retention`, Object.keys(defaultRetention), ["success_retention", "error_retention"]);
|
|
41805
41805
|
}
|
|
41806
|
+
if (hasProperty(value, "concurrency") && value.concurrency !== void 0) if (typeof value.concurrency !== "object" || value.concurrency === null || Array.isArray(value.concurrency)) {
|
|
41807
|
+
diagnostics.errors.push(`"${field}" bindings should, optionally, have an object "concurrency" field but got ${JSON.stringify(value)}.`);
|
|
41808
|
+
isValid = false;
|
|
41809
|
+
} else {
|
|
41810
|
+
const concurrency = value.concurrency;
|
|
41811
|
+
if (concurrency.limit !== void 0 && (typeof concurrency.limit !== "number" || !Number.isInteger(concurrency.limit) || concurrency.limit < 1)) {
|
|
41812
|
+
diagnostics.errors.push(`"${field}" bindings "concurrency.limit" field must be a positive integer but got ${JSON.stringify(concurrency.limit)}.`);
|
|
41813
|
+
isValid = false;
|
|
41814
|
+
}
|
|
41815
|
+
validateAdditionalProperties(diagnostics, `${field}.concurrency`, Object.keys(concurrency), ["limit"]);
|
|
41816
|
+
}
|
|
41806
41817
|
validateAdditionalProperties(diagnostics, field, Object.keys(value), [
|
|
41807
41818
|
"binding",
|
|
41808
41819
|
"name",
|
|
41809
41820
|
"class_name",
|
|
41810
41821
|
"script_name",
|
|
41811
41822
|
"limits",
|
|
41823
|
+
"concurrency",
|
|
41812
41824
|
"schedules",
|
|
41813
41825
|
"default_retention"
|
|
41814
41826
|
]);
|
|
@@ -59710,7 +59722,7 @@ __name$1(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
59710
59722
|
//#endregion
|
|
59711
59723
|
//#region ../remote-bindings/dist/index.mjs
|
|
59712
59724
|
var import_undici = require_undici();
|
|
59713
|
-
var version = "0.0.
|
|
59725
|
+
var version = "0.0.16";
|
|
59714
59726
|
var NoDefaultValueProvided = class extends UserError$1 {
|
|
59715
59727
|
constructor() {
|
|
59716
59728
|
super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
|