Skip to content

Commit fd4eb1f

Browse files
committed
Ensure backcompat of xpath API
1 parent 0f56ff9 commit fd4eb1f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
var select = require('xpath').select
2+
13
module.exports = require('./lib/signed-xml')
2-
module.exports.xpath = require('xpath').select
4+
module.exports.xpath = function(node, xpath) {
5+
return select(xpath, node)
6+
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xml-crypto",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Xml digital signature and encryption library for Node.js",
55
"engines": {
66
"node": ">=0.4.0"

0 commit comments

Comments
 (0)