@putkoff/abstract-utilities 0.1.175 → 0.1.176
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/dist/cjs/index.js +9 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1347,7 +1347,15 @@ function get_app_config_url(endpoint) {
|
|
|
1347
1347
|
const appKey = (`BASE_API_URL`);
|
|
1348
1348
|
const base = yield fetchIt('https://abstractendeavors.com/api/secure_env', { "key": 'BASE_API_URL', 'path': '/var/www/abstractendeavors/secure-files/public/config.json' }, 'POST', null, false, true);
|
|
1349
1349
|
endpoint = stripPrefixes(endpoint, ['/', 'https://', 'abstractendeavors.com', 'api']);
|
|
1350
|
-
|
|
1350
|
+
if (base && endpoint) {
|
|
1351
|
+
return make_path(base, endpoint);
|
|
1352
|
+
}
|
|
1353
|
+
if (base) {
|
|
1354
|
+
return base;
|
|
1355
|
+
}
|
|
1356
|
+
if (endpoint) {
|
|
1357
|
+
return endpoint;
|
|
1358
|
+
}
|
|
1351
1359
|
}
|
|
1352
1360
|
catch (_a) {
|
|
1353
1361
|
return endpoint;
|