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

@webcomponents/url

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webcomponents/url - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

gulpfile.js

10

package.json
{
"name": "@webcomponents/url",
"version": "0.7.1",
"version": "0.7.2",
"main": "url.js",

@@ -16,3 +16,4 @@ "repository": {

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "gulp",
"prepack": "npm run build"
},

@@ -22,3 +23,8 @@ "author": "Erik Arvidsson <arv@chromium.org>",

"access": "public"
},
"devDependencies": {
"google-closure-compiler": "^20180910.0.0",
"gulp": "^4.0.0",
"gulp-sourcemaps": "^2.6.4"
}
}

20

url.js
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/** @type {boolean|undefined} */
Window.prototype.forceJURL = false;
(function(scope) {

@@ -83,2 +86,7 @@ 'use strict';

/**
* @param {!string} input
* @param {?string=} stateOverride
* @param {(URL|string)=} base
*/
function parse(input, stateOverride, base) {

@@ -469,3 +477,5 @@ function err(message) {

* @constructor
* @implements {URL}
* @extends {URL}
* @param {!string} url
* @param {(URL|string)=} base
*/

@@ -476,6 +486,6 @@ function jURL(url, base /* , encoding */) {

this._url = url;
this._url = '' + url;
clear.call(this);
var input = url.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g, '');
var input = this._url.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g, '');
// encoding = encoding || 'utf-8'

@@ -577,2 +587,6 @@

return;
if(!hash) {
this._fragment = '';
return;
}
this._fragment = '#';

@@ -579,0 +593,0 @@ if ('#' == hash[0])

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