@vicinae/api 0.14.5 → 0.15.1
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/api/proto/daemon.js
CHANGED
|
@@ -10,10 +10,13 @@ exports.Response = exports.Request = exports.DmenuResponse = exports.DmenuReques
|
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
exports.protobufPackage = "proto.ext.daemon";
|
|
12
12
|
function createBaseUrlResponse() {
|
|
13
|
-
return {};
|
|
13
|
+
return { error: "" };
|
|
14
14
|
}
|
|
15
15
|
exports.UrlResponse = {
|
|
16
|
-
encode(
|
|
16
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
if (message.error !== "") {
|
|
18
|
+
writer.uint32(10).string(message.error);
|
|
19
|
+
}
|
|
17
20
|
return writer;
|
|
18
21
|
},
|
|
19
22
|
decode(input, length) {
|
|
@@ -23,6 +26,13 @@ exports.UrlResponse = {
|
|
|
23
26
|
while (reader.pos < end) {
|
|
24
27
|
const tag = reader.uint32();
|
|
25
28
|
switch (tag >>> 3) {
|
|
29
|
+
case 1: {
|
|
30
|
+
if (tag !== 10) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
message.error = reader.string();
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
26
36
|
}
|
|
27
37
|
if ((tag & 7) === 4 || tag === 0) {
|
|
28
38
|
break;
|
|
@@ -31,18 +41,22 @@ exports.UrlResponse = {
|
|
|
31
41
|
}
|
|
32
42
|
return message;
|
|
33
43
|
},
|
|
34
|
-
fromJSON(
|
|
35
|
-
return {};
|
|
44
|
+
fromJSON(object) {
|
|
45
|
+
return { error: isSet(object.error) ? globalThis.String(object.error) : "" };
|
|
36
46
|
},
|
|
37
|
-
toJSON(
|
|
47
|
+
toJSON(message) {
|
|
38
48
|
const obj = {};
|
|
49
|
+
if (message.error !== "") {
|
|
50
|
+
obj.error = message.error;
|
|
51
|
+
}
|
|
39
52
|
return obj;
|
|
40
53
|
},
|
|
41
54
|
create(base) {
|
|
42
55
|
return exports.UrlResponse.fromPartial(base ?? {});
|
|
43
56
|
},
|
|
44
|
-
fromPartial(
|
|
57
|
+
fromPartial(object) {
|
|
45
58
|
const message = createBaseUrlResponse();
|
|
59
|
+
message.error = object.error ?? "";
|
|
46
60
|
return message;
|
|
47
61
|
},
|
|
48
62
|
};
|