@valaxyjs/devtools 0.25.9 → 0.25.11

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-D04rK1A8.js';
1
+ import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-DMBtOiwv.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-D04rK1A8.js';
1
+ import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-DMBtOiwv.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-eWpLLrGQ.js","./splitpanes.es-COac6FR0.js","./index-DKnSvpEK.css","./migration-DwhFh8Ka.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Degf9mNo.js","./splitpanes.es-CQZybzj_.js","./index-DKnSvpEK.css","./migration-BpRnp8we.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;
@@ -329,7 +329,7 @@ var index = _objectSpread$3(_objectSpread$3({}, e$Q), {}, {
329
329
  /* Injected with object hook! */
330
330
 
331
331
  /**
332
- * @vue/shared v3.5.17
332
+ * @vue/shared v3.5.18
333
333
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
334
334
  * @license MIT
335
335
  **/
@@ -577,7 +577,7 @@ const stringifySymbol = (v, i = "") => {
577
577
  /* Injected with object hook! */
578
578
 
579
579
  /**
580
- * @vue/reactivity v3.5.17
580
+ * @vue/reactivity v3.5.18
581
581
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
582
582
  * @license MIT
583
583
  **/
@@ -2158,7 +2158,7 @@ function traverse(value, depth = Infinity, seen) {
2158
2158
  /* Injected with object hook! */
2159
2159
 
2160
2160
  /**
2161
- * @vue/runtime-core v3.5.17
2161
+ * @vue/runtime-core v3.5.18
2162
2162
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
2163
2163
  * @license MIT
2164
2164
  **/
@@ -3698,7 +3698,7 @@ const PublicInstanceProxyHandlers = {
3698
3698
  function useSlots() {
3699
3699
  return getContext().slots;
3700
3700
  }
3701
- function getContext() {
3701
+ function getContext(calledFunctionName) {
3702
3702
  const i = getCurrentInstance();
3703
3703
  return i.setupContext || (i.setupContext = createSetupContext(i));
3704
3704
  }
@@ -3827,7 +3827,8 @@ function applyOptions(instance) {
3827
3827
  expose.forEach((key) => {
3828
3828
  Object.defineProperty(exposed, key, {
3829
3829
  get: () => publicThis[key],
3830
- set: (val) => publicThis[key] = val
3830
+ set: (val) => publicThis[key] = val,
3831
+ enumerable: true
3831
3832
  });
3832
3833
  });
3833
3834
  } else if (!instance.exposed) {
@@ -4184,7 +4185,7 @@ function provide(key, value) {
4184
4185
  }
4185
4186
  }
4186
4187
  function inject(key, defaultValue, treatDefaultAsFactory = false) {
4187
- const instance = currentInstance || currentRenderingInstance;
4188
+ const instance = getCurrentInstance();
4188
4189
  if (instance || currentApp) {
4189
4190
  let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
4190
4191
  if (provides && key in provides) {
@@ -4195,7 +4196,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
4195
4196
  }
4196
4197
  }
4197
4198
  function hasInjectionContext() {
4198
- return !!(currentInstance || currentRenderingInstance || currentApp);
4199
+ return !!(getCurrentInstance() || currentApp);
4199
4200
  }
4200
4201
  const internalObjectProto = {};
4201
4202
  const createInternalObject = () => Object.create(internalObjectProto);
@@ -4483,7 +4484,7 @@ function validatePropName(key) {
4483
4484
  }
4484
4485
  return false;
4485
4486
  }
4486
- const isInternalKey = (key) => key[0] === "_" || key === "$stable";
4487
+ const isInternalKey = (key) => key === "_" || key === "__" || key === "_ctx" || key === "$stable";
4487
4488
  const normalizeSlotValue = (value) => isArray$2(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
4488
4489
  const normalizeSlot$1 = (key, rawSlot, ctx) => {
4489
4490
  if (rawSlot._n) {
@@ -5113,6 +5114,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5113
5114
  if (!initialVNode.el) {
5114
5115
  const placeholder = instance.subTree = createVNode(Comment);
5115
5116
  processCommentNode(null, placeholder, container, anchor);
5117
+ initialVNode.placeholder = placeholder.el;
5116
5118
  }
5117
5119
  } else {
5118
5120
  setupRenderEffect(
@@ -5525,7 +5527,11 @@ function baseCreateRenderer(options, createHydrationFns) {
5525
5527
  for (i = toBePatched - 1; i >= 0; i--) {
5526
5528
  const nextIndex = s2 + i;
5527
5529
  const nextChild = c2[nextIndex];
5528
- const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
5530
+ const anchorVNode = c2[nextIndex + 1];
5531
+ const anchor = nextIndex + 1 < l2 ? (
5532
+ // #13559, fallback to el placeholder for unresolved async component
5533
+ anchorVNode.el || anchorVNode.placeholder
5534
+ ) : parentAnchor;
5529
5535
  if (newIndexToOldIndexMap[i] === 0) {
5530
5536
  patch(
5531
5537
  null,
@@ -6595,6 +6601,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
6595
6601
  suspense: vnode.suspense,
6596
6602
  ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
6597
6603
  ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
6604
+ placeholder: vnode.placeholder,
6598
6605
  el: vnode.el,
6599
6606
  anchor: vnode.anchor,
6600
6607
  ctx: vnode.ctx,
@@ -7011,12 +7018,12 @@ function h(type, propsOrChildren, children) {
7011
7018
  return createVNode(type, propsOrChildren, children);
7012
7019
  }
7013
7020
  }
7014
- const version = "3.5.17";
7021
+ const version = "3.5.18";
7015
7022
 
7016
7023
  /* Injected with object hook! */
7017
7024
 
7018
7025
  /**
7019
- * @vue/runtime-dom v3.5.17
7026
+ * @vue/runtime-dom v3.5.18
7020
7027
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
7021
7028
  * @license MIT
7022
7029
  **/
@@ -10600,31 +10607,31 @@ const routes = [
10600
10607
  {
10601
10608
  path: "/",
10602
10609
  name: "/",
10603
- component: () => __vitePreload(() => import('./index-eWpLLrGQ.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
10610
+ component: () => __vitePreload(() => import('./index-Degf9mNo.js'),true ?__vite__mapDeps([0,1,2]):void 0,import.meta.url)
10604
10611
  /* no children */
10605
10612
  },
10606
10613
  {
10607
10614
  path: "/about",
10608
10615
  name: "/about",
10609
- component: () => __vitePreload(() => import('./about-9C0GfY54.js'),true ?[]:void 0,import.meta.url)
10616
+ component: () => __vitePreload(() => import('./about-DNtZgvT4.js'),true ?[]:void 0,import.meta.url)
10610
10617
  /* no children */
10611
10618
  },
10612
10619
  {
10613
10620
  path: "/categories",
10614
10621
  name: "/categories",
10615
- component: () => __vitePreload(() => import('./categories-Dt9vK8jg.js'),true ?[]:void 0,import.meta.url)
10622
+ component: () => __vitePreload(() => import('./categories-CSFoNbss.js'),true ?[]:void 0,import.meta.url)
10616
10623
  /* no children */
10617
10624
  },
10618
10625
  {
10619
10626
  path: "/migration",
10620
10627
  name: "/migration",
10621
- component: () => __vitePreload(() => import('./migration-DwhFh8Ka.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
10628
+ component: () => __vitePreload(() => import('./migration-BpRnp8we.js'),true ?__vite__mapDeps([3,1]):void 0,import.meta.url)
10622
10629
  /* no children */
10623
10630
  },
10624
10631
  {
10625
10632
  path: "/tags",
10626
10633
  name: "/tags",
10627
- component: () => __vitePreload(() => import('./tags-BfW_98mZ.js'),true ?[]:void 0,import.meta.url)
10634
+ component: () => __vitePreload(() => import('./tags-DE9JJONP.js'),true ?[]:void 0,import.meta.url)
10628
10635
  /* no children */
10629
10636
  }
10630
10637
  ];
@@ -10651,7 +10658,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
10651
10658
  /* Injected with object hook! */
10652
10659
 
10653
10660
  /*!
10654
- * shared v11.1.10
10661
+ * shared v11.1.11
10655
10662
  * (c) 2025 kazuya kawaguchi
10656
10663
  * Released under the MIT License.
10657
10664
  */
@@ -10750,7 +10757,7 @@ function deepCopy(src, des) {
10750
10757
  /* Injected with object hook! */
10751
10758
 
10752
10759
  /*!
10753
- * message-compiler v11.1.10
10760
+ * message-compiler v11.1.11
10754
10761
  * (c) 2025 kazuya kawaguchi
10755
10762
  * Released under the MIT License.
10756
10763
  */
@@ -12173,7 +12180,7 @@ function baseCompile$1(source, options = {}) {
12173
12180
  /* Injected with object hook! */
12174
12181
 
12175
12182
  /*!
12176
- * core-base v11.1.10
12183
+ * core-base v11.1.11
12177
12184
  * (c) 2025 kazuya kawaguchi
12178
12185
  * Released under the MIT License.
12179
12186
  */
@@ -12940,7 +12947,7 @@ function resolveValue(obj, path) {
12940
12947
  }
12941
12948
  return last;
12942
12949
  }
12943
- const VERSION$1 = "11.1.10";
12950
+ const VERSION$1 = "11.1.11";
12944
12951
  const NOT_REOSLVED = -1;
12945
12952
  const DEFAULT_LOCALE = "en-US";
12946
12953
  const MISSING_RESOLVE_VALUE = "";
@@ -13634,11 +13641,11 @@ function getMessageContextOptions(context, locale, message, options) {
13634
13641
  /* Injected with object hook! */
13635
13642
 
13636
13643
  /*!
13637
- * vue-i18n v11.1.10
13644
+ * vue-i18n v11.1.11
13638
13645
  * (c) 2025 kazuya kawaguchi
13639
13646
  * Released under the MIT License.
13640
13647
  */
13641
- const VERSION = "11.1.10";
13648
+ const VERSION = "11.1.11";
13642
13649
  function initFeatureFlags() {
13643
13650
  if (typeof __INTLIFY_PROD_DEVTOOLS__ !== "boolean") {
13644
13651
  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-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';
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-DMBtOiwv.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-CQZybzj_.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! */
@@ -650,7 +650,7 @@ const _hoisted_1$b = {
650
650
 
651
651
  function _sfc_render$1(_ctx, _cache) {
652
652
  return (openBlock(), createElementBlock("div", _hoisted_1$b, [
653
- _cache[0] || (_cache[0] = createTextVNode(" # ")),
653
+ _cache[0] || (_cache[0] = createTextVNode(" # ", -1)),
654
654
  renderSlot(_ctx.$slots, "default")
655
655
  ]))
656
656
  }
@@ -7856,7 +7856,7 @@ const relativeTime = /*@__PURE__*/getDefaultExportFromCjs(relativeTimeExports);
7856
7856
  /* Injected with object hook! */
7857
7857
 
7858
7858
  function tObject(data, lang) {
7859
- if (typeof data === "object") {
7859
+ if (data && typeof data === "object") {
7860
7860
  return data[lang] || Object.values(data)[0] || "";
7861
7861
  }
7862
7862
  return data;
@@ -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-D04rK1A8.js';
2
- import { P as Pe, b as script, g as ge, c as axios } from './splitpanes.es-COac6FR0.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-DMBtOiwv.js';
2
+ import { P as Pe, b as script, g as ge, c as axios } from './splitpanes.es-CQZybzj_.js';
3
3
 
4
4
  const _hoisted_1 = {
5
5
  flex: "~ gap-2",
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  onClick: _cache[0] || (_cache[0] = ($event) => clearPosts(true))
56
56
  }, {
57
57
  default: withCtx(() => _cache[3] || (_cache[3] = [
58
- createTextVNode(" 全选 ")
58
+ createTextVNode(" 全选 ", -1)
59
59
  ])),
60
60
  _: 1,
61
61
  __: [3]
@@ -64,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
64
  onClick: _cache[1] || (_cache[1] = ($event) => clearPosts(false))
65
65
  }, {
66
66
  default: withCtx(() => _cache[4] || (_cache[4] = [
67
- createTextVNode(" 清空 ")
67
+ createTextVNode(" 清空 ", -1)
68
68
  ])),
69
69
  _: 1,
70
70
  __: [4]
@@ -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-D04rK1A8.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-DMBtOiwv.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! */
@@ -1209,6 +1209,27 @@ const isPlainObject = (val) => {
1209
1209
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
1210
1210
  };
1211
1211
 
1212
+ /**
1213
+ * Determine if a value is an empty object (safely handles Buffers)
1214
+ *
1215
+ * @param {*} val The value to test
1216
+ *
1217
+ * @returns {boolean} True if value is an empty object, otherwise false
1218
+ */
1219
+ const isEmptyObject = (val) => {
1220
+ // Early return for non-objects or Buffers to prevent RangeError
1221
+ if (!isObject(val) || isBuffer(val)) {
1222
+ return false;
1223
+ }
1224
+
1225
+ try {
1226
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
1227
+ } catch (e) {
1228
+ // Fallback for any other objects that might cause RangeError with Object.keys()
1229
+ return false;
1230
+ }
1231
+ };
1232
+
1212
1233
  /**
1213
1234
  * Determine if a value is a Date
1214
1235
  *
@@ -1331,6 +1352,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
1331
1352
  fn.call(null, obj[i], i, obj);
1332
1353
  }
1333
1354
  } else {
1355
+ // Buffer check
1356
+ if (isBuffer(obj)) {
1357
+ return;
1358
+ }
1359
+
1334
1360
  // Iterate over object keys
1335
1361
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
1336
1362
  const len = keys.length;
@@ -1344,6 +1370,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
1344
1370
  }
1345
1371
 
1346
1372
  function findKey(obj, key) {
1373
+ if (isBuffer(obj)){
1374
+ return null;
1375
+ }
1376
+
1347
1377
  key = key.toLowerCase();
1348
1378
  const keys = Object.keys(obj);
1349
1379
  let i = keys.length;
@@ -1697,6 +1727,11 @@ const toJSONObject = (obj) => {
1697
1727
  return;
1698
1728
  }
1699
1729
 
1730
+ //Buffer check
1731
+ if (isBuffer(source)) {
1732
+ return source;
1733
+ }
1734
+
1700
1735
  if(!('toJSON' in source)) {
1701
1736
  stack[i] = source;
1702
1737
  const target = isArray(source) ? [] : {};
@@ -1768,6 +1803,7 @@ const utils$1 = {
1768
1803
  isBoolean,
1769
1804
  isObject,
1770
1805
  isPlainObject,
1806
+ isEmptyObject,
1771
1807
  isReadableStream,
1772
1808
  isRequest,
1773
1809
  isResponse,
@@ -2425,7 +2461,7 @@ const platform = {
2425
2461
  /* Injected with object hook! */
2426
2462
 
2427
2463
  function toURLEncodedForm(data, options) {
2428
- return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
2464
+ return toFormData$1(data, new platform.classes.URLSearchParams(), {
2429
2465
  visitor: function(value, key, path, helpers) {
2430
2466
  if (platform.isNode && utils$1.isBuffer(value)) {
2431
2467
  this.append(key, value.toString('base64'));
@@ -2433,8 +2469,9 @@ function toURLEncodedForm(data, options) {
2433
2469
  }
2434
2470
 
2435
2471
  return helpers.defaultVisitor.apply(this, arguments);
2436
- }
2437
- }, options));
2472
+ },
2473
+ ...options
2474
+ });
2438
2475
  }
2439
2476
 
2440
2477
  /* Injected with object hook! */
@@ -3205,7 +3242,7 @@ function throttle(fn, freq) {
3205
3242
  clearTimeout(timer);
3206
3243
  timer = null;
3207
3244
  }
3208
- fn.apply(null, args);
3245
+ fn(...args);
3209
3246
  };
3210
3247
 
3211
3248
  const throttled = (...args) => {
@@ -3476,7 +3513,7 @@ function mergeConfig$1(config1, config2) {
3476
3513
  headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
3477
3514
  };
3478
3515
 
3479
- utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
3516
+ utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
3480
3517
  const merge = mergeMap[prop] || mergeDeepProperties;
3481
3518
  const configValue = merge(config1[prop], config2[prop], prop);
3482
3519
  (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
@@ -4234,7 +4271,7 @@ function dispatchRequest(config) {
4234
4271
 
4235
4272
  /* Injected with object hook! */
4236
4273
 
4237
- const VERSION$1 = "1.10.0";
4274
+ const VERSION$1 = "1.11.0";
4238
4275
  /* Injected with object hook! */
4239
4276
 
4240
4277
  const validators$1 = {};
@@ -4476,8 +4513,8 @@ let Axios$1 = class Axios {
4476
4513
 
4477
4514
  if (!synchronousRequestInterceptors) {
4478
4515
  const chain = [dispatchRequest.bind(this), undefined];
4479
- chain.unshift.apply(chain, requestInterceptorChain);
4480
- chain.push.apply(chain, responseInterceptorChain);
4516
+ chain.unshift(...requestInterceptorChain);
4517
+ chain.push(...responseInterceptorChain);
4481
4518
  len = chain.length;
4482
4519
 
4483
4520
  promise = Promise.resolve(config);
@@ -1,4 +1,4 @@
1
- import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-D04rK1A8.js';
1
+ import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-DMBtOiwv.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-D04rK1A8.js"></script>
19
+ <script type="module" crossorigin src="./assets/index-DMBtOiwv.js"></script>
20
20
  <link rel="stylesheet" crossorigin href="./assets/index-CJU8Ji_S.css">
21
21
  </head>
22
22
 
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { colors } from 'consola/utils';
2
2
  import sirv from 'sirv';
3
3
  import { createRPCServer } from 'vite-dev-rpc';
4
- import path, { dirname, resolve } from 'node:path';
4
+ import { dirname, resolve } from 'node:path';
5
5
  import { fileURLToPath } from 'node:url';
6
6
  import bodyParser from 'body-parser';
7
7
  import fs from 'fs-extra';
@@ -10,6 +10,7 @@ import { JSON_SCHEMA } from 'js-yaml';
10
10
  import process from 'node:process';
11
11
  import dayjs from 'dayjs';
12
12
  import fg from 'fast-glob';
13
+ import pathe from 'pathe';
13
14
 
14
15
  const NAMESPACE = "valaxy:devtools";
15
16
 
@@ -84,12 +85,11 @@ function registerApi(server, _viteConfig) {
84
85
  function ensurePrefix(prefix, str) {
85
86
  if (!str.startsWith(prefix))
86
87
  return prefix + str;
87
- return str;
88
88
  }
89
89
  function getFunctions(server, devtoolsOptions) {
90
- const userRoot = devtoolsOptions.userRoot || process.cwd();
90
+ const userRoot = (devtoolsOptions.userRoot || process.cwd()).replace(/\\/g, "/");
91
91
  function getRoutePath(filePath) {
92
- const relativePath = path.relative(path.resolve(userRoot, "pages"), filePath).slice(0, -".md".length);
92
+ const relativePath = pathe.relative(pathe.resolve(userRoot, "pages"), filePath).slice(0, -".md".length);
93
93
  return ensurePrefix("/", relativePath);
94
94
  }
95
95
  return {
@@ -122,7 +122,7 @@ function getFunctions(server, devtoolsOptions) {
122
122
  },
123
123
  async getPageData(pagePath) {
124
124
  const relativePath = pagePath.startsWith("/") ? pagePath.slice(1) : pagePath;
125
- const file = path.resolve(userRoot, relativePath);
125
+ const file = pathe.resolve(userRoot, relativePath);
126
126
  const { data } = matter(file);
127
127
  return {
128
128
  routePath: getRoutePath(file),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valaxyjs/devtools",
3
3
  "type": "module",
4
- "version": "0.25.9",
4
+ "version": "0.25.11",
5
5
  "repository": {
6
6
  "url": "https://github.com/YunYouJun/valaxy"
7
7
  },
@@ -23,7 +23,7 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@rollup/pluginutils": "^5.2.0",
26
- "axios": "^1.10.0",
26
+ "axios": "^1.11.0",
27
27
  "body-parser": "^2.2.0",
28
28
  "cors": "^2.8.5",
29
29
  "http-proxy-middleware": "^3.0.5",
@@ -44,10 +44,10 @@
44
44
  "primevue": "^4.3.6",
45
45
  "splitpanes": "^4.0.4",
46
46
  "typescript": "^5.8.3",
47
- "unbuild": "^3.5.0",
47
+ "unbuild": "^3.6.0",
48
48
  "unplugin-vue-router": "^0.14.0",
49
- "vite": "^7.0.5",
50
- "vue-i18n": "^11.1.10"
49
+ "vite": "^7.0.6",
50
+ "vue-i18n": "^11.1.11"
51
51
  },
52
52
  "scripts": {
53
53
  "clean": "rimraf dist",