bt-core-app 1.4.606 → 1.4.607

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.
Files changed (2) hide show
  1. package/dist/bt-core-app.js +24 -24
  2. package/package.json +1 -1
@@ -8170,12 +8170,12 @@ function Cx(e) {
8170
8170
  var C, w;
8171
8171
  const g = v.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = v.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, c = v.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
8172
8172
  let p = v.finalUrl, k = v.headers;
8173
- if (p == null && (p = a(v)), l != null && l.isDemoing.value)
8174
- return console.log(`DEMO: Get from ${p}`), l.get(v);
8175
- console.log(`Get from ${p}`);
8173
+ p == null && (p = a(v));
8176
8174
  let b;
8177
8175
  try {
8178
- if (await ((C = e == null ? void 0 : e.auth) == null ? void 0 : C.tryRefreshToken()), v.overrideHeaders !== !0 && (k = t(v)), b = await fetch(p, {
8176
+ if (l != null && l.isDemoing.value)
8177
+ return console.log(`DEMO: Get from ${p}`), l.get(v);
8178
+ if (console.log(`Get from ${p}`), await ((C = e == null ? void 0 : e.auth) == null ? void 0 : C.tryRefreshToken()), v.overrideHeaders !== !0 && (k = t(v)), b = await fetch(p, {
8179
8179
  method: "GET",
8180
8180
  mode: "cors",
8181
8181
  cache: "no-cache",
@@ -8214,12 +8214,12 @@ function Cx(e) {
8214
8214
  var C, w;
8215
8215
  const g = v.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = v.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, c = v.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
8216
8216
  let p = v.finalUrl, k = v.headers;
8217
- if (p == null && (p = a(v)), l != null && l.isDemoing.value)
8218
- return console.log(`DEMO: Get all from ${p}`), l.getAll(v);
8219
- console.log(`Get all from ${p}`);
8217
+ p == null && (p = a(v));
8220
8218
  let b;
8221
8219
  try {
8222
- if (await ((C = e == null ? void 0 : e.auth) == null ? void 0 : C.tryRefreshToken()), v.overrideHeaders !== !0 && (k = t(v)), b = await fetch(p, {
8220
+ if (l != null && l.isDemoing.value)
8221
+ return console.log(`DEMO: Get all from ${p}`), l.getAll(v);
8222
+ if (console.log(`Get all from ${p}`), await ((C = e == null ? void 0 : e.auth) == null ? void 0 : C.tryRefreshToken()), v.overrideHeaders !== !0 && (k = t(v)), b = await fetch(p, {
8223
8223
  method: "GET",
8224
8224
  mode: "cors",
8225
8225
  cache: "no-cache",
@@ -8258,12 +8258,12 @@ function Cx(e) {
8258
8258
  var C, w;
8259
8259
  const g = v.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = v.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, c = v.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
8260
8260
  let p = v.finalUrl, k = v.headers;
8261
- if (p == null && (p = a(v)), l != null && l.isDemoing.value)
8262
- return console.log(`DEMO: Post to ${p}`), l.post(v);
8263
- console.log(`Post to ${p}`);
8261
+ p == null && (p = a(v));
8264
8262
  let b;
8265
8263
  try {
8266
- if (await ((C = e == null ? void 0 : e.auth) == null ? void 0 : C.tryRefreshToken()), v.overrideHeaders !== !0 && (k = t(v)), b = await fetch(p, {
8264
+ if (l != null && l.isDemoing.value)
8265
+ return console.log(`DEMO: Post to ${p}`), l.post(v);
8266
+ if (console.log(`Post to ${p}`), await ((C = e == null ? void 0 : e.auth) == null ? void 0 : C.tryRefreshToken()), v.overrideHeaders !== !0 && (k = t(v)), b = await fetch(p, {
8267
8267
  method: "POST",
8268
8268
  mode: "cors",
8269
8269
  cache: "no-cache",
@@ -8303,12 +8303,12 @@ function Cx(e) {
8303
8303
  var C, w;
8304
8304
  const g = v.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = v.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, c = v.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
8305
8305
  let p = v.finalUrl, k = v.headers;
8306
- if (p == null && (p = a(v)), l != null && l.isDemoing.value)
8307
- return console.log(`DEMO: Patch to ${p}`), l.patch(v);
8308
- console.log(`Patch to ${p}`);
8306
+ p == null && (p = a(v));
8309
8307
  let b;
8310
8308
  try {
8311
- if (await ((C = e == null ? void 0 : e.auth) == null ? void 0 : C.tryRefreshToken()), v.overrideHeaders !== !0 && (k = t(v)), b = await fetch(p, {
8309
+ if (l != null && l.isDemoing.value)
8310
+ return console.log(`DEMO: Patch to ${p}`), l.patch(v);
8311
+ if (console.log(`Patch to ${p}`), await ((C = e == null ? void 0 : e.auth) == null ? void 0 : C.tryRefreshToken()), v.overrideHeaders !== !0 && (k = t(v)), b = await fetch(p, {
8312
8312
  method: "PATCH",
8313
8313
  mode: "cors",
8314
8314
  cache: "no-cache",
@@ -8348,12 +8348,12 @@ function Cx(e) {
8348
8348
  var k, b;
8349
8349
  const g = v.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
8350
8350
  let y = v.finalUrl, c = v.headers;
8351
- if (y == null && (y = a(v)), l != null && l.isDemoing.value)
8352
- return console.log(`DEMO: Delete ${y}`), l.deleteItem(v);
8353
- console.log(`Delete to ${y}`);
8351
+ y == null && (y = a(v));
8354
8352
  let p;
8355
8353
  try {
8356
- if (await ((k = e == null ? void 0 : e.auth) == null ? void 0 : k.tryRefreshToken()), v.overrideHeaders !== !0 && (c = t(v)), p = await fetch(y, {
8354
+ if (l != null && l.isDemoing.value)
8355
+ return console.log(`DEMO: Delete ${y}`), l.deleteItem(v);
8356
+ if (console.log(`Delete to ${y}`), await ((k = e == null ? void 0 : e.auth) == null ? void 0 : k.tryRefreshToken()), v.overrideHeaders !== !0 && (c = t(v)), p = await fetch(y, {
8357
8357
  method: "DELETE",
8358
8358
  mode: "cors",
8359
8359
  cache: "no-cache",
@@ -10323,7 +10323,7 @@ function rk(e) {
10323
10323
  w({
10324
10324
  data: p
10325
10325
  });
10326
- });
10326
+ }, 200);
10327
10327
  });
10328
10328
  }
10329
10329
  function h(g) {
@@ -10343,7 +10343,7 @@ function rk(e) {
10343
10343
  filters: [],
10344
10344
  count: (c == null ? void 0 : c.length) ?? 0
10345
10345
  });
10346
- });
10346
+ }, 200);
10347
10347
  });
10348
10348
  }
10349
10349
  function m(g) {
@@ -10362,7 +10362,7 @@ function rk(e) {
10362
10362
  C({
10363
10363
  data: c
10364
10364
  });
10365
- });
10365
+ }, 200);
10366
10366
  });
10367
10367
  }
10368
10368
  function v(g) {
@@ -10388,7 +10388,7 @@ function rk(e) {
10388
10388
  C({
10389
10389
  data: c
10390
10390
  });
10391
- });
10391
+ }, 200);
10392
10392
  });
10393
10393
  }
10394
10394
  return pc = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.606",
3
+ "version": "1.4.607",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {