diff --git a/index.js b/index.js index 31b13b1b..23abdf5a 100644 --- a/index.js +++ b/index.js @@ -1,2 +1,6 @@ +var select = require('xpath').select + module.exports = require('./lib/signed-xml') -module.exports.xpath = require('xpath').select \ No newline at end of file +module.exports.xpath = function(node, xpath) { + return select(xpath, node) +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 890378e8..c036f448 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "xml-crypto", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 80173f4e..45936847 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xml-crypto", - "version": "1.1.0", + "version": "1.1.1", "description": "Xml digital signature and encryption library for Node.js", "engines": { "node": ">=0.4.0"