You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

combo-url-parser

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

combo-url-parser - npm Package Compare versions

Comparing version

to
0.1.1

3

lib/middleware.js

@@ -20,5 +20,6 @@ var parser = require('./parser.js');

return function (req, res, next) {
var urls = parser(req.url);
if (urls.length === 1) {
if (!urls) {
next();

@@ -25,0 +26,0 @@ return;

@@ -21,3 +21,3 @@ var URL = require("url");

if (idx1 === -1) {
return [url];
return;
}

@@ -24,0 +24,0 @@

@@ -5,3 +5,3 @@ {

"description": "A util to parser comboed url",
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -24,1 +24,8 @@ [![build status](https://secure.travis-ci.org/maxbbn/combo-url-parser.png)](http://travis-ci.org/maxbbn/combo-url-parser)

````
## ChangeLog
### 0.1.1
- 修复单个 combo 无法访问的问题
- 如果 URL 中不符合parser规范, 返回 null