@replit/protocol 0.3.25 → 0.3.26
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 +115 -0
- package/main/index.js +298 -0
- package/main/index.js.flow +161 -0
- package/package.json +2 -2
package/main/index.d.ts
CHANGED
|
@@ -21728,6 +21728,9 @@ export namespace replit {
|
|
|
21728
21728
|
|
|
21729
21729
|
/** ToolchainConfigs packagers */
|
|
21730
21730
|
packagers?: ((replit.goval.api.PackagerOption|replit.goval.api.IPackagerOption)[]|null);
|
|
21731
|
+
|
|
21732
|
+
/** ToolchainConfigs formatters */
|
|
21733
|
+
formatters?: ((replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption)[]|null);
|
|
21731
21734
|
}
|
|
21732
21735
|
|
|
21733
21736
|
/** Represents a ToolchainConfigs. */
|
|
@@ -21754,6 +21757,9 @@ export namespace replit {
|
|
|
21754
21757
|
/** ToolchainConfigs packagers. */
|
|
21755
21758
|
public packagers: replit.goval.api.PackagerOption[];
|
|
21756
21759
|
|
|
21760
|
+
/** ToolchainConfigs formatters. */
|
|
21761
|
+
public formatters: replit.goval.api.FormatterOption[];
|
|
21762
|
+
|
|
21757
21763
|
/**
|
|
21758
21764
|
* Creates a new ToolchainConfigs instance using the specified properties.
|
|
21759
21765
|
* @param [properties] Properties to set
|
|
@@ -22643,6 +22649,115 @@ export namespace replit {
|
|
|
22643
22649
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22644
22650
|
}
|
|
22645
22651
|
|
|
22652
|
+
/** Properties of a FormatterOption. */
|
|
22653
|
+
interface IFormatterOption {
|
|
22654
|
+
|
|
22655
|
+
/** FormatterOption id */
|
|
22656
|
+
id?: (string|null);
|
|
22657
|
+
|
|
22658
|
+
/** FormatterOption name */
|
|
22659
|
+
name?: (string|null);
|
|
22660
|
+
|
|
22661
|
+
/** FormatterOption startCommand */
|
|
22662
|
+
startCommand?: (replit.goval.api.Exec|replit.goval.api.IExec|null);
|
|
22663
|
+
}
|
|
22664
|
+
|
|
22665
|
+
/** Represents a FormatterOption. */
|
|
22666
|
+
class FormatterOption {
|
|
22667
|
+
|
|
22668
|
+
/**
|
|
22669
|
+
* Constructs a new FormatterOption.
|
|
22670
|
+
* @param [properties] Properties to set
|
|
22671
|
+
*/
|
|
22672
|
+
private constructor(properties?: replit.goval.api.IFormatterOption);
|
|
22673
|
+
|
|
22674
|
+
/** FormatterOption id. */
|
|
22675
|
+
public id: string;
|
|
22676
|
+
|
|
22677
|
+
/** FormatterOption name. */
|
|
22678
|
+
public name: string;
|
|
22679
|
+
|
|
22680
|
+
/** FormatterOption startCommand. */
|
|
22681
|
+
public startCommand?: (replit.goval.api.Exec|null);
|
|
22682
|
+
|
|
22683
|
+
/**
|
|
22684
|
+
* Creates a new FormatterOption instance using the specified properties.
|
|
22685
|
+
* @param [properties] Properties to set
|
|
22686
|
+
* @returns FormatterOption instance
|
|
22687
|
+
*/
|
|
22688
|
+
public static create(properties?: replit.goval.api.IFormatterOption): replit.goval.api.FormatterOption;
|
|
22689
|
+
|
|
22690
|
+
/**
|
|
22691
|
+
* Encodes the specified FormatterOption message. Does not implicitly {@link replit.goval.api.FormatterOption.verify|verify} messages.
|
|
22692
|
+
* @param message FormatterOption message or plain object to encode
|
|
22693
|
+
* @param [writer] Writer to encode to
|
|
22694
|
+
* @returns Writer
|
|
22695
|
+
*/
|
|
22696
|
+
public static encode(message: replit.goval.api.FormatterOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22697
|
+
|
|
22698
|
+
/**
|
|
22699
|
+
* Encodes the specified FormatterOption message, length delimited. Does not implicitly {@link replit.goval.api.FormatterOption.verify|verify} messages.
|
|
22700
|
+
* @param message FormatterOption message or plain object to encode
|
|
22701
|
+
* @param [writer] Writer to encode to
|
|
22702
|
+
* @returns Writer
|
|
22703
|
+
*/
|
|
22704
|
+
public static encodeDelimited(message: replit.goval.api.FormatterOption, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22705
|
+
|
|
22706
|
+
/**
|
|
22707
|
+
* Decodes a FormatterOption message from the specified reader or buffer.
|
|
22708
|
+
* @param reader Reader or buffer to decode from
|
|
22709
|
+
* @param [length] Message length if known beforehand
|
|
22710
|
+
* @returns FormatterOption
|
|
22711
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22712
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22713
|
+
*/
|
|
22714
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.FormatterOption;
|
|
22715
|
+
|
|
22716
|
+
/**
|
|
22717
|
+
* Decodes a FormatterOption message from the specified reader or buffer, length delimited.
|
|
22718
|
+
* @param reader Reader or buffer to decode from
|
|
22719
|
+
* @returns FormatterOption
|
|
22720
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22721
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22722
|
+
*/
|
|
22723
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.FormatterOption;
|
|
22724
|
+
|
|
22725
|
+
/**
|
|
22726
|
+
* Verifies a FormatterOption message.
|
|
22727
|
+
* @param message Plain object to verify
|
|
22728
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22729
|
+
*/
|
|
22730
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22731
|
+
|
|
22732
|
+
/**
|
|
22733
|
+
* Creates a FormatterOption message from a plain object. Also converts values to their respective internal types.
|
|
22734
|
+
* @param object Plain object
|
|
22735
|
+
* @returns FormatterOption
|
|
22736
|
+
*/
|
|
22737
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.FormatterOption;
|
|
22738
|
+
|
|
22739
|
+
/**
|
|
22740
|
+
* Creates a plain object from a FormatterOption message. Also converts values to other types if specified.
|
|
22741
|
+
* @param message FormatterOption
|
|
22742
|
+
* @param [options] Conversion options
|
|
22743
|
+
* @returns Plain object
|
|
22744
|
+
*/
|
|
22745
|
+
public static toObject(message: replit.goval.api.FormatterOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22746
|
+
|
|
22747
|
+
/**
|
|
22748
|
+
* Converts this FormatterOption to JSON.
|
|
22749
|
+
* @returns JSON object
|
|
22750
|
+
*/
|
|
22751
|
+
public toJSON(): { [k: string]: any };
|
|
22752
|
+
|
|
22753
|
+
/**
|
|
22754
|
+
* Gets the default type url for FormatterOption
|
|
22755
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22756
|
+
* @returns The default type url
|
|
22757
|
+
*/
|
|
22758
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22759
|
+
}
|
|
22760
|
+
|
|
22646
22761
|
/** Properties of a ReplDomainDoubleDash. */
|
|
22647
22762
|
interface IReplDomainDoubleDash {
|
|
22648
22763
|
|
package/main/index.js
CHANGED
|
@@ -54620,6 +54620,7 @@
|
|
|
54620
54620
|
* @property {Array.<replit.goval.api.DebuggerOption|replit.goval.api.IDebuggerOption>|null} [debuggers] ToolchainConfigs debuggers
|
|
54621
54621
|
* @property {Array.<replit.goval.api.LanguageServerOption|replit.goval.api.ILanguageServerOption>|null} [languageServers] ToolchainConfigs languageServers
|
|
54622
54622
|
* @property {Array.<replit.goval.api.PackagerOption|replit.goval.api.IPackagerOption>|null} [packagers] ToolchainConfigs packagers
|
|
54623
|
+
* @property {Array.<replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption>|null} [formatters] ToolchainConfigs formatters
|
|
54623
54624
|
*/
|
|
54624
54625
|
|
|
54625
54626
|
/**
|
|
@@ -54634,6 +54635,7 @@
|
|
|
54634
54635
|
this.debuggers = [];
|
|
54635
54636
|
this.languageServers = [];
|
|
54636
54637
|
this.packagers = [];
|
|
54638
|
+
this.formatters = [];
|
|
54637
54639
|
if (properties)
|
|
54638
54640
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54639
54641
|
if (properties[keys[i]] != null)
|
|
@@ -54680,6 +54682,14 @@
|
|
|
54680
54682
|
*/
|
|
54681
54683
|
ToolchainConfigs.prototype.packagers = $util.emptyArray;
|
|
54682
54684
|
|
|
54685
|
+
/**
|
|
54686
|
+
* ToolchainConfigs formatters.
|
|
54687
|
+
* @member {Array.<replit.goval.api.FormatterOption>} formatters
|
|
54688
|
+
* @memberof replit.goval.api.ToolchainConfigs
|
|
54689
|
+
* @instance
|
|
54690
|
+
*/
|
|
54691
|
+
ToolchainConfigs.prototype.formatters = $util.emptyArray;
|
|
54692
|
+
|
|
54683
54693
|
/**
|
|
54684
54694
|
* Creates a new ToolchainConfigs instance using the specified properties.
|
|
54685
54695
|
* @function create
|
|
@@ -54718,6 +54728,9 @@
|
|
|
54718
54728
|
if (message.packagers != null && message.packagers.length)
|
|
54719
54729
|
for (var i = 0; i < message.packagers.length; ++i)
|
|
54720
54730
|
$root.replit.goval.api.PackagerOption.encode(message.packagers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
54731
|
+
if (message.formatters != null && message.formatters.length)
|
|
54732
|
+
for (var i = 0; i < message.formatters.length; ++i)
|
|
54733
|
+
$root.replit.goval.api.FormatterOption.encode(message.formatters[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
54721
54734
|
return writer;
|
|
54722
54735
|
};
|
|
54723
54736
|
|
|
@@ -54780,6 +54793,12 @@
|
|
|
54780
54793
|
message.packagers.push($root.replit.goval.api.PackagerOption.decode(reader, reader.uint32()));
|
|
54781
54794
|
break;
|
|
54782
54795
|
}
|
|
54796
|
+
case 6: {
|
|
54797
|
+
if (!(message.formatters && message.formatters.length))
|
|
54798
|
+
message.formatters = [];
|
|
54799
|
+
message.formatters.push($root.replit.goval.api.FormatterOption.decode(reader, reader.uint32()));
|
|
54800
|
+
break;
|
|
54801
|
+
}
|
|
54783
54802
|
default:
|
|
54784
54803
|
reader.skipType(tag & 7);
|
|
54785
54804
|
break;
|
|
@@ -54854,6 +54873,15 @@
|
|
|
54854
54873
|
return "packagers." + error;
|
|
54855
54874
|
}
|
|
54856
54875
|
}
|
|
54876
|
+
if (message.formatters != null && message.hasOwnProperty("formatters")) {
|
|
54877
|
+
if (!Array.isArray(message.formatters))
|
|
54878
|
+
return "formatters: array expected";
|
|
54879
|
+
for (var i = 0; i < message.formatters.length; ++i) {
|
|
54880
|
+
var error = $root.replit.goval.api.FormatterOption.verify(message.formatters[i]);
|
|
54881
|
+
if (error)
|
|
54882
|
+
return "formatters." + error;
|
|
54883
|
+
}
|
|
54884
|
+
}
|
|
54857
54885
|
return null;
|
|
54858
54886
|
};
|
|
54859
54887
|
|
|
@@ -54911,6 +54939,16 @@
|
|
|
54911
54939
|
message.packagers[i] = $root.replit.goval.api.PackagerOption.fromObject(object.packagers[i]);
|
|
54912
54940
|
}
|
|
54913
54941
|
}
|
|
54942
|
+
if (object.formatters) {
|
|
54943
|
+
if (!Array.isArray(object.formatters))
|
|
54944
|
+
throw TypeError(".replit.goval.api.ToolchainConfigs.formatters: array expected");
|
|
54945
|
+
message.formatters = [];
|
|
54946
|
+
for (var i = 0; i < object.formatters.length; ++i) {
|
|
54947
|
+
if (typeof object.formatters[i] !== "object")
|
|
54948
|
+
throw TypeError(".replit.goval.api.ToolchainConfigs.formatters: object expected");
|
|
54949
|
+
message.formatters[i] = $root.replit.goval.api.FormatterOption.fromObject(object.formatters[i]);
|
|
54950
|
+
}
|
|
54951
|
+
}
|
|
54914
54952
|
return message;
|
|
54915
54953
|
};
|
|
54916
54954
|
|
|
@@ -54932,6 +54970,7 @@
|
|
|
54932
54970
|
object.debuggers = [];
|
|
54933
54971
|
object.languageServers = [];
|
|
54934
54972
|
object.packagers = [];
|
|
54973
|
+
object.formatters = [];
|
|
54935
54974
|
}
|
|
54936
54975
|
if (options.defaults)
|
|
54937
54976
|
object.entrypoint = "";
|
|
@@ -54957,6 +54996,11 @@
|
|
|
54957
54996
|
for (var j = 0; j < message.packagers.length; ++j)
|
|
54958
54997
|
object.packagers[j] = $root.replit.goval.api.PackagerOption.toObject(message.packagers[j], options);
|
|
54959
54998
|
}
|
|
54999
|
+
if (message.formatters && message.formatters.length) {
|
|
55000
|
+
object.formatters = [];
|
|
55001
|
+
for (var j = 0; j < message.formatters.length; ++j)
|
|
55002
|
+
object.formatters[j] = $root.replit.goval.api.FormatterOption.toObject(message.formatters[j], options);
|
|
55003
|
+
}
|
|
54960
55004
|
return object;
|
|
54961
55005
|
};
|
|
54962
55006
|
|
|
@@ -56994,6 +57038,260 @@
|
|
|
56994
57038
|
return PackagerOption;
|
|
56995
57039
|
})();
|
|
56996
57040
|
|
|
57041
|
+
api.FormatterOption = (function() {
|
|
57042
|
+
|
|
57043
|
+
/**
|
|
57044
|
+
* Properties of a FormatterOption.
|
|
57045
|
+
* @memberof replit.goval.api
|
|
57046
|
+
* @interface IFormatterOption
|
|
57047
|
+
* @property {string|null} [id] FormatterOption id
|
|
57048
|
+
* @property {string|null} [name] FormatterOption name
|
|
57049
|
+
* @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [startCommand] FormatterOption startCommand
|
|
57050
|
+
*/
|
|
57051
|
+
|
|
57052
|
+
/**
|
|
57053
|
+
* Constructs a new FormatterOption.
|
|
57054
|
+
* @memberof replit.goval.api
|
|
57055
|
+
* @classdesc Represents a FormatterOption.
|
|
57056
|
+
* @constructor
|
|
57057
|
+
* @param {replit.goval.api.IFormatterOption=} [properties] Properties to set
|
|
57058
|
+
*/
|
|
57059
|
+
function FormatterOption(properties) {
|
|
57060
|
+
if (properties)
|
|
57061
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57062
|
+
if (properties[keys[i]] != null)
|
|
57063
|
+
this[keys[i]] = properties[keys[i]];
|
|
57064
|
+
}
|
|
57065
|
+
|
|
57066
|
+
/**
|
|
57067
|
+
* FormatterOption id.
|
|
57068
|
+
* @member {string} id
|
|
57069
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57070
|
+
* @instance
|
|
57071
|
+
*/
|
|
57072
|
+
FormatterOption.prototype.id = "";
|
|
57073
|
+
|
|
57074
|
+
/**
|
|
57075
|
+
* FormatterOption name.
|
|
57076
|
+
* @member {string} name
|
|
57077
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57078
|
+
* @instance
|
|
57079
|
+
*/
|
|
57080
|
+
FormatterOption.prototype.name = "";
|
|
57081
|
+
|
|
57082
|
+
/**
|
|
57083
|
+
* FormatterOption startCommand.
|
|
57084
|
+
* @member {replit.goval.api.Exec|null|undefined} startCommand
|
|
57085
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57086
|
+
* @instance
|
|
57087
|
+
*/
|
|
57088
|
+
FormatterOption.prototype.startCommand = null;
|
|
57089
|
+
|
|
57090
|
+
/**
|
|
57091
|
+
* Creates a new FormatterOption instance using the specified properties.
|
|
57092
|
+
* @function create
|
|
57093
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57094
|
+
* @static
|
|
57095
|
+
* @param {replit.goval.api.IFormatterOption=} [properties] Properties to set
|
|
57096
|
+
* @returns {replit.goval.api.FormatterOption} FormatterOption instance
|
|
57097
|
+
*/
|
|
57098
|
+
FormatterOption.create = function create(properties) {
|
|
57099
|
+
return FormatterOption.fromObject(properties);
|
|
57100
|
+
};
|
|
57101
|
+
|
|
57102
|
+
/**
|
|
57103
|
+
* Encodes the specified FormatterOption message. Does not implicitly {@link replit.goval.api.FormatterOption.verify|verify} messages.
|
|
57104
|
+
* @function encode
|
|
57105
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57106
|
+
* @static
|
|
57107
|
+
* @param {replit.goval.api.FormatterOption} message FormatterOption message or plain object to encode
|
|
57108
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57109
|
+
* @returns {$protobuf.Writer} Writer
|
|
57110
|
+
*/
|
|
57111
|
+
FormatterOption.encode = function encode(message, writer) {
|
|
57112
|
+
if (!writer)
|
|
57113
|
+
writer = $Writer.create();
|
|
57114
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
57115
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
57116
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
57117
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
57118
|
+
if (message.startCommand != null && Object.hasOwnProperty.call(message, "startCommand"))
|
|
57119
|
+
$root.replit.goval.api.Exec.encode(message.startCommand, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
57120
|
+
return writer;
|
|
57121
|
+
};
|
|
57122
|
+
|
|
57123
|
+
/**
|
|
57124
|
+
* Encodes the specified FormatterOption message, length delimited. Does not implicitly {@link replit.goval.api.FormatterOption.verify|verify} messages.
|
|
57125
|
+
* @function encodeDelimited
|
|
57126
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57127
|
+
* @static
|
|
57128
|
+
* @param {replit.goval.api.FormatterOption} message FormatterOption message or plain object to encode
|
|
57129
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57130
|
+
* @returns {$protobuf.Writer} Writer
|
|
57131
|
+
*/
|
|
57132
|
+
FormatterOption.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57133
|
+
return this.encode(message, writer).ldelim();
|
|
57134
|
+
};
|
|
57135
|
+
|
|
57136
|
+
/**
|
|
57137
|
+
* Decodes a FormatterOption message from the specified reader or buffer.
|
|
57138
|
+
* @function decode
|
|
57139
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57140
|
+
* @static
|
|
57141
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57142
|
+
* @param {number} [length] Message length if known beforehand
|
|
57143
|
+
* @returns {replit.goval.api.FormatterOption} FormatterOption
|
|
57144
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57145
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57146
|
+
*/
|
|
57147
|
+
FormatterOption.decode = function decode(reader, length) {
|
|
57148
|
+
if (!(reader instanceof $Reader))
|
|
57149
|
+
reader = $Reader.create(reader);
|
|
57150
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FormatterOption();
|
|
57151
|
+
while (reader.pos < end) {
|
|
57152
|
+
var tag = reader.uint32();
|
|
57153
|
+
switch (tag >>> 3) {
|
|
57154
|
+
case 1: {
|
|
57155
|
+
message.id = reader.string();
|
|
57156
|
+
break;
|
|
57157
|
+
}
|
|
57158
|
+
case 2: {
|
|
57159
|
+
message.name = reader.string();
|
|
57160
|
+
break;
|
|
57161
|
+
}
|
|
57162
|
+
case 3: {
|
|
57163
|
+
message.startCommand = $root.replit.goval.api.Exec.decode(reader, reader.uint32());
|
|
57164
|
+
break;
|
|
57165
|
+
}
|
|
57166
|
+
default:
|
|
57167
|
+
reader.skipType(tag & 7);
|
|
57168
|
+
break;
|
|
57169
|
+
}
|
|
57170
|
+
}
|
|
57171
|
+
return message;
|
|
57172
|
+
};
|
|
57173
|
+
|
|
57174
|
+
/**
|
|
57175
|
+
* Decodes a FormatterOption message from the specified reader or buffer, length delimited.
|
|
57176
|
+
* @function decodeDelimited
|
|
57177
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57178
|
+
* @static
|
|
57179
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57180
|
+
* @returns {replit.goval.api.FormatterOption} FormatterOption
|
|
57181
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57182
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57183
|
+
*/
|
|
57184
|
+
FormatterOption.decodeDelimited = function decodeDelimited(reader) {
|
|
57185
|
+
if (!(reader instanceof $Reader))
|
|
57186
|
+
reader = new $Reader(reader);
|
|
57187
|
+
return this.decode(reader, reader.uint32());
|
|
57188
|
+
};
|
|
57189
|
+
|
|
57190
|
+
/**
|
|
57191
|
+
* Verifies a FormatterOption message.
|
|
57192
|
+
* @function verify
|
|
57193
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57194
|
+
* @static
|
|
57195
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
57196
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57197
|
+
*/
|
|
57198
|
+
FormatterOption.verify = function verify(message) {
|
|
57199
|
+
if (typeof message !== "object" || message === null)
|
|
57200
|
+
return "object expected";
|
|
57201
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
57202
|
+
if (!$util.isString(message.id))
|
|
57203
|
+
return "id: string expected";
|
|
57204
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
57205
|
+
if (!$util.isString(message.name))
|
|
57206
|
+
return "name: string expected";
|
|
57207
|
+
if (message.startCommand != null && message.hasOwnProperty("startCommand")) {
|
|
57208
|
+
var error = $root.replit.goval.api.Exec.verify(message.startCommand);
|
|
57209
|
+
if (error)
|
|
57210
|
+
return "startCommand." + error;
|
|
57211
|
+
}
|
|
57212
|
+
return null;
|
|
57213
|
+
};
|
|
57214
|
+
|
|
57215
|
+
/**
|
|
57216
|
+
* Creates a FormatterOption message from a plain object. Also converts values to their respective internal types.
|
|
57217
|
+
* @function fromObject
|
|
57218
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57219
|
+
* @static
|
|
57220
|
+
* @param {Object.<string,*>} object Plain object
|
|
57221
|
+
* @returns {replit.goval.api.FormatterOption} FormatterOption
|
|
57222
|
+
*/
|
|
57223
|
+
FormatterOption.fromObject = function fromObject(object) {
|
|
57224
|
+
if (object instanceof $root.replit.goval.api.FormatterOption)
|
|
57225
|
+
return object;
|
|
57226
|
+
var message = new $root.replit.goval.api.FormatterOption();
|
|
57227
|
+
if (object.id != null)
|
|
57228
|
+
message.id = String(object.id);
|
|
57229
|
+
if (object.name != null)
|
|
57230
|
+
message.name = String(object.name);
|
|
57231
|
+
if (object.startCommand != null) {
|
|
57232
|
+
if (typeof object.startCommand !== "object")
|
|
57233
|
+
throw TypeError(".replit.goval.api.FormatterOption.startCommand: object expected");
|
|
57234
|
+
message.startCommand = $root.replit.goval.api.Exec.fromObject(object.startCommand);
|
|
57235
|
+
}
|
|
57236
|
+
return message;
|
|
57237
|
+
};
|
|
57238
|
+
|
|
57239
|
+
/**
|
|
57240
|
+
* Creates a plain object from a FormatterOption message. Also converts values to other types if specified.
|
|
57241
|
+
* @function toObject
|
|
57242
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57243
|
+
* @static
|
|
57244
|
+
* @param {replit.goval.api.FormatterOption} message FormatterOption
|
|
57245
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
57246
|
+
* @returns {Object.<string,*>} Plain object
|
|
57247
|
+
*/
|
|
57248
|
+
FormatterOption.toObject = function toObject(message, options) {
|
|
57249
|
+
if (!options)
|
|
57250
|
+
options = {};
|
|
57251
|
+
var object = {};
|
|
57252
|
+
if (options.defaults) {
|
|
57253
|
+
object.id = "";
|
|
57254
|
+
object.name = "";
|
|
57255
|
+
object.startCommand = null;
|
|
57256
|
+
}
|
|
57257
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
57258
|
+
object.id = message.id;
|
|
57259
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
57260
|
+
object.name = message.name;
|
|
57261
|
+
if (message.startCommand != null && message.hasOwnProperty("startCommand"))
|
|
57262
|
+
object.startCommand = $root.replit.goval.api.Exec.toObject(message.startCommand, options);
|
|
57263
|
+
return object;
|
|
57264
|
+
};
|
|
57265
|
+
|
|
57266
|
+
/**
|
|
57267
|
+
* Converts this FormatterOption to JSON.
|
|
57268
|
+
* @function toJSON
|
|
57269
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57270
|
+
* @instance
|
|
57271
|
+
* @returns {Object.<string,*>} JSON object
|
|
57272
|
+
*/
|
|
57273
|
+
FormatterOption.prototype.toJSON = function toJSON() {
|
|
57274
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
57275
|
+
};
|
|
57276
|
+
|
|
57277
|
+
/**
|
|
57278
|
+
* Gets the default type url for FormatterOption
|
|
57279
|
+
* @function getTypeUrl
|
|
57280
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57281
|
+
* @static
|
|
57282
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
57283
|
+
* @returns {string} The default type url
|
|
57284
|
+
*/
|
|
57285
|
+
FormatterOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
57286
|
+
if (typeUrlPrefix === undefined) {
|
|
57287
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
57288
|
+
}
|
|
57289
|
+
return typeUrlPrefix + "/replit.goval.api.FormatterOption";
|
|
57290
|
+
};
|
|
57291
|
+
|
|
57292
|
+
return FormatterOption;
|
|
57293
|
+
})();
|
|
57294
|
+
|
|
56997
57295
|
api.ReplDomainDoubleDash = (function() {
|
|
56998
57296
|
|
|
56999
57297
|
/**
|
package/main/index.js.flow
CHANGED
|
@@ -223,6 +223,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
223
223
|
ILanguageServerOption: Class<replit$goval$api$ILanguageServerOption>,
|
|
224
224
|
IFileTypeAttrs: Class<replit$goval$api$IFileTypeAttrs>,
|
|
225
225
|
IPackagerOption: Class<replit$goval$api$IPackagerOption>,
|
|
226
|
+
IFormatterOption: Class<replit$goval$api$IFormatterOption>,
|
|
226
227
|
IReplDomainDoubleDash: Class<replit$goval$api$IReplDomainDoubleDash>,
|
|
227
228
|
IReplDomainDots: Class<replit$goval$api$IReplDomainDots>,
|
|
228
229
|
IReplDomainSingleDomain: Class<replit$goval$api$IReplDomainSingleDomain>,
|
|
@@ -451,6 +452,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
451
452
|
LanguageServerOption: typeof replit$goval$api$LanguageServerOption,
|
|
452
453
|
FileTypeAttrs: typeof replit$goval$api$FileTypeAttrs,
|
|
453
454
|
PackagerOption: typeof replit$goval$api$PackagerOption,
|
|
455
|
+
FormatterOption: typeof replit$goval$api$FormatterOption,
|
|
454
456
|
ReplDomainDoubleDash: typeof replit$goval$api$ReplDomainDoubleDash,
|
|
455
457
|
ReplDomainDots: typeof replit$goval$api$ReplDomainDots,
|
|
456
458
|
ReplDomainSingleDomain: typeof replit$goval$api$ReplDomainSingleDomain,
|
|
@@ -30486,6 +30488,13 @@ declare type replit$goval$api$IToolchainConfigs = {|
|
|
|
30486
30488
|
packagers?:
|
|
30487
30489
|
| (replit$goval$api$PackagerOption | replit$goval$api$IPackagerOption)[]
|
|
30488
30490
|
| null,
|
|
30491
|
+
|
|
30492
|
+
/**
|
|
30493
|
+
* ToolchainConfigs formatters
|
|
30494
|
+
*/
|
|
30495
|
+
formatters?:
|
|
30496
|
+
| (replit$goval$api$FormatterOption | replit$goval$api$IFormatterOption)[]
|
|
30497
|
+
| null,
|
|
30489
30498
|
|};
|
|
30490
30499
|
|
|
30491
30500
|
/**
|
|
@@ -30523,6 +30532,11 @@ declare class replit$goval$api$ToolchainConfigs {
|
|
|
30523
30532
|
*/
|
|
30524
30533
|
packagers: replit$goval$api$PackagerOption[];
|
|
30525
30534
|
|
|
30535
|
+
/**
|
|
30536
|
+
* ToolchainConfigs formatters.
|
|
30537
|
+
*/
|
|
30538
|
+
formatters: replit$goval$api$FormatterOption[];
|
|
30539
|
+
|
|
30526
30540
|
/**
|
|
30527
30541
|
* Creates a new ToolchainConfigs instance using the specified properties.
|
|
30528
30542
|
* @param [properties] Properties to set
|
|
@@ -31752,6 +31766,153 @@ declare class replit$goval$api$PackagerOption {
|
|
|
31752
31766
|
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
31753
31767
|
}
|
|
31754
31768
|
|
|
31769
|
+
/**
|
|
31770
|
+
* Properties of a FormatterOption.
|
|
31771
|
+
*/
|
|
31772
|
+
declare type replit$goval$api$IFormatterOption = {|
|
|
31773
|
+
/**
|
|
31774
|
+
* FormatterOption id
|
|
31775
|
+
*/
|
|
31776
|
+
id?: string | null,
|
|
31777
|
+
|
|
31778
|
+
/**
|
|
31779
|
+
* FormatterOption name
|
|
31780
|
+
*/
|
|
31781
|
+
name?: string | null,
|
|
31782
|
+
|
|
31783
|
+
/**
|
|
31784
|
+
* FormatterOption startCommand
|
|
31785
|
+
*/
|
|
31786
|
+
startCommand?: replit$goval$api$Exec | replit$goval$api$IExec | null,
|
|
31787
|
+
|};
|
|
31788
|
+
|
|
31789
|
+
/**
|
|
31790
|
+
* Represents a FormatterOption.
|
|
31791
|
+
*/
|
|
31792
|
+
declare class replit$goval$api$FormatterOption {
|
|
31793
|
+
/**
|
|
31794
|
+
* Constructs a new FormatterOption.
|
|
31795
|
+
* @param [properties] Properties to set
|
|
31796
|
+
*/
|
|
31797
|
+
constructor(properties?: replit$goval$api$IFormatterOption): this;
|
|
31798
|
+
|
|
31799
|
+
/**
|
|
31800
|
+
* FormatterOption id.
|
|
31801
|
+
*/
|
|
31802
|
+
id: string;
|
|
31803
|
+
|
|
31804
|
+
/**
|
|
31805
|
+
* FormatterOption name.
|
|
31806
|
+
*/
|
|
31807
|
+
name: string;
|
|
31808
|
+
|
|
31809
|
+
/**
|
|
31810
|
+
* FormatterOption startCommand.
|
|
31811
|
+
*/
|
|
31812
|
+
startCommand?: replit$goval$api$Exec | null;
|
|
31813
|
+
|
|
31814
|
+
/**
|
|
31815
|
+
* Creates a new FormatterOption instance using the specified properties.
|
|
31816
|
+
* @param [properties] Properties to set
|
|
31817
|
+
* @returns FormatterOption instance
|
|
31818
|
+
*/
|
|
31819
|
+
static create(
|
|
31820
|
+
properties?: replit$goval$api$IFormatterOption
|
|
31821
|
+
): replit$goval$api$FormatterOption;
|
|
31822
|
+
|
|
31823
|
+
/**
|
|
31824
|
+
* [object Object],[object Object],[object Object]
|
|
31825
|
+
* @param message FormatterOption message or plain object to encode
|
|
31826
|
+
* @param [writer] Writer to encode to
|
|
31827
|
+
* @returns Writer
|
|
31828
|
+
*/
|
|
31829
|
+
static encode(
|
|
31830
|
+
message: replit$goval$api$FormatterOption,
|
|
31831
|
+
writer?: $protobuf.Writer
|
|
31832
|
+
): $protobuf.Writer;
|
|
31833
|
+
|
|
31834
|
+
/**
|
|
31835
|
+
* [object Object],[object Object],[object Object]
|
|
31836
|
+
* @param message FormatterOption message or plain object to encode
|
|
31837
|
+
* @param [writer] Writer to encode to
|
|
31838
|
+
* @returns Writer
|
|
31839
|
+
*/
|
|
31840
|
+
static encodeDelimited(
|
|
31841
|
+
message: replit$goval$api$FormatterOption,
|
|
31842
|
+
writer?: $protobuf.Writer
|
|
31843
|
+
): $protobuf.Writer;
|
|
31844
|
+
|
|
31845
|
+
/**
|
|
31846
|
+
* Decodes a FormatterOption message from the specified reader or buffer.
|
|
31847
|
+
* @param reader Reader or buffer to decode from
|
|
31848
|
+
* @param [length] Message length if known beforehand
|
|
31849
|
+
* @returns FormatterOption
|
|
31850
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31851
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31852
|
+
*/
|
|
31853
|
+
static decode(
|
|
31854
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
31855
|
+
length?: number
|
|
31856
|
+
): replit$goval$api$FormatterOption;
|
|
31857
|
+
|
|
31858
|
+
/**
|
|
31859
|
+
* Decodes a FormatterOption message from the specified reader or buffer, length delimited.
|
|
31860
|
+
* @param reader Reader or buffer to decode from
|
|
31861
|
+
* @returns FormatterOption
|
|
31862
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31863
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31864
|
+
*/
|
|
31865
|
+
static decodeDelimited(
|
|
31866
|
+
reader: $protobuf.Reader | Uint8Array
|
|
31867
|
+
): replit$goval$api$FormatterOption;
|
|
31868
|
+
|
|
31869
|
+
/**
|
|
31870
|
+
* Verifies a FormatterOption message.
|
|
31871
|
+
* @param message Plain object to verify
|
|
31872
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
31873
|
+
*/
|
|
31874
|
+
static verify(message: {|
|
|
31875
|
+
[k: string]: any,
|
|
31876
|
+
|}): string | null;
|
|
31877
|
+
|
|
31878
|
+
/**
|
|
31879
|
+
* Creates a FormatterOption message from a plain object. Also converts values to their respective internal types.
|
|
31880
|
+
* @param object Plain object
|
|
31881
|
+
* @returns FormatterOption
|
|
31882
|
+
*/
|
|
31883
|
+
static fromObject(object: {|
|
|
31884
|
+
[k: string]: any,
|
|
31885
|
+
|}): replit$goval$api$FormatterOption;
|
|
31886
|
+
|
|
31887
|
+
/**
|
|
31888
|
+
* Creates a plain object from a FormatterOption message. Also converts values to other types if specified.
|
|
31889
|
+
* @param message FormatterOption
|
|
31890
|
+
* @param [options] Conversion options
|
|
31891
|
+
* @returns Plain object
|
|
31892
|
+
*/
|
|
31893
|
+
static toObject(
|
|
31894
|
+
message: replit$goval$api$FormatterOption,
|
|
31895
|
+
options?: $protobuf.IConversionOptions
|
|
31896
|
+
): {|
|
|
31897
|
+
[k: string]: any,
|
|
31898
|
+
|};
|
|
31899
|
+
|
|
31900
|
+
/**
|
|
31901
|
+
* Converts this FormatterOption to JSON.
|
|
31902
|
+
* @returns JSON object
|
|
31903
|
+
*/
|
|
31904
|
+
toJSON(): {|
|
|
31905
|
+
[k: string]: any,
|
|
31906
|
+
|};
|
|
31907
|
+
|
|
31908
|
+
/**
|
|
31909
|
+
* Gets the default type url for FormatterOption
|
|
31910
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
31911
|
+
* @returns The default type url
|
|
31912
|
+
*/
|
|
31913
|
+
static getTypeUrl(typeUrlPrefix?: string): string;
|
|
31914
|
+
}
|
|
31915
|
+
|
|
31755
31916
|
/**
|
|
31756
31917
|
* Properties of a ReplDomainDoubleDash.
|
|
31757
31918
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replit/protocol",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "JavaScript bindings for the Replit protocol",
|
|
5
5
|
"main": "main/index.js",
|
|
6
6
|
"repository": "https://github.com/replit/protocol",
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"flowgen": "~1.14.0",
|
|
20
|
-
"protobufjs-cli": "^1.1.
|
|
20
|
+
"protobufjs-cli": "^1.1.1"
|
|
21
21
|
}
|
|
22
22
|
}
|