studiokit-scaffolding-js 5.1.5 → 5.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constants/tier.d.ts +1 -0
- package/lib/constants/tier.js +1 -0
- package/lib/utils/url.js +10 -1
- package/package.json +1 -1
package/lib/constants/tier.d.ts
CHANGED
package/lib/constants/tier.js
CHANGED
package/lib/utils/url.js
CHANGED
|
@@ -55,7 +55,16 @@ function getApiBaseUrl(tier, apiUrlString) {
|
|
|
55
55
|
}
|
|
56
56
|
var protocol = apiUrlString.substring(0, apiUrlString.indexOf('//'));
|
|
57
57
|
var host = apiUrlString.substring(apiUrlString.indexOf('://') + 3);
|
|
58
|
-
|
|
58
|
+
var tierSubdomainPart = '';
|
|
59
|
+
switch (tier) {
|
|
60
|
+
case tier_1.TIER.DEV:
|
|
61
|
+
tierSubdomainPart = '.dev';
|
|
62
|
+
break;
|
|
63
|
+
case tier_1.TIER.QA:
|
|
64
|
+
tierSubdomainPart = '.qa';
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
return protocol + "//" + shardKey + tierSubdomainPart + "." + host;
|
|
59
68
|
}
|
|
60
69
|
exports.getApiBaseUrl = getApiBaseUrl;
|
|
61
70
|
function getStorageUrl(config, url) {
|
package/package.json
CHANGED