@aptre/protobuf-es-lite 0.5.1 → 0.5.3
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/README.md +1 -22
- package/dist/google/index.d.ts +9 -0
- package/dist/google/index.js +9 -0
- package/dist/google/protobuf/any.pb.d.ts +148 -0
- package/dist/google/protobuf/any.pb.js +120 -0
- package/dist/google/protobuf/api.pb.d.ts +232 -0
- package/dist/google/protobuf/api.pb.js +88 -0
- package/dist/google/protobuf/duration.pb.d.ts +93 -0
- package/dist/google/protobuf/duration.pb.js +89 -0
- package/dist/google/protobuf/empty.pb.d.ts +17 -0
- package/dist/google/protobuf/empty.pb.js +37 -0
- package/dist/google/protobuf/source_context.pb.d.ts +18 -0
- package/dist/google/protobuf/source_context.pb.js +39 -0
- package/dist/google/protobuf/struct.pb.d.ts +141 -0
- package/dist/google/protobuf/struct.pb.js +228 -0
- package/dist/google/protobuf/timestamp.pb.d.ts +125 -0
- package/dist/google/protobuf/timestamp.pb.js +137 -0
- package/dist/google/protobuf/type.pb.d.ts +401 -0
- package/dist/google/protobuf/type.pb.js +347 -0
- package/dist/google/protobuf/wrappers.pb.d.ts +201 -0
- package/dist/google/protobuf/wrappers.pb.js +365 -0
- package/dist/message.d.ts +1 -1
- package/dist/message.js +2 -0
- package/package.json +5 -5
- package/tsconfig.json +11 -1
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
// Protocol Buffers - Google's data interchange format
|
|
2
|
+
// Copyright 2008 Google Inc. All rights reserved.
|
|
3
|
+
// https://developers.google.com/protocol-buffers/
|
|
4
|
+
//
|
|
5
|
+
// Redistribution and use in source and binary forms, with or without
|
|
6
|
+
// modification, are permitted provided that the following conditions are
|
|
7
|
+
// met:
|
|
8
|
+
//
|
|
9
|
+
// * Redistributions of source code must retain the above copyright
|
|
10
|
+
// notice, this list of conditions and the following disclaimer.
|
|
11
|
+
// * Redistributions in binary form must reproduce the above
|
|
12
|
+
// copyright notice, this list of conditions and the following disclaimer
|
|
13
|
+
// in the documentation and/or other materials provided with the
|
|
14
|
+
// distribution.
|
|
15
|
+
// * Neither the name of Google Inc. nor the names of its
|
|
16
|
+
// contributors may be used to endorse or promote products derived from
|
|
17
|
+
// this software without specific prior written permission.
|
|
18
|
+
//
|
|
19
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
20
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
21
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
22
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
23
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
24
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
25
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
26
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
27
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
//
|
|
31
|
+
// Wrappers for primitive (non-message) types. These types are useful
|
|
32
|
+
// for embedding primitives in the `google.protobuf.Any` type and for places
|
|
33
|
+
// where we need to distinguish between the absence of a primitive
|
|
34
|
+
// typed field and its default value.
|
|
35
|
+
//
|
|
36
|
+
// These wrappers have no meaningful use within repeated fields as they lack
|
|
37
|
+
// the ability to detect presence on individual elements.
|
|
38
|
+
// These wrappers have no meaningful use within a map or a oneof since
|
|
39
|
+
// individual entries of a map or fields of a oneof can already detect presence.
|
|
40
|
+
import { createMessageType, jsonReadScalar, jsonWriteScalar, LongType, ScalarType, } from "../../index.js";
|
|
41
|
+
export const protobufPackage = "google.protobuf";
|
|
42
|
+
// DoubleValue_Wkt contains the well-known-type overrides for DoubleValue.
|
|
43
|
+
const DoubleValue_Wkt = {
|
|
44
|
+
toJson(msg, _options) {
|
|
45
|
+
return jsonWriteScalar(ScalarType.DOUBLE, msg.value);
|
|
46
|
+
},
|
|
47
|
+
fromJson(json, _options) {
|
|
48
|
+
try {
|
|
49
|
+
return {
|
|
50
|
+
value: jsonReadScalar(ScalarType.DOUBLE, json, LongType.BIGINT),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
catch (e) {
|
|
54
|
+
let m = `cannot decode message google.protobuf.DoubleValue from JSON"`;
|
|
55
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
56
|
+
m += `: ${e.message}`;
|
|
57
|
+
}
|
|
58
|
+
throw new Error(m);
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
// DoubleValue contains the message type declaration for DoubleValue.
|
|
63
|
+
export const DoubleValue = createMessageType({
|
|
64
|
+
typeName: "google.protobuf.DoubleValue",
|
|
65
|
+
fields: [
|
|
66
|
+
{ no: 1, name: "value", kind: "scalar", T: ScalarType.DOUBLE },
|
|
67
|
+
],
|
|
68
|
+
packedByDefault: true,
|
|
69
|
+
fieldWrapper: {
|
|
70
|
+
wrapField(value) {
|
|
71
|
+
return DoubleValue.createComplete({ value: value ?? undefined });
|
|
72
|
+
},
|
|
73
|
+
unwrapField(msg) {
|
|
74
|
+
return msg.value;
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
}, DoubleValue_Wkt);
|
|
78
|
+
// FloatValue_Wkt contains the well-known-type overrides for FloatValue.
|
|
79
|
+
const FloatValue_Wkt = {
|
|
80
|
+
toJson(msg, _options) {
|
|
81
|
+
return jsonWriteScalar(ScalarType.FLOAT, msg.value);
|
|
82
|
+
},
|
|
83
|
+
fromJson(json, _options) {
|
|
84
|
+
try {
|
|
85
|
+
return {
|
|
86
|
+
value: jsonReadScalar(ScalarType.FLOAT, json, LongType.BIGINT),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
catch (e) {
|
|
90
|
+
let m = `cannot decode message google.protobuf.FloatValue from JSON"`;
|
|
91
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
92
|
+
m += `: ${e.message}`;
|
|
93
|
+
}
|
|
94
|
+
throw new Error(m);
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
// FloatValue contains the message type declaration for FloatValue.
|
|
99
|
+
export const FloatValue = createMessageType({
|
|
100
|
+
typeName: "google.protobuf.FloatValue",
|
|
101
|
+
fields: [
|
|
102
|
+
{ no: 1, name: "value", kind: "scalar", T: ScalarType.FLOAT },
|
|
103
|
+
],
|
|
104
|
+
packedByDefault: true,
|
|
105
|
+
fieldWrapper: {
|
|
106
|
+
wrapField(value) {
|
|
107
|
+
return FloatValue.createComplete({ value: value ?? undefined });
|
|
108
|
+
},
|
|
109
|
+
unwrapField(msg) {
|
|
110
|
+
return msg.value;
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
}, FloatValue_Wkt);
|
|
114
|
+
// Int64Value_Wkt contains the well-known-type overrides for Int64Value.
|
|
115
|
+
const Int64Value_Wkt = {
|
|
116
|
+
toJson(msg, _options) {
|
|
117
|
+
return jsonWriteScalar(ScalarType.INT64, msg.value);
|
|
118
|
+
},
|
|
119
|
+
fromJson(json, _options) {
|
|
120
|
+
try {
|
|
121
|
+
return {
|
|
122
|
+
value: jsonReadScalar(ScalarType.INT64, json, LongType.BIGINT),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
catch (e) {
|
|
126
|
+
let m = `cannot decode message google.protobuf.Int64Value from JSON"`;
|
|
127
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
128
|
+
m += `: ${e.message}`;
|
|
129
|
+
}
|
|
130
|
+
throw new Error(m);
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
// Int64Value contains the message type declaration for Int64Value.
|
|
135
|
+
export const Int64Value = createMessageType({
|
|
136
|
+
typeName: "google.protobuf.Int64Value",
|
|
137
|
+
fields: [
|
|
138
|
+
{ no: 1, name: "value", kind: "scalar", T: ScalarType.INT64 },
|
|
139
|
+
],
|
|
140
|
+
packedByDefault: true,
|
|
141
|
+
fieldWrapper: {
|
|
142
|
+
wrapField(value) {
|
|
143
|
+
return Int64Value.createComplete({ value: value ?? undefined });
|
|
144
|
+
},
|
|
145
|
+
unwrapField(msg) {
|
|
146
|
+
return msg.value;
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
}, Int64Value_Wkt);
|
|
150
|
+
// UInt64Value_Wkt contains the well-known-type overrides for UInt64Value.
|
|
151
|
+
const UInt64Value_Wkt = {
|
|
152
|
+
toJson(msg, _options) {
|
|
153
|
+
return jsonWriteScalar(ScalarType.UINT64, msg.value);
|
|
154
|
+
},
|
|
155
|
+
fromJson(json, _options) {
|
|
156
|
+
try {
|
|
157
|
+
return {
|
|
158
|
+
value: jsonReadScalar(ScalarType.UINT64, json, LongType.BIGINT),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
catch (e) {
|
|
162
|
+
let m = `cannot decode message google.protobuf.UInt64Value from JSON"`;
|
|
163
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
164
|
+
m += `: ${e.message}`;
|
|
165
|
+
}
|
|
166
|
+
throw new Error(m);
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
// UInt64Value contains the message type declaration for UInt64Value.
|
|
171
|
+
export const UInt64Value = createMessageType({
|
|
172
|
+
typeName: "google.protobuf.UInt64Value",
|
|
173
|
+
fields: [
|
|
174
|
+
{ no: 1, name: "value", kind: "scalar", T: ScalarType.UINT64 },
|
|
175
|
+
],
|
|
176
|
+
packedByDefault: true,
|
|
177
|
+
fieldWrapper: {
|
|
178
|
+
wrapField(value) {
|
|
179
|
+
return UInt64Value.createComplete({ value: value ?? undefined });
|
|
180
|
+
},
|
|
181
|
+
unwrapField(msg) {
|
|
182
|
+
return msg.value;
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
}, UInt64Value_Wkt);
|
|
186
|
+
// Int32Value_Wkt contains the well-known-type overrides for Int32Value.
|
|
187
|
+
const Int32Value_Wkt = {
|
|
188
|
+
toJson(msg, _options) {
|
|
189
|
+
return jsonWriteScalar(ScalarType.INT32, msg.value);
|
|
190
|
+
},
|
|
191
|
+
fromJson(json, _options) {
|
|
192
|
+
try {
|
|
193
|
+
return {
|
|
194
|
+
value: jsonReadScalar(ScalarType.INT32, json, LongType.BIGINT),
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
catch (e) {
|
|
198
|
+
let m = `cannot decode message google.protobuf.Int32Value from JSON"`;
|
|
199
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
200
|
+
m += `: ${e.message}`;
|
|
201
|
+
}
|
|
202
|
+
throw new Error(m);
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
};
|
|
206
|
+
// Int32Value contains the message type declaration for Int32Value.
|
|
207
|
+
export const Int32Value = createMessageType({
|
|
208
|
+
typeName: "google.protobuf.Int32Value",
|
|
209
|
+
fields: [
|
|
210
|
+
{ no: 1, name: "value", kind: "scalar", T: ScalarType.INT32 },
|
|
211
|
+
],
|
|
212
|
+
packedByDefault: true,
|
|
213
|
+
fieldWrapper: {
|
|
214
|
+
wrapField(value) {
|
|
215
|
+
return Int32Value.createComplete({ value: value ?? undefined });
|
|
216
|
+
},
|
|
217
|
+
unwrapField(msg) {
|
|
218
|
+
return msg.value;
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
}, Int32Value_Wkt);
|
|
222
|
+
// UInt32Value_Wkt contains the well-known-type overrides for UInt32Value.
|
|
223
|
+
const UInt32Value_Wkt = {
|
|
224
|
+
toJson(msg, _options) {
|
|
225
|
+
return jsonWriteScalar(ScalarType.UINT32, msg.value);
|
|
226
|
+
},
|
|
227
|
+
fromJson(json, _options) {
|
|
228
|
+
try {
|
|
229
|
+
return {
|
|
230
|
+
value: jsonReadScalar(ScalarType.UINT32, json, LongType.BIGINT),
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
catch (e) {
|
|
234
|
+
let m = `cannot decode message google.protobuf.UInt32Value from JSON"`;
|
|
235
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
236
|
+
m += `: ${e.message}`;
|
|
237
|
+
}
|
|
238
|
+
throw new Error(m);
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
// UInt32Value contains the message type declaration for UInt32Value.
|
|
243
|
+
export const UInt32Value = createMessageType({
|
|
244
|
+
typeName: "google.protobuf.UInt32Value",
|
|
245
|
+
fields: [
|
|
246
|
+
{ no: 1, name: "value", kind: "scalar", T: ScalarType.UINT32 },
|
|
247
|
+
],
|
|
248
|
+
packedByDefault: true,
|
|
249
|
+
fieldWrapper: {
|
|
250
|
+
wrapField(value) {
|
|
251
|
+
return UInt32Value.createComplete({ value: value ?? undefined });
|
|
252
|
+
},
|
|
253
|
+
unwrapField(msg) {
|
|
254
|
+
return msg.value;
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
}, UInt32Value_Wkt);
|
|
258
|
+
// BoolValue_Wkt contains the well-known-type overrides for BoolValue.
|
|
259
|
+
const BoolValue_Wkt = {
|
|
260
|
+
toJson(msg, _options) {
|
|
261
|
+
return jsonWriteScalar(ScalarType.BOOL, msg.value);
|
|
262
|
+
},
|
|
263
|
+
fromJson(json, _options) {
|
|
264
|
+
try {
|
|
265
|
+
return {
|
|
266
|
+
value: jsonReadScalar(ScalarType.BOOL, json, LongType.BIGINT),
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
catch (e) {
|
|
270
|
+
let m = `cannot decode message google.protobuf.BoolValue from JSON"`;
|
|
271
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
272
|
+
m += `: ${e.message}`;
|
|
273
|
+
}
|
|
274
|
+
throw new Error(m);
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
};
|
|
278
|
+
// BoolValue contains the message type declaration for BoolValue.
|
|
279
|
+
export const BoolValue = createMessageType({
|
|
280
|
+
typeName: "google.protobuf.BoolValue",
|
|
281
|
+
fields: [
|
|
282
|
+
{ no: 1, name: "value", kind: "scalar", T: ScalarType.BOOL },
|
|
283
|
+
],
|
|
284
|
+
packedByDefault: true,
|
|
285
|
+
fieldWrapper: {
|
|
286
|
+
wrapField(value) {
|
|
287
|
+
return BoolValue.createComplete({ value: value ?? undefined });
|
|
288
|
+
},
|
|
289
|
+
unwrapField(msg) {
|
|
290
|
+
return msg.value;
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
}, BoolValue_Wkt);
|
|
294
|
+
// StringValue_Wkt contains the well-known-type overrides for StringValue.
|
|
295
|
+
const StringValue_Wkt = {
|
|
296
|
+
toJson(msg, _options) {
|
|
297
|
+
return jsonWriteScalar(ScalarType.STRING, msg.value);
|
|
298
|
+
},
|
|
299
|
+
fromJson(json, _options) {
|
|
300
|
+
try {
|
|
301
|
+
return {
|
|
302
|
+
value: jsonReadScalar(ScalarType.STRING, json, LongType.BIGINT),
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
catch (e) {
|
|
306
|
+
let m = `cannot decode message google.protobuf.StringValue from JSON"`;
|
|
307
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
308
|
+
m += `: ${e.message}`;
|
|
309
|
+
}
|
|
310
|
+
throw new Error(m);
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
|
+
// StringValue contains the message type declaration for StringValue.
|
|
315
|
+
export const StringValue = createMessageType({
|
|
316
|
+
typeName: "google.protobuf.StringValue",
|
|
317
|
+
fields: [
|
|
318
|
+
{ no: 1, name: "value", kind: "scalar", T: ScalarType.STRING },
|
|
319
|
+
],
|
|
320
|
+
packedByDefault: true,
|
|
321
|
+
fieldWrapper: {
|
|
322
|
+
wrapField(value) {
|
|
323
|
+
return StringValue.createComplete({ value: value ?? undefined });
|
|
324
|
+
},
|
|
325
|
+
unwrapField(msg) {
|
|
326
|
+
return msg.value;
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
}, StringValue_Wkt);
|
|
330
|
+
// BytesValue_Wkt contains the well-known-type overrides for BytesValue.
|
|
331
|
+
const BytesValue_Wkt = {
|
|
332
|
+
toJson(msg, _options) {
|
|
333
|
+
return jsonWriteScalar(ScalarType.BYTES, msg.value);
|
|
334
|
+
},
|
|
335
|
+
fromJson(json, _options) {
|
|
336
|
+
try {
|
|
337
|
+
return {
|
|
338
|
+
value: jsonReadScalar(ScalarType.BYTES, json, LongType.BIGINT),
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
catch (e) {
|
|
342
|
+
let m = `cannot decode message google.protobuf.BytesValue from JSON"`;
|
|
343
|
+
if (e instanceof Error && e.message.length > 0) {
|
|
344
|
+
m += `: ${e.message}`;
|
|
345
|
+
}
|
|
346
|
+
throw new Error(m);
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
};
|
|
350
|
+
// BytesValue contains the message type declaration for BytesValue.
|
|
351
|
+
export const BytesValue = createMessageType({
|
|
352
|
+
typeName: "google.protobuf.BytesValue",
|
|
353
|
+
fields: [
|
|
354
|
+
{ no: 1, name: "value", kind: "scalar", T: ScalarType.BYTES },
|
|
355
|
+
],
|
|
356
|
+
packedByDefault: true,
|
|
357
|
+
fieldWrapper: {
|
|
358
|
+
wrapField(value) {
|
|
359
|
+
return BytesValue.createComplete({ value: value ?? undefined });
|
|
360
|
+
},
|
|
361
|
+
unwrapField(msg) {
|
|
362
|
+
return msg.value;
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
}, BytesValue_Wkt);
|
package/dist/message.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export interface MessageType<T extends Message<T> = AnyMessage> {
|
|
|
76
76
|
/**
|
|
77
77
|
* Serialize the message to binary data.
|
|
78
78
|
*/
|
|
79
|
-
toBinary(a: Message<T
|
|
79
|
+
toBinary(a: Message<T> | undefined | null, options?: Partial<BinaryWriteOptions>): Uint8Array;
|
|
80
80
|
/**
|
|
81
81
|
* Serialize the message to a JSON value, a JavaScript value that can be
|
|
82
82
|
* passed to JSON.stringify().
|
package/dist/message.js
CHANGED
|
@@ -79,6 +79,8 @@ export function createMessageType(params, exts) {
|
|
|
79
79
|
return mt.fromJson(json, options);
|
|
80
80
|
},
|
|
81
81
|
toBinary(a, options) {
|
|
82
|
+
if (a == null)
|
|
83
|
+
return new Uint8Array(0);
|
|
82
84
|
const opt = binaryMakeWriteOptions(options);
|
|
83
85
|
const writer = opt.writerFactory();
|
|
84
86
|
binaryWriteMessage(a, fields, writer, opt);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptre/protobuf-es-lite",
|
|
3
3
|
"description": "Lightweight Protobuf codegen for TypeScript and JavaScript.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "git+ssh://git@github.com/aperturerobotics/protobuf-es-lite.git"
|
|
@@ -114,8 +114,8 @@
|
|
|
114
114
|
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint -c .eslintrc.cjs ./",
|
|
115
115
|
"release:version": "npm version patch -m \"release: v%s\" --no-git-tag-version",
|
|
116
116
|
"release:version:minor": "npm version minor -m \"release: v%s\" --no-git-tag-version",
|
|
117
|
-
"release:commit": "git reset && git add package.json && git commit -s -m \"release: v$
|
|
118
|
-
"release:publish": "git push && git push --tags
|
|
117
|
+
"release:commit": "git reset && git add package.json && git commit -s -m \"release: v$(node -p \"require('./package.json').version\")\" && git tag v$(node -p \"require('./package.json').version\")",
|
|
118
|
+
"release:publish": "git push && git push --tags",
|
|
119
119
|
"release": "npm run release:version && npm run release:commit",
|
|
120
120
|
"release:minor": "npm run release:version:minor && npm run release:commit",
|
|
121
121
|
"prepare": "husky"
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"lz-string": "^1.5.0"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
|
-
"@types/node": "^
|
|
129
|
+
"@types/node": "^24.0.0",
|
|
130
130
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
131
131
|
"@typescript-eslint/parser": "^8.0.0",
|
|
132
132
|
"eslint": "^9.3.0",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"prettier": "^3.2.5",
|
|
138
138
|
"rimraf": "^6.0.0",
|
|
139
139
|
"typescript": "^5.4.5",
|
|
140
|
-
"vitest": "^
|
|
140
|
+
"vitest": "^4.0.0"
|
|
141
141
|
},
|
|
142
142
|
"lint-staged": {
|
|
143
143
|
"package.json": "prettier --write",
|
package/tsconfig.json
CHANGED
|
@@ -5,7 +5,17 @@
|
|
|
5
5
|
"src/descriptor-set.ts",
|
|
6
6
|
"src/create-descriptor-set.ts",
|
|
7
7
|
"src/protoplugin/index.ts",
|
|
8
|
-
"src/protoplugin/ecmascript/index.ts"
|
|
8
|
+
"src/protoplugin/ecmascript/index.ts",
|
|
9
|
+
"src/google/index.ts",
|
|
10
|
+
"src/google/protobuf/type.pb.ts",
|
|
11
|
+
"src/google/protobuf/timestamp.pb.ts",
|
|
12
|
+
"src/google/protobuf/duration.pb.ts",
|
|
13
|
+
"src/google/protobuf/any.pb.ts",
|
|
14
|
+
"src/google/protobuf/empty.pb.ts",
|
|
15
|
+
"src/google/protobuf/wrappers.pb.ts",
|
|
16
|
+
"src/google/protobuf/struct.pb.ts",
|
|
17
|
+
"src/google/protobuf/api.pb.ts",
|
|
18
|
+
"src/google/protobuf/source_context.pb.ts"
|
|
9
19
|
],
|
|
10
20
|
"extends": "./tsconfig.base.json",
|
|
11
21
|
"compilerOptions": {
|