@cloudflare/vite-plugin 1.62.1 → 1.62.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/index.mjs CHANGED
@@ -56835,7 +56835,15 @@ const ContainerObservabilityBaseSchema = strictObject({
56835
56835
  const StandardContainerObservabilitySchema = union([ContainerObservabilityBaseSchema.extend({ targetInstancePercentage: number().min(0).max(100).optional() }), ContainerObservabilityBaseSchema.extend({ targetInstanceCount: number().int().nonnegative().optional() })]);
56836
56836
  const BaseContainerSchema = strictObject({
56837
56837
  name: string().min(1),
56838
- unsafe: record(string(), unknown()).optional()
56838
+ unsafe: record(string(), unknown()).optional(),
56839
+ ssh: strictObject({
56840
+ enabled: boolean(),
56841
+ port: number().int().min(1).max(65535).optional()
56842
+ }).optional(),
56843
+ authorizedKeys: array(strictObject({
56844
+ name: string(),
56845
+ publicKey: string()
56846
+ })).optional()
56839
56847
  });
56840
56848
  const StandardContainerBaseSchema = BaseContainerSchema.extend({
56841
56849
  observability: StandardContainerObservabilitySchema.optional(),
@@ -56853,14 +56861,6 @@ const StandardContainerBaseSchema = BaseContainerSchema.extend({
56853
56861
  diskMb: number().nonnegative().optional()
56854
56862
  })]).optional(),
56855
56863
  schedulingPolicy: _enum(["default", "regional"]).optional(),
56856
- ssh: strictObject({
56857
- enabled: boolean(),
56858
- port: number().int().min(1).max(65535).optional()
56859
- }).optional(),
56860
- authorizedKeys: array(strictObject({
56861
- name: string(),
56862
- publicKey: string()
56863
- })).optional(),
56864
56864
  constraints: strictObject({
56865
56865
  regions: array(_enum([
56866
56866
  "ENAM",
@@ -57311,6 +57311,11 @@ function convertContainer(container) {
57311
57311
  const converted = { name: container.name };
57312
57312
  if (container.observability !== void 0) converted.observability = convertContainerObservability(container.observability);
57313
57313
  if (container.unsafe !== void 0) converted.unsafe = container.unsafe;
57314
+ if (container.ssh !== void 0) converted.ssh = container.ssh;
57315
+ if (container.authorizedKeys !== void 0) converted.authorized_keys = container.authorizedKeys.map(({ name, publicKey }) => ({
57316
+ name,
57317
+ public_key: publicKey
57318
+ }));
57314
57319
  if (container.schedulingPolicy === "durable-object") {
57315
57320
  converted.scheduling_policy = "durable_object";
57316
57321
  if (container.images !== void 0) converted.images = Object.fromEntries(Object.entries(container.images).map(([name, image]) => [name, convertDurableObjectContainerImage(image)]));
@@ -57331,11 +57336,6 @@ function convertContainer(container) {
57331
57336
  converted.instance_type = instanceType;
57332
57337
  }
57333
57338
  if (container.schedulingPolicy !== void 0) converted.scheduling_policy = container.schedulingPolicy;
57334
- if (container.ssh !== void 0) converted.ssh = container.ssh;
57335
- if (container.authorizedKeys !== void 0) converted.authorized_keys = container.authorizedKeys.map(({ name, publicKey }) => ({
57336
- name,
57337
- public_key: publicKey
57338
- }));
57339
57339
  if (container.constraints !== void 0) converted.constraints = container.constraints;
57340
57340
  if (container.rollout !== void 0) {
57341
57341
  if (container.rollout.kind !== void 0) converted.rollout_kind = ROLLOUT_KIND_MAP[container.rollout.kind];
@@ -79899,7 +79899,7 @@ function formatWebSocketData(data$1) {
79899
79899
  }
79900
79900
  __name$2(formatWebSocketData, "formatWebSocketData");
79901
79901
  function shouldUseStdio(sshArgs) {
79902
- return sshArgs.stdio === true || process.stdin.isTTY !== true && process.stdout.isTTY !== true;
79902
+ return sshArgs.stdio === true || sshArgs.tty !== true && process.stdin.isTTY !== true && process.stdout.isTTY !== true;
79903
79903
  }
79904
79904
  __name$2(shouldUseStdio, "shouldUseStdio");
79905
79905
  function buildContainerSshArgs(sshArgs) {
@@ -79914,6 +79914,8 @@ function buildContainerSshArgs(sshArgs) {
79914
79914
  "StrictHostKeyChecking=no"
79915
79915
  ];
79916
79916
  if (process.env.WRANGLER_LOG !== "debug") flags.push("-o", "LogLevel=ERROR");
79917
+ if (sshArgs.tty === true) flags.push("-o", "RequestTTY=force");
79918
+ else if (sshArgs.tty === false) flags.push("-o", "RequestTTY=no");
79917
79919
  if (sshArgs.cipher !== void 0) flags.push("-c", sshArgs.cipher);
79918
79920
  if (sshArgs.logFile !== void 0) flags.push("-E", sshArgs.logFile);
79919
79921
  if (sshArgs.escapeChar !== void 0) flags.push("-e", sshArgs.escapeChar);
@@ -85631,7 +85633,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
85631
85633
  //#endregion
85632
85634
  //#region ../remote-bindings/dist/index.mjs
85633
85635
  var import_undici = require_undici();
85634
- var version$2 = "0.0.38";
85636
+ var version$2 = "0.0.39";
85635
85637
  var NoDefaultValueProvided = class extends UserError {
85636
85638
  constructor() {
85637
85639
  super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });