@replit/protocol 0.4.5 → 0.4.6

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
@@ -1881,6 +1881,9 @@ export namespace replit {
1881
1881
 
1882
1882
  /** NixPackage licenses */
1883
1883
  licenses?: (string[]|null);
1884
+
1885
+ /** NixPackage present */
1886
+ present?: (boolean|null);
1884
1887
  }
1885
1888
 
1886
1889
  /** Represents a NixPackage. */
@@ -1910,6 +1913,9 @@ export namespace replit {
1910
1913
  /** NixPackage licenses. */
1911
1914
  public licenses: string[];
1912
1915
 
1916
+ /** NixPackage present. */
1917
+ public present: boolean;
1918
+
1913
1919
  /**
1914
1920
  * Creates a new NixPackage instance using the specified properties.
1915
1921
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -8311,6 +8311,7 @@
8311
8311
  * @property {Array.<string>|null} [homepageURL] NixPackage homepageURL
8312
8312
  * @property {Array.<string>|null} [maintainers] NixPackage maintainers
8313
8313
  * @property {Array.<string>|null} [licenses] NixPackage licenses
8314
+ * @property {boolean|null} [present] NixPackage present
8314
8315
  */
8315
8316
 
8316
8317
  /**
@@ -8378,6 +8379,14 @@
8378
8379
  */
8379
8380
  NixPackage.prototype.licenses = $util.emptyArray;
8380
8381
 
8382
+ /**
8383
+ * NixPackage present.
8384
+ * @member {boolean} present
8385
+ * @memberof replit.goval.api.NixPackage
8386
+ * @instance
8387
+ */
8388
+ NixPackage.prototype.present = false;
8389
+
8381
8390
  /**
8382
8391
  * Creates a new NixPackage instance using the specified properties.
8383
8392
  * @function create
@@ -8417,6 +8426,8 @@
8417
8426
  if (message.licenses != null && message.licenses.length)
8418
8427
  for (var i = 0; i < message.licenses.length; ++i)
8419
8428
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.licenses[i]);
8429
+ if (message.present != null && Object.hasOwnProperty.call(message, "present"))
8430
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.present);
8420
8431
  return writer;
8421
8432
  };
8422
8433
 
@@ -8481,6 +8492,10 @@
8481
8492
  message.licenses.push(reader.string());
8482
8493
  break;
8483
8494
  }
8495
+ case 7: {
8496
+ message.present = reader.bool();
8497
+ break;
8498
+ }
8484
8499
  default:
8485
8500
  reader.skipType(tag & 7);
8486
8501
  break;
@@ -8546,6 +8561,9 @@
8546
8561
  if (!$util.isString(message.licenses[i]))
8547
8562
  return "licenses: string[] expected";
8548
8563
  }
8564
+ if (message.present != null && message.hasOwnProperty("present"))
8565
+ if (typeof message.present !== "boolean")
8566
+ return "present: boolean expected";
8549
8567
  return null;
8550
8568
  };
8551
8569
 
@@ -8588,6 +8606,8 @@
8588
8606
  for (var i = 0; i < object.licenses.length; ++i)
8589
8607
  message.licenses[i] = String(object.licenses[i]);
8590
8608
  }
8609
+ if (object.present != null)
8610
+ message.present = Boolean(object.present);
8591
8611
  return message;
8592
8612
  };
8593
8613
 
@@ -8613,6 +8633,7 @@
8613
8633
  object.name = "";
8614
8634
  object.description = "";
8615
8635
  object.version = "";
8636
+ object.present = false;
8616
8637
  }
8617
8638
  if (message.name != null && message.hasOwnProperty("name"))
8618
8639
  object.name = message.name;
@@ -8635,6 +8656,8 @@
8635
8656
  for (var j = 0; j < message.licenses.length; ++j)
8636
8657
  object.licenses[j] = message.licenses[j];
8637
8658
  }
8659
+ if (message.present != null && message.hasOwnProperty("present"))
8660
+ object.present = message.present;
8638
8661
  return object;
8639
8662
  };
8640
8663
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "author": "eng@replit.com",