@aptre/common 0.14.3 → 0.14.6
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/common.d.ts +1 -0
- package/dist/common.js +1 -1
- package/dist/example/{example_pb.d.ts → example.pb.d.ts} +5 -4
- package/dist/example/example.pb.js +14 -0
- package/dist/example/other/{other_pb.d.ts → other.pb.d.ts} +4 -3
- package/dist/example/other/{other_pb.js → other.pb.js} +4 -4
- package/go.mod.tools +1 -1
- package/go.sum.tools +2 -2
- package/package.json +14 -7
- package/tsconfig.json +2 -2
- package/dist/example/example_pb.js +0 -19
package/dist/common.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { MessageType } from "@aptre/protobuf-es-lite";
|
|
2
|
+
import { Message } from "@aptre/protobuf-es-lite";
|
|
3
|
+
import { OtherMsg } from "./other/other.pb.js";
|
|
3
4
|
export declare const protobufPackage = "example";
|
|
4
5
|
/**
|
|
5
6
|
* ExampleMsg is an example message.
|
|
6
7
|
*
|
|
7
8
|
* @generated from message example.ExampleMsg
|
|
8
9
|
*/
|
|
9
|
-
export
|
|
10
|
+
export type ExampleMsg = Message<{
|
|
10
11
|
/**
|
|
11
12
|
* ExampleField is an example field.
|
|
12
13
|
*
|
|
@@ -19,5 +20,5 @@ export interface ExampleMsg extends Message<ExampleMsg> {
|
|
|
19
20
|
* @generated from field: example.other.OtherMsg other_msg = 2;
|
|
20
21
|
*/
|
|
21
22
|
otherMsg?: OtherMsg;
|
|
22
|
-
}
|
|
23
|
+
}>;
|
|
23
24
|
export declare const ExampleMsg: MessageType<ExampleMsg>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
|
|
2
|
+
// @generated from file github.com/aperturerobotics/common/example/example.proto (package example, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { createMessageType } from "@aptre/protobuf-es-lite";
|
|
5
|
+
import { OtherMsg } from "./other/other.pb.js";
|
|
6
|
+
export const protobufPackage = "example";
|
|
7
|
+
export const ExampleMsg = createMessageType({
|
|
8
|
+
typeName: "example.ExampleMsg",
|
|
9
|
+
fields: [
|
|
10
|
+
{ no: 1, name: "example_field", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
11
|
+
{ no: 2, name: "other_msg", kind: "message", T: () => OtherMsg },
|
|
12
|
+
],
|
|
13
|
+
packedByDefault: true,
|
|
14
|
+
});
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MessageType } from "@aptre/protobuf-es-lite";
|
|
2
|
+
import { Message } from "@aptre/protobuf-es-lite";
|
|
2
3
|
export declare const protobufPackage = "example.other";
|
|
3
4
|
/**
|
|
4
5
|
* OtherMsg is a different message from ExampleMsg.
|
|
5
6
|
*
|
|
6
7
|
* @generated from message example.other.OtherMsg
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
+
export type OtherMsg = Message<{
|
|
9
10
|
/**
|
|
10
11
|
* FooField is an example field.
|
|
11
12
|
*
|
|
12
13
|
* @generated from field: uint32 foo_field = 1;
|
|
13
14
|
*/
|
|
14
15
|
fooField?: number;
|
|
15
|
-
}
|
|
16
|
+
}>;
|
|
16
17
|
export declare const OtherMsg: MessageType<OtherMsg>;
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
|
5
|
-
export const protobufPackage =
|
|
4
|
+
import { createMessageType } from "@aptre/protobuf-es-lite";
|
|
5
|
+
export const protobufPackage = "example.other";
|
|
6
6
|
export const OtherMsg = createMessageType({
|
|
7
|
-
typeName:
|
|
7
|
+
typeName: "example.other.OtherMsg",
|
|
8
8
|
fields: [
|
|
9
|
-
{ no: 1, name:
|
|
9
|
+
{ no: 1, name: "foo_field", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
10
10
|
],
|
|
11
11
|
packedByDefault: true,
|
|
12
12
|
});
|
package/go.mod.tools
CHANGED
|
@@ -11,7 +11,7 @@ replace (
|
|
|
11
11
|
require (
|
|
12
12
|
github.com/aperturerobotics/goprotowrap v0.3.1 // latest
|
|
13
13
|
github.com/aperturerobotics/protobuf-go-lite v0.6.0 // latest
|
|
14
|
-
github.com/aperturerobotics/starpc v0.31.
|
|
14
|
+
github.com/aperturerobotics/starpc v0.31.12 // latest
|
|
15
15
|
)
|
|
16
16
|
|
|
17
17
|
require (
|
package/go.sum.tools
CHANGED
|
@@ -166,8 +166,8 @@ github.com/aperturerobotics/protobuf-go v1.33.1-0.20240411062030-e36f75e0a3b8 h1
|
|
|
166
166
|
github.com/aperturerobotics/protobuf-go v1.33.1-0.20240411062030-e36f75e0a3b8/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
|
|
167
167
|
github.com/aperturerobotics/protobuf-go-lite v0.6.0 h1:EE168e2oov6wmDv8AdSAlz2G1nHbf0HlYG917CgJ+ug=
|
|
168
168
|
github.com/aperturerobotics/protobuf-go-lite v0.6.0/go.mod h1:6Bp+C+fI1uh0NmIKpxlxyHMkKtCP9Kb3PHkhOzxG4B8=
|
|
169
|
-
github.com/aperturerobotics/starpc v0.31.
|
|
170
|
-
github.com/aperturerobotics/starpc v0.31.
|
|
169
|
+
github.com/aperturerobotics/starpc v0.31.12 h1:Kpa5/NdTxKPMtIaJkW9ZevX0nOj4yi02wqpgC2JKArc=
|
|
170
|
+
github.com/aperturerobotics/starpc v0.31.12/go.mod h1:EhZN09QG2fwCtpmZhVAqpl0I+2Mvu8vEBVR7lbIs5mc=
|
|
171
171
|
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
|
|
172
172
|
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
|
|
173
173
|
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
|
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.14.
|
|
4
|
+
"version": "0.14.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Aperture Robotics LLC.",
|
|
@@ -18,6 +18,14 @@
|
|
|
18
18
|
"repository": {
|
|
19
19
|
"url": "git+ssh://git@github.com/aperturerobotics/common.git"
|
|
20
20
|
},
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/common.js",
|
|
25
|
+
"require": "./dist/common.js",
|
|
26
|
+
"types": "./dist/common.d.ts"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
21
29
|
"files": [
|
|
22
30
|
"!**/*.tsbuildinfo",
|
|
23
31
|
".eslintrc.js",
|
|
@@ -32,7 +40,7 @@
|
|
|
32
40
|
"tsconfig.json"
|
|
33
41
|
],
|
|
34
42
|
"scripts": {
|
|
35
|
-
"build": "npm run clean && tsc --project tsconfig.json --noEmit false --
|
|
43
|
+
"build": "npm run clean && tsc --project tsconfig.json --noEmit false --outDir ./dist/",
|
|
36
44
|
"clean": "rimraf ./dist",
|
|
37
45
|
"check": "npm run typecheck",
|
|
38
46
|
"typecheck": "tsc --noEmit",
|
|
@@ -65,14 +73,13 @@
|
|
|
65
73
|
"typescript": "^5.4.5"
|
|
66
74
|
},
|
|
67
75
|
"dependencies": {
|
|
68
|
-
"@aptre/protobuf-es-lite": "^0.2.
|
|
69
|
-
"@
|
|
70
|
-
"@typescript-eslint/
|
|
71
|
-
"@typescript-eslint/parser": "^7.7.0",
|
|
76
|
+
"@aptre/protobuf-es-lite": "^0.2.14",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
78
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
72
79
|
"eslint": "^9.1.0",
|
|
73
80
|
"eslint-config-prettier": "^9.0.0",
|
|
74
81
|
"eslint-plugin-react-hooks": "^4.6.1",
|
|
75
82
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
76
|
-
"starpc": "^0.31.
|
|
83
|
+
"starpc": "^0.31.12"
|
|
77
84
|
}
|
|
78
85
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es-lite unknown with parameter "target=ts,ts_nocheck=false"
|
|
2
|
-
// @generated from file github.com/aperturerobotics/common/example/example.proto (package example, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import { createMessageType, } from '@aptre/protobuf-es-lite';
|
|
5
|
-
import { OtherMsg } from './other/other_pb.js';
|
|
6
|
-
export const protobufPackage = 'example';
|
|
7
|
-
export const ExampleMsg = createMessageType({
|
|
8
|
-
typeName: 'example.ExampleMsg',
|
|
9
|
-
fields: [
|
|
10
|
-
{
|
|
11
|
-
no: 1,
|
|
12
|
-
name: 'example_field',
|
|
13
|
-
kind: 'scalar',
|
|
14
|
-
T: 9 /* ScalarType.STRING */,
|
|
15
|
-
},
|
|
16
|
-
{ no: 2, name: 'other_msg', kind: 'message', T: OtherMsg },
|
|
17
|
-
],
|
|
18
|
-
packedByDefault: true,
|
|
19
|
-
});
|