@replit/protocol 0.2.92 → 0.2.94

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
@@ -20243,6 +20243,18 @@ export namespace replit {
20243
20243
 
20244
20244
  /** PackagerOption language */
20245
20245
  language?: (string|null);
20246
+
20247
+ /** PackagerOption packagerFiles */
20248
+ packagerFiles?: (string[]|null);
20249
+
20250
+ /** PackagerOption enabledForHosting */
20251
+ enabledForHosting?: (boolean|null);
20252
+
20253
+ /** PackagerOption packageSearch */
20254
+ packageSearch?: (boolean|null);
20255
+
20256
+ /** PackagerOption guessImports */
20257
+ guessImports?: (boolean|null);
20246
20258
  }
20247
20259
 
20248
20260
  /** Represents a PackagerOption. */
@@ -20263,6 +20275,18 @@ export namespace replit {
20263
20275
  /** PackagerOption language. */
20264
20276
  public language: string;
20265
20277
 
20278
+ /** PackagerOption packagerFiles. */
20279
+ public packagerFiles: string[];
20280
+
20281
+ /** PackagerOption enabledForHosting. */
20282
+ public enabledForHosting: boolean;
20283
+
20284
+ /** PackagerOption packageSearch. */
20285
+ public packageSearch: boolean;
20286
+
20287
+ /** PackagerOption guessImports. */
20288
+ public guessImports: boolean;
20289
+
20266
20290
  /**
20267
20291
  * Creates a new PackagerOption instance using the specified properties.
20268
20292
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -50365,6 +50365,10 @@
50365
50365
  * @property {string|null} [id] PackagerOption id
50366
50366
  * @property {string|null} [name] PackagerOption name
50367
50367
  * @property {string|null} [language] PackagerOption language
50368
+ * @property {Array.<string>|null} [packagerFiles] PackagerOption packagerFiles
50369
+ * @property {boolean|null} [enabledForHosting] PackagerOption enabledForHosting
50370
+ * @property {boolean|null} [packageSearch] PackagerOption packageSearch
50371
+ * @property {boolean|null} [guessImports] PackagerOption guessImports
50368
50372
  */
50369
50373
 
50370
50374
  /**
@@ -50375,6 +50379,7 @@
50375
50379
  * @param {replit.goval.api.IPackagerOption=} [properties] Properties to set
50376
50380
  */
50377
50381
  function PackagerOption(properties) {
50382
+ this.packagerFiles = [];
50378
50383
  if (properties)
50379
50384
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50380
50385
  if (properties[keys[i]] != null)
@@ -50405,6 +50410,38 @@
50405
50410
  */
50406
50411
  PackagerOption.prototype.language = "";
50407
50412
 
50413
+ /**
50414
+ * PackagerOption packagerFiles.
50415
+ * @member {Array.<string>} packagerFiles
50416
+ * @memberof replit.goval.api.PackagerOption
50417
+ * @instance
50418
+ */
50419
+ PackagerOption.prototype.packagerFiles = $util.emptyArray;
50420
+
50421
+ /**
50422
+ * PackagerOption enabledForHosting.
50423
+ * @member {boolean} enabledForHosting
50424
+ * @memberof replit.goval.api.PackagerOption
50425
+ * @instance
50426
+ */
50427
+ PackagerOption.prototype.enabledForHosting = false;
50428
+
50429
+ /**
50430
+ * PackagerOption packageSearch.
50431
+ * @member {boolean} packageSearch
50432
+ * @memberof replit.goval.api.PackagerOption
50433
+ * @instance
50434
+ */
50435
+ PackagerOption.prototype.packageSearch = false;
50436
+
50437
+ /**
50438
+ * PackagerOption guessImports.
50439
+ * @member {boolean} guessImports
50440
+ * @memberof replit.goval.api.PackagerOption
50441
+ * @instance
50442
+ */
50443
+ PackagerOption.prototype.guessImports = false;
50444
+
50408
50445
  /**
50409
50446
  * Creates a new PackagerOption instance using the specified properties.
50410
50447
  * @function create
@@ -50435,6 +50472,15 @@
50435
50472
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
50436
50473
  if (message.language != null && Object.hasOwnProperty.call(message, "language"))
50437
50474
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.language);
50475
+ if (message.packagerFiles != null && message.packagerFiles.length)
50476
+ for (var i = 0; i < message.packagerFiles.length; ++i)
50477
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.packagerFiles[i]);
50478
+ if (message.enabledForHosting != null && Object.hasOwnProperty.call(message, "enabledForHosting"))
50479
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enabledForHosting);
50480
+ if (message.packageSearch != null && Object.hasOwnProperty.call(message, "packageSearch"))
50481
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.packageSearch);
50482
+ if (message.guessImports != null && Object.hasOwnProperty.call(message, "guessImports"))
50483
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.guessImports);
50438
50484
  return writer;
50439
50485
  };
50440
50486
 
@@ -50478,6 +50524,20 @@
50478
50524
  case 3:
50479
50525
  message.language = reader.string();
50480
50526
  break;
50527
+ case 4:
50528
+ if (!(message.packagerFiles && message.packagerFiles.length))
50529
+ message.packagerFiles = [];
50530
+ message.packagerFiles.push(reader.string());
50531
+ break;
50532
+ case 5:
50533
+ message.enabledForHosting = reader.bool();
50534
+ break;
50535
+ case 6:
50536
+ message.packageSearch = reader.bool();
50537
+ break;
50538
+ case 7:
50539
+ message.guessImports = reader.bool();
50540
+ break;
50481
50541
  default:
50482
50542
  reader.skipType(tag & 7);
50483
50543
  break;
@@ -50522,6 +50582,22 @@
50522
50582
  if (message.language != null && message.hasOwnProperty("language"))
50523
50583
  if (!$util.isString(message.language))
50524
50584
  return "language: string expected";
50585
+ if (message.packagerFiles != null && message.hasOwnProperty("packagerFiles")) {
50586
+ if (!Array.isArray(message.packagerFiles))
50587
+ return "packagerFiles: array expected";
50588
+ for (var i = 0; i < message.packagerFiles.length; ++i)
50589
+ if (!$util.isString(message.packagerFiles[i]))
50590
+ return "packagerFiles: string[] expected";
50591
+ }
50592
+ if (message.enabledForHosting != null && message.hasOwnProperty("enabledForHosting"))
50593
+ if (typeof message.enabledForHosting !== "boolean")
50594
+ return "enabledForHosting: boolean expected";
50595
+ if (message.packageSearch != null && message.hasOwnProperty("packageSearch"))
50596
+ if (typeof message.packageSearch !== "boolean")
50597
+ return "packageSearch: boolean expected";
50598
+ if (message.guessImports != null && message.hasOwnProperty("guessImports"))
50599
+ if (typeof message.guessImports !== "boolean")
50600
+ return "guessImports: boolean expected";
50525
50601
  return null;
50526
50602
  };
50527
50603
 
@@ -50543,6 +50619,19 @@
50543
50619
  message.name = String(object.name);
50544
50620
  if (object.language != null)
50545
50621
  message.language = String(object.language);
50622
+ if (object.packagerFiles) {
50623
+ if (!Array.isArray(object.packagerFiles))
50624
+ throw TypeError(".replit.goval.api.PackagerOption.packagerFiles: array expected");
50625
+ message.packagerFiles = [];
50626
+ for (var i = 0; i < object.packagerFiles.length; ++i)
50627
+ message.packagerFiles[i] = String(object.packagerFiles[i]);
50628
+ }
50629
+ if (object.enabledForHosting != null)
50630
+ message.enabledForHosting = Boolean(object.enabledForHosting);
50631
+ if (object.packageSearch != null)
50632
+ message.packageSearch = Boolean(object.packageSearch);
50633
+ if (object.guessImports != null)
50634
+ message.guessImports = Boolean(object.guessImports);
50546
50635
  return message;
50547
50636
  };
50548
50637
 
@@ -50559,10 +50648,15 @@
50559
50648
  if (!options)
50560
50649
  options = {};
50561
50650
  var object = {};
50651
+ if (options.arrays || options.defaults)
50652
+ object.packagerFiles = [];
50562
50653
  if (options.defaults) {
50563
50654
  object.id = "";
50564
50655
  object.name = "";
50565
50656
  object.language = "";
50657
+ object.enabledForHosting = false;
50658
+ object.packageSearch = false;
50659
+ object.guessImports = false;
50566
50660
  }
50567
50661
  if (message.id != null && message.hasOwnProperty("id"))
50568
50662
  object.id = message.id;
@@ -50570,6 +50664,17 @@
50570
50664
  object.name = message.name;
50571
50665
  if (message.language != null && message.hasOwnProperty("language"))
50572
50666
  object.language = message.language;
50667
+ if (message.packagerFiles && message.packagerFiles.length) {
50668
+ object.packagerFiles = [];
50669
+ for (var j = 0; j < message.packagerFiles.length; ++j)
50670
+ object.packagerFiles[j] = message.packagerFiles[j];
50671
+ }
50672
+ if (message.enabledForHosting != null && message.hasOwnProperty("enabledForHosting"))
50673
+ object.enabledForHosting = message.enabledForHosting;
50674
+ if (message.packageSearch != null && message.hasOwnProperty("packageSearch"))
50675
+ object.packageSearch = message.packageSearch;
50676
+ if (message.guessImports != null && message.hasOwnProperty("guessImports"))
50677
+ object.guessImports = message.guessImports;
50573
50678
  return object;
50574
50679
  };
50575
50680
 
@@ -28873,6 +28873,26 @@ declare type replit$goval$api$IPackagerOption = {|
28873
28873
  * PackagerOption language
28874
28874
  */
28875
28875
  language?: string | null,
28876
+
28877
+ /**
28878
+ * PackagerOption packagerFiles
28879
+ */
28880
+ packagerFiles?: string[] | null,
28881
+
28882
+ /**
28883
+ * PackagerOption enabledForHosting
28884
+ */
28885
+ enabledForHosting?: boolean | null,
28886
+
28887
+ /**
28888
+ * PackagerOption packageSearch
28889
+ */
28890
+ packageSearch?: boolean | null,
28891
+
28892
+ /**
28893
+ * PackagerOption guessImports
28894
+ */
28895
+ guessImports?: boolean | null,
28876
28896
  |};
28877
28897
 
28878
28898
  /**
@@ -28900,6 +28920,26 @@ declare class replit$goval$api$PackagerOption {
28900
28920
  */
28901
28921
  language: string;
28902
28922
 
28923
+ /**
28924
+ * PackagerOption packagerFiles.
28925
+ */
28926
+ packagerFiles: string[];
28927
+
28928
+ /**
28929
+ * PackagerOption enabledForHosting.
28930
+ */
28931
+ enabledForHosting: boolean;
28932
+
28933
+ /**
28934
+ * PackagerOption packageSearch.
28935
+ */
28936
+ packageSearch: boolean;
28937
+
28938
+ /**
28939
+ * PackagerOption guessImports.
28940
+ */
28941
+ guessImports: boolean;
28942
+
28903
28943
  /**
28904
28944
  * Creates a new PackagerOption instance using the specified properties.
28905
28945
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.92",
3
+ "version": "0.2.94",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",