@valaxyjs/devtools 0.25.4 → 0.25.5

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,4 @@
1
- import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-HXGp8cJz.js';
1
+ import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-DmfbP7Er.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = { };
4
4
 
@@ -1,4 +1,4 @@
1
- import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-HXGp8cJz.js';
1
+ import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-DmfbP7Er.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = { };
4
4
 
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CfaafvW8.js","./splitpanes.es-DmJodE1j.js","./index-DKnSvpEK.css","./migration-C1NGcc0-.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-plTkktUE.js","./splitpanes.es-CboP2JXA.js","./index-DKnSvpEK.css","./migration-ffLQs4f6.js"])))=>i.map(i=>d[i]);
2
2
  true &&(function polyfill() {
3
3
  const relList = document.createElement("link").relList;
4
4
  if (relList && relList.supports && relList.supports("modulepreload")) return;
@@ -7948,10 +7948,13 @@ function createBirpc(functions, options) {
7948
7948
  return functions;
7949
7949
  if (method === "$close")
7950
7950
  return close;
7951
+ if (method === "$rejectPendingCalls") {
7952
+ return rejectPendingCalls;
7953
+ }
7951
7954
  if (method === "$closed")
7952
7955
  return closed;
7953
7956
  if (method === "then" && !eventNames.includes("then") && !("then" in functions))
7954
- return undefined;
7957
+ return void 0;
7955
7958
  const sendEvent = (...args) => {
7956
7959
  post(serialize({ m: method, a: args, t: TYPE_REQUEST }));
7957
7960
  };
@@ -7966,7 +7969,7 @@ function createBirpc(functions, options) {
7966
7969
  try {
7967
7970
  await _promise;
7968
7971
  } finally {
7969
- _promise = undefined;
7972
+ _promise = void 0;
7970
7973
  }
7971
7974
  }
7972
7975
  return new Promise((resolve, reject) => {
@@ -7994,14 +7997,30 @@ function createBirpc(functions, options) {
7994
7997
  return sendCall;
7995
7998
  }
7996
7999
  });
7997
- function close(error) {
8000
+ function close(customError) {
7998
8001
  closed = true;
7999
8002
  rpcPromiseMap.forEach(({ reject, method }) => {
8000
- reject(error || new Error(`[birpc] rpc is closed, cannot call "${method}"`));
8003
+ const error = new Error(`[birpc] rpc is closed, cannot call "${method}"`);
8004
+ if (customError) {
8005
+ customError.cause ??= error;
8006
+ return reject(customError);
8007
+ }
8008
+ reject(error);
8001
8009
  });
8002
8010
  rpcPromiseMap.clear();
8003
8011
  off(onMessage);
8004
8012
  }
8013
+ function rejectPendingCalls(handler) {
8014
+ const entries = Array.from(rpcPromiseMap.values());
8015
+ const handlerResults = entries.map(({ method, reject }) => {
8016
+ if (!handler) {
8017
+ return reject(new Error(`[birpc]: rejected pending call "${method}".`));
8018
+ }
8019
+ return handler({ method, reject });
8020
+ });
8021
+ rpcPromiseMap.clear();
8022
+ return handlerResults;
8023
+ }
8005
8024
  async function onMessage(data, ...extra) {
8006
8025
  let msg;
8007
8026
  try {
@@ -10581,31 +10600,31 @@ const routes = [
10581
10600
  {
10582
10601
  path: "/",
10583
10602
  name: "/",
10584
- component: () => __vitePreload(() => import('./index-CfaafvW8.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
10603
+ component: () => __vitePreload(() => import('./index-plTkktUE.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
10585
10604
  /* no children */
10586
10605
  },
10587
10606
  {
10588
10607
  path: "/about",
10589
10608
  name: "/about",
10590
- component: () => __vitePreload(() => import('./about-1VFKA8T4.js'),true ?[]:void 0,import.meta.url)
10609
+ component: () => __vitePreload(() => import('./about-CrVqlMW-.js'),true ?[]:void 0,import.meta.url)
10591
10610
  /* no children */
10592
10611
  },
10593
10612
  {
10594
10613
  path: "/categories",
10595
10614
  name: "/categories",
10596
- component: () => __vitePreload(() => import('./categories-a1qUhy3i.js'),true ?[]:void 0,import.meta.url)
10615
+ component: () => __vitePreload(() => import('./categories-DOlFwtup.js'),true ?[]:void 0,import.meta.url)
10597
10616
  /* no children */
10598
10617
  },
10599
10618
  {
10600
10619
  path: "/migration",
10601
10620
  name: "/migration",
10602
- component: () => __vitePreload(() => import('./migration-C1NGcc0-.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
10621
+ component: () => __vitePreload(() => import('./migration-ffLQs4f6.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
10603
10622
  /* no children */
10604
10623
  },
10605
10624
  {
10606
10625
  path: "/tags",
10607
10626
  name: "/tags",
10608
- component: () => __vitePreload(() => import('./tags-Cav8j7El.js'),true ?[]:void 0,import.meta.url)
10627
+ component: () => __vitePreload(() => import('./tags-CRAe0j4g.js'),true ?[]:void 0,import.meta.url)
10609
10628
  /* no children */
10610
10629
  }
10611
10630
  ];
@@ -1,5 +1,5 @@
1
- import { g as getAppWindow, s, B as BaseStyle, r as resolveDirective, w as withDirectives, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, n as normalizeClass, d as createCommentVNode, m as mergeProps, t as toDisplayString, k, e as c, f as resolveComponent, F as Fragment, h as renderList, i as createBlock, j as createSlots, l as withCtx, p as defineComponent, u as useModel, q as ref, v as watch, x as createVNode, y as unref, _ as _export_sfc, z as createTextVNode, A as B, C as At, D as s$1, E as tt, T as Teleport, K as Kt, W, G as b, Y, H as z, I as Ht, Q, J as I, L as v, M as D, N as Yt, S, O as normalizeStyle, P as resolveDynamicComponent, R as Transition, U as vShow, V as withKeys, X as pt, Z as Mt, $ as toHandlers, a0 as useI18n, a1 as dayjs, a2 as clientPageData, a3 as toRaw, a4 as pageData, a5 as activePath, a6 as onMounted, a7 as rpc, a8 as getDefaultExportFromCjs, a9 as computed, aa as devtoolsRouter, ab as useScroll, ac as postList, ad as isStaticMode } from './index-HXGp8cJz.js';
2
- import { s as script$n, R as Ripple, f, a as script$o, b as script$p, c as axios, P as Pe, g as ge } from './splitpanes.es-DmJodE1j.js';
1
+ import { g as getAppWindow, s, B as BaseStyle, r as resolveDirective, w as withDirectives, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, n as normalizeClass, d as createCommentVNode, m as mergeProps, t as toDisplayString, k, e as c, f as resolveComponent, F as Fragment, h as renderList, i as createBlock, j as createSlots, l as withCtx, p as defineComponent, u as useModel, q as ref, v as watch, x as createVNode, y as unref, _ as _export_sfc, z as createTextVNode, A as B, C as At, D as s$1, E as tt, T as Teleport, K as Kt, W, G as b, Y, H as z, I as Ht, Q, J as I, L as v, M as D, N as Yt, S, O as normalizeStyle, P as resolveDynamicComponent, R as Transition, U as vShow, V as withKeys, X as pt, Z as Mt, $ as toHandlers, a0 as useI18n, a1 as dayjs, a2 as clientPageData, a3 as toRaw, a4 as pageData, a5 as activePath, a6 as onMounted, a7 as rpc, a8 as getDefaultExportFromCjs, a9 as computed, aa as devtoolsRouter, ab as useScroll, ac as postList, ad as isStaticMode } from './index-DmfbP7Er.js';
2
+ import { s as script$n, R as Ripple, f, a as script$o, b as script$p, c as axios, P as Pe, g as ge } from './splitpanes.es-CboP2JXA.js';
3
3
 
4
4
  function g(){let r=[],i=(e,n,t=999)=>{let s=u(e,n,t),o=s.value+(s.key===e?0:t)+1;return r.push({key:e,value:o}),o},d=e=>{r=r.filter(n=>n.value!==e);},a=(e,n)=>u(e).value,u=(e,n,t=0)=>[...r].reverse().find(s=>true)||{key:e,value:t},l=e=>e&&parseInt(e.style.zIndex,10)||0;return {get:l,set:(e,n,t)=>{n&&(n.style.zIndex=String(i(e,true,t)));},clear:e=>{e&&(d(l(e)),e.style.zIndex="");},getCurrent:e=>a(e)}}var x=g();
5
5
  /* Injected with object hook! */
@@ -1,5 +1,5 @@
1
- import { p as defineComponent, q as ref, i as createBlock, l as withCtx, y as unref, x as createVNode, a as createBaseVNode, z as createTextVNode, c as createElementBlock, h as renderList, w as withDirectives, ae as vModelCheckbox, t as toDisplayString, ac as postList, F as Fragment, af as vModelText, o as openBlock } from './index-HXGp8cJz.js';
2
- import { P as Pe, b as script, g as ge, c as axios } from './splitpanes.es-DmJodE1j.js';
1
+ import { p as defineComponent, q as ref, i as createBlock, l as withCtx, y as unref, x as createVNode, a as createBaseVNode, z as createTextVNode, c as createElementBlock, h as renderList, w as withDirectives, ae as vModelCheckbox, t as toDisplayString, ac as postList, F as Fragment, af as vModelText, o as openBlock } from './index-DmfbP7Er.js';
2
+ import { P as Pe, b as script, g as ge, c as axios } from './splitpanes.es-CboP2JXA.js';
3
3
 
4
4
  const _hoisted_1 = {
5
5
  flex: "~ gap-2",
@@ -1,4 +1,4 @@
1
- import { ag as F, m as mergeProps, ah as l, ai as v, aj as R, ak as g, B as BaseStyle, al as p, am as g$1, an as m, ao as i, ap as a, aq as PrimeVueService, ar as b, Q, as as O, at as Tt, au as Rt, L as v$1, av as C, aw as K, ax as W, ay as U, az as useId, s as s$1, H as z, aA as c, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, z as createTextVNode, t as toDisplayString, f as resolveComponent, r as resolveDirective, w as withDirectives, i as createBlock, l as withCtx, d as createCommentVNode, n as normalizeClass, P as resolveDynamicComponent, aB as useSlots, q as ref, a9 as computed, v as watch, a6 as onMounted, aC as onBeforeUnmount, aD as provide, aE as inject, aF as getCurrentInstance, O as normalizeStyle, y as unref, aG as h, aH as nextTick } from './index-HXGp8cJz.js';
1
+ import { ag as F, m as mergeProps, ah as l, ai as v, aj as R, ak as g, B as BaseStyle, al as p, am as g$1, an as m, ao as i, ap as a, aq as PrimeVueService, ar as b, Q, as as O, at as Tt, au as Rt, L as v$1, av as C, aw as K, ax as W, ay as U, az as useId, s as s$1, H as z, aA as c, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, z as createTextVNode, t as toDisplayString, f as resolveComponent, r as resolveDirective, w as withDirectives, i as createBlock, l as withCtx, d as createCommentVNode, n as normalizeClass, P as resolveDynamicComponent, aB as useSlots, q as ref, a9 as computed, v as watch, a6 as onMounted, aC as onBeforeUnmount, aD as provide, aE as inject, aF as getCurrentInstance, O as normalizeStyle, y as unref, aG as h, aH as nextTick } from './index-DmfbP7Er.js';
2
2
 
3
3
  function f(...e){if(e){let t=[];for(let i=0;i<e.length;i++){let n=e[i];if(!n)continue;let s=typeof n;if(s==="string"||s==="number")t.push(n);else if(s==="object"){let c=Array.isArray(n)?[f(...n)]:Object.entries(n).map(([r,o])=>o?r:void 0);t=c.length?t.concat(c.filter(r=>!!r)):t;}}return t.join(" ").trim()}}
4
4
  /* Injected with object hook! */
@@ -1,4 +1,4 @@
1
- import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-HXGp8cJz.js';
1
+ import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-DmfbP7Er.js';
2
2
 
3
3
  /* unplugin-vue-components disabled */const _sfc_main = { };
4
4
 
@@ -16,7 +16,7 @@
16
16
  document.documentElement.classList.toggle('dark', true)
17
17
  })()
18
18
  </script>
19
- <script type="module" crossorigin src="./assets/index-HXGp8cJz.js"></script>
19
+ <script type="module" crossorigin src="./assets/index-DmfbP7Er.js"></script>
20
20
  <link rel="stylesheet" crossorigin href="./assets/index-CJU8Ji_S.css">
21
21
  </head>
22
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valaxyjs/devtools",
3
3
  "type": "module",
4
- "version": "0.25.4",
4
+ "version": "0.25.5",
5
5
  "repository": {
6
6
  "url": "https://github.com/YunYouJun/valaxy"
7
7
  },