[Pkg-javascript-commits] [node-expat] 259/371: use bindings lib to locate addon

Jonas Smedegaard dr at jones.dk
Sun Feb 28 10:00:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-expat.

commit 596cbeff7371e725b4b8508489572ab8285b162d
Author: Rod Vagg <rod at vagg.org>
Date:   Wed Aug 13 09:36:43 2014 +1000

    use bindings lib to locate addon
---
 lib/node-expat.js | 2 +-
 package.json      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/node-expat.js b/lib/node-expat.js
index fb1b39b..36c469a 100644
--- a/lib/node-expat.js
+++ b/lib/node-expat.js
@@ -1,7 +1,7 @@
 var EventEmitter = require('events').EventEmitter;
 var util = require('util');
 // Only support nodejs v0.6 and on so no need to look for older module location
-var expat = require('../build/Release/node_expat.node');
+var expat = require('bindings')('node_expat');
 var Stream = require('stream').Stream;
 
 var Parser = function(encoding) {
diff --git a/package.json b/package.json
index 6b773e8..82744d0 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
     "test": "vows --spec ./test.js"
   },
   "dependencies": {
+    "bindings": "~1.2.1",
     "nan": "~1.2.0"
   },
   "devDependencies": {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git



More information about the Pkg-javascript-commits mailing list