@valaxyjs/devtools 0.25.4 → 0.25.6

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-D04rK1A8.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-D04rK1A8.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-eWpLLrGQ.js","./splitpanes.es-COac6FR0.js","./index-DKnSvpEK.css","./migration-DwhFh8Ka.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-eWpLLrGQ.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-9C0GfY54.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-Dt9vK8jg.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-DwhFh8Ka.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-BfW_98mZ.js'),true ?[]:void 0,import.meta.url)
10609
10628
  /* no children */
10610
10629
  }
10611
10630
  ];
@@ -10632,10 +10651,18 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
10632
10651
  /* Injected with object hook! */
10633
10652
 
10634
10653
  /*!
10635
- * shared v11.1.9
10654
+ * shared v11.1.10
10636
10655
  * (c) 2025 kazuya kawaguchi
10637
10656
  * Released under the MIT License.
10638
10657
  */
10658
+ function warn(msg, err) {
10659
+ if (typeof console !== "undefined") {
10660
+ console.warn(`[intlify] ` + msg);
10661
+ if (err) {
10662
+ console.warn(err.stack);
10663
+ }
10664
+ }
10665
+ }
10639
10666
  const inBrowser = typeof window !== "undefined";
10640
10667
  const makeSymbol = (name, shareable = false) => !shareable ? Symbol(name) : Symbol.for(name);
10641
10668
  const generateFormatCacheKey = (locale, key, source) => friendlyJSONstringify({ l: locale, k: key, s: source });
@@ -10652,7 +10679,28 @@ const getGlobalThis = () => {
10652
10679
  return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : create());
10653
10680
  };
10654
10681
  function escapeHtml(rawText) {
10655
- return rawText.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
10682
+ return rawText.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\//g, "&#x2F;").replace(/=/g, "&#x3D;");
10683
+ }
10684
+ function escapeAttributeValue(value) {
10685
+ return value.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
10686
+ }
10687
+ function sanitizeTranslatedHtml(html) {
10688
+ html = html.replace(/(\w+)\s*=\s*"([^"]*)"/g, (_, attrName, attrValue) => `${attrName}="${escapeAttributeValue(attrValue)}"`);
10689
+ html = html.replace(/(\w+)\s*=\s*'([^']*)'/g, (_, attrName, attrValue) => `${attrName}='${escapeAttributeValue(attrValue)}'`);
10690
+ const eventHandlerPattern = /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi;
10691
+ if (eventHandlerPattern.test(html)) {
10692
+ html = html.replace(/(\s+)(on)(\w+\s*=)/gi, "$1&#111;n$3");
10693
+ }
10694
+ const javascriptUrlPattern = [
10695
+ // In href, src, action, formaction attributes
10696
+ /(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
10697
+ // In style attributes within url()
10698
+ /(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
10699
+ ];
10700
+ javascriptUrlPattern.forEach((pattern) => {
10701
+ html = html.replace(pattern, "$1javascript&#58;");
10702
+ });
10703
+ return html;
10656
10704
  }
10657
10705
  const hasOwnProperty = Object.prototype.hasOwnProperty;
10658
10706
  function hasOwn(obj, key) {
@@ -10675,14 +10723,6 @@ const toDisplayString = (val) => {
10675
10723
  function join(items, separator = "") {
10676
10724
  return items.reduce((str, item, index) => index === 0 ? str + item : str + separator + item, "");
10677
10725
  }
10678
- function warn(msg, err) {
10679
- if (typeof console !== "undefined") {
10680
- console.warn(`[intlify] ` + msg);
10681
- if (err) {
10682
- console.warn(err.stack);
10683
- }
10684
- }
10685
- }
10686
10726
  const isNotObjectOrIsArray = (val) => !isObject$1(val) || isArray(val);
10687
10727
  function deepCopy(src, des) {
10688
10728
  if (isNotObjectOrIsArray(src) || isNotObjectOrIsArray(des)) {
@@ -10710,7 +10750,7 @@ function deepCopy(src, des) {
10710
10750
  /* Injected with object hook! */
10711
10751
 
10712
10752
  /*!
10713
- * message-compiler v11.1.9
10753
+ * message-compiler v11.1.10
10714
10754
  * (c) 2025 kazuya kawaguchi
10715
10755
  * Released under the MIT License.
10716
10756
  */
@@ -12133,7 +12173,7 @@ function baseCompile$1(source, options = {}) {
12133
12173
  /* Injected with object hook! */
12134
12174
 
12135
12175
  /*!
12136
- * core-base v11.1.9
12176
+ * core-base v11.1.10
12137
12177
  * (c) 2025 kazuya kawaguchi
12138
12178
  * Released under the MIT License.
12139
12179
  */
@@ -12900,7 +12940,7 @@ function resolveValue(obj, path) {
12900
12940
  }
12901
12941
  return last;
12902
12942
  }
12903
- const VERSION$1 = "11.1.9";
12943
+ const VERSION$1 = "11.1.10";
12904
12944
  const NOT_REOSLVED = -1;
12905
12945
  const DEFAULT_LOCALE = "en-US";
12906
12946
  const MISSING_RESOLVE_VALUE = "";
@@ -13415,7 +13455,10 @@ function translate(context, ...args) {
13415
13455
  const ctxOptions = getMessageContextOptions(context, targetLocale, message, options);
13416
13456
  const msgContext = createMessageContext(ctxOptions);
13417
13457
  const messaged = evaluateMessage(context, msg, msgContext);
13418
- const ret = postTranslation ? postTranslation(messaged, key) : messaged;
13458
+ let ret = postTranslation ? postTranslation(messaged, key) : messaged;
13459
+ if (escapeParameter && isString(ret)) {
13460
+ ret = sanitizeTranslatedHtml(ret);
13461
+ }
13419
13462
  if (__INTLIFY_PROD_DEVTOOLS__) {
13420
13463
  const payloads = {
13421
13464
  timestamp: Date.now(),
@@ -13591,11 +13634,11 @@ function getMessageContextOptions(context, locale, message, options) {
13591
13634
  /* Injected with object hook! */
13592
13635
 
13593
13636
  /*!
13594
- * vue-i18n v11.1.9
13637
+ * vue-i18n v11.1.10
13595
13638
  * (c) 2025 kazuya kawaguchi
13596
13639
  * Released under the MIT License.
13597
13640
  */
13598
- const VERSION = "11.1.9";
13641
+ const VERSION = "11.1.10";
13599
13642
  function initFeatureFlags() {
13600
13643
  if (typeof __INTLIFY_PROD_DEVTOOLS__ !== "boolean") {
13601
13644
  getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
@@ -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-D04rK1A8.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-COac6FR0.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-D04rK1A8.js';
2
+ import { P as Pe, b as script, g as ge, c as axios } from './splitpanes.es-COac6FR0.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-D04rK1A8.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-D04rK1A8.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-D04rK1A8.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.6",
5
5
  "repository": {
6
6
  "url": "https://github.com/YunYouJun/valaxy"
7
7
  },
@@ -47,7 +47,7 @@
47
47
  "unbuild": "^3.5.0",
48
48
  "unplugin-vue-router": "^0.14.0",
49
49
  "vite": "^7.0.4",
50
- "vue-i18n": "^11.1.9"
50
+ "vue-i18n": "^11.1.10"
51
51
  },
52
52
  "scripts": {
53
53
  "clean": "rimraf dist",