Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

url-parse

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-parse - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

.zuul.yml

55

fuzzy.js

@@ -15,10 +15,55 @@ 'use strict';

combinations.protocol = ['http:', 'https:', 'ws:', 'wss:', 'blob:'/*, ''*/];
combinations.protocol = [
'http:',
'https:',
'ws:',
'wss:',
'blob:'/*,
''*/
];
combinations.username = ['foo', 'bar'];
combinations.password = combinations.username;
combinations.hostname = ['example.com', 'www.example.com', 'travel.travel', 'sub.sub.sub.domain.nl', 'xn--n3h.com', 'localhost', '127.0.0.1', '255.255.255.255', /*'3ffe:6a88:85a3:08d3:1319:8a2e:0370:7344', '2001:2353::1428:57ab', '2001:2353:0::0:1428:57ab', '2001:2353:0:0:0:0:1428:57ab', '2001:2353:0000:0000:0000::1428:57ab', '2001:2353:0000:0000:0000:0000:1428:57ab', '2001:2353:02de::0e13', '2001:2353:2de::e13'*/];
combinations.hostname = [
'example.com',
'www.example.com',
'travel.travel',
'sub.sub.sub.domain.nl',
'xn--n3h.com',
'localhost',
'127.0.0.1',
'255.255.255.255'/*,
'3ffe:6a88:85a3:08d3:1319:8a2e:0370:7344',
'2001:2353::1428:57ab',
'2001:2353:0::0:1428:57ab',
'2001:2353:0:0:0:0:1428:57ab',
'2001:2353:0000:0000:0000::1428:57ab',
'2001:2353:0000:0000:0000:0000:1428:57ab',
'2001:2353:02de::0e13',
'2001:2353:2de::e13'*/
];
combinations.port = ['8080', '844', '3340'];
combinations.pathname = ['/', '/bar', '/bar/', '/foo/bar', '/foo.bar/foo', '/fav.ico', '/@3rd-Eden', '/a/b/c/d/e/f/g/j/1/d/4/'];
combinations.query = ['foo=bar', 'foo[]=bar&foo[]=foo', 'email=foo@bar.travel', 'q='];
combinations.hash = ['name', 'moo-with-longer-name', '/what/about/slashes?querystring', '?querystring', '!/google/urls', 'use:foo@', 'http://'];
combinations.pathname = [
'/',
'/bar',
'/bar/',
'/foo/bar',
'/foo.bar/foo',
'/fav.ico',
'/@3rd-Eden',
'/a/b/c/d/e/f/g/j/1/d/4/'
];
combinations.query = ['foo=bar',
'foo[]=bar&foo[]=foo',
'email=foo@bar.travel',
'q='
];
combinations.hash = [
'name',
'moo-with-longer-name',
'/what/about/slashes?querystring',
'?querystring',
'!/google/urls',
'use:foo@',
'http://'
];

@@ -25,0 +70,0 @@ /**

53

package.json
{
"name": "url-parse",
"version": "1.0.4",
"version": "1.0.5",
"description": "Small footprint URL parser that works seamlessly across Node.js and browser environments",

@@ -8,10 +8,13 @@ "main": "index.js",

"100%": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
"test": "mocha test.js",
"browserify": "mkdir -p dist && browserify index.js -s URLParse -o dist/url-parse.js",
"test-node": "istanbul cover _mocha --report lcovonly -- test.js",
"coverage": "istanbul cover _mocha -- test.js",
"test-browser": "zuul -- test.js",
"watch": "mocha --watch test.js",
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- test.js",
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js",
"browserify": "mkdir -p dist && browserify index.js -o dist/url-parse.js --standalone URLParse",
"phantomjs": "mochify --reporter spec --ui bdd ./test.js",
"testling": "testling -u"
"test": "mocha test.js"
},
"repository": {
"type": "git",
"url": "https://github.com/unshiftio/url-parse.git"
},
"keywords": [

@@ -30,36 +33,14 @@ "URL",

"license": "MIT",
"dependencies": {
"querystringify": "0.0.x",
"requires-port": "1.0.x"
},
"devDependencies": {
"assume": "1.3.x",
"browserify": "11.2.x",
"istanbul": "0.3.x",
"browserify": "12.0.x",
"istanbul": "0.4.x",
"mocha": "2.3.x",
"mochify": "2.13.x",
"pre-commit": "1.1.x",
"testling": "1.7.x"
},
"testling": {
"files": "test.js",
"harness": "mocha-bdd",
"browsers": [
"ie/6..latest",
"chrome/22..latest",
"firefox/16..latest",
"safari/latest",
"opera/11.0..latest",
"iphone/6",
"ipad/6",
"android-browser/latest"
]
},
"browser": {
"url": false
},
"repository": {
"type": "git",
"url": "https://github.com/unshiftio/url-parse"
},
"dependencies": {
"querystringify": "0.0.x",
"requires-port": "0.0.x"
"zuul": "3.7.x"
}
}
# url-parse
[![Made by unshift](https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square)](http://unshift.io)[![Version npm](http://img.shields.io/npm/v/url-parse.svg?style=flat-square)](http://browsenpm.org/package/url-parse)[![Build Status](http://img.shields.io/travis/unshiftio/url-parse/master.svg?style=flat-square)](https://travis-ci.org/unshiftio/url-parse)[![Dependencies](https://img.shields.io/david/unshiftio/url-parse.svg?style=flat-square)](https://david-dm.org/unshiftio/url-parse)[![Coverage Status](http://img.shields.io/coveralls/unshiftio/url-parse/master.svg?style=flat-square)](https://coveralls.io/r/unshiftio/url-parse?branch=master)[![IRC channel](http://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square)](http://webchat.freenode.net/?channels=unshift)
[![Made by unshift](https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square)](http://unshift.io)[![Version npm](https://img.shields.io/npm/v/url-parse.svg?style=flat-square)](http://browsenpm.org/package/url-parse)[![Build Status](https://img.shields.io/travis/unshiftio/url-parse/master.svg?style=flat-square)](https://travis-ci.org/unshiftio/url-parse)[![Dependencies](https://img.shields.io/david/unshiftio/url-parse.svg?style=flat-square)](https://david-dm.org/unshiftio/url-parse)[![Coverage Status](https://img.shields.io/coveralls/unshiftio/url-parse/master.svg?style=flat-square)](https://coveralls.io/r/unshiftio/url-parse?branch=master)[![IRC channel](https://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square)](https://webchat.freenode.net/?channels=unshift)
[![Sauce Test Status](https://saucelabs.com/browser-matrix/url-parse.svg)](https://saucelabs.com/u/url-parse)
The `url-parse` method exposes two different API interfaces. The

@@ -120,2 +122,2 @@ [`url`](https://nodejs.org/api/url.html) interface that you know from Node.js

MIT
[MIT](LICENSE)

Sorry, the diff of this file is not supported yet

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