Comparing version 0.1.3 to 0.1.4
@@ -123,5 +123,7 @@ 'use strict'; | ||
// | ||
// Expose the URL parser. | ||
// Expose the URL parser and some additional properties that might be useful for | ||
// others. | ||
// | ||
URL.qs = qs; | ||
URL.location = lolcation; | ||
module.exports = URL; |
{ | ||
"name": "url-parse", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Parse URL in node using the URL module and in the browser using the DOM", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,2 +11,10 @@ describe('url-parse', function () { | ||
it('exposes the querystring module', function () { | ||
assume(parse.qs).equals(require('querystringify')); | ||
}); | ||
it('exposes the location function', function () { | ||
assume(parse.location).equals(require('./lolcation')); | ||
}); | ||
it('parsers the query string', function () { | ||
@@ -13,0 +21,0 @@ var url = 'http://google.com/?foo=bar' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16802
322
1