@putkoff/abstract-utilities 0.1.0 → 0.1.1

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.
@@ -1,4 +1,3 @@
1
- export * from './config';
2
1
  export * from './file_utils';
3
2
  export * from './functions';
4
3
  export * from './hooks';
package/dist/cjs/index.js CHANGED
@@ -48,18 +48,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
48
48
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
49
49
  };
50
50
 
51
- exports.AppConfig = void 0;
52
- function loadConfig() {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- const base = (process.env.PUBLIC_URL || "").replace(/\/+$/, "");
55
- const url = `${base}/config.json`;
56
- const res = yield fetch(url);
57
- if (!res.ok)
58
- throw new Error(`Failed to load ${url}: ${res.status}`);
59
- exports.AppConfig = yield res.json();
60
- });
61
- }
62
-
63
51
  /** Helper function to trigger file download */
64
52
  function triggerDownload(blob, filename) {
65
53
  const url = URL.createObjectURL(blob);
@@ -1765,7 +1753,6 @@ exports.initSelectAll = initSelectAll;
1765
1753
  exports.isLoggedIn = isLoggedIn;
1766
1754
  exports.isTokenExpired = isTokenExpired;
1767
1755
  exports.listFiles = listFiles;
1768
- exports.loadConfig = loadConfig;
1769
1756
  exports.make_path = make_path;
1770
1757
  exports.make_sanitized_path = make_sanitized_path;
1771
1758
  exports.normalizeUrl = normalizeUrl;