genesys-cloud-service-discovery-web
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -169,3 +169,3 @@ 'use strict'; | ||
var matchesHostname = function (hostname) { return function (domain) { | ||
return endsWith(hostname, domain); | ||
return hostname === domain || endsWith(hostname, "." + domain); | ||
}; }; | ||
@@ -245,3 +245,3 @@ var parseEnvFromName = function (name) { | ||
var _a = parseValidUrl(url), hostname = _a.hostname, pathname = _a.pathname; | ||
if (localHostnames.some(matchesHostname(hostname))) { | ||
if (localHostnames.indexOf(hostname) >= 0) { | ||
var _b = pathname.split("/"), envName_1 = _b[1]; | ||
@@ -248,0 +248,0 @@ var localEnv = getEnvironments(filters).find(function (e) { return e.name === envName_1; }); |
@@ -773,3 +773,3 @@ (function (global, factory) { | ||
var matchesHostname = function (hostname) { return function (domain) { | ||
return endsWith(hostname, domain); | ||
return hostname === domain || endsWith(hostname, "." + domain); | ||
}; }; | ||
@@ -849,3 +849,3 @@ var parseEnvFromName = function (name) { | ||
var _a = parseValidUrl(url), hostname = _a.hostname, pathname = _a.pathname; | ||
if (localHostnames.some(matchesHostname(hostname))) { | ||
if (localHostnames.indexOf(hostname) >= 0) { | ||
var _b = pathname.split("/"), envName_1 = _b[1]; | ||
@@ -852,0 +852,0 @@ var localEnv = getEnvironments(filters).find(function (e) { return e.name === envName_1; }); |
{ | ||
"name": "genesys-cloud-service-discovery-web", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Javascript library for discovering region deployments in Genesys Cloud", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
45549