@stinkycomputing/sesame-api-client 1.4.1-beta.8 → 1.4.1-beta.9
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 +14 -10
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +14 -10
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +14 -10
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +2 -2
- package/dist/proto/api.js +17 -12
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3742,7 +3742,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3742
3742
|
}
|
|
3743
3743
|
}
|
|
3744
3744
|
NameValue.prototype.name = "";
|
|
3745
|
-
NameValue.prototype.value =
|
|
3745
|
+
NameValue.prototype.value = null;
|
|
3746
3746
|
NameValue.create = function create(properties) {
|
|
3747
3747
|
return new NameValue(properties);
|
|
3748
3748
|
};
|
|
@@ -3755,10 +3755,10 @@ var sesame = $root.sesame = (() => {
|
|
|
3755
3755
|
10
|
|
3756
3756
|
).string(message.name);
|
|
3757
3757
|
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
3758
|
-
writer.uint32(
|
|
3758
|
+
$root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
|
|
3759
3759
|
/* id 2, wireType 2 =*/
|
|
3760
3760
|
18
|
|
3761
|
-
).
|
|
3761
|
+
).fork()).ldelim();
|
|
3762
3762
|
return writer;
|
|
3763
3763
|
};
|
|
3764
3764
|
NameValue.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -3778,7 +3778,7 @@ var sesame = $root.sesame = (() => {
|
|
|
3778
3778
|
break;
|
|
3779
3779
|
}
|
|
3780
3780
|
case 2: {
|
|
3781
|
-
message.value = reader.
|
|
3781
|
+
message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
|
|
3782
3782
|
break;
|
|
3783
3783
|
}
|
|
3784
3784
|
default:
|
|
@@ -3801,8 +3801,9 @@ var sesame = $root.sesame = (() => {
|
|
|
3801
3801
|
return "name: string expected";
|
|
3802
3802
|
}
|
|
3803
3803
|
if (message.value != null && message.hasOwnProperty("value")) {
|
|
3804
|
-
|
|
3805
|
-
|
|
3804
|
+
let error = $root.sesame.v1.common.PropValue.verify(message.value);
|
|
3805
|
+
if (error)
|
|
3806
|
+
return "value." + error;
|
|
3806
3807
|
}
|
|
3807
3808
|
return null;
|
|
3808
3809
|
};
|
|
@@ -3812,8 +3813,11 @@ var sesame = $root.sesame = (() => {
|
|
|
3812
3813
|
let message = new $root.sesame.v1.common.NameValue();
|
|
3813
3814
|
if (object.name != null)
|
|
3814
3815
|
message.name = String(object.name);
|
|
3815
|
-
if (object.value != null)
|
|
3816
|
-
|
|
3816
|
+
if (object.value != null) {
|
|
3817
|
+
if (typeof object.value !== "object")
|
|
3818
|
+
throw TypeError(".sesame.v1.common.NameValue.value: object expected");
|
|
3819
|
+
message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
|
|
3820
|
+
}
|
|
3817
3821
|
return message;
|
|
3818
3822
|
};
|
|
3819
3823
|
NameValue.toObject = function toObject(message, options) {
|
|
@@ -3822,12 +3826,12 @@ var sesame = $root.sesame = (() => {
|
|
|
3822
3826
|
let object = {};
|
|
3823
3827
|
if (options.defaults) {
|
|
3824
3828
|
object.name = "";
|
|
3825
|
-
object.value =
|
|
3829
|
+
object.value = null;
|
|
3826
3830
|
}
|
|
3827
3831
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
3828
3832
|
object.name = message.name;
|
|
3829
3833
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
3830
|
-
object.value = message.value;
|
|
3834
|
+
object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
|
|
3831
3835
|
return object;
|
|
3832
3836
|
};
|
|
3833
3837
|
NameValue.prototype.toJSON = function toJSON() {
|