qipp-config-environment
Advanced tools
Comparing version 3.0.0 to 4.0.0
{ | ||
"name": "qipp-config-environment", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"title": "Environment configuration", | ||
@@ -5,0 +5,0 @@ "description": "Environment configuration file for the ATH clients.", |
@@ -13,8 +13,8 @@ ;(function () { | ||
) { | ||
var regex = (/^[\w-]+\.(\w+\.)qipp\.com$/) | ||
var regex = (/^[\w-]+\.(\w+\.)allthings\.me$/) | ||
var match = $windowProvider.$get().location.hostname.match(regex) | ||
var subdomainPart = match ? match[1] : '' | ||
config.api.host = 'https://api.' + subdomainPart + 'qipp.com' | ||
config.api.host = 'https://api.' + subdomainPart + 'allthings.me' | ||
} | ||
]) | ||
}()) |
@@ -17,3 +17,3 @@ ;(function () { | ||
beforeEach(function () { | ||
$window = { location: { hostname: 'erlenapp.dev.qipp.com' } } | ||
$window = { location: { hostname: 'erlenapp.dev.allthings.me' } } | ||
module(function ($provide) { | ||
@@ -27,3 +27,3 @@ $provide.value('$window', $window) | ||
function (config) { | ||
expect(config.api.host).toEqual('https://api.dev.qipp.com') | ||
expect(config.api.host).toEqual('https://api.dev.allthings.me') | ||
} | ||
@@ -35,3 +35,3 @@ )) | ||
beforeEach(function () { | ||
$window = { location: { hostname: 'erlenapp.staging.qipp.com' } } | ||
$window = { location: { hostname: 'erlenapp.staging.allthings.me' } } | ||
module(function ($provide) { | ||
@@ -45,3 +45,3 @@ $provide.value('$window', $window) | ||
function (config) { | ||
expect(config.api.host).toEqual('https://api.staging.qipp.com') | ||
expect(config.api.host).toEqual('https://api.staging.allthings.me') | ||
} | ||
@@ -53,3 +53,3 @@ )) | ||
beforeEach(function () { | ||
$window = { location: { hostname: 'erlenapp.qipp.com' } } | ||
$window = { location: { hostname: 'erlenapp.allthings.me' } } | ||
module(function ($provide) { | ||
@@ -63,3 +63,3 @@ $provide.value('$window', $window) | ||
function (config) { | ||
expect(config.api.host).toEqual('https://api.qipp.com') | ||
expect(config.api.host).toEqual('https://api.allthings.me') | ||
} | ||
@@ -80,3 +80,3 @@ )) | ||
function (config) { | ||
expect(config.api.host).toEqual('https://api.qipp.com') | ||
expect(config.api.host).toEqual('https://api.allthings.me') | ||
} | ||
@@ -83,0 +83,0 @@ )) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7453
1