insomnia-xpath
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -15,3 +15,3 @@ const { query } = require('..'); | ||
['<x><y>foo</y><y>bar</y></x>', '//y'], | ||
[{ inner: 'foo', outer: '<y>foo</y>' }, { inner: 'bar', outer: '<y>bar</y>' }] | ||
[{ inner: 'foo', outer: '<y>foo</y>' }, { inner: 'bar', outer: '<y>bar</y>' }], | ||
); | ||
@@ -22,3 +22,3 @@ | ||
['<x><y foo="bar">foo</y><y hi="there">bar</y></x>', '//*[@foo="bar"]'], | ||
[{ inner: 'foo', outer: '<y foo="bar">foo</y>' }] | ||
[{ inner: 'foo', outer: '<y foo="bar">foo</y>' }], | ||
); | ||
@@ -29,3 +29,3 @@ | ||
['<x><y>foo</y><y>bar</y></x>', 'substring(//y[1], 2)'], | ||
[{ inner: 'oo', outer: 'oo' }] | ||
[{ inner: 'oo', outer: 'oo' }], | ||
); | ||
@@ -32,0 +32,0 @@ |
@@ -26,3 +26,3 @@ const xpath = require('xpath'); | ||
outer: rawResults, | ||
inner: rawResults | ||
inner: rawResults, | ||
}); | ||
@@ -34,3 +34,3 @@ } else { | ||
outer: result.toString().trim(), | ||
inner: result.nodeValue | ||
inner: result.nodeValue, | ||
}); | ||
@@ -40,3 +40,3 @@ } else if (result.constructor.name === 'Element') { | ||
outer: result.toString().trim(), | ||
inner: result.childNodes.toString() | ||
inner: result.childNodes.toString(), | ||
}); | ||
@@ -43,0 +43,0 @@ } |
{ | ||
"name": "insomnia-xpath", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"author": "Gregory Schier <gschier1990@gmail.com>", | ||
@@ -12,7 +12,7 @@ "description": "Query XML using XPath", | ||
"dependencies": { | ||
"insomnia-cookies": "^0.0.11", | ||
"insomnia-cookies": "^0.0.12", | ||
"xmldom": "^0.1.27", | ||
"xpath": "0.0.27" | ||
}, | ||
"gitHead": "d0652a5b918564e19980afe6905027f7c8fda522" | ||
"gitHead": "ac5e333d37e08fc87eee39f85844203f24e5f7c2" | ||
} |
3955
+ Addedinsomnia-cookies@0.0.12(transitive)
- Removedinsomnia-cookies@0.0.11(transitive)
Updatedinsomnia-cookies@^0.0.12