@aptre/common 0.36.2 → 0.36.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OtherMsg } from
|
|
2
|
-
import type { MessageType } from
|
|
1
|
+
import { OtherMsg } from './other/other.pb.js';
|
|
2
|
+
import type { MessageType } from '@aptre/protobuf-es-lite/message';
|
|
3
3
|
/**
|
|
4
4
|
* ExampleMsg is an example message.
|
|
5
5
|
*
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
// @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
|
|
2
2
|
// @generated from file github.com/aperturerobotics/common/example/example.proto (package example, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { OtherMsg } from
|
|
5
|
-
import { createMessageType } from
|
|
6
|
-
export const ExampleMsg =
|
|
7
|
-
|
|
8
|
-
[
|
|
4
|
+
import { OtherMsg } from './other/other.pb.js';
|
|
5
|
+
import { createMessageType } from '@aptre/protobuf-es-lite/message';
|
|
6
|
+
export const ExampleMsg =
|
|
7
|
+
/* @__PURE__ */ createMessageType('example.ExampleMsg', () => [
|
|
8
|
+
[1, 'example_field', 9],
|
|
9
|
+
[2, 'other_msg', 11, 0, OtherMsg.codec],
|
|
9
10
|
]);
|
|
10
|
-
export const EchoMsg =
|
|
11
|
-
|
|
11
|
+
export const EchoMsg =
|
|
12
|
+
/* @__PURE__ */ createMessageType('example.EchoMsg', () => [
|
|
13
|
+
[1, 'body', 9],
|
|
12
14
|
]);
|
|
13
|
-
export const TypedMsg =
|
|
14
|
-
|
|
15
|
+
export const TypedMsg =
|
|
16
|
+
/* @__PURE__ */ createMessageType('example.TypedMsg', () => [
|
|
17
|
+
[1, 'body', 9],
|
|
15
18
|
]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { EchoMsg } from
|
|
2
|
-
import { MethodKind } from
|
|
3
|
-
import { ProtoRpc, ServerContext } from
|
|
1
|
+
import { EchoMsg } from './example.pb.js';
|
|
2
|
+
import { MethodKind } from '@aptre/protobuf-es-lite';
|
|
3
|
+
import { ProtoRpc, ServerContext } from 'starpc';
|
|
4
4
|
/**
|
|
5
5
|
* Echoer service returns the given message.
|
|
6
6
|
*
|
|
7
7
|
* @generated from service example.Echoer
|
|
8
8
|
*/
|
|
9
9
|
export declare const EchoerDefinition: {
|
|
10
|
-
readonly typeName:
|
|
10
|
+
readonly typeName: 'example.Echoer';
|
|
11
11
|
readonly methods: {
|
|
12
12
|
/**
|
|
13
13
|
* Echo returns the given message.
|
|
@@ -15,7 +15,7 @@ export declare const EchoerDefinition: {
|
|
|
15
15
|
* @generated from rpc example.Echoer.Echo
|
|
16
16
|
*/
|
|
17
17
|
readonly Echo: {
|
|
18
|
-
readonly name:
|
|
18
|
+
readonly name: 'Echo';
|
|
19
19
|
readonly I: import("@aptre/protobuf-es-lite").MessageType<EchoMsg>;
|
|
20
20
|
readonly O: import("@aptre/protobuf-es-lite").MessageType<EchoMsg>;
|
|
21
21
|
readonly kind: MethodKind.Unary;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @generated by protoc-gen-es-starpc none with parameter "target=ts,ts_nocheck=false"
|
|
2
2
|
// @generated from file github.com/aperturerobotics/common/example/example.proto (package example, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { EchoMsg } from
|
|
5
|
-
import { MethodKind } from
|
|
4
|
+
import { EchoMsg } from './example.pb.js';
|
|
5
|
+
import { MethodKind } from '@aptre/protobuf-es-lite';
|
|
6
6
|
/**
|
|
7
7
|
* Echoer service returns the given message.
|
|
8
8
|
*
|
|
9
9
|
* @generated from service example.Echoer
|
|
10
10
|
*/
|
|
11
11
|
export const EchoerDefinition = {
|
|
12
|
-
typeName:
|
|
12
|
+
typeName: 'example.Echoer',
|
|
13
13
|
methods: {
|
|
14
14
|
/**
|
|
15
15
|
* Echo returns the given message.
|
|
@@ -17,12 +17,12 @@ export const EchoerDefinition = {
|
|
|
17
17
|
* @generated from rpc example.Echoer.Echo
|
|
18
18
|
*/
|
|
19
19
|
Echo: {
|
|
20
|
-
name:
|
|
20
|
+
name: 'Echo',
|
|
21
21
|
I: EchoMsg,
|
|
22
22
|
O: EchoMsg,
|
|
23
23
|
kind: MethodKind.Unary,
|
|
24
24
|
},
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
26
|
};
|
|
27
27
|
export const EchoerServiceName = EchoerDefinition.typeName;
|
|
28
28
|
export class EchoerClient {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
|
|
2
2
|
// @generated from file github.com/aperturerobotics/common/example/other/other.proto (package example.other, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { createMessageType } from
|
|
5
|
-
export const OtherMsg =
|
|
6
|
-
|
|
4
|
+
import { createMessageType } from '@aptre/protobuf-es-lite/message';
|
|
5
|
+
export const OtherMsg =
|
|
6
|
+
/* @__PURE__ */ createMessageType('example.other.OtherMsg', () => [
|
|
7
|
+
[1, 'foo_field', 13],
|
|
7
8
|
]);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptre/common",
|
|
3
3
|
"description": "Common project configuration files and dependencies.",
|
|
4
|
-
"version": "0.36.
|
|
4
|
+
"version": "0.36.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Aperture Robotics LLC.",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"format:js:changed": "git diff --name-only --diff-filter=d HEAD | grep '\\(\\.ts\\|\\.tsx\\|\\.html\\|\\.css\\|\\.scss\\)$' | xargs -I {} oxfmt {}",
|
|
55
55
|
"format:js:all": "oxfmt './**/*.{ts,tsx,js,html,css,scss}'",
|
|
56
56
|
"gen": "rimraf ./.tools && go mod tidy && cd ./tools && go mod tidy && cd ../ && bash embed.bash && npm run format && npm run go:aptre:gen",
|
|
57
|
-
"gen:force": "rimraf ./.tools && go mod tidy && cd ./tools && go mod tidy && cd ../ && bash embed.bash && npm run format && npm run go:aptre:gen --force",
|
|
58
|
-
"go:aptre:gen": "go run github.com/aperturerobotics/common/cmd/aptre generate",
|
|
57
|
+
"gen:force": "rimraf ./.tools && go mod tidy && cd ./tools && go mod tidy && cd ../ && bash embed.bash && npm run format && npm run go:aptre:gen -- --force",
|
|
58
|
+
"go:aptre:gen": "go run github.com/aperturerobotics/common/cmd/aptre generate -e 'tests/rust-graph/*/*.proto' -e 'tests/rust-graph/*/*/*.proto'",
|
|
59
59
|
"go:aptre": "go run github.com/aperturerobotics/common/cmd/aptre",
|
|
60
60
|
"test": "npm run test:js && npm run test:go",
|
|
61
61
|
"test:js": "vitest run && npm run typecheck",
|