@stinkycomputing/sesame-api-client 1.4.1-beta.15 → 1.4.1-beta.16
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/dist/index.browser.mjs +18 -7
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +18 -7
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +18 -7
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +2 -2
- package/dist/proto/api.js +18 -8
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3420,7 +3420,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3420
3420
|
writer.uint32(
|
|
3421
3421
|
/* id 5, wireType 0 =*/
|
|
3422
3422
|
40
|
|
3423
|
-
).
|
|
3423
|
+
).int64(message.intValue);
|
|
3424
3424
|
return writer;
|
|
3425
3425
|
};
|
|
3426
3426
|
PropValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -3452,7 +3452,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3452
3452
|
break;
|
|
3453
3453
|
}
|
|
3454
3454
|
case 5: {
|
|
3455
|
-
message.intValue = reader.
|
|
3455
|
+
message.intValue = reader.int64();
|
|
3456
3456
|
break;
|
|
3457
3457
|
}
|
|
3458
3458
|
default:
|
|
@@ -3504,8 +3504,8 @@ var sesame = $root.sesame = (() => {
|
|
|
3504
3504
|
if (properties.value === 1)
|
|
3505
3505
|
return "value: multiple values";
|
|
3506
3506
|
properties.value = 1;
|
|
3507
|
-
if (!$util.isInteger(message.intValue))
|
|
3508
|
-
return "intValue: integer expected";
|
|
3507
|
+
if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high)))
|
|
3508
|
+
return "intValue: integer|Long expected";
|
|
3509
3509
|
}
|
|
3510
3510
|
return null;
|
|
3511
3511
|
};
|
|
@@ -3524,8 +3524,16 @@ var sesame = $root.sesame = (() => {
|
|
|
3524
3524
|
message.stringValue = String(object.stringValue);
|
|
3525
3525
|
if (object.boolValue != null)
|
|
3526
3526
|
message.boolValue = Boolean(object.boolValue);
|
|
3527
|
-
if (object.intValue != null)
|
|
3528
|
-
|
|
3527
|
+
if (object.intValue != null) {
|
|
3528
|
+
if ($util.Long)
|
|
3529
|
+
(message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false;
|
|
3530
|
+
else if (typeof object.intValue === "string")
|
|
3531
|
+
message.intValue = parseInt(object.intValue, 10);
|
|
3532
|
+
else if (typeof object.intValue === "number")
|
|
3533
|
+
message.intValue = object.intValue;
|
|
3534
|
+
else if (typeof object.intValue === "object")
|
|
3535
|
+
message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber();
|
|
3536
|
+
}
|
|
3529
3537
|
return message;
|
|
3530
3538
|
};
|
|
3531
3539
|
PropValue.toObject = function toObject(message, options) {
|
|
@@ -3553,7 +3561,10 @@ var sesame = $root.sesame = (() => {
|
|
|
3553
3561
|
object.value = "boolValue";
|
|
3554
3562
|
}
|
|
3555
3563
|
if (message.intValue != null && message.hasOwnProperty("intValue")) {
|
|
3556
|
-
|
|
3564
|
+
if (typeof message.intValue === "number")
|
|
3565
|
+
object.intValue = options.longs === String ? String(message.intValue) : message.intValue;
|
|
3566
|
+
else
|
|
3567
|
+
object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue;
|
|
3557
3568
|
if (options.oneofs)
|
|
3558
3569
|
object.value = "intValue";
|
|
3559
3570
|
}
|