Skip to content

Commit

Permalink
Merge branch 'release/1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
draconisNoctis committed Aug 28, 2017
2 parents a1dbc93 + f91e6e9 commit d55deda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neoskop/ugl",
"version": "1.2.0",
"version": "1.2.1",
"description": "A library to create UGL files",
"main": "lib/index.js",
"jsnext:main": "lib.es6/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/blob.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('utils/blob', () => {
const buf = builder.toBuffer();


expect(buf).to.be.eql(Buffer.from([ 0x61, 0x62, 0x63, 0x64 ]));
expect(buf).to.be.eql(new Buffer([ 0x61, 0x62, 0x63, 0x64 ]));
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/utils/blob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class BlobBuilder {
}

toBuffer() {
return Buffer.from(this.toUint8Array().buffer as ArrayBuffer);
return new Buffer(this.toUint8Array());
}

toBlob() : Blob {
Expand Down

0 comments on commit d55deda

Please sign in to comment.