Skip to content

Commit

Permalink
refactor: update deps & regen protos
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <[email protected]>
  • Loading branch information
paralin committed Oct 12, 2023
1 parent fae5ea5 commit 7d61c35
Show file tree
Hide file tree
Showing 155 changed files with 971 additions and 979 deletions.
2 changes: 1 addition & 1 deletion agent/controller/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions agent/controller/config.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ export const Config = {
source: AsyncIterable<Config | Config[]> | Iterable<Config | Config[]>,
): AsyncIterable<Uint8Array> {
for await (const pkt of source) {
if (Array.isArray(pkt)) {
for (const p of pkt) {
if (globalThis.Array.isArray(pkt)) {
for (const p of pkt as any) {
yield* [Config.encode(p).finish()]
}
} else {
yield* [Config.encode(pkt).finish()]
yield* [Config.encode(pkt as any).finish()]
}
}
},
Expand All @@ -92,20 +92,22 @@ export const Config = {
| Iterable<Uint8Array | Uint8Array[]>,
): AsyncIterable<Config> {
for await (const pkt of source) {
if (Array.isArray(pkt)) {
for (const p of pkt) {
if (globalThis.Array.isArray(pkt)) {
for (const p of pkt as any) {
yield* [Config.decode(p)]
}
} else {
yield* [Config.decode(pkt)]
yield* [Config.decode(pkt as any)]
}
}
},

fromJSON(object: any): Config {
return {
privKey: isSet(object.privKey) ? String(object.privKey) : '',
nodePeerId: isSet(object.nodePeerId) ? String(object.nodePeerId) : '',
privKey: isSet(object.privKey) ? globalThis.String(object.privKey) : '',
nodePeerId: isSet(object.nodePeerId)
? globalThis.String(object.nodePeerId)
: '',
}
},

Expand Down Expand Up @@ -144,8 +146,8 @@ export type DeepPartial<T> = T extends Builtin
? T
: T extends Long
? string | number | Long
: T extends Array<infer U>
? Array<DeepPartial<U>>
: T extends globalThis.Array<infer U>
? globalThis.Array<DeepPartial<U>>
: T extends ReadonlyArray<infer U>
? ReadonlyArray<DeepPartial<U>>
: T extends { $case: string }
Expand Down
2 changes: 1 addition & 1 deletion agent/controller/config_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion daemon/api/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions daemon/api/api.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ export const Config = {
source: AsyncIterable<Config | Config[]> | Iterable<Config | Config[]>,
): AsyncIterable<Uint8Array> {
for await (const pkt of source) {
if (Array.isArray(pkt)) {
for (const p of pkt) {
if (globalThis.Array.isArray(pkt)) {
for (const p of pkt as any) {
yield* [Config.encode(p).finish()]
}
} else {
yield* [Config.encode(pkt).finish()]
yield* [Config.encode(pkt as any).finish()]
}
}
},
Expand All @@ -74,12 +74,12 @@ export const Config = {
| Iterable<Uint8Array | Uint8Array[]>,
): AsyncIterable<Config> {
for await (const pkt of source) {
if (Array.isArray(pkt)) {
for (const p of pkt) {
if (globalThis.Array.isArray(pkt)) {
for (const p of pkt as any) {
yield* [Config.decode(p)]
}
} else {
yield* [Config.decode(pkt)]
yield* [Config.decode(pkt as any)]
}
}
},
Expand Down Expand Up @@ -126,8 +126,8 @@ export type DeepPartial<T> = T extends Builtin
? T
: T extends Long
? string | number | Long
: T extends Array<infer U>
? Array<DeepPartial<U>>
: T extends globalThis.Array<infer U>
? globalThis.Array<DeepPartial<U>>
: T extends ReadonlyArray<infer U>
? ReadonlyArray<DeepPartial<U>>
: T extends { $case: string }
Expand Down
2 changes: 1 addition & 1 deletion daemon/api/api_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion daemon/api/controller/controller.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions daemon/api/controller/controller.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ export const Config = {
source: AsyncIterable<Config | Config[]> | Iterable<Config | Config[]>,
): AsyncIterable<Uint8Array> {
for await (const pkt of source) {
if (Array.isArray(pkt)) {
for (const p of pkt) {
if (globalThis.Array.isArray(pkt)) {
for (const p of pkt as any) {
yield* [Config.encode(p).finish()]
}
} else {
yield* [Config.encode(pkt).finish()]
yield* [Config.encode(pkt as any).finish()]
}
}
},
Expand All @@ -119,24 +119,26 @@ export const Config = {
| Iterable<Uint8Array | Uint8Array[]>,
): AsyncIterable<Config> {
for await (const pkt of source) {
if (Array.isArray(pkt)) {
for (const p of pkt) {
if (globalThis.Array.isArray(pkt)) {
for (const p of pkt as any) {
yield* [Config.decode(p)]
}
} else {
yield* [Config.decode(pkt)]
yield* [Config.decode(pkt as any)]
}
}
},

fromJSON(object: any): Config {
return {
listenAddr: isSet(object.listenAddr) ? String(object.listenAddr) : '',
listenAddr: isSet(object.listenAddr)
? globalThis.String(object.listenAddr)
: '',
apiConfig: isSet(object.apiConfig)
? Config1.fromJSON(object.apiConfig)
: undefined,
disableBusApi: isSet(object.disableBusApi)
? Boolean(object.disableBusApi)
? globalThis.Boolean(object.disableBusApi)
: false,
busApiConfig: isSet(object.busApiConfig)
? Config2.fromJSON(object.busApiConfig)
Expand Down Expand Up @@ -193,8 +195,8 @@ export type DeepPartial<T> = T extends Builtin
? T
: T extends Long
? string | number | Long
: T extends Array<infer U>
? Array<DeepPartial<U>>
: T extends globalThis.Array<infer U>
? globalThis.Array<DeepPartial<U>>
: T extends ReadonlyArray<infer U>
? ReadonlyArray<DeepPartial<U>>
: T extends { $case: string }
Expand Down
2 changes: 1 addition & 1 deletion daemon/api/controller/controller_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion entitygraph/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions entitygraph/config.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export const Config = {
source: AsyncIterable<Config | Config[]> | Iterable<Config | Config[]>,
): AsyncIterable<Uint8Array> {
for await (const pkt of source) {
if (Array.isArray(pkt)) {
for (const p of pkt) {
if (globalThis.Array.isArray(pkt)) {
for (const p of pkt as any) {
yield* [Config.encode(p).finish()]
}
} else {
yield* [Config.encode(pkt).finish()]
yield* [Config.encode(pkt as any).finish()]
}
}
},
Expand All @@ -57,12 +57,12 @@ export const Config = {
| Iterable<Uint8Array | Uint8Array[]>,
): AsyncIterable<Config> {
for await (const pkt of source) {
if (Array.isArray(pkt)) {
for (const p of pkt) {
if (globalThis.Array.isArray(pkt)) {
for (const p of pkt as any) {
yield* [Config.decode(p)]
}
} else {
yield* [Config.decode(pkt)]
yield* [Config.decode(pkt as any)]
}
}
},
Expand Down Expand Up @@ -98,8 +98,8 @@ export type DeepPartial<T> = T extends Builtin
? T
: T extends Long
? string | number | Long
: T extends Array<infer U>
? Array<DeepPartial<U>>
: T extends globalThis.Array<infer U>
? globalThis.Array<DeepPartial<U>>
: T extends ReadonlyArray<infer U>
? ReadonlyArray<DeepPartial<U>>
: T extends { $case: string }
Expand Down
2 changes: 1 addition & 1 deletion entitygraph/config_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/aperturerobotics/bifrost
go 1.20

require (
github.com/aperturerobotics/controllerbus v0.30.5 // latest
github.com/aperturerobotics/controllerbus v0.30.6 // latest
github.com/aperturerobotics/entitygraph v0.4.0
github.com/aperturerobotics/starpc v0.21.2 // latest
)
Expand All @@ -18,7 +18,7 @@ replace (
github.com/paralin/kcp-go-lite => github.com/paralin/kcp-go-lite v1.0.2-0.20210907043027-271505668bd0 // aperture
github.com/quic-go/quic-go => github.com/aperturerobotics/quic-go v0.38.1-0.20231004004015-9ea9492e88bd // aperture
github.com/sirupsen/logrus => github.com/aperturerobotics/logrus v1.9.1-0.20221224130652-ff61cbb763af // aperture
google.golang.org/protobuf => github.com/aperturerobotics/protobuf-go v1.31.1-0.20231004004114-bf10d4f3cd42 // aperture
google.golang.org/protobuf => github.com/aperturerobotics/protobuf-go v1.31.1-0.20231012212426-9cf9f0f94f47 // aperture
nhooyr.io/websocket => github.com/paralin/nhooyr-websocket v1.8.8-0.20220321125022-7defdf942f07 // aperture
storj.io/drpc => github.com/paralin/drpc v0.0.31-0.20220527065730-0e2a1370bccb // aperture
)
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ github.com/aperturerobotics/bifrost-nats-client v1.10.1-0.20200831103200-24c3d04
github.com/aperturerobotics/bifrost-nats-client v1.10.1-0.20200831103200-24c3d0464e58/go.mod h1:ougcjYEZDYV8pVtaNbA5sgYDukkYHyKtSsW/T3B13j0=
github.com/aperturerobotics/bifrost-nats-server/v2 v2.1.8-0.20221228081037-b7c2df0c151f h1:bmScByQNGDPPy9T+zdwu816XaCbFtD5UDyqZMRiHJ80=
github.com/aperturerobotics/bifrost-nats-server/v2 v2.1.8-0.20221228081037-b7c2df0c151f/go.mod h1:kIcZtLpq4UIZzOqduYLm1mYU1nuMBtN6XuDCtQ21QT8=
github.com/aperturerobotics/controllerbus v0.30.5 h1:wq2WJO54RDnLLRLieHFmsjX5U09n4iAMZrCGkkbwnYo=
github.com/aperturerobotics/controllerbus v0.30.5/go.mod h1:Adm1bgElXGFjIKoCdlGWOCgOequKdQN6Soqfkwgi/Hk=
github.com/aperturerobotics/controllerbus v0.30.6 h1:7OtoeCkvd4AVWpNk+8/2fZ+/EOa6mtoOSqmIjxWZv8g=
github.com/aperturerobotics/controllerbus v0.30.6/go.mod h1:jPA4/F6dT3ZvzaOHt0QMSA1RWeL7CdzVQ4DOiVYyK6g=
github.com/aperturerobotics/entitygraph v0.4.0 h1:V73zfiFrF6f8tBQ6Lg3YoptciPMFvfO0XySFRODWEuo=
github.com/aperturerobotics/entitygraph v0.4.0/go.mod h1:k3re4TkpTDmCA2PVkZ/bGdq5GSG/OFLkeviainSQKFQ=
github.com/aperturerobotics/logrus v1.9.1-0.20221224130652-ff61cbb763af h1:nRveANX8PK0j+6M+d6Hyl45W+fQpg6BDBfcrrFMbbrw=
github.com/aperturerobotics/logrus v1.9.1-0.20221224130652-ff61cbb763af/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/aperturerobotics/protobuf-go v1.31.1-0.20231004004114-bf10d4f3cd42 h1:umqEpzvBzfVydH+g1xP9WSWsf6AV2n0IjfbGnmZS3PY=
github.com/aperturerobotics/protobuf-go v1.31.1-0.20231004004114-bf10d4f3cd42/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
github.com/aperturerobotics/protobuf-go v1.31.1-0.20231012212426-9cf9f0f94f47 h1:ileI5MiwnrcVzZDUV62Ts0Q+TZt8Cgl1E+Ncr60YLeY=
github.com/aperturerobotics/protobuf-go v1.31.1-0.20231012212426-9cf9f0f94f47/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
github.com/aperturerobotics/quic-go v0.38.1-0.20231004004015-9ea9492e88bd h1:hNBdeeBdIaq7is2YqAs6INyHk4tN8Lh5KJgHc9UTprE=
github.com/aperturerobotics/quic-go v0.38.1-0.20231004004015-9ea9492e88bd/go.mod h1:54SZneeKslKqBE5rx+jowQvgocMeDrpCKnLNAfXWm68=
github.com/aperturerobotics/starpc v0.21.2 h1:v5P5VttYDeoXlVWKDwEMo9v29dcJEV9dW7n4MeWUbVs=
Expand Down
4 changes: 2 additions & 2 deletions hack/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replace github.com/aperturerobotics/bifrost => ../

replace (
github.com/sirupsen/logrus => github.com/aperturerobotics/logrus v1.9.1-0.20221224130652-ff61cbb763af // aperture
google.golang.org/protobuf => github.com/aperturerobotics/protobuf-go v1.31.1-0.20231004004114-bf10d4f3cd42 // aperture
google.golang.org/protobuf => github.com/aperturerobotics/protobuf-go v1.31.1-0.20231012212426-9cf9f0f94f47 // aperture
)

require (
Expand Down Expand Up @@ -42,7 +42,7 @@ require (
github.com/alexkohler/nakedret/v2 v2.0.2 // indirect
github.com/alexkohler/prealloc v1.0.0 // indirect
github.com/alingse/asasalint v0.0.11 // indirect
github.com/aperturerobotics/controllerbus v0.30.5 // indirect
github.com/aperturerobotics/controllerbus v0.30.6 // indirect
github.com/aperturerobotics/entitygraph v0.4.0 // indirect
github.com/aperturerobotics/timestamp v0.8.0 // indirect
github.com/aperturerobotics/ts-proto-common-types v0.2.0 // indirect
Expand Down
8 changes: 4 additions & 4 deletions hack/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pO
github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE=
github.com/alingse/asasalint v0.0.11 h1:SFwnQXJ49Kx/1GghOFz1XGqHYKp21Kq1nHad/0WQRnw=
github.com/alingse/asasalint v0.0.11/go.mod h1:nCaoMhw7a9kSJObvQyVzNTPBDbNpdocqrSP7t/cW5+I=
github.com/aperturerobotics/controllerbus v0.30.5 h1:wq2WJO54RDnLLRLieHFmsjX5U09n4iAMZrCGkkbwnYo=
github.com/aperturerobotics/controllerbus v0.30.5/go.mod h1:Adm1bgElXGFjIKoCdlGWOCgOequKdQN6Soqfkwgi/Hk=
github.com/aperturerobotics/controllerbus v0.30.6 h1:7OtoeCkvd4AVWpNk+8/2fZ+/EOa6mtoOSqmIjxWZv8g=
github.com/aperturerobotics/controllerbus v0.30.6/go.mod h1:jPA4/F6dT3ZvzaOHt0QMSA1RWeL7CdzVQ4DOiVYyK6g=
github.com/aperturerobotics/entitygraph v0.4.0 h1:V73zfiFrF6f8tBQ6Lg3YoptciPMFvfO0XySFRODWEuo=
github.com/aperturerobotics/entitygraph v0.4.0/go.mod h1:k3re4TkpTDmCA2PVkZ/bGdq5GSG/OFLkeviainSQKFQ=
github.com/aperturerobotics/goprotowrap v0.3.0 h1:JLQ/1zVRdm2qwfeK7bPxWPg5fpTLlzovDUom0vBgcgM=
github.com/aperturerobotics/goprotowrap v0.3.0/go.mod h1:ehsRFLviAKk5oiZK+i5oL4juhTYaGhaMrURiqY+ttLo=
github.com/aperturerobotics/logrus v1.9.1-0.20221224130652-ff61cbb763af h1:nRveANX8PK0j+6M+d6Hyl45W+fQpg6BDBfcrrFMbbrw=
github.com/aperturerobotics/logrus v1.9.1-0.20221224130652-ff61cbb763af/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/aperturerobotics/protobuf-go v1.31.1-0.20231004004114-bf10d4f3cd42 h1:umqEpzvBzfVydH+g1xP9WSWsf6AV2n0IjfbGnmZS3PY=
github.com/aperturerobotics/protobuf-go v1.31.1-0.20231004004114-bf10d4f3cd42/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
github.com/aperturerobotics/protobuf-go v1.31.1-0.20231012212426-9cf9f0f94f47 h1:ileI5MiwnrcVzZDUV62Ts0Q+TZt8Cgl1E+Ncr60YLeY=
github.com/aperturerobotics/protobuf-go v1.31.1-0.20231012212426-9cf9f0f94f47/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
github.com/aperturerobotics/starpc v0.21.2 h1:v5P5VttYDeoXlVWKDwEMo9v29dcJEV9dW7n4MeWUbVs=
github.com/aperturerobotics/starpc v0.21.2/go.mod h1:Q3T2anjw2P6gkJq7gp3vAO+pniPgv3Qx1uaX/mOuzWk=
github.com/aperturerobotics/timestamp v0.8.0 h1:33HLje1vrCWCOfLLaUi7Lgyz/1U9xTasNCw0PtLiDGc=
Expand Down
2 changes: 1 addition & 1 deletion handshake/identity/s2s/s2s.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7d61c35

Please sign in to comment.