genesys-cloud-service-discovery-web
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -59,4 +59,6 @@ 'use strict'; | ||
assert(typeof value === "string", "url is not a string"); | ||
var url = parseUrl__default['default'](value); | ||
assert(!!url.hostname, "invalid url: '" + value + "', unable to parse hostname"); | ||
// Explicitly pass {} as 2nd param so that `url-parse` parses the url | ||
// independently from the browser's current window location | ||
var url = parseUrl__default['default'](value, {}); | ||
assert(url.protocol && url.hostname, "invalid url: '" + value + "', unable to parse hostname"); | ||
return url; | ||
@@ -63,0 +65,0 @@ } |
@@ -663,4 +663,6 @@ (function (global, factory) { | ||
assert(typeof value === "string", "url is not a string"); | ||
var url = urlParse(value); | ||
assert(!!url.hostname, "invalid url: '" + value + "', unable to parse hostname"); | ||
// Explicitly pass {} as 2nd param so that `url-parse` parses the url | ||
// independently from the browser's current window location | ||
var url = urlParse(value, {}); | ||
assert(url.protocol && url.hostname, "invalid url: '" + value + "', unable to parse hostname"); | ||
return url; | ||
@@ -667,0 +669,0 @@ } |
{ | ||
"name": "genesys-cloud-service-discovery-web", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Javascript library for discovering region deployments in Genesys Cloud", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
47060
1153