New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

insomnia-xpath

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insomnia-xpath - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

6

__tests__/index.test.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc