@replit/protocol 0.3.44 → 0.3.45

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/main/index.d.ts CHANGED
@@ -18323,6 +18323,9 @@ export namespace replit {
18323
18323
 
18324
18324
  /** DotReplitPort externalPort */
18325
18325
  externalPort?: (number|null);
18326
+
18327
+ /** DotReplitPort exposeLocalhost */
18328
+ exposeLocalhost?: (boolean|null);
18326
18329
  }
18327
18330
 
18328
18331
  /** Represents a DotReplitPort. */
@@ -18340,6 +18343,9 @@ export namespace replit {
18340
18343
  /** DotReplitPort externalPort. */
18341
18344
  public externalPort: number;
18342
18345
 
18346
+ /** DotReplitPort exposeLocalhost. */
18347
+ public exposeLocalhost: boolean;
18348
+
18343
18349
  /**
18344
18350
  * Creates a new DotReplitPort instance using the specified properties.
18345
18351
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -46649,6 +46649,7 @@
46649
46649
  * @interface IDotReplitPort
46650
46650
  * @property {number|null} [localPort] DotReplitPort localPort
46651
46651
  * @property {number|null} [externalPort] DotReplitPort externalPort
46652
+ * @property {boolean|null} [exposeLocalhost] DotReplitPort exposeLocalhost
46652
46653
  */
46653
46654
 
46654
46655
  /**
@@ -46681,6 +46682,14 @@
46681
46682
  */
46682
46683
  DotReplitPort.prototype.externalPort = 0;
46683
46684
 
46685
+ /**
46686
+ * DotReplitPort exposeLocalhost.
46687
+ * @member {boolean} exposeLocalhost
46688
+ * @memberof replit.goval.api.DotReplitPort
46689
+ * @instance
46690
+ */
46691
+ DotReplitPort.prototype.exposeLocalhost = false;
46692
+
46684
46693
  /**
46685
46694
  * Creates a new DotReplitPort instance using the specified properties.
46686
46695
  * @function create
@@ -46709,6 +46718,8 @@
46709
46718
  writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.localPort);
46710
46719
  if (message.externalPort != null && Object.hasOwnProperty.call(message, "externalPort"))
46711
46720
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.externalPort);
46721
+ if (message.exposeLocalhost != null && Object.hasOwnProperty.call(message, "exposeLocalhost"))
46722
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.exposeLocalhost);
46712
46723
  return writer;
46713
46724
  };
46714
46725
 
@@ -46751,6 +46762,10 @@
46751
46762
  message.externalPort = reader.uint32();
46752
46763
  break;
46753
46764
  }
46765
+ case 3: {
46766
+ message.exposeLocalhost = reader.bool();
46767
+ break;
46768
+ }
46754
46769
  default:
46755
46770
  reader.skipType(tag & 7);
46756
46771
  break;
@@ -46792,6 +46807,9 @@
46792
46807
  if (message.externalPort != null && message.hasOwnProperty("externalPort"))
46793
46808
  if (!$util.isInteger(message.externalPort))
46794
46809
  return "externalPort: integer expected";
46810
+ if (message.exposeLocalhost != null && message.hasOwnProperty("exposeLocalhost"))
46811
+ if (typeof message.exposeLocalhost !== "boolean")
46812
+ return "exposeLocalhost: boolean expected";
46795
46813
  return null;
46796
46814
  };
46797
46815
 
@@ -46811,6 +46829,8 @@
46811
46829
  message.localPort = object.localPort >>> 0;
46812
46830
  if (object.externalPort != null)
46813
46831
  message.externalPort = object.externalPort >>> 0;
46832
+ if (object.exposeLocalhost != null)
46833
+ message.exposeLocalhost = Boolean(object.exposeLocalhost);
46814
46834
  return message;
46815
46835
  };
46816
46836
 
@@ -46830,11 +46850,14 @@
46830
46850
  if (options.defaults) {
46831
46851
  object.localPort = 0;
46832
46852
  object.externalPort = 0;
46853
+ object.exposeLocalhost = false;
46833
46854
  }
46834
46855
  if (message.localPort != null && message.hasOwnProperty("localPort"))
46835
46856
  object.localPort = message.localPort;
46836
46857
  if (message.externalPort != null && message.hasOwnProperty("externalPort"))
46837
46858
  object.externalPort = message.externalPort;
46859
+ if (message.exposeLocalhost != null && message.hasOwnProperty("exposeLocalhost"))
46860
+ object.exposeLocalhost = message.exposeLocalhost;
46838
46861
  return object;
46839
46862
  };
46840
46863