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

httpquery

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpquery - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

5

CHANGES.md
# CHANGES to httpquery
## 0.6.2
- fix: avoid erring on implicit `index.html` with query params
- fix: allow detection of XHTML with query params
## 0.6.1

@@ -4,0 +9,0 @@

4

Node/index.js

@@ -52,3 +52,3 @@ // Todo: Make this integratable into a pipeline; ensure can use HTML or XML DOM with content-type accordingly

const clientJSONPathSupport = clientSupportCheck(req, 'jsonpath');
const isXHTML = url.match(/\.xhtml$/u);
const isXHTML = url.match(/\.xhtml(\?.*)$/u);
const isXML = url.match(/\.xml$/u);

@@ -87,3 +87,3 @@ const isTEI = url.match(/\.tei$/u);

url = (url.slice(-1) === '/' ? url + 'index.html' : url).replace(/\?.*$/u, '');
url = url.replace(/(\/|\/\?.*)$/u, '/index.html').replace(/\?.*$/u, '');
// url = require('url').parse(url).pathname; // Need to strip off request parameters?

@@ -90,0 +90,0 @@ // console.log('url:'+url);

{
"name": "httpquery",
"version": "0.6.1",
"version": "0.6.2",
"author": "Brett Zamir",

@@ -5,0 +5,0 @@ "contributors": [],

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