@cloudflare/vitest-plugin 1.1.1 → 1.1.2
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
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-2DE5GBFL.mjs
|
|
32
|
+
var DEFAULT_COMPAT_DATE = "2026-08-28";
|
|
33
33
|
function assertNever(_value) {}
|
|
34
34
|
__name$3(assertNever, "assertNever");
|
|
35
35
|
function mapWorkerMetadataBindings(bindings$1) {
|
|
@@ -59722,7 +59722,7 @@ __name$1(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
59722
59722
|
//#endregion
|
|
59723
59723
|
//#region ../remote-bindings/dist/index.mjs
|
|
59724
59724
|
var import_undici = require_undici();
|
|
59725
|
-
var version = "0.0.
|
|
59725
|
+
var version = "0.0.17";
|
|
59726
59726
|
var NoDefaultValueProvided = class extends UserError$1 {
|
|
59727
59727
|
constructor() {
|
|
59728
59728
|
super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
|
|
@@ -60688,7 +60688,7 @@ const BrowserBindingSchema = z$1.strictObject({
|
|
|
60688
60688
|
});
|
|
60689
60689
|
const WorkerBindingSchema = z$1.strictObject({
|
|
60690
60690
|
type: z$1.literal("worker"),
|
|
60691
|
-
|
|
60691
|
+
worker: z$1.string(),
|
|
60692
60692
|
exportName: z$1.string().optional(),
|
|
60693
60693
|
props: z$1.record(z$1.string(), z$1.unknown()).optional(),
|
|
60694
60694
|
dev: RemoteBindingDevSchema.optional()
|
|
@@ -60766,14 +60766,14 @@ const KnownBindingSchema = z$1.discriminatedUnion("type", [
|
|
|
60766
60766
|
type: z$1.literal("dispatch-namespace"),
|
|
60767
60767
|
namespace: z$1.string().optional(),
|
|
60768
60768
|
outbound: z$1.strictObject({
|
|
60769
|
-
|
|
60769
|
+
worker: z$1.string(),
|
|
60770
60770
|
parameters: z$1.array(z$1.string()).optional()
|
|
60771
60771
|
}).optional(),
|
|
60772
60772
|
dev: RemoteBindingDevSchema.optional()
|
|
60773
60773
|
}),
|
|
60774
60774
|
z$1.strictObject({
|
|
60775
60775
|
type: z$1.literal("durable-object"),
|
|
60776
|
-
|
|
60776
|
+
worker: z$1.string(),
|
|
60777
60777
|
exportName: z$1.string()
|
|
60778
60778
|
}),
|
|
60779
60779
|
FlagshipBindingSchema,
|
|
@@ -61003,7 +61003,7 @@ const PlacementSchema = z$1.union([
|
|
|
61003
61003
|
})
|
|
61004
61004
|
]);
|
|
61005
61005
|
const TailConsumerSchema = z$1.strictObject({
|
|
61006
|
-
|
|
61006
|
+
worker: z$1.string(),
|
|
61007
61007
|
streaming: z$1.boolean().optional()
|
|
61008
61008
|
});
|
|
61009
61009
|
const TriggerSchema = z$1.discriminatedUnion("type", [
|
|
@@ -63892,7 +63892,7 @@ function convertBindingsAndAssets(config$1, result) {
|
|
|
63892
63892
|
namespace: binding.namespace
|
|
63893
63893
|
};
|
|
63894
63894
|
if (binding.outbound) entry.outbound = omitUndefined({
|
|
63895
|
-
service: binding.outbound.
|
|
63895
|
+
service: binding.outbound.worker,
|
|
63896
63896
|
parameters: binding.outbound.parameters
|
|
63897
63897
|
});
|
|
63898
63898
|
if (binding.dev?.remote !== void 0) entry.remote = binding.dev.remote;
|
|
@@ -63903,7 +63903,7 @@ function convertBindingsAndAssets(config$1, result) {
|
|
|
63903
63903
|
durableObjectBindings.push({
|
|
63904
63904
|
name,
|
|
63905
63905
|
class_name: binding.exportName,
|
|
63906
|
-
script_name: binding.
|
|
63906
|
+
script_name: binding.worker
|
|
63907
63907
|
});
|
|
63908
63908
|
break;
|
|
63909
63909
|
case "flagship":
|
|
@@ -64054,7 +64054,7 @@ function convertBindingsAndAssets(config$1, result) {
|
|
|
64054
64054
|
case "worker":
|
|
64055
64055
|
services.push(omitUndefined({
|
|
64056
64056
|
binding: name,
|
|
64057
|
-
service: binding.
|
|
64057
|
+
service: binding.worker,
|
|
64058
64058
|
entrypoint: binding.exportName,
|
|
64059
64059
|
props: binding.props,
|
|
64060
64060
|
remote: binding.dev?.remote
|
|
@@ -64235,8 +64235,8 @@ function convertTailConsumers(config$1, result) {
|
|
|
64235
64235
|
if (!consumers || consumers.length === 0) return;
|
|
64236
64236
|
const tail$1 = [];
|
|
64237
64237
|
const streaming = [];
|
|
64238
|
-
for (const consumer of consumers) if (consumer.streaming) streaming.push({ service: consumer.
|
|
64239
|
-
else tail$1.push({ service: consumer.
|
|
64238
|
+
for (const consumer of consumers) if (consumer.streaming) streaming.push({ service: consumer.worker });
|
|
64239
|
+
else tail$1.push({ service: consumer.worker });
|
|
64240
64240
|
if (tail$1.length) result.tail_consumers = tail$1;
|
|
64241
64241
|
if (streaming.length) result.streaming_tail_consumers = streaming;
|
|
64242
64242
|
}
|