@aptre/common 0.14.8 → 0.14.10

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/Makefile CHANGED
@@ -82,21 +82,31 @@ genproto: protodeps
82
82
  PROTO_FILES=$$(git ls-files "$$1"); \
83
83
  FMT_GO_FILES=(); \
84
84
  FMT_TS_FILES=(); \
85
+ PROTOWRAP_OPTS=(); \
86
+ if [ -f "go.mod" ]; then \
87
+ PROTOWRAP_OPTS+=( \
88
+ --plugin=$(PROTOC_GEN_GO) \
89
+ --plugin=$(PROTOC_GEN_GO_STARPC) \
90
+ --go-lite_out=$${OUT} \
91
+ --go-lite_opt=features=$(GO_LITE_OPT_FEATURES) \
92
+ --go-starpc_out=$${OUT} \
93
+ ); \
94
+ fi; \
95
+ if [ -f "package.json" ]; then \
96
+ PROTOWRAP_OPTS+=( \
97
+ --plugin=./node_modules/.bin/protoc-gen-es \
98
+ --plugin=./node_modules/.bin/protoc-gen-es-starpc \
99
+ --es-lite_out=$${OUT} \
100
+ --es-lite_opt target=ts \
101
+ --es-lite_opt ts_nocheck=false \
102
+ --es-starpc_out=$${OUT} \
103
+ --es-starpc_opt target=ts \
104
+ --es-starpc_opt ts_nocheck=false \
105
+ ); \
106
+ fi; \
85
107
  $(PROTOWRAP) \
86
108
  -I $${OUT} \
87
- --plugin=$(PROTOC_GEN_GO) \
88
- --plugin=$(PROTOC_GEN_GO_STARPC) \
89
- --plugin=./node_modules/.bin/protoc-gen-es \
90
- --plugin=./node_modules/.bin/protoc-gen-es-starpc \
91
- --go-lite_out=$${OUT} \
92
- --go-lite_opt=features=$(GO_LITE_OPT_FEATURES) \
93
- --es-lite_out=$${OUT} \
94
- --es-lite_opt target=ts \
95
- --es-lite_opt ts_nocheck=false \
96
- --go-starpc_out=$${OUT} \
97
- --es-starpc_out=$${OUT} \
98
- --es-starpc_opt target=ts \
99
- --es-starpc_opt ts_nocheck=false \
109
+ "$${PROTOWRAP_OPTS[@]}" \
100
110
  --proto_path $${OUT} \
101
111
  --print_structure \
102
112
  --only_specified_files \
@@ -1,6 +1,6 @@
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";
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';
4
4
  export declare const protobufPackage = "example";
5
5
  /**
6
6
  * ExampleMsg is an example message.
@@ -1,14 +1,19 @@
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 { createMessageType } from "@aptre/protobuf-es-lite";
5
- import { OtherMsg } from "./other/other.pb.js";
6
- export const protobufPackage = "example";
4
+ import { createMessageType } from '@aptre/protobuf-es-lite';
5
+ import { OtherMsg } from './other/other.pb.js';
6
+ export const protobufPackage = 'example';
7
7
  export const ExampleMsg = createMessageType({
8
- typeName: "example.ExampleMsg",
8
+ typeName: 'example.ExampleMsg',
9
9
  fields: [
10
- { no: 1, name: "example_field", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11
- { no: 2, name: "other_msg", kind: "message", T: () => OtherMsg },
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 },
12
17
  ],
13
18
  packedByDefault: true,
14
19
  });
@@ -1,5 +1,5 @@
1
- import type { MessageType } from "@aptre/protobuf-es-lite";
2
- import { Message } from "@aptre/protobuf-es-lite";
1
+ import type { MessageType } from '@aptre/protobuf-es-lite';
2
+ import { Message } from '@aptre/protobuf-es-lite';
3
3
  export declare const protobufPackage = "example.other";
4
4
  /**
5
5
  * OtherMsg is a different message from ExampleMsg.
@@ -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 } from "@aptre/protobuf-es-lite";
5
- export const protobufPackage = "example.other";
4
+ import { createMessageType } from '@aptre/protobuf-es-lite';
5
+ export const protobufPackage = 'example.other';
6
6
  export const OtherMsg = createMessageType({
7
- typeName: "example.other.OtherMsg",
7
+ typeName: 'example.other.OtherMsg',
8
8
  fields: [
9
- { no: 1, name: "foo_field", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
9
+ { no: 1, name: 'foo_field', kind: 'scalar', T: 13 /* ScalarType.UINT32 */ },
10
10
  ],
11
11
  packedByDefault: true,
12
12
  });
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.8",
4
+ "version": "0.14.10",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Aperture Robotics LLC.",
@@ -76,7 +76,7 @@
76
76
  "@aptre/protobuf-es-lite": "^0.2.14",
77
77
  "@typescript-eslint/eslint-plugin": "^7.8.0",
78
78
  "@typescript-eslint/parser": "^7.8.0",
79
- "eslint": "^9.1.0",
79
+ "eslint": "^8.57.0",
80
80
  "eslint-config-prettier": "^9.0.0",
81
81
  "eslint-plugin-react-hooks": "^4.6.1",
82
82
  "eslint-plugin-unused-imports": "^3.0.0",