Skip to content

Commit

Permalink
[RSDK-6167] Update RPC library (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
njooma authored Jan 3, 2024
1 parent f2826bb commit 9cd9e02
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ test-watch: $(node_modules) build-buf
lint: $(node_modules) build-buf
npm run lint
npm run typecheck
# TODO(RSDK-5407): We can stop ignoring `@viamrobotics/rpc` once build issues are resolved in the latest version.
npm run check -- -i @viamrobotics/rpc
npm run check

.PHONY: format
format: $(node_modules)
Expand Down
22 changes: 16 additions & 6 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"homepage": "https://github.com/viamrobotics/viam-typescript-sdk#readme",
"dependencies": {
"@viamrobotics/rpc": "^0.1.39",
"@viamrobotics/rpc": "^0.2.1",
"exponential-backoff": "^3.1.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/viam-transport.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { grpc } from '@improbable-eng/grpc-web';
import { dialDirect } from '@viamrobotics/rpc/src/dial';
import { dialDirect } from '@viamrobotics/rpc';

import { AuthenticateRequest, Credentials } from '../gen/proto/rpc/v1/auth_pb';
import { AuthServiceClient } from '../gen/proto/rpc/v1/auth_pb_service';
Expand Down
2 changes: 1 addition & 1 deletion src/robot/client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable max-classes-per-file */
import { backOff } from 'exponential-backoff';
import type { Credentials, DialOptions } from '@viamrobotics/rpc/src/dial';
import type { Credentials, DialOptions } from '@viamrobotics/rpc';
import { Duration } from 'google-protobuf/google/protobuf/duration_pb';
import { dialDirect, dialWebRTC } from '@viamrobotics/rpc';
import { grpc } from '@improbable-eng/grpc-web';
Expand Down

0 comments on commit 9cd9e02

Please sign in to comment.