@replit/protocol 0.2.93 → 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
@@ -20141,9 +20141,6 @@ export namespace replit {
20141
20141
 
20142
20142
  /** FileTypeAttrs filePattern */
20143
20143
  filePattern?: (string|null);
20144
-
20145
- /** FileTypeAttrs fileGlobPattern */
20146
- fileGlobPattern?: (string|null);
20147
20144
  }
20148
20145
 
20149
20146
  /** Represents a FileTypeAttrs. */
@@ -20164,9 +20161,6 @@ export namespace replit {
20164
20161
  /** FileTypeAttrs filePattern. */
20165
20162
  public filePattern: string;
20166
20163
 
20167
- /** FileTypeAttrs fileGlobPattern. */
20168
- public fileGlobPattern: string;
20169
-
20170
20164
  /**
20171
20165
  * Creates a new FileTypeAttrs instance using the specified properties.
20172
20166
  * @param [properties] Properties to set
@@ -20249,6 +20243,18 @@ export namespace replit {
20249
20243
 
20250
20244
  /** PackagerOption language */
20251
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);
20252
20258
  }
20253
20259
 
20254
20260
  /** Represents a PackagerOption. */
@@ -20269,6 +20275,18 @@ export namespace replit {
20269
20275
  /** PackagerOption language. */
20270
20276
  public language: string;
20271
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
+
20272
20290
  /**
20273
20291
  * Creates a new PackagerOption instance using the specified properties.
20274
20292
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -50101,7 +50101,6 @@
50101
50101
  * @property {Array.<string>|null} [extensions] FileTypeAttrs extensions
50102
50102
  * @property {Array.<string>|null} [files] FileTypeAttrs files
50103
50103
  * @property {string|null} [filePattern] FileTypeAttrs filePattern
50104
- * @property {string|null} [fileGlobPattern] FileTypeAttrs fileGlobPattern
50105
50104
  */
50106
50105
 
50107
50106
  /**
@@ -50144,14 +50143,6 @@
50144
50143
  */
50145
50144
  FileTypeAttrs.prototype.filePattern = "";
50146
50145
 
50147
- /**
50148
- * FileTypeAttrs fileGlobPattern.
50149
- * @member {string} fileGlobPattern
50150
- * @memberof replit.goval.api.FileTypeAttrs
50151
- * @instance
50152
- */
50153
- FileTypeAttrs.prototype.fileGlobPattern = "";
50154
-
50155
50146
  /**
50156
50147
  * Creates a new FileTypeAttrs instance using the specified properties.
50157
50148
  * @function create
@@ -50184,8 +50175,6 @@
50184
50175
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.files[i]);
50185
50176
  if (message.filePattern != null && Object.hasOwnProperty.call(message, "filePattern"))
50186
50177
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.filePattern);
50187
- if (message.fileGlobPattern != null && Object.hasOwnProperty.call(message, "fileGlobPattern"))
50188
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.fileGlobPattern);
50189
50178
  return writer;
50190
50179
  };
50191
50180
 
@@ -50233,9 +50222,6 @@
50233
50222
  case 3:
50234
50223
  message.filePattern = reader.string();
50235
50224
  break;
50236
- case 4:
50237
- message.fileGlobPattern = reader.string();
50238
- break;
50239
50225
  default:
50240
50226
  reader.skipType(tag & 7);
50241
50227
  break;
@@ -50288,9 +50274,6 @@
50288
50274
  if (message.filePattern != null && message.hasOwnProperty("filePattern"))
50289
50275
  if (!$util.isString(message.filePattern))
50290
50276
  return "filePattern: string expected";
50291
- if (message.fileGlobPattern != null && message.hasOwnProperty("fileGlobPattern"))
50292
- if (!$util.isString(message.fileGlobPattern))
50293
- return "fileGlobPattern: string expected";
50294
50277
  return null;
50295
50278
  };
50296
50279
 
@@ -50322,8 +50305,6 @@
50322
50305
  }
50323
50306
  if (object.filePattern != null)
50324
50307
  message.filePattern = String(object.filePattern);
50325
- if (object.fileGlobPattern != null)
50326
- message.fileGlobPattern = String(object.fileGlobPattern);
50327
50308
  return message;
50328
50309
  };
50329
50310
 
@@ -50344,10 +50325,8 @@
50344
50325
  object.extensions = [];
50345
50326
  object.files = [];
50346
50327
  }
50347
- if (options.defaults) {
50328
+ if (options.defaults)
50348
50329
  object.filePattern = "";
50349
- object.fileGlobPattern = "";
50350
- }
50351
50330
  if (message.extensions && message.extensions.length) {
50352
50331
  object.extensions = [];
50353
50332
  for (var j = 0; j < message.extensions.length; ++j)
@@ -50360,8 +50339,6 @@
50360
50339
  }
50361
50340
  if (message.filePattern != null && message.hasOwnProperty("filePattern"))
50362
50341
  object.filePattern = message.filePattern;
50363
- if (message.fileGlobPattern != null && message.hasOwnProperty("fileGlobPattern"))
50364
- object.fileGlobPattern = message.fileGlobPattern;
50365
50342
  return object;
50366
50343
  };
50367
50344
 
@@ -50388,6 +50365,10 @@
50388
50365
  * @property {string|null} [id] PackagerOption id
50389
50366
  * @property {string|null} [name] PackagerOption name
50390
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
50391
50372
  */
50392
50373
 
50393
50374
  /**
@@ -50398,6 +50379,7 @@
50398
50379
  * @param {replit.goval.api.IPackagerOption=} [properties] Properties to set
50399
50380
  */
50400
50381
  function PackagerOption(properties) {
50382
+ this.packagerFiles = [];
50401
50383
  if (properties)
50402
50384
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50403
50385
  if (properties[keys[i]] != null)
@@ -50428,6 +50410,38 @@
50428
50410
  */
50429
50411
  PackagerOption.prototype.language = "";
50430
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
+
50431
50445
  /**
50432
50446
  * Creates a new PackagerOption instance using the specified properties.
50433
50447
  * @function create
@@ -50458,6 +50472,15 @@
50458
50472
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
50459
50473
  if (message.language != null && Object.hasOwnProperty.call(message, "language"))
50460
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);
50461
50484
  return writer;
50462
50485
  };
50463
50486
 
@@ -50501,6 +50524,20 @@
50501
50524
  case 3:
50502
50525
  message.language = reader.string();
50503
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;
50504
50541
  default:
50505
50542
  reader.skipType(tag & 7);
50506
50543
  break;
@@ -50545,6 +50582,22 @@
50545
50582
  if (message.language != null && message.hasOwnProperty("language"))
50546
50583
  if (!$util.isString(message.language))
50547
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";
50548
50601
  return null;
50549
50602
  };
50550
50603
 
@@ -50566,6 +50619,19 @@
50566
50619
  message.name = String(object.name);
50567
50620
  if (object.language != null)
50568
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);
50569
50635
  return message;
50570
50636
  };
50571
50637
 
@@ -50582,10 +50648,15 @@
50582
50648
  if (!options)
50583
50649
  options = {};
50584
50650
  var object = {};
50651
+ if (options.arrays || options.defaults)
50652
+ object.packagerFiles = [];
50585
50653
  if (options.defaults) {
50586
50654
  object.id = "";
50587
50655
  object.name = "";
50588
50656
  object.language = "";
50657
+ object.enabledForHosting = false;
50658
+ object.packageSearch = false;
50659
+ object.guessImports = false;
50589
50660
  }
50590
50661
  if (message.id != null && message.hasOwnProperty("id"))
50591
50662
  object.id = message.id;
@@ -50593,6 +50664,17 @@
50593
50664
  object.name = message.name;
50594
50665
  if (message.language != null && message.hasOwnProperty("language"))
50595
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;
50596
50678
  return object;
50597
50679
  };
50598
50680
 
@@ -28733,11 +28733,6 @@ declare type replit$goval$api$IFileTypeAttrs = {|
28733
28733
  * FileTypeAttrs filePattern
28734
28734
  */
28735
28735
  filePattern?: string | null,
28736
-
28737
- /**
28738
- * FileTypeAttrs fileGlobPattern
28739
- */
28740
- fileGlobPattern?: string | null,
28741
28736
  |};
28742
28737
 
28743
28738
  /**
@@ -28765,11 +28760,6 @@ declare class replit$goval$api$FileTypeAttrs {
28765
28760
  */
28766
28761
  filePattern: string;
28767
28762
 
28768
- /**
28769
- * FileTypeAttrs fileGlobPattern.
28770
- */
28771
- fileGlobPattern: string;
28772
-
28773
28763
  /**
28774
28764
  * Creates a new FileTypeAttrs instance using the specified properties.
28775
28765
  * @param [properties] Properties to set
@@ -28883,6 +28873,26 @@ declare type replit$goval$api$IPackagerOption = {|
28883
28873
  * PackagerOption language
28884
28874
  */
28885
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,
28886
28896
  |};
28887
28897
 
28888
28898
  /**
@@ -28910,6 +28920,26 @@ declare class replit$goval$api$PackagerOption {
28910
28920
  */
28911
28921
  language: string;
28912
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
+
28913
28943
  /**
28914
28944
  * Creates a new PackagerOption instance using the specified properties.
28915
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.93",
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",