@fangzhongya/vue-archive 0.0.98 → 0.1.1

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.
@@ -87,12 +87,12 @@ __export(index_exports, {
87
87
  });
88
88
  module.exports = __toCommonJS(index_exports);
89
89
 
90
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
90
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
91
91
  function isArray(obj2) {
92
92
  return Object.prototype.toString.call(obj2) == "[object Array]";
93
93
  }
94
94
 
95
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
95
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
96
96
  function getStartSames(str, val) {
97
97
  let s = "";
98
98
  const vs = [...val];
@@ -108,7 +108,7 @@ function getStartSames(str, val) {
108
108
  return [s, str.substring(index), val.substring(index)];
109
109
  }
110
110
 
111
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
111
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
112
112
  function getImportUrl(url, imp) {
113
113
  const arr = getStartSames(url, imp);
114
114
  const ts2 = arr[0];
@@ -132,12 +132,12 @@ function getImportUrl(url, imp) {
132
132
  return ds.join("") + arr[2].replace(/\\/g, "/");
133
133
  }
134
134
 
135
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
135
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
136
136
  function firstUpper(str) {
137
137
  return str.slice(0, 1).toUpperCase() + str.slice(1);
138
138
  }
139
139
 
140
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
140
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
141
141
  function lineToLargeHump(name) {
142
142
  let arr = name.split("-");
143
143
  arr = arr.map((vs) => {
@@ -846,7 +846,7 @@ function runDev(config2, configCallback) {
846
846
  return new FangMd(config2, configCallback);
847
847
  }
848
848
 
849
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
849
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
850
850
  var zObj = {
851
851
  "<": "&lt;",
852
852
  ">": "&gt;",
@@ -867,7 +867,7 @@ function htmlEscape(str) {
867
867
  // packages/node/index.ts
868
868
  var import_node_path = require("path");
869
869
 
870
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
870
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
871
871
  function mergeObject(a, b, j = 0, i) {
872
872
  if (a instanceof Array) {
873
873
  if (j > 0 && i) {
@@ -921,7 +921,7 @@ function getConfig(key) {
921
921
  return config[key];
922
922
  }
923
923
 
924
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
924
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
925
925
  function getVueText(content) {
926
926
  const result = {
927
927
  template: "",
@@ -968,7 +968,7 @@ function getVueTexts(content) {
968
968
  };
969
969
  }
970
970
 
971
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
971
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
972
972
  function humpToLine(name) {
973
973
  const reg = /(([A-Z])([^A-Z]*))/g;
974
974
  let result;
@@ -990,12 +990,12 @@ function humpToLine(name) {
990
990
  }
991
991
  }
992
992
 
993
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
993
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
994
994
  function firstLower(str) {
995
995
  return str.slice(0, 1).toLowerCase() + str.slice(1);
996
996
  }
997
997
 
998
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
998
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
999
999
  function asyncMergeArray(arr, callback) {
1000
1000
  return new Promise((resolve2, reject) => {
1001
1001
  let index = 0;
@@ -1019,7 +1019,7 @@ function asyncMergeArray(arr, callback) {
1019
1019
  });
1020
1020
  }
1021
1021
 
1022
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
1022
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
1023
1023
  function getSuffix2(url) {
1024
1024
  const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
1025
1025
  const regs = reg.exec(url);
@@ -1029,7 +1029,7 @@ function getSuffix2(url) {
1029
1029
  return "";
1030
1030
  }
1031
1031
 
1032
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1032
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1033
1033
  function matchsStart2(key, matchs) {
1034
1034
  if (matchs && matchs.length > 0) {
1035
1035
  for (const value of matchs) {
@@ -1049,7 +1049,7 @@ function matchsStart2(key, matchs) {
1049
1049
  }
1050
1050
  }
1051
1051
 
1052
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1052
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1053
1053
  function matchsEnd2(key, matchs) {
1054
1054
  if (matchs && matchs.length > 0) {
1055
1055
  for (const value of matchs) {
@@ -1712,7 +1712,7 @@ function parse(source, options = {}) {
1712
1712
  }
1713
1713
  var stringify = getStringifier();
1714
1714
 
1715
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1715
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1716
1716
  function deComment(code) {
1717
1717
  let output = "";
1718
1718
  let state = "code";
@@ -1804,7 +1804,7 @@ function deComment(code) {
1804
1804
  return output;
1805
1805
  }
1806
1806
 
1807
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-75J5ZAUX.js
1807
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-N5Y3XGHX.js
1808
1808
  function getImports(code, includeType = false) {
1809
1809
  code = deComment(code);
1810
1810
  const imports = /* @__PURE__ */ new Set();
@@ -1815,7 +1815,7 @@ function getImports(code, includeType = false) {
1815
1815
  if (!path) continue;
1816
1816
  const fullMatch = match[0];
1817
1817
  if (!includeType) {
1818
- if (fullMatch.includes("import") && containsNonTypeImport(fullMatch) || fullMatch.includes("export") && containsNonTypeExport(fullMatch)) {
1818
+ if (fullMatch.includes("import") && isPureTypeImport(fullMatch) || fullMatch.includes("export") && isPureTypeExport(fullMatch)) {
1819
1819
  continue;
1820
1820
  }
1821
1821
  }
@@ -1823,19 +1823,29 @@ function getImports(code, includeType = false) {
1823
1823
  }
1824
1824
  return Array.from(imports);
1825
1825
  }
1826
- function containsNonTypeImport(importStatement) {
1826
+ function isPureTypeImport(importStatement) {
1827
+ const importTypeRegex = /^\s*import\s+type\b/;
1828
+ if (importTypeRegex.test(importStatement)) {
1829
+ return true;
1830
+ }
1827
1831
  if (importStatement.includes("{")) {
1828
1832
  const braceContent = importStatement.match(/\{([^}]*)\}/)?.[1] || "";
1829
- return braceContent.split(",").some((item) => item.trim() && item.trim().startsWith("type "));
1833
+ const items = braceContent.split(",").map((item) => item.trim()).filter(Boolean);
1834
+ return items.length > 0 && items.every((item) => item.startsWith("type "));
1830
1835
  }
1831
- return importStatement.includes("import type");
1836
+ return false;
1832
1837
  }
1833
- function containsNonTypeExport(exportStatement) {
1838
+ function isPureTypeExport(exportStatement) {
1839
+ const exportTypeRegex = /^\s*export\s+type\b/;
1840
+ if (exportTypeRegex.test(exportStatement)) {
1841
+ return true;
1842
+ }
1834
1843
  if (exportStatement.includes("{")) {
1835
1844
  const braceContent = exportStatement.match(/\{([^}]*)\}/)?.[1] || "";
1836
- return braceContent.split(",").some((item) => item.trim() && item.trim().startsWith("type "));
1845
+ const items = braceContent.split(",").map((item) => item.trim()).filter(Boolean);
1846
+ return items.length > 0 && items.every((item) => item.startsWith("type "));
1837
1847
  }
1838
- return exportStatement.includes("export type");
1848
+ return false;
1839
1849
  }
1840
1850
 
1841
1851
  // packages/utils/index.ts
@@ -3220,7 +3230,7 @@ var top_default2 = (0, import_vue2.defineComponent)({
3220
3230
  }
3221
3231
  });
3222
3232
 
3223
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3233
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3224
3234
  var FUNCTION_REGEX = /^\s*(?:(async)\s+)?(?:function\s*(\*?)\s*(\w*)\s*\(([\s\S]*?)\)|(\*?\s*)\b(\w+)\s*\(([\s\S]*?)\)|\(([\s\S]*?)\)|([^=>,\(\)]+?))\s*(?:=>)?\s*(?:\{([\s\S]*?)\}|([\s\S]*))$/;
3225
3235
  function getFunctionFormat(v) {
3226
3236
  if (!v) return;
@@ -58,12 +58,12 @@ var init_prettier = __esm({
58
58
  }
59
59
  });
60
60
 
61
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
61
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js
62
62
  function isArray(obj2) {
63
63
  return Object.prototype.toString.call(obj2) == "[object Array]";
64
64
  }
65
65
 
66
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
66
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-A276ZDLP.js
67
67
  function getStartSames(str, val) {
68
68
  let s = "";
69
69
  const vs = [...val];
@@ -79,7 +79,7 @@ function getStartSames(str, val) {
79
79
  return [s, str.substring(index), val.substring(index)];
80
80
  }
81
81
 
82
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
82
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-KDOS4NFR.js
83
83
  function getImportUrl(url, imp) {
84
84
  const arr = getStartSames(url, imp);
85
85
  const ts2 = arr[0];
@@ -103,12 +103,12 @@ function getImportUrl(url, imp) {
103
103
  return ds.join("") + arr[2].replace(/\\/g, "/");
104
104
  }
105
105
 
106
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
106
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
107
107
  function firstUpper(str) {
108
108
  return str.slice(0, 1).toUpperCase() + str.slice(1);
109
109
  }
110
110
 
111
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
111
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
112
112
  function lineToLargeHump(name) {
113
113
  let arr = name.split("-");
114
114
  arr = arr.map((vs) => {
@@ -828,7 +828,7 @@ function runDev(config2, configCallback) {
828
828
  return new FangMd(config2, configCallback);
829
829
  }
830
830
 
831
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
831
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-NCSN3MC5.js
832
832
  var zObj = {
833
833
  "<": "&lt;",
834
834
  ">": "&gt;",
@@ -849,7 +849,7 @@ function htmlEscape(str) {
849
849
  // packages/node/index.ts
850
850
  import { join as join4 } from "path";
851
851
 
852
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
852
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js
853
853
  function mergeObject(a, b, j = 0, i) {
854
854
  if (a instanceof Array) {
855
855
  if (j > 0 && i) {
@@ -903,7 +903,7 @@ function getConfig(key) {
903
903
  return config[key];
904
904
  }
905
905
 
906
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
906
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-7PJ2D3KR.js
907
907
  function getVueText(content) {
908
908
  const result = {
909
909
  template: "",
@@ -950,7 +950,7 @@ function getVueTexts(content) {
950
950
  };
951
951
  }
952
952
 
953
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
953
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
954
954
  function humpToLine(name) {
955
955
  const reg = /(([A-Z])([^A-Z]*))/g;
956
956
  let result;
@@ -972,12 +972,12 @@ function humpToLine(name) {
972
972
  }
973
973
  }
974
974
 
975
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
975
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
976
976
  function firstLower(str) {
977
977
  return str.slice(0, 1).toLowerCase() + str.slice(1);
978
978
  }
979
979
 
980
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
980
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js
981
981
  function asyncMergeArray(arr, callback) {
982
982
  return new Promise((resolve2, reject) => {
983
983
  let index = 0;
@@ -1001,7 +1001,7 @@ function asyncMergeArray(arr, callback) {
1001
1001
  });
1002
1002
  }
1003
1003
 
1004
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
1004
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-Z7NTQAAJ.js
1005
1005
  function getSuffix2(url) {
1006
1006
  const reg = /\.([a-z|A-Z][a-z|A-Z|0-9]*)$/;
1007
1007
  const regs = reg.exec(url);
@@ -1011,7 +1011,7 @@ function getSuffix2(url) {
1011
1011
  return "";
1012
1012
  }
1013
1013
 
1014
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1014
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-S6JRKYPY.js
1015
1015
  function matchsStart2(key, matchs) {
1016
1016
  if (matchs && matchs.length > 0) {
1017
1017
  for (const value of matchs) {
@@ -1031,7 +1031,7 @@ function matchsStart2(key, matchs) {
1031
1031
  }
1032
1032
  }
1033
1033
 
1034
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1034
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-YNOFNHEK.js
1035
1035
  function matchsEnd2(key, matchs) {
1036
1036
  if (matchs && matchs.length > 0) {
1037
1037
  for (const value of matchs) {
@@ -1694,7 +1694,7 @@ function parse(source, options = {}) {
1694
1694
  }
1695
1695
  var stringify = getStringifier();
1696
1696
 
1697
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1697
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-FS4JPT23.js
1698
1698
  function deComment(code) {
1699
1699
  let output = "";
1700
1700
  let state = "code";
@@ -1786,7 +1786,7 @@ function deComment(code) {
1786
1786
  return output;
1787
1787
  }
1788
1788
 
1789
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-75J5ZAUX.js
1789
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-N5Y3XGHX.js
1790
1790
  function getImports(code, includeType = false) {
1791
1791
  code = deComment(code);
1792
1792
  const imports = /* @__PURE__ */ new Set();
@@ -1797,7 +1797,7 @@ function getImports(code, includeType = false) {
1797
1797
  if (!path) continue;
1798
1798
  const fullMatch = match[0];
1799
1799
  if (!includeType) {
1800
- if (fullMatch.includes("import") && containsNonTypeImport(fullMatch) || fullMatch.includes("export") && containsNonTypeExport(fullMatch)) {
1800
+ if (fullMatch.includes("import") && isPureTypeImport(fullMatch) || fullMatch.includes("export") && isPureTypeExport(fullMatch)) {
1801
1801
  continue;
1802
1802
  }
1803
1803
  }
@@ -1805,19 +1805,29 @@ function getImports(code, includeType = false) {
1805
1805
  }
1806
1806
  return Array.from(imports);
1807
1807
  }
1808
- function containsNonTypeImport(importStatement) {
1808
+ function isPureTypeImport(importStatement) {
1809
+ const importTypeRegex = /^\s*import\s+type\b/;
1810
+ if (importTypeRegex.test(importStatement)) {
1811
+ return true;
1812
+ }
1809
1813
  if (importStatement.includes("{")) {
1810
1814
  const braceContent = importStatement.match(/\{([^}]*)\}/)?.[1] || "";
1811
- return braceContent.split(",").some((item) => item.trim() && item.trim().startsWith("type "));
1815
+ const items = braceContent.split(",").map((item) => item.trim()).filter(Boolean);
1816
+ return items.length > 0 && items.every((item) => item.startsWith("type "));
1812
1817
  }
1813
- return importStatement.includes("import type");
1818
+ return false;
1814
1819
  }
1815
- function containsNonTypeExport(exportStatement) {
1820
+ function isPureTypeExport(exportStatement) {
1821
+ const exportTypeRegex = /^\s*export\s+type\b/;
1822
+ if (exportTypeRegex.test(exportStatement)) {
1823
+ return true;
1824
+ }
1816
1825
  if (exportStatement.includes("{")) {
1817
1826
  const braceContent = exportStatement.match(/\{([^}]*)\}/)?.[1] || "";
1818
- return braceContent.split(",").some((item) => item.trim() && item.trim().startsWith("type "));
1827
+ const items = braceContent.split(",").map((item) => item.trim()).filter(Boolean);
1828
+ return items.length > 0 && items.every((item) => item.startsWith("type "));
1819
1829
  }
1820
- return exportStatement.includes("export type");
1830
+ return false;
1821
1831
  }
1822
1832
 
1823
1833
  // packages/utils/index.ts
@@ -3202,7 +3212,7 @@ var top_default2 = defineComponent2({
3202
3212
  }
3203
3213
  });
3204
3214
 
3205
- // node_modules/.pnpm/@fangzhongya+utils@0.0.46/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3215
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.47/node_modules/@fangzhongya/utils/dist/chunk-7O4MJOHM.js
3206
3216
  var FUNCTION_REGEX = /^\s*(?:(async)\s+)?(?:function\s*(\*?)\s*(\w*)\s*\(([\s\S]*?)\)|(\*?\s*)\b(\w+)\s*\(([\s\S]*?)\)|\(([\s\S]*?)\)|([^=>,\(\)]+?))\s*(?:=>)?\s*(?:\{([\s\S]*?)\}|([\s\S]*))$/;
3207
3217
  function getFunctionFormat(v) {
3208
3218
  if (!v) return;
@@ -3,3 +3,52 @@ export declare function getJs(parent: HTMLElement, value: string, options?: stri
3
3
  export declare function getHtml(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
4
4
  export declare function getJson(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
5
5
  export declare function getCss(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
6
+ ...items: string[]): string[];
7
+ isArray(arg: any): arg is any[];
8
+ readonly prototype: any[];
9
+ from<T>(arrayLike: ArrayLike<T>): T[];
10
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
11
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
12
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
13
+ of<T>(...items: T[]): T[];
14
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
15
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
16
+ readonly [Symbol.species]: ArrayConstructor;
17
+ };
18
+ };
19
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
20
+ "update:modelValue": (...args: any[]) => void;
21
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
22
+ modelValue: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ format: {
27
+ type: StringConstructor;
28
+ };
29
+ options: {
30
+ type: {
31
+ (arrayLength: number): string[];
32
+ (...items: string[]): string[];
33
+ new (arrayLength: number): string[];
34
+ new (...items: string[]): string[];
35
+ isArray(arg: any): arg is any[];
36
+ readonly prototype: any[];
37
+ from<T>(arrayLike: ArrayLike<T>): T[];
38
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
39
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
40
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
41
+ of<T>(...items: T[]): T[];
42
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
43
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
44
+ readonly [Symbol.species]: ArrayConstructor;
45
+ };
46
+ };
47
+ }>> & Readonly<{
48
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
49
+ }>, {
50
+ modelValue: string;
51
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
52
+ refText: HTMLDivElement;
53
+ }, HTMLDivElement>;
54
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.98",
4
+ "version": "0.1.1",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",
@@ -26,7 +26,7 @@
26
26
  "@codemirror/state": "^6.5.2",
27
27
  "@codemirror/view": "^6.38.6",
28
28
  "@fangzhongya/create": "0.2.41",
29
- "@fangzhongya/utils": "0.0.46",
29
+ "@fangzhongya/utils": "0.0.47",
30
30
  "@fangzhongya/vue-components": "0.1.20",
31
31
  "@highlightjs/vue-plugin": "^2.1.0",
32
32
  "@types/node": "^24.10.1",