smbls 2.10.1 → 2.10.3
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/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8388,7 +8388,7 @@ __reExport(smbls_exports, __toESM(require_dist()), module.exports);
|
|
|
8388
8388
|
|
|
8389
8389
|
// ../fetch/index.js
|
|
8390
8390
|
var BACKEND_URL = window.location.host.includes("local") ? "localhost:13335" : "api.symbols.app";
|
|
8391
|
-
var
|
|
8391
|
+
var fetchRemote = async (key, route) => {
|
|
8392
8392
|
let data = {};
|
|
8393
8393
|
await window.fetch(`https://${BACKEND_URL}/${route || ""}`, {
|
|
8394
8394
|
method: "GET",
|
|
@@ -8430,7 +8430,7 @@ var create2 = async (App, options = defaultOptions) => {
|
|
|
8430
8430
|
App = {};
|
|
8431
8431
|
if (key) {
|
|
8432
8432
|
if (options.remote) {
|
|
8433
|
-
const data = await
|
|
8433
|
+
const data = await fetchRemote(key);
|
|
8434
8434
|
console.log(data);
|
|
8435
8435
|
overwriteDeep(data, options);
|
|
8436
8436
|
}
|