Skip to content

Commit aec0f32

Browse files
committed
Fix u8ToStr and bump version to beta
1 parent b736e67 commit aec0f32

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function b64ToStr(b64Str) {
8080
}
8181
exports.b64ToStr = b64ToStr;
8282
function u8ToStr(arr) {
83-
var buf = Buffer.from(arr.buffer).toString();
83+
var buf = Buffer.from(arr.buffer);
8484
if (arr.byteLength !== arr.buffer.byteLength) {
8585
buf = buf.slice(arr.byteOffset, arr.byteOffset + arr.byteLength);
8686
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dgraph-js",
3-
"version": "1.1.0",
3+
"version": "1.1.1-beta.1",
44
"description": "Official javascript client for Dgraph",
55
"license": "Apache-2.0",
66
"repository": {

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function b64ToStr(b64Str: string): string {
106106
}
107107

108108
export function u8ToStr(arr: Uint8Array): string {
109-
let buf = Buffer.from(arr.buffer).toString();
109+
let buf = Buffer.from(arr.buffer);
110110
if (arr.byteLength !== arr.buffer.byteLength) {
111111
// Respect the "view", i.e. byteOffset and byteLength, without doing a copy.
112112
buf = buf.slice(arr.byteOffset, arr.byteOffset + arr.byteLength);

0 commit comments

Comments
 (0)