Skip to content

Commit 9036c08

Browse files
committed
Proper dependencies for BB2, fixes #31
1 parent 708afa4 commit 9036c08

7 files changed

+14
-19
lines changed

ByteBuffer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
* @const
112112
* @expose
113113
*/
114-
ByteBuffer.VERSION = "2.3.1";
114+
ByteBuffer.VERSION = "2.3.2";
115115

116116
/**
117117
* Default buffer capacity of `16`. The ByteBuffer will be automatically resized by a factor of 2 if required.

ByteBuffer.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ByteBuffer.min.map

+1-1
Large diffs are not rendered by default.

ByteBuffer.noexpose.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
* @type {string}
104104
* @const
105105
*/
106-
ByteBuffer.VERSION = "2.3.1";
106+
ByteBuffer.VERSION = "2.3.2";
107107

108108
/**
109109
* Default buffer capacity of `16`. The ByteBuffer will be automatically resized by a factor of 2 if required.

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bytebuffer",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"author": "Daniel Wirtz <[email protected]>",
55
"description": "A full-featured ByteBuffer implementation using typed arrays.",
66
"main": "ByteBuffer.js",

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bytebuffer",
3-
"version": "2.3.1",
3+
"version": "2.3.2",
44
"author": "Daniel Wirtz <[email protected]>",
55
"description": "A full-featured ByteBuffer implementation using typed arrays.",
66
"main": "ByteBuffer.js",
@@ -13,12 +13,12 @@
1313
},
1414
"keywords": ["net", "array", "buffer", "arraybuffer", "typed array", "bytebuffer", "json", "websocket", "webrtc"],
1515
"dependencies": {
16-
"long": "latest"
16+
"long": "~1"
1717
},
1818
"devDependencies": {
19-
"testjs": "latest",
20-
"preprocessor": "latest",
21-
"closurecompiler": "latest"
19+
"testjs": "~1",
20+
"preprocessor": "~1.4",
21+
"closurecompiler": "~1"
2222
},
2323
"license": "Apache-2.0",
2424
"engines": {

tests/suite.js

+4-9
Original file line numberDiff line numberDiff line change
@@ -424,19 +424,14 @@ var suite = {
424424
"write/readUint64": function(test) {
425425
var bb = new ByteBuffer(8);
426426

427-
var max = ByteBuffer.Long.MAX_UNSIGNED_VALUE.toNumber();
427+
var max = ByteBuffer.Long.MAX_UNSIGNED_VALUE;
428428
bb.writeUint64(max).flip();
429429
test.equal(bb.toString("debug"), "<FF FF FF FF FF FF FF FF>");
430-
test.equal(bb.readUint64(0), max);
431-
432-
var min = ByteBuffer.Long.MIN_UNSIGNED_VALUE.toNumber();
433-
bb.writeLong(min).flip();
434-
test.equal(bb.toString("debug"), "<00 00 00 00 00 00 00 00>");
435-
test.equal(bb.readUint64(0), min);
430+
test.deepEqual(bb.readUint64(0), max);
436431

437432
bb.writeUint64(-1).flip();
438-
test.equal(bb.toString("debug"), "<00 00 00 00 00 00 00 00>");
439-
test.equal(bb.readUint64(0), 0);
433+
test.equal(bb.toString("debug"), "<FF FF FF FF FF FF FF FF>");
434+
test.deepEqual(bb.readUint64(0), ByteBuffer.Long.fromNumber(-1, true));
440435

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

0 commit comments

Comments
 (0)