@replit/protocol 0.2.91 → 0.2.93

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
@@ -20030,6 +20030,9 @@ export namespace replit {
20030
20030
 
20031
20031
  /** LanguageServerOption fileTypeAttrs */
20032
20032
  fileTypeAttrs?: (replit.goval.api.FileTypeAttrs|replit.goval.api.IFileTypeAttrs|null);
20033
+
20034
+ /** LanguageServerOption config */
20035
+ config?: (replit.goval.api.LanguageServerConfig|replit.goval.api.ILanguageServerConfig|null);
20033
20036
  }
20034
20037
 
20035
20038
  /** Represents a LanguageServerOption. */
@@ -20053,6 +20056,9 @@ export namespace replit {
20053
20056
  /** LanguageServerOption fileTypeAttrs. */
20054
20057
  public fileTypeAttrs?: (replit.goval.api.FileTypeAttrs|null);
20055
20058
 
20059
+ /** LanguageServerOption config. */
20060
+ public config?: (replit.goval.api.LanguageServerConfig|null);
20061
+
20056
20062
  /**
20057
20063
  * Creates a new LanguageServerOption instance using the specified properties.
20058
20064
  * @param [properties] Properties to set
@@ -20135,6 +20141,9 @@ export namespace replit {
20135
20141
 
20136
20142
  /** FileTypeAttrs filePattern */
20137
20143
  filePattern?: (string|null);
20144
+
20145
+ /** FileTypeAttrs fileGlobPattern */
20146
+ fileGlobPattern?: (string|null);
20138
20147
  }
20139
20148
 
20140
20149
  /** Represents a FileTypeAttrs. */
@@ -20155,6 +20164,9 @@ export namespace replit {
20155
20164
  /** FileTypeAttrs filePattern. */
20156
20165
  public filePattern: string;
20157
20166
 
20167
+ /** FileTypeAttrs fileGlobPattern. */
20168
+ public fileGlobPattern: string;
20169
+
20158
20170
  /**
20159
20171
  * Creates a new FileTypeAttrs instance using the specified properties.
20160
20172
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -36275,7 +36275,7 @@
36275
36275
  if (message.filePath != null && Object.hasOwnProperty.call(message, "filePath"))
36276
36276
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.filePath);
36277
36277
  if (message.debuggerId != null && Object.hasOwnProperty.call(message, "debuggerId"))
36278
- writer.uint32(/* id 5, wireType 2 =*/42).string(message.debuggerId);
36278
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.debuggerId);
36279
36279
  return writer;
36280
36280
  };
36281
36281
 
@@ -36319,7 +36319,7 @@
36319
36319
  case 3:
36320
36320
  message.filePath = reader.string();
36321
36321
  break;
36322
- case 5:
36322
+ case 4:
36323
36323
  message.debuggerId = reader.string();
36324
36324
  break;
36325
36325
  default:
@@ -49817,6 +49817,7 @@
49817
49817
  * @property {string|null} [name] LanguageServerOption name
49818
49818
  * @property {string|null} [language] LanguageServerOption language
49819
49819
  * @property {replit.goval.api.FileTypeAttrs|replit.goval.api.IFileTypeAttrs|null} [fileTypeAttrs] LanguageServerOption fileTypeAttrs
49820
+ * @property {replit.goval.api.LanguageServerConfig|replit.goval.api.ILanguageServerConfig|null} [config] LanguageServerOption config
49820
49821
  */
49821
49822
 
49822
49823
  /**
@@ -49865,6 +49866,14 @@
49865
49866
  */
49866
49867
  LanguageServerOption.prototype.fileTypeAttrs = null;
49867
49868
 
49869
+ /**
49870
+ * LanguageServerOption config.
49871
+ * @member {replit.goval.api.LanguageServerConfig|null|undefined} config
49872
+ * @memberof replit.goval.api.LanguageServerOption
49873
+ * @instance
49874
+ */
49875
+ LanguageServerOption.prototype.config = null;
49876
+
49868
49877
  /**
49869
49878
  * Creates a new LanguageServerOption instance using the specified properties.
49870
49879
  * @function create
@@ -49896,7 +49905,9 @@
49896
49905
  if (message.language != null && Object.hasOwnProperty.call(message, "language"))
49897
49906
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.language);
49898
49907
  if (message.fileTypeAttrs != null && Object.hasOwnProperty.call(message, "fileTypeAttrs"))
49899
- $root.replit.goval.api.FileTypeAttrs.encode(message.fileTypeAttrs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
49908
+ $root.replit.goval.api.FileTypeAttrs.encode(message.fileTypeAttrs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
49909
+ if (message.config != null && Object.hasOwnProperty.call(message, "config"))
49910
+ $root.replit.goval.api.LanguageServerConfig.encode(message.config, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
49900
49911
  return writer;
49901
49912
  };
49902
49913
 
@@ -49940,9 +49951,12 @@
49940
49951
  case 3:
49941
49952
  message.language = reader.string();
49942
49953
  break;
49943
- case 5:
49954
+ case 4:
49944
49955
  message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.decode(reader, reader.uint32());
49945
49956
  break;
49957
+ case 5:
49958
+ message.config = $root.replit.goval.api.LanguageServerConfig.decode(reader, reader.uint32());
49959
+ break;
49946
49960
  default:
49947
49961
  reader.skipType(tag & 7);
49948
49962
  break;
@@ -49992,6 +50006,11 @@
49992
50006
  if (error)
49993
50007
  return "fileTypeAttrs." + error;
49994
50008
  }
50009
+ if (message.config != null && message.hasOwnProperty("config")) {
50010
+ var error = $root.replit.goval.api.LanguageServerConfig.verify(message.config);
50011
+ if (error)
50012
+ return "config." + error;
50013
+ }
49995
50014
  return null;
49996
50015
  };
49997
50016
 
@@ -50018,6 +50037,11 @@
50018
50037
  throw TypeError(".replit.goval.api.LanguageServerOption.fileTypeAttrs: object expected");
50019
50038
  message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.fromObject(object.fileTypeAttrs);
50020
50039
  }
50040
+ if (object.config != null) {
50041
+ if (typeof object.config !== "object")
50042
+ throw TypeError(".replit.goval.api.LanguageServerOption.config: object expected");
50043
+ message.config = $root.replit.goval.api.LanguageServerConfig.fromObject(object.config);
50044
+ }
50021
50045
  return message;
50022
50046
  };
50023
50047
 
@@ -50039,6 +50063,7 @@
50039
50063
  object.name = "";
50040
50064
  object.language = "";
50041
50065
  object.fileTypeAttrs = null;
50066
+ object.config = null;
50042
50067
  }
50043
50068
  if (message.id != null && message.hasOwnProperty("id"))
50044
50069
  object.id = message.id;
@@ -50048,6 +50073,8 @@
50048
50073
  object.language = message.language;
50049
50074
  if (message.fileTypeAttrs != null && message.hasOwnProperty("fileTypeAttrs"))
50050
50075
  object.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.toObject(message.fileTypeAttrs, options);
50076
+ if (message.config != null && message.hasOwnProperty("config"))
50077
+ object.config = $root.replit.goval.api.LanguageServerConfig.toObject(message.config, options);
50051
50078
  return object;
50052
50079
  };
50053
50080
 
@@ -50074,6 +50101,7 @@
50074
50101
  * @property {Array.<string>|null} [extensions] FileTypeAttrs extensions
50075
50102
  * @property {Array.<string>|null} [files] FileTypeAttrs files
50076
50103
  * @property {string|null} [filePattern] FileTypeAttrs filePattern
50104
+ * @property {string|null} [fileGlobPattern] FileTypeAttrs fileGlobPattern
50077
50105
  */
50078
50106
 
50079
50107
  /**
@@ -50116,6 +50144,14 @@
50116
50144
  */
50117
50145
  FileTypeAttrs.prototype.filePattern = "";
50118
50146
 
50147
+ /**
50148
+ * FileTypeAttrs fileGlobPattern.
50149
+ * @member {string} fileGlobPattern
50150
+ * @memberof replit.goval.api.FileTypeAttrs
50151
+ * @instance
50152
+ */
50153
+ FileTypeAttrs.prototype.fileGlobPattern = "";
50154
+
50119
50155
  /**
50120
50156
  * Creates a new FileTypeAttrs instance using the specified properties.
50121
50157
  * @function create
@@ -50148,6 +50184,8 @@
50148
50184
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.files[i]);
50149
50185
  if (message.filePattern != null && Object.hasOwnProperty.call(message, "filePattern"))
50150
50186
  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);
50151
50189
  return writer;
50152
50190
  };
50153
50191
 
@@ -50195,6 +50233,9 @@
50195
50233
  case 3:
50196
50234
  message.filePattern = reader.string();
50197
50235
  break;
50236
+ case 4:
50237
+ message.fileGlobPattern = reader.string();
50238
+ break;
50198
50239
  default:
50199
50240
  reader.skipType(tag & 7);
50200
50241
  break;
@@ -50247,6 +50288,9 @@
50247
50288
  if (message.filePattern != null && message.hasOwnProperty("filePattern"))
50248
50289
  if (!$util.isString(message.filePattern))
50249
50290
  return "filePattern: string expected";
50291
+ if (message.fileGlobPattern != null && message.hasOwnProperty("fileGlobPattern"))
50292
+ if (!$util.isString(message.fileGlobPattern))
50293
+ return "fileGlobPattern: string expected";
50250
50294
  return null;
50251
50295
  };
50252
50296
 
@@ -50278,6 +50322,8 @@
50278
50322
  }
50279
50323
  if (object.filePattern != null)
50280
50324
  message.filePattern = String(object.filePattern);
50325
+ if (object.fileGlobPattern != null)
50326
+ message.fileGlobPattern = String(object.fileGlobPattern);
50281
50327
  return message;
50282
50328
  };
50283
50329
 
@@ -50298,8 +50344,10 @@
50298
50344
  object.extensions = [];
50299
50345
  object.files = [];
50300
50346
  }
50301
- if (options.defaults)
50347
+ if (options.defaults) {
50302
50348
  object.filePattern = "";
50349
+ object.fileGlobPattern = "";
50350
+ }
50303
50351
  if (message.extensions && message.extensions.length) {
50304
50352
  object.extensions = [];
50305
50353
  for (var j = 0; j < message.extensions.length; ++j)
@@ -50312,6 +50360,8 @@
50312
50360
  }
50313
50361
  if (message.filePattern != null && message.hasOwnProperty("filePattern"))
50314
50362
  object.filePattern = message.filePattern;
50363
+ if (message.fileGlobPattern != null && message.hasOwnProperty("fileGlobPattern"))
50364
+ object.fileGlobPattern = message.fileGlobPattern;
50315
50365
  return object;
50316
50366
  };
50317
50367
 
@@ -28575,6 +28575,14 @@ declare type replit$goval$api$ILanguageServerOption = {|
28575
28575
  | replit$goval$api$FileTypeAttrs
28576
28576
  | replit$goval$api$IFileTypeAttrs
28577
28577
  | null,
28578
+
28579
+ /**
28580
+ * LanguageServerOption config
28581
+ */
28582
+ config?:
28583
+ | replit$goval$api$LanguageServerConfig
28584
+ | replit$goval$api$ILanguageServerConfig
28585
+ | null,
28578
28586
  |};
28579
28587
 
28580
28588
  /**
@@ -28607,6 +28615,11 @@ declare class replit$goval$api$LanguageServerOption {
28607
28615
  */
28608
28616
  fileTypeAttrs?: replit$goval$api$FileTypeAttrs | null;
28609
28617
 
28618
+ /**
28619
+ * LanguageServerOption config.
28620
+ */
28621
+ config?: replit$goval$api$LanguageServerConfig | null;
28622
+
28610
28623
  /**
28611
28624
  * Creates a new LanguageServerOption instance using the specified properties.
28612
28625
  * @param [properties] Properties to set
@@ -28720,6 +28733,11 @@ declare type replit$goval$api$IFileTypeAttrs = {|
28720
28733
  * FileTypeAttrs filePattern
28721
28734
  */
28722
28735
  filePattern?: string | null,
28736
+
28737
+ /**
28738
+ * FileTypeAttrs fileGlobPattern
28739
+ */
28740
+ fileGlobPattern?: string | null,
28723
28741
  |};
28724
28742
 
28725
28743
  /**
@@ -28747,6 +28765,11 @@ declare class replit$goval$api$FileTypeAttrs {
28747
28765
  */
28748
28766
  filePattern: string;
28749
28767
 
28768
+ /**
28769
+ * FileTypeAttrs fileGlobPattern.
28770
+ */
28771
+ fileGlobPattern: string;
28772
+
28750
28773
  /**
28751
28774
  * Creates a new FileTypeAttrs instance using the specified properties.
28752
28775
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.91",
3
+ "version": "0.2.93",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",