@replit/protocol 0.3.28 → 0.3.29

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
@@ -9600,6 +9600,9 @@ export namespace replit {
9600
9600
 
9601
9601
  /** PortOpen cmdline */
9602
9602
  cmdline?: (string[]|null);
9603
+
9604
+ /** PortOpen pid */
9605
+ pid?: (number|null);
9603
9606
  }
9604
9607
 
9605
9608
  /** Represents a PortOpen. */
@@ -9629,6 +9632,9 @@ export namespace replit {
9629
9632
  /** PortOpen cmdline. */
9630
9633
  public cmdline: string[];
9631
9634
 
9635
+ /** PortOpen pid. */
9636
+ public pid: number;
9637
+
9632
9638
  /**
9633
9639
  * Creates a new PortOpen instance using the specified properties.
9634
9640
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -25430,6 +25430,7 @@
25430
25430
  * @property {number|null} [externalPort] PortOpen externalPort
25431
25431
  * @property {string|null} [comm] PortOpen comm
25432
25432
  * @property {Array.<string>|null} [cmdline] PortOpen cmdline
25433
+ * @property {number|null} [pid] PortOpen pid
25433
25434
  */
25434
25435
 
25435
25436
  /**
@@ -25495,6 +25496,14 @@
25495
25496
  */
25496
25497
  PortOpen.prototype.cmdline = $util.emptyArray;
25497
25498
 
25499
+ /**
25500
+ * PortOpen pid.
25501
+ * @member {number} pid
25502
+ * @memberof replit.goval.api.PortOpen
25503
+ * @instance
25504
+ */
25505
+ PortOpen.prototype.pid = 0;
25506
+
25498
25507
  /**
25499
25508
  * Creates a new PortOpen instance using the specified properties.
25500
25509
  * @function create
@@ -25532,6 +25541,8 @@
25532
25541
  if (message.cmdline != null && message.cmdline.length)
25533
25542
  for (var i = 0; i < message.cmdline.length; ++i)
25534
25543
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.cmdline[i]);
25544
+ if (message.pid != null && Object.hasOwnProperty.call(message, "pid"))
25545
+ writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.pid);
25535
25546
  return writer;
25536
25547
  };
25537
25548
 
@@ -25586,6 +25597,9 @@
25586
25597
  message.cmdline = [];
25587
25598
  message.cmdline.push(reader.string());
25588
25599
  break;
25600
+ case 7:
25601
+ message.pid = reader.uint32();
25602
+ break;
25589
25603
  default:
25590
25604
  reader.skipType(tag & 7);
25591
25605
  break;
@@ -25643,6 +25657,9 @@
25643
25657
  if (!$util.isString(message.cmdline[i]))
25644
25658
  return "cmdline: string[] expected";
25645
25659
  }
25660
+ if (message.pid != null && message.hasOwnProperty("pid"))
25661
+ if (!$util.isInteger(message.pid))
25662
+ return "pid: integer expected";
25646
25663
  return null;
25647
25664
  };
25648
25665
 
@@ -25675,6 +25692,8 @@
25675
25692
  for (var i = 0; i < object.cmdline.length; ++i)
25676
25693
  message.cmdline[i] = String(object.cmdline[i]);
25677
25694
  }
25695
+ if (object.pid != null)
25696
+ message.pid = object.pid >>> 0;
25678
25697
  return message;
25679
25698
  };
25680
25699
 
@@ -25699,6 +25718,7 @@
25699
25718
  object.address = "";
25700
25719
  object.externalPort = 0;
25701
25720
  object.comm = "";
25721
+ object.pid = 0;
25702
25722
  }
25703
25723
  if (message.forwarded != null && message.hasOwnProperty("forwarded"))
25704
25724
  object.forwarded = message.forwarded;
@@ -25715,6 +25735,8 @@
25715
25735
  for (var j = 0; j < message.cmdline.length; ++j)
25716
25736
  object.cmdline[j] = message.cmdline[j];
25717
25737
  }
25738
+ if (message.pid != null && message.hasOwnProperty("pid"))
25739
+ object.pid = message.pid;
25718
25740
  return object;
25719
25741
  };
25720
25742
 
@@ -14270,6 +14270,11 @@ declare type replit$goval$api$IPortOpen = {|
14270
14270
  * PortOpen cmdline
14271
14271
  */
14272
14272
  cmdline?: string[] | null,
14273
+
14274
+ /**
14275
+ * PortOpen pid
14276
+ */
14277
+ pid?: number | null,
14273
14278
  |};
14274
14279
 
14275
14280
  /**
@@ -14312,6 +14317,11 @@ declare class replit$goval$api$PortOpen {
14312
14317
  */
14313
14318
  cmdline: string[];
14314
14319
 
14320
+ /**
14321
+ * PortOpen pid.
14322
+ */
14323
+ pid: number;
14324
+
14315
14325
  /**
14316
14326
  * Creates a new PortOpen instance using the specified properties.
14317
14327
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.28",
3
+ "version": "0.3.29",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",