@aptre/protobuf-es-lite 0.2.0 → 0.2.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/binary.js +5 -3
- package/package.json +2 -2
package/dist/binary.js
CHANGED
|
@@ -293,12 +293,12 @@ function writeMessageField(writer, options, field, value) {
|
|
|
293
293
|
if (field.delimited)
|
|
294
294
|
writer
|
|
295
295
|
.tag(field.no, protobuf_1.WireType.StartGroup)
|
|
296
|
-
.raw(
|
|
296
|
+
.raw(field.T.toBinary(message, options))
|
|
297
297
|
.tag(field.no, protobuf_1.WireType.EndGroup);
|
|
298
298
|
else
|
|
299
299
|
writer
|
|
300
300
|
.tag(field.no, protobuf_1.WireType.LengthDelimited)
|
|
301
|
-
.bytes(
|
|
301
|
+
.bytes(field.T.toBinary(message, options));
|
|
302
302
|
}
|
|
303
303
|
function writeScalar(writer, type, fieldNo, value) {
|
|
304
304
|
(0, assert_js_1.assert)(value !== undefined);
|
|
@@ -381,7 +381,9 @@ function writeMapEntry(writer, options, field, key, value) {
|
|
|
381
381
|
break;
|
|
382
382
|
case "message":
|
|
383
383
|
(0, assert_js_1.assert)(value !== undefined);
|
|
384
|
-
writer
|
|
384
|
+
writer
|
|
385
|
+
.tag(2, protobuf_1.WireType.LengthDelimited)
|
|
386
|
+
.bytes(field.V.T.toBinary(value, options));
|
|
385
387
|
break;
|
|
386
388
|
}
|
|
387
389
|
writer.join();
|
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.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "git+ssh://git@github.com/aperturerobotics/protobuf-es-lite.git"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"build": "npm run clean && tsc --project tsconfig.json --outDir ./dist",
|
|
37
37
|
"release:version": "npm version patch -m \"release: v%s\" --no-git-tag-version",
|
|
38
38
|
"release:commit": "git reset && git add package.json && git commit -s -m \"release: v$npm_package_version\" && git tag v$npm_package_version",
|
|
39
|
-
"release:publish": "git push --
|
|
39
|
+
"release:publish": "git push && git push --tags && npm run build && npm publish",
|
|
40
40
|
"release": "npm run release:version && npm run release:commit",
|
|
41
41
|
"typecheck": "tsc --noEmit --project tsconfig.json --outDir ./dist",
|
|
42
42
|
"example": "npm run build && protoc --plugin=./bin/protoc-gen-es-lite --es-lite_out=. --es-lite_opt target=ts --es-lite_opt ts_nocheck=false ./example/example.proto",
|