bt-core-app 1.4.441 → 1.4.442
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/bt-core-app.js +6 -7
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -8250,19 +8250,18 @@ function bx(e) {
|
|
|
8250
8250
|
}
|
|
8251
8251
|
async function u() {
|
|
8252
8252
|
return e.testToken ?? (e.testToken = async () => {
|
|
8253
|
-
var V;
|
|
8254
8253
|
let b = l.value.token, T = !1;
|
|
8255
8254
|
const D = e.getTokenTestUrl ?? (() => on(gu(), "test"));
|
|
8256
8255
|
if (b != null) {
|
|
8257
|
-
const
|
|
8256
|
+
const L = await Rr().post({
|
|
8258
8257
|
additionalUrl: D(b),
|
|
8259
8258
|
data: {
|
|
8260
8259
|
token: b
|
|
8261
8260
|
}
|
|
8262
8261
|
});
|
|
8263
|
-
console.log("test result"), console.log(
|
|
8262
|
+
console.log("test result"), console.log(L), L.data === !0 && (T = !0);
|
|
8264
8263
|
}
|
|
8265
|
-
return T ? !0 : (v(
|
|
8264
|
+
return T ? !0 : (v(e.tokenInvalidPath), !1);
|
|
8266
8265
|
}), await e.testToken();
|
|
8267
8266
|
}
|
|
8268
8267
|
async function w(b, T) {
|
|
@@ -40339,16 +40338,16 @@ const $E = /* @__PURE__ */ Je({
|
|
|
40339
40338
|
function FV(e) {
|
|
40340
40339
|
return {
|
|
40341
40340
|
install(t, n) {
|
|
40342
|
-
var c, f, m, h, v;
|
|
40341
|
+
var c, f, m, h, v, g;
|
|
40343
40342
|
e.includeComponents == !0 && (t.component("bt-avatar", mI), t.component("bt-blade-item", vI), t.component("bt-blade-items", Ep), t.component("bt-blade", CI), t.component("bt-btn", _I), t.component("bt-camera-overlay", DI), t.component("bt-col", AI), t.component("bt-cosmetics-menu", II), t.component("bt-cron", RI), t.component("bt-date", w1), t.component("bt-drag-counter", UI), t.component("bt-entity", qI), t.component("bt-field-checkbox", GI), t.component("bt-field-date", ZI), t.component("bt-field-entity", KI), t.component("bt-field-select", XI), t.component("bt-field-string", JI), t.component("bt-field-switch", QI), t.component("bt-field-tags", e5), t.component("bt-field-text-area", t5), t.component("bt-field-trigger", i5), t.component("bt-header-option", u5), t.component("bt-image-uploader", gE), t.component("bt-json", pE), t.component("bt-loader", bE), t.component("bt-nav-sidebar", wE), t.component("bt-number", x1), t.component("bt-numpad", xE), t.component("bt-select-inline", DE), t.component("bt-select-list-box", AE), t.component("bt-select", LE), t.component("bt-signature", $E), t.component("bt-signature-overlay", BE), t.component("bt-slider", NE), t.component("bt-span", FE)), e.cosmetics ?? (e.cosmetics = {}), (c = e.cosmetics).vuetifyInstance ?? (c.vuetifyInstance = n.vuetifyInstance);
|
|
40344
40343
|
const a = mx(e.urls);
|
|
40345
40344
|
Sx(e.cosmetics);
|
|
40346
40345
|
const l = nM(e.navigation ?? {});
|
|
40347
40346
|
e.heights ?? (e.heights = {}), (f = e.heights).display ?? (f.display = n.vuetifyDisplay), (m = e.heights).navigation ?? (m.navigation = l), nf(e.heights);
|
|
40348
40347
|
const r = oI(e.menu);
|
|
40349
|
-
lM(e), (h = e.auth).menu ?? (h.menu = r), e.auth.getAuthItem = l.findItem;
|
|
40348
|
+
lM(e), (h = e.auth).menu ?? (h.menu = r), (v = e.auth).router ?? (v.router = n.router), e.auth.getAuthItem = l.findItem;
|
|
40350
40349
|
const i = bx(e.auth);
|
|
40351
|
-
e.demo != null && ((
|
|
40350
|
+
e.demo != null && ((g = e.demo).auth ?? (g.auth = i));
|
|
40352
40351
|
const o = Jx(e.demo), s = px({
|
|
40353
40352
|
...e.api,
|
|
40354
40353
|
auth: i,
|
package/dist/index.d.ts
CHANGED
|
@@ -368,7 +368,7 @@ export declare interface CreateAuthOptions {
|
|
|
368
368
|
/**tests whether token is still valid after receiving a 401 Unauthorized Response */
|
|
369
369
|
testToken?: (code?: string) => Promise<boolean>;
|
|
370
370
|
/**where to route to if token is no longer valid */
|
|
371
|
-
|
|
371
|
+
tokenInvalidPath?: string;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
export declare function createCore(options: CreateCoreOptions): CoreApp;
|
package/package.json
CHANGED