@replit/protocol 0.2.44 → 0.2.45
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/iotester/index.d.ts +6 -0
- package/iotester/index.js +24 -1
- package/iotester/index.js.flow +10 -0
- package/package.json +1 -1
package/iotester/index.d.ts
CHANGED
|
@@ -889,6 +889,9 @@ export namespace api {
|
|
|
889
889
|
|
|
890
890
|
/** MatchMatchOptions expected */
|
|
891
891
|
expected?: (string|null);
|
|
892
|
+
|
|
893
|
+
/** MatchMatchOptions ignoreTrailingWhitespace */
|
|
894
|
+
ignoreTrailingWhitespace?: (boolean|null);
|
|
892
895
|
}
|
|
893
896
|
|
|
894
897
|
/** Represents a MatchMatchOptions. */
|
|
@@ -903,6 +906,9 @@ export namespace api {
|
|
|
903
906
|
/** MatchMatchOptions expected. */
|
|
904
907
|
public expected: string;
|
|
905
908
|
|
|
909
|
+
/** MatchMatchOptions ignoreTrailingWhitespace. */
|
|
910
|
+
public ignoreTrailingWhitespace: boolean;
|
|
911
|
+
|
|
906
912
|
/**
|
|
907
913
|
* Creates a new MatchMatchOptions instance using the specified properties.
|
|
908
914
|
* @param [properties] Properties to set
|
package/iotester/index.js
CHANGED
|
@@ -2164,6 +2164,7 @@
|
|
|
2164
2164
|
* @memberof api
|
|
2165
2165
|
* @interface IMatchMatchOptions
|
|
2166
2166
|
* @property {string|null} [expected] MatchMatchOptions expected
|
|
2167
|
+
* @property {boolean|null} [ignoreTrailingWhitespace] MatchMatchOptions ignoreTrailingWhitespace
|
|
2167
2168
|
*/
|
|
2168
2169
|
|
|
2169
2170
|
/**
|
|
@@ -2188,6 +2189,14 @@
|
|
|
2188
2189
|
*/
|
|
2189
2190
|
MatchMatchOptions.prototype.expected = "";
|
|
2190
2191
|
|
|
2192
|
+
/**
|
|
2193
|
+
* MatchMatchOptions ignoreTrailingWhitespace.
|
|
2194
|
+
* @member {boolean} ignoreTrailingWhitespace
|
|
2195
|
+
* @memberof api.MatchMatchOptions
|
|
2196
|
+
* @instance
|
|
2197
|
+
*/
|
|
2198
|
+
MatchMatchOptions.prototype.ignoreTrailingWhitespace = false;
|
|
2199
|
+
|
|
2191
2200
|
/**
|
|
2192
2201
|
* Creates a new MatchMatchOptions instance using the specified properties.
|
|
2193
2202
|
* @function create
|
|
@@ -2214,6 +2223,8 @@
|
|
|
2214
2223
|
writer = $Writer.create();
|
|
2215
2224
|
if (message.expected != null && Object.hasOwnProperty.call(message, "expected"))
|
|
2216
2225
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.expected);
|
|
2226
|
+
if (message.ignoreTrailingWhitespace != null && Object.hasOwnProperty.call(message, "ignoreTrailingWhitespace"))
|
|
2227
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ignoreTrailingWhitespace);
|
|
2217
2228
|
return writer;
|
|
2218
2229
|
};
|
|
2219
2230
|
|
|
@@ -2251,6 +2262,9 @@
|
|
|
2251
2262
|
case 1:
|
|
2252
2263
|
message.expected = reader.string();
|
|
2253
2264
|
break;
|
|
2265
|
+
case 2:
|
|
2266
|
+
message.ignoreTrailingWhitespace = reader.bool();
|
|
2267
|
+
break;
|
|
2254
2268
|
default:
|
|
2255
2269
|
reader.skipType(tag & 7);
|
|
2256
2270
|
break;
|
|
@@ -2289,6 +2303,9 @@
|
|
|
2289
2303
|
if (message.expected != null && message.hasOwnProperty("expected"))
|
|
2290
2304
|
if (!$util.isString(message.expected))
|
|
2291
2305
|
return "expected: string expected";
|
|
2306
|
+
if (message.ignoreTrailingWhitespace != null && message.hasOwnProperty("ignoreTrailingWhitespace"))
|
|
2307
|
+
if (typeof message.ignoreTrailingWhitespace !== "boolean")
|
|
2308
|
+
return "ignoreTrailingWhitespace: boolean expected";
|
|
2292
2309
|
return null;
|
|
2293
2310
|
};
|
|
2294
2311
|
|
|
@@ -2306,6 +2323,8 @@
|
|
|
2306
2323
|
var message = new $root.api.MatchMatchOptions();
|
|
2307
2324
|
if (object.expected != null)
|
|
2308
2325
|
message.expected = String(object.expected);
|
|
2326
|
+
if (object.ignoreTrailingWhitespace != null)
|
|
2327
|
+
message.ignoreTrailingWhitespace = Boolean(object.ignoreTrailingWhitespace);
|
|
2309
2328
|
return message;
|
|
2310
2329
|
};
|
|
2311
2330
|
|
|
@@ -2322,10 +2341,14 @@
|
|
|
2322
2341
|
if (!options)
|
|
2323
2342
|
options = {};
|
|
2324
2343
|
var object = {};
|
|
2325
|
-
if (options.defaults)
|
|
2344
|
+
if (options.defaults) {
|
|
2326
2345
|
object.expected = "";
|
|
2346
|
+
object.ignoreTrailingWhitespace = false;
|
|
2347
|
+
}
|
|
2327
2348
|
if (message.expected != null && message.hasOwnProperty("expected"))
|
|
2328
2349
|
object.expected = message.expected;
|
|
2350
|
+
if (message.ignoreTrailingWhitespace != null && message.hasOwnProperty("ignoreTrailingWhitespace"))
|
|
2351
|
+
object.ignoreTrailingWhitespace = message.ignoreTrailingWhitespace;
|
|
2329
2352
|
return object;
|
|
2330
2353
|
};
|
|
2331
2354
|
|
package/iotester/index.js.flow
CHANGED
|
@@ -1228,6 +1228,11 @@ declare type api$IMatchMatchOptions = {|
|
|
|
1228
1228
|
* MatchMatchOptions expected
|
|
1229
1229
|
*/
|
|
1230
1230
|
expected?: string | null,
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* MatchMatchOptions ignoreTrailingWhitespace
|
|
1234
|
+
*/
|
|
1235
|
+
ignoreTrailingWhitespace?: boolean | null,
|
|
1231
1236
|
|};
|
|
1232
1237
|
|
|
1233
1238
|
/**
|
|
@@ -1245,6 +1250,11 @@ declare class api$MatchMatchOptions {
|
|
|
1245
1250
|
*/
|
|
1246
1251
|
expected: string;
|
|
1247
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* MatchMatchOptions ignoreTrailingWhitespace.
|
|
1255
|
+
*/
|
|
1256
|
+
ignoreTrailingWhitespace: boolean;
|
|
1257
|
+
|
|
1248
1258
|
/**
|
|
1249
1259
|
* Creates a new MatchMatchOptions instance using the specified properties.
|
|
1250
1260
|
* @param [properties] Properties to set
|