vite-uni-dev-tool 0.0.41 → 0.0.42

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/README.md CHANGED
@@ -279,6 +279,10 @@ optimizeDeps: {
279
279
 
280
280
  ## 更新日志
281
281
 
282
+ ### 0.0.42
283
+
284
+ - 修复请求头过滤
285
+
282
286
  ### 0.0.41
283
287
 
284
288
  - 微信小程序重新启动
package/dist/core.js CHANGED
@@ -6,7 +6,7 @@ import { EventBus as d } from "./devEventBus/index.js";
6
6
  import { getPlatform as g } from "./utils/utils.js";
7
7
  import "./utils/index.js";
8
8
  import { sleep as S } from "./utils/date.js";
9
- const a = "0.0.41", u = "2026/1/3 21:09:34", v = "https://gitee.com/cloud_l/vite-uni-dev-tool", D = {
9
+ const a = "0.0.42", u = "2026/1/6 15:40:55", v = "https://gitee.com/cloud_l/vite-uni-dev-tool", D = {
10
10
  setStorage: uni == null ? void 0 : uni.setStorage,
11
11
  setStorageSync: uni == null ? void 0 : uni.setStorageSync,
12
12
  clearStorage: uni == null ? void 0 : uni.clearStorage,
@@ -3,7 +3,7 @@ import "../utils/index.js";
3
3
  import { transformValueToView as j, transformValueToShortString as P } from "../utils/language.js";
4
4
  import { getCurrentPagePath as k } from "../utils/page.js";
5
5
  import { getCurrentDate as I } from "../utils/date.js";
6
- import { parseValue as q, pick as W } from "../utils/object.js";
6
+ import { parseValue as q, omit as W } from "../utils/object.js";
7
7
  import { escapeHTML as B } from "../utils/string.js";
8
8
  class X {
9
9
  constructor(e) {
@@ -1,62 +1,63 @@
1
- import { getValueType as r, isArray as o, isBoolean as i, isFunction as a, isNil as s, isNull as l, isNumber as p, isObject as n, isString as u, isSymbol as c, isUndefined as f, transformValueToShortString as m, transformValueToView as x } from "./language.js";
2
- import { calculateObjectSize as h, formatStorageSize as S, getValueByPath as d, parseValue as T, pick as V, serializeCircular as y, setValueByPath as b } from "./object.js";
3
- import { debounce as A, throttle as F } from "./function.js";
4
- import { getFilePath as P, saveTextFileH5 as v, saveTextFileMicro as B, saveTxtFileApp as C } from "./file.js";
5
- import { getCurrentPagePath as I } from "./page.js";
6
- import { formatDate as U, formatDuration as z, getCurrentDate as H, sleep as N } from "./date.js";
7
- import { escapeHTML as W, extractRowAndCol as j, extractUrl as w, hasUrl as X, hightLight as q, isMockWX as R, parseStock as E, splitStrByUrl as G, uniqueId as J } from "./string.js";
8
- import { getDeviceMac as Q, getLanIp as Y, getMicroAppIp as Z, getWifiIp as _ } from "./ip.js";
9
- import { isAndroid as ee, isH5 as te, isWX as re } from "./platform.js";
10
- import { chunk as ie } from "./array.js";
11
- import { openOutLink as se } from "./openLink.js";
1
+ import { getValueType as r, isArray as o, isBoolean as i, isFunction as a, isNil as s, isNull as l, isNumber as p, isObject as n, isString as m, isSymbol as u, isUndefined as c, transformValueToShortString as f, transformValueToView as x } from "./language.js";
2
+ import { calculateObjectSize as h, formatStorageSize as S, getValueByPath as d, omit as T, parseValue as V, pick as y, serializeCircular as b, setValueByPath as k } from "./object.js";
3
+ import { debounce as F, throttle as M } from "./function.js";
4
+ import { getFilePath as v, saveTextFileH5 as B, saveTextFileMicro as C, saveTxtFileApp as D } from "./file.js";
5
+ import { getCurrentPagePath as L } from "./page.js";
6
+ import { formatDate as z, formatDuration as H, getCurrentDate as N, sleep as O } from "./date.js";
7
+ import { escapeHTML as j, extractRowAndCol as w, extractUrl as X, hasUrl as q, hightLight as R, isMockWX as E, parseStock as G, splitStrByUrl as J, uniqueId as K } from "./string.js";
8
+ import { getDeviceMac as Y, getLanIp as Z, getMicroAppIp as _, getWifiIp as $ } from "./ip.js";
9
+ import { isAndroid as te, isH5 as re, isWX as oe } from "./platform.js";
10
+ import { chunk as ae } from "./array.js";
11
+ import { openOutLink as le } from "./openLink.js";
12
12
  export {
13
13
  h as calculateObjectSize,
14
- ie as chunk,
15
- A as debounce,
16
- W as escapeHTML,
17
- j as extractRowAndCol,
18
- w as extractUrl,
19
- U as formatDate,
20
- z as formatDuration,
14
+ ae as chunk,
15
+ F as debounce,
16
+ j as escapeHTML,
17
+ w as extractRowAndCol,
18
+ X as extractUrl,
19
+ z as formatDate,
20
+ H as formatDuration,
21
21
  S as formatStorageSize,
22
- H as getCurrentDate,
23
- I as getCurrentPagePath,
24
- Q as getDeviceMac,
25
- P as getFilePath,
26
- Y as getLanIp,
27
- Z as getMicroAppIp,
22
+ N as getCurrentDate,
23
+ L as getCurrentPagePath,
24
+ Y as getDeviceMac,
25
+ v as getFilePath,
26
+ Z as getLanIp,
27
+ _ as getMicroAppIp,
28
28
  d as getValueByPath,
29
29
  r as getValueType,
30
- _ as getWifiIp,
31
- X as hasUrl,
32
- q as hightLight,
33
- ee as isAndroid,
30
+ $ as getWifiIp,
31
+ q as hasUrl,
32
+ R as hightLight,
33
+ te as isAndroid,
34
34
  o as isArray,
35
35
  i as isBoolean,
36
36
  a as isFunction,
37
- te as isH5,
38
- R as isMockWX,
37
+ re as isH5,
38
+ E as isMockWX,
39
39
  s as isNil,
40
40
  l as isNull,
41
41
  p as isNumber,
42
42
  n as isObject,
43
- u as isString,
44
- c as isSymbol,
45
- f as isUndefined,
46
- re as isWX,
47
- se as openOutLink,
48
- E as parseStock,
49
- T as parseValue,
50
- V as pick,
51
- v as saveTextFileH5,
52
- B as saveTextFileMicro,
53
- C as saveTxtFileApp,
54
- y as serializeCircular,
55
- b as setValueByPath,
56
- N as sleep,
57
- G as splitStrByUrl,
58
- F as throttle,
59
- m as transformValueToShortString,
43
+ m as isString,
44
+ u as isSymbol,
45
+ c as isUndefined,
46
+ oe as isWX,
47
+ T as omit,
48
+ le as openOutLink,
49
+ G as parseStock,
50
+ V as parseValue,
51
+ y as pick,
52
+ B as saveTextFileH5,
53
+ C as saveTextFileMicro,
54
+ D as saveTxtFileApp,
55
+ b as serializeCircular,
56
+ k as setValueByPath,
57
+ O as sleep,
58
+ J as splitStrByUrl,
59
+ M as throttle,
60
+ f as transformValueToShortString,
60
61
  x as transformValueToView,
61
- J as uniqueId
62
+ K as uniqueId
62
63
  };
@@ -52,5 +52,12 @@ export declare function parseValue(value: any, deep?: number): any;
52
52
  * @returns 包含指定属性的新对象
53
53
  */
54
54
  export declare function pick<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
55
+ /**
56
+ * 从对象中排除指定的属性,创建一个不包含这些属性的新对象
57
+ * @param obj 源对象
58
+ * @param keys 要排除的属性名数组
59
+ * @returns 不包含指定属性的新对象
60
+ */
61
+ export declare function omit<T extends Record<string, any>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
55
62
  export {};
56
63
  //# sourceMappingURL=object.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../dev/utils/object.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAgChE;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,GAAG,OAoBxE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAkEpD;AAED;;;;;GAKG;AACH,UAAU,oBAAoB;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,oBAAyB,GACjC,MAAM,CAqBR;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,GAAG,EACR,OAAO,GAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;CAGvD,GACA,MAAM,CAkDR;AAED;;;;;;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,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EACnE,GAAG,EAAE,CAAC,EACN,IAAI,EAAE,CAAC,EAAE,GACR,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAcZ;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EACnE,GAAG,EAAE,CAAC,EACN,IAAI,EAAE,CAAC,EAAE,GACR,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAYZ"}
@@ -1,4 +1,4 @@
1
- import { isString as g, isBoolean as y, isFunction as m, isNil as B, isObject as p } from "./language.js";
1
+ import { isString as g, isBoolean as y, isFunction as m, isNil as B, isObject as l } from "./language.js";
2
2
  function h(t, i, e) {
3
3
  if (t == null || typeof i != "string")
4
4
  return;
@@ -29,7 +29,7 @@ function x(t, i, e) {
29
29
  }
30
30
  return r !== void 0 ? r : e;
31
31
  }
32
- function a(t) {
32
+ function o(t) {
33
33
  var n;
34
34
  if (t = $(t), t == null)
35
35
  return 0;
@@ -43,18 +43,18 @@ function a(t) {
43
43
  if (i === "symbol" || t instanceof Date)
44
44
  return 8;
45
45
  if (t instanceof RegExp)
46
- return a(t.source) + a(t.flags);
46
+ return o(t.source) + o(t.flags);
47
47
  let e = 0;
48
48
  if (e += 24, Array.isArray(t)) {
49
49
  e += 4;
50
50
  for (const r of t)
51
- e += 8, e += a(r);
51
+ e += 8, e += o(r);
52
52
  } else
53
53
  for (const r in t)
54
- (n = t == null ? void 0 : t.hasOwnProperty) != null && n.call(t, r) && (e += r.length * 2, e += 8, e += a(t[r]));
54
+ (n = t == null ? void 0 : t.hasOwnProperty) != null && n.call(t, r) && (e += r.length * 2, e += 8, e += o(t[r]));
55
55
  return e;
56
56
  }
57
- function S(t, i = {}) {
57
+ function k(t, i = {}) {
58
58
  const { precision: e = 2, useBinary: n = !0, includeUnit: r = !0 } = i;
59
59
  if (t === 0)
60
60
  return r ? "0 Bytes" : "0";
@@ -65,15 +65,15 @@ function S(t, i = {}) {
65
65
  const u = t.toFixed(e);
66
66
  return r ? `${u} ${f[c]}` : u;
67
67
  }
68
- function l(t, i = {
68
+ function p(t, i = {
69
69
  maxDepth: 10,
70
70
  visited: /* @__PURE__ */ new WeakMap()
71
71
  }) {
72
72
  const { maxDepth: e, visited: n } = i;
73
73
  return t === null || typeof t != "object" ? JSON.stringify(t) : n.has(t) ? "[Circular]" : (n.set(t, !0), t instanceof Date ? `"${t.toISOString()}"` : t instanceof RegExp ? `/^${t.source}$/${t.flags}` : e <= 0 ? typeof t == "object" ? "{}" : "[]" : Array.isArray(t) ? `[${t.map(
74
- (c) => l(c, { maxDepth: e - 1, visited: n })
74
+ (c) => p(c, { maxDepth: e - 1, visited: n })
75
75
  ).join(", ")}]` : `{${Object.keys(t).map((s) => {
76
- const c = l(t[s], {
76
+ const c = p(t[s], {
77
77
  maxDepth: e - 1,
78
78
  visited: n
79
79
  });
@@ -91,7 +91,7 @@ function $(t, i = 6) {
91
91
  return "f(...) { ... }";
92
92
  if (B(r))
93
93
  return `${r}`;
94
- if (!p(r))
94
+ if (!l(r))
95
95
  return r;
96
96
  if (f <= 0)
97
97
  return "[MaxDepth]";
@@ -99,29 +99,38 @@ function $(t, i = 6) {
99
99
  return `[Circular: ${e.get(r).join(".")}]`;
100
100
  if (e.set(r, [...s]), Array.isArray(r))
101
101
  return r.map(
102
- (u, o) => n(u, f - 1, [...s, String(o)])
102
+ (u, a) => n(u, f - 1, [...s, String(a)])
103
103
  );
104
104
  const c = {};
105
- for (const [u, o] of Object.entries(r))
106
- c[u] = n(o, f - 1, [...s, u]);
105
+ for (const [u, a] of Object.entries(r))
106
+ c[u] = n(a, f - 1, [...s, u]);
107
107
  return c;
108
108
  }
109
109
  return n(t, i);
110
110
  }
111
- function k(t, i) {
112
- if (!p(t))
111
+ function S(t, i) {
112
+ if (!l(t))
113
113
  return {};
114
114
  const e = {};
115
115
  for (const n of i)
116
116
  n in t && (e[n] = t[n]);
117
117
  return e;
118
118
  }
119
+ function z(t, i) {
120
+ if (!l(t))
121
+ return {};
122
+ const e = { ...t };
123
+ for (const n of i)
124
+ delete e[n];
125
+ return e;
126
+ }
119
127
  export {
120
- a as calculateObjectSize,
121
- S as formatStorageSize,
128
+ o as calculateObjectSize,
129
+ k as formatStorageSize,
122
130
  x as getValueByPath,
131
+ z as omit,
123
132
  $ as parseValue,
124
- k as pick,
125
- l as serializeCircular,
133
+ S as pick,
134
+ p as serializeCircular,
126
135
  h as setValueByPath
127
136
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-uni-dev-tool",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "description": "vite-uni-dev-tool, debug, uni-app, 一处编写,到处调试",
5
5
  "keywords": [
6
6
  "vite",