@cloudflare/vitest-plugin 1.2.0 → 1.2.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.
@@ -57373,6 +57373,7 @@ var DefaultScopeKeys$1 = [...[
57373
57373
  "sso-connector:read",
57374
57374
  "sso-connector:write",
57375
57375
  "ssl_certs:write",
57376
+ "tag.write",
57376
57377
  "teams:pii",
57377
57378
  "teams:read",
57378
57379
  "teams:secure_location",
@@ -61850,7 +61851,7 @@ __name$1(createWorkerUploadForm, "createWorkerUploadForm");
61850
61851
  //#endregion
61851
61852
  //#region ../remote-bindings/dist/index.mjs
61852
61853
  var import_undici = require_undici();
61853
- var version = "0.0.29";
61854
+ var version = "0.0.30";
61854
61855
  var NoDefaultValueProvided = class extends UserError$1 {
61855
61856
  constructor() {
61856
61857
  super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
@@ -63303,10 +63304,10 @@ const BaseWorkerSchema = z$1.strictObject({
63303
63304
  });
63304
63305
  /**
63305
63306
  * Input Worker schema — parses Worker definitions from user-authored
63306
- * `cloudflare.config.ts` files. Adds an optional `entrypoint` field to the base
63307
- * schema.
63307
+ * `cloudflare.config.ts` files. Adds an optional string `entrypoint` field to
63308
+ * the base schema.
63308
63309
  */
63309
- const InputWorkerSchema = BaseWorkerSchema.extend({ entrypoint: z$1.union([z$1.string(), z$1.strictObject({ default: z$1.string() })]).transform((value) => typeof value === "string" ? value : value.default).optional() });
63310
+ const InputWorkerSchema = BaseWorkerSchema.extend({ entrypoint: z$1.string().optional() });
63310
63311
  /**
63311
63312
  * Input settings schema — parses the account settings at the top level of
63312
63313
  * `cloudflare.config.ts`.
@@ -64228,6 +64229,13 @@ async function normalizeWorkerReferences(resolved, resolveDefinition) {
64228
64229
  env: env$2
64229
64230
  };
64230
64231
  }
64232
+ function normalizeWorkerEntrypoint(resolved) {
64233
+ if (!isRecord(resolved) || !isRecord(resolved.entrypoint) || !("default" in resolved.entrypoint)) return resolved;
64234
+ return {
64235
+ ...resolved,
64236
+ entrypoint: resolved.entrypoint.default
64237
+ };
64238
+ }
64231
64239
  async function normalizeContainerReferences(resolved, resolveDefinition, containers) {
64232
64240
  const issues = [];
64233
64241
  if (!isRecord(resolved) || !isRecord(resolved.exports)) return {
@@ -64287,7 +64295,7 @@ async function normalizeContainerReferences(resolved, resolveDefinition, contain
64287
64295
  };
64288
64296
  }
64289
64297
  async function normalizeWorkerConfig(resolved, resolveDefinition, containers) {
64290
- return normalizeContainerReferences(await normalizeWorkerReferences(resolved, resolveDefinition), resolveDefinition, containers);
64298
+ return normalizeContainerReferences(await normalizeWorkerReferences(normalizeWorkerEntrypoint(resolved), resolveDefinition), resolveDefinition, containers);
64291
64299
  }
64292
64300
  function prefixIssues(issues, prefix) {
64293
64301
  return issues.map((issue$1) => ({