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

url-parse

Package Overview
Dependencies
Maintainers
2
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 0.1.3 to 0.1.4

4

index.js

@@ -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'

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