Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #41 from xpring-eng/upgrade-packages
Browse files Browse the repository at this point in the history
Upgrade packages and run linter
  • Loading branch information
keefertaylor authored Oct 9, 2019
2 parents b091f62 + a5b53f1 commit f95cf1b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
25 changes: 21 additions & 4 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 @@ -23,7 +23,7 @@
"grpc_tools_node_protoc_ts": "2.5.4",
"is-hex": "^1.1.3",
"ripple-address-codec": "^2.0.1",
"ripple-binary-codec": "^0.2.2",
"ripple-binary-codec": "0.2.4",
"ripple-keypairs": "^0.11.0",
"typescript": "3.5.3"
},
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ export { credentials as grpcCredentials } from "grpc";
export { ServerCredentials as grpcServerCredentials } from "grpc";
export { Server as grpcServer } from "grpc";
export { default as Serializer } from "./serializer";

6 changes: 3 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ class Utils {
return addressCodec.isValidAddress(address);
}

public static toHex(bytes: Uint8Array): String {
return Buffer.from(bytes).toString('hex');
public static toHex(bytes: Uint8Array): string {
return Buffer.from(bytes).toString("hex");
}

public static toBytes(hex: string): Uint8Array {
return Uint8Array.from(Buffer.from(hex, 'hex'));
return Uint8Array.from(Buffer.from(hex, "hex"));
}
}

Expand Down

0 comments on commit f95cf1b

Please sign in to comment.