Socket
Socket
Sign inDemoInstall

iso-url

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iso-url - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

7

CHANGELOG.md
# Changelog
### [1.1.3](https://www.github.com/hugomrdias/iso-url/compare/v1.1.2...v1.1.3) (2021-03-03)
### Bug Fixes
* add better guard against location definition ([#154](https://www.github.com/hugomrdias/iso-url/issues/154)) ([9dc71a9](https://www.github.com/hugomrdias/iso-url/commit/9dc71a9f505d39834861344c6696b0ca513400ad))
### [1.1.2](https://www.github.com/hugomrdias/iso-url/compare/v1.1.1...v1.1.2) (2021-03-01)

@@ -4,0 +11,0 @@

4

dist/src/url-browser.d.ts

@@ -10,3 +10,3 @@ export class URLWithLegacySupport {

static revokeObjectURL(o: string): void;
constructor(url?: string, base?: string);
constructor(url?: string, base?: string | undefined);
super: URL;

@@ -42,3 +42,3 @@ path: string;

}
export const defaultBase: string;
export const defaultBase: string | undefined;
/**

@@ -45,0 +45,0 @@ * @param {string | import('url').UrlObject} obj

{
"name": "iso-url",
"version": "1.1.2",
"version": "1.1.3",
"description": "Isomorphic/Universal WHATWG URL API with some support legacy node URL API",

@@ -36,3 +36,2 @@ "repository": "hugomrdias/iso-url",

],
"dependencies": {},
"devDependencies": {

@@ -39,0 +38,0 @@ "c8": "^7.6.0",

'use strict'
const defaultBase =
self.location && self.location.protocol + '//' + self.location.host
function getDefaultBase () {
if (!self.location) {
return
}
if (!self.location.protocol || !self.location.host) {
return
}
return self.location.protocol + '//' + self.location.host
}
const URL = self.URL
const defaultBase = getDefaultBase()

@@ -7,0 +18,0 @@ class URLWithLegacySupport {

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