Skip to content

Commit

Permalink
Proper dependencies for BB2, fixes #31
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Aug 12, 2014
1 parent 708afa4 commit 9036c08
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion ByteBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
* @const
* @expose
*/
ByteBuffer.VERSION = "2.3.1";
ByteBuffer.VERSION = "2.3.2";

/**
* Default buffer capacity of `16`. The ByteBuffer will be automatically resized by a factor of 2 if required.
Expand Down
2 changes: 1 addition & 1 deletion ByteBuffer.min.js

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

2 changes: 1 addition & 1 deletion ByteBuffer.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ByteBuffer.noexpose.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
* @type {string}
* @const
*/
ByteBuffer.VERSION = "2.3.1";
ByteBuffer.VERSION = "2.3.2";

/**
* Default buffer capacity of `16`. The ByteBuffer will be automatically resized by a factor of 2 if required.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bytebuffer",
"version": "2.3.1",
"version": "2.3.2",
"author": "Daniel Wirtz <dcode@dcode.io>",
"description": "A full-featured ByteBuffer implementation using typed arrays.",
"main": "ByteBuffer.js",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bytebuffer",
"version": "2.3.1",
"version": "2.3.2",
"author": "Daniel Wirtz <dcode@dcode.io>",
"description": "A full-featured ByteBuffer implementation using typed arrays.",
"main": "ByteBuffer.js",
Expand All @@ -13,12 +13,12 @@
},
"keywords": ["net", "array", "buffer", "arraybuffer", "typed array", "bytebuffer", "json", "websocket", "webrtc"],
"dependencies": {
"long": "latest"
"long": "~1"
},
"devDependencies": {
"testjs": "latest",
"preprocessor": "latest",
"closurecompiler": "latest"
"testjs": "~1",
"preprocessor": "~1.4",
"closurecompiler": "~1"
},
"license": "Apache-2.0",
"engines": {
Expand Down
13 changes: 4 additions & 9 deletions tests/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,19 +424,14 @@ var suite = {
"write/readUint64": function(test) {
var bb = new ByteBuffer(8);

var max = ByteBuffer.Long.MAX_UNSIGNED_VALUE.toNumber();
var max = ByteBuffer.Long.MAX_UNSIGNED_VALUE;
bb.writeUint64(max).flip();
test.equal(bb.toString("debug"), "<FF FF FF FF FF FF FF FF>");
test.equal(bb.readUint64(0), max);

var min = ByteBuffer.Long.MIN_UNSIGNED_VALUE.toNumber();
bb.writeLong(min).flip();
test.equal(bb.toString("debug"), "<00 00 00 00 00 00 00 00>");
test.equal(bb.readUint64(0), min);
test.deepEqual(bb.readUint64(0), max);

bb.writeUint64(-1).flip();
test.equal(bb.toString("debug"), "<00 00 00 00 00 00 00 00>");
test.equal(bb.readUint64(0), 0);
test.equal(bb.toString("debug"), "<FF FF FF FF FF FF FF FF>");
test.deepEqual(bb.readUint64(0), ByteBuffer.Long.fromNumber(-1, true));

bb.reset();
bb.LE().writeUint64(new ByteBuffer.Long(0x89ABCDEF, 0x01234567, true)).flip();
Expand Down

0 comments on commit 9036c08

Please sign in to comment.