@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/esm/index.js CHANGED
@@ -1344,7 +1344,15 @@ function get_app_config_url(endpoint) {
1344
1344
  const appKey = (`BASE_API_URL`);
1345
1345
  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);
1346
1346
  endpoint = stripPrefixes(endpoint, ['/', 'https://', 'abstractendeavors.com', 'api']);
1347
- return make_path(base, endpoint);
1347
+ if (base && endpoint) {
1348
+ return make_path(base, endpoint);
1349
+ }
1350
+ if (base) {
1351
+ return base;
1352
+ }
1353
+ if (endpoint) {
1354
+ return endpoint;
1355
+ }
1348
1356
  }
1349
1357
  catch (_a) {
1350
1358
  return endpoint;