Skip to content

Commit

Permalink
bindings: use "node-bindings"
Browse files Browse the repository at this point in the history
Better error messaging and Debug support
  • Loading branch information
TooTallNate committed Sep 30, 2012
1 parent cce4a08 commit 8fce9c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
11 changes: 1 addition & 10 deletions lib/bindings.js
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
/**
* Compat for changes from node 0.4.x to 0.6.x.
*/
try {
module.exports = require('../build/Release/bindings');
} catch (e) { try {
module.exports = require('../build/default/bindings');
} catch (e) {
throw e;
}}
module.exports = require('bindings')('bindings');
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
, "repository": { "type": "git", "url": "git://github.com/TooTallNate/node-lame.git" }
, "main": "./index.js"
, "dependencies": {
"debug": "*"
"bindings": "*"
, "debug": "*"
, "strtok": "0.1.x"
}
, "scripts": {
Expand Down

0 comments on commit 8fce9c4

Please sign in to comment.