Skip to content

Commit

Permalink
use the npm version of node-int64
Browse files Browse the repository at this point in the history
  • Loading branch information
wadey committed Jun 17, 2011
1 parent 8976a43 commit 7676779
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 181 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -52,7 +52,7 @@ Here is a Cassandra example:
<a name="int64"></a>
## Int64

Since JavaScript represents all numbers as doubles, int64 values cannot be accurately represented naturally. To solve this, int64 values in responses will be wrapped with Thirft.Int64 objects. This Int64 implementation is based on [broofa/node-int64](https://github.com/broofa/node-int64)
Since JavaScript represents all numbers as doubles, int64 values cannot be accurately represented naturally. To solve this, int64 values in responses will be wrapped with Thirft.Int64 objects. The Int64 implementation used is [broofa/node-int64](https://github.com/broofa/node-int64).

## Custom client and server example

Expand Down
177 changes: 0 additions & 177 deletions lib/thrift/Int64.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/thrift/index.js
Expand Up @@ -7,4 +7,4 @@ exports.createConnection = connection.createConnection;

exports.createServer = require('./server').createServer;

exports.Int64 = require('./Int64')
exports.Int64 = require('node-int64')
2 changes: 1 addition & 1 deletion lib/thrift/protocol.js
Expand Up @@ -3,7 +3,7 @@ var sys = require('sys'),
Type = Thrift.Type;

var binary = require('./binary'),
Int64 = require('./Int64');
Int64 = Thrift.Int64;

var UNKNOWN = 0,
INVALID_DATA = 1,
Expand Down
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -5,5 +5,8 @@
"author": "Wade Simmons <wade@wades.im>",
"directories" : { "lib" : "./lib/thrift" },
"main": "./lib/thrift",
"engines": { "node": ">= 0.2.4" }
"engines": { "node": ">= 0.2.4" },
"dependencies": {
"node-int64": "0.2.x"
}
}

0 comments on commit 7676779

Please sign in to comment.