@fangzhongya/utils 0.0.74 → 0.0.75

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,13 +1,14 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-MKAI4SMJ.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-2IDKKVEA.cjs');
2
2
 
3
3
 
4
- var _chunkBV6LMCAFcjs = require('../chunk-BV6LMCAF.cjs');
4
+ var _chunkG6O3Z6MXcjs = require('../chunk-G6O3Z6MX.cjs');
5
5
  require('../chunk-BWXXXTFU.cjs');
6
6
  require('../chunk-K2XKKEE7.cjs');
7
7
  require('../chunk-TKE7IK2M.cjs');
8
8
  require('../chunk-HLKHFBMF.cjs');
9
9
  require('../chunk-JJ37YIPJ.cjs');
10
10
  require('../chunk-4PUYFFPO.cjs');
11
+ require('../chunk-ASGZ2VD6.cjs');
11
12
  require('../chunk-HWHYHL6J.cjs');
12
13
  require('../chunk-J7S3KBHL.cjs');
13
14
  require('../chunk-L7FSHU27.cjs');
@@ -52,4 +53,4 @@ require('../chunk-75ZPJI57.cjs');
52
53
 
53
54
 
54
55
 
55
- exports.array = _chunk65O7KWP4cjs.array_exports; exports.object = _chunkYUKBGZQ4cjs.object_exports; exports.string = _chunkBV6LMCAFcjs.string_exports;
56
+ exports.array = _chunk65O7KWP4cjs.array_exports; exports.object = _chunkYUKBGZQ4cjs.object_exports; exports.string = _chunkG6O3Z6MXcjs.string_exports;
@@ -1,6 +1,6 @@
1
1
  export { i as array } from '../index-D8_Udh46.cjs';
2
2
  export { i as object } from '../index-Cz8fWd5l.cjs';
3
- export { i as string } from '../index-BmGaGt2M.cjs';
3
+ export { i as string } from '../index-JauNNBr7.cjs';
4
4
  import './array/asyncMergeArray.cjs';
5
5
  import './array/compareArray.cjs';
6
6
  import './array/deleteArray.cjs';
@@ -29,6 +29,7 @@ import './string/deComment.cjs';
29
29
  import './string/firstLower.cjs';
30
30
  import './string/firstUpper.cjs';
31
31
  import './string/getContent.cjs';
32
+ import './string/getExports.cjs';
32
33
  import './string/getImports.cjs';
33
34
  import './string/getStartSame.cjs';
34
35
  import './string/getStartSames.cjs';
@@ -1,6 +1,6 @@
1
1
  export { i as array } from '../index-BYfEDFkm.js';
2
2
  export { i as object } from '../index-oW2flHUo.js';
3
- export { i as string } from '../index-CRh3wZkY.js';
3
+ export { i as string } from '../index-BkNPwlhS.js';
4
4
  import './array/asyncMergeArray.js';
5
5
  import './array/compareArray.js';
6
6
  import './array/deleteArray.js';
@@ -29,6 +29,7 @@ import './string/deComment.js';
29
29
  import './string/firstLower.js';
30
30
  import './string/firstUpper.js';
31
31
  import './string/getContent.js';
32
+ import './string/getExports.js';
32
33
  import './string/getImports.js';
33
34
  import './string/getStartSame.js';
34
35
  import './string/getStartSames.js';
@@ -1,13 +1,14 @@
1
- import "../chunk-YQETDPCJ.js";
1
+ import "../chunk-NGZ6KFQR.js";
2
2
  import {
3
3
  string_exports
4
- } from "../chunk-WWAVGLQE.js";
4
+ } from "../chunk-CY2RRXP5.js";
5
5
  import "../chunk-U6V3V5KH.js";
6
6
  import "../chunk-TIZFQBWC.js";
7
7
  import "../chunk-ZADO6V3Z.js";
8
8
  import "../chunk-ADPTUJSF.js";
9
9
  import "../chunk-Q6BNW3MO.js";
10
10
  import "../chunk-YKSVLAAK.js";
11
+ import "../chunk-4KYAGDPN.js";
11
12
  import "../chunk-N5Y3XGHX.js";
12
13
  import "../chunk-7DTHADVK.js";
13
14
  import "../chunk-VKE5JARB.js";
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkASGZ2VD6cjs = require('../../chunk-ASGZ2VD6.cjs');
6
+ require('../../chunk-XWCRGY54.cjs');
7
+ require('../../chunk-75ZPJI57.cjs');
8
+
9
+
10
+
11
+
12
+ exports.getExports = _chunkASGZ2VD6cjs.getExports; exports.getExportsExtended = _chunkASGZ2VD6cjs.getExportsExtended; exports.getExportsStrict = _chunkASGZ2VD6cjs.getExportsStrict;
@@ -0,0 +1,16 @@
1
+ interface ExtractedExports {
2
+ named: string[];
3
+ default: string | null;
4
+ }
5
+ declare function getExports(code: string): ExtractedExports;
6
+ interface ExtendedExports extends ExtractedExports {
7
+ starExports: string[];
8
+ reExports: Array<{
9
+ name: string;
10
+ source: string;
11
+ }>;
12
+ }
13
+ declare function getExportsExtended(code: string): ExtendedExports;
14
+ declare function getExportsStrict(code: string): ExtractedExports;
15
+
16
+ export { getExports, getExportsExtended, getExportsStrict };
@@ -0,0 +1,16 @@
1
+ interface ExtractedExports {
2
+ named: string[];
3
+ default: string | null;
4
+ }
5
+ declare function getExports(code: string): ExtractedExports;
6
+ interface ExtendedExports extends ExtractedExports {
7
+ starExports: string[];
8
+ reExports: Array<{
9
+ name: string;
10
+ source: string;
11
+ }>;
12
+ }
13
+ declare function getExportsExtended(code: string): ExtendedExports;
14
+ declare function getExportsStrict(code: string): ExtractedExports;
15
+
16
+ export { getExports, getExportsExtended, getExportsStrict };
@@ -0,0 +1,12 @@
1
+ import {
2
+ getExports,
3
+ getExportsExtended,
4
+ getExportsStrict
5
+ } from "../../chunk-4KYAGDPN.js";
6
+ import "../../chunk-FS4JPT23.js";
7
+ import "../../chunk-MLKGABMK.js";
8
+ export {
9
+ getExports,
10
+ getExportsExtended,
11
+ getExportsStrict
12
+ };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-BV6LMCAF.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-G6O3Z6MX.cjs');
2
2
 
3
3
 
4
4
 
@@ -28,6 +28,11 @@ var _chunk4PUYFFPOcjs = require('../../chunk-4PUYFFPO.cjs');
28
28
 
29
29
 
30
30
 
31
+
32
+ var _chunkASGZ2VD6cjs = require('../../chunk-ASGZ2VD6.cjs');
33
+
34
+
35
+
31
36
  var _chunkHWHYHL6Jcjs = require('../../chunk-HWHYHL6J.cjs');
32
37
 
33
38
 
@@ -88,4 +93,7 @@ require('../../chunk-75ZPJI57.cjs');
88
93
 
89
94
 
90
95
 
91
- exports.appearNum = _chunkOJBZ7UUCcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.deComment = _chunkXWCRGY54cjs.deComment; exports.extractParams = _chunkJJ37YIPJcjs.extractParams; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getContent = _chunk4PUYFFPOcjs.getContent; exports.getContents = _chunk4PUYFFPOcjs.getContents; exports.getFunctionFormat = _chunkJJ37YIPJcjs.getFunctionFormat; exports.getImports = _chunkHWHYHL6Jcjs.getImports; exports.getImportss = _chunkHWHYHL6Jcjs.getImportss; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.getStrNunPosit = _chunk2H3KVSFAcjs.getStrNunPosit; exports.serializeCodeBlock = _chunkTKE7IK2Mcjs.serializeCodeBlock; exports.serializeFunctionRef = _chunkTKE7IK2Mcjs.serializeFunctionRef; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper; exports.startsNum = _chunkILJLXJ5Ocjs.startsNum; exports.toFunction = _chunkJJ37YIPJcjs.toFunction; exports.toFunctionParam = _chunkBWXXXTFUcjs.toFunctionParam; exports.toFunctionParamOptions = _chunkBWXXXTFUcjs.toFunctionParamOptions; exports.toJSONParse = _chunkK2XKKEE7cjs.toJSONParse; exports.toJSONSParse = _chunkTKE7IK2Mcjs.toJSONSParse; exports.toJSONSStringify = _chunkTKE7IK2Mcjs.toJSONSStringify; exports.toJSONStringify = _chunkK2XKKEE7cjs.toJSONStringify; exports.toStringParse = _chunkHLKHFBMFcjs.toStringParse;
96
+
97
+
98
+
99
+ exports.appearNum = _chunkOJBZ7UUCcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.deComment = _chunkXWCRGY54cjs.deComment; exports.extractParams = _chunkJJ37YIPJcjs.extractParams; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getContent = _chunk4PUYFFPOcjs.getContent; exports.getContents = _chunk4PUYFFPOcjs.getContents; exports.getExports = _chunkASGZ2VD6cjs.getExports; exports.getExportsExtended = _chunkASGZ2VD6cjs.getExportsExtended; exports.getExportsStrict = _chunkASGZ2VD6cjs.getExportsStrict; exports.getFunctionFormat = _chunkJJ37YIPJcjs.getFunctionFormat; exports.getImports = _chunkHWHYHL6Jcjs.getImports; exports.getImportss = _chunkHWHYHL6Jcjs.getImportss; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.getStrNunPosit = _chunk2H3KVSFAcjs.getStrNunPosit; exports.serializeCodeBlock = _chunkTKE7IK2Mcjs.serializeCodeBlock; exports.serializeFunctionRef = _chunkTKE7IK2Mcjs.serializeFunctionRef; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper; exports.startsNum = _chunkILJLXJ5Ocjs.startsNum; exports.toFunction = _chunkJJ37YIPJcjs.toFunction; exports.toFunctionParam = _chunkBWXXXTFUcjs.toFunctionParam; exports.toFunctionParamOptions = _chunkBWXXXTFUcjs.toFunctionParamOptions; exports.toJSONParse = _chunkK2XKKEE7cjs.toJSONParse; exports.toJSONSParse = _chunkTKE7IK2Mcjs.toJSONSParse; exports.toJSONSStringify = _chunkTKE7IK2Mcjs.toJSONSStringify; exports.toJSONStringify = _chunkK2XKKEE7cjs.toJSONStringify; exports.toStringParse = _chunkHLKHFBMFcjs.toStringParse;
@@ -4,6 +4,7 @@ export { deComment } from './deComment.cjs';
4
4
  export { firstLower } from './firstLower.cjs';
5
5
  export { firstUpper } from './firstUpper.cjs';
6
6
  export { getContent, getContents } from './getContent.cjs';
7
+ export { getExports, getExportsExtended, getExportsStrict } from './getExports.cjs';
7
8
  export { getImports, getImportss } from './getImports.cjs';
8
9
  export { getStartSame } from './getStartSame.cjs';
9
10
  export { getStartSames } from './getStartSames.cjs';
@@ -4,6 +4,7 @@ export { deComment } from './deComment.js';
4
4
  export { firstLower } from './firstLower.js';
5
5
  export { firstUpper } from './firstUpper.js';
6
6
  export { getContent, getContents } from './getContent.js';
7
+ export { getExports, getExportsExtended, getExportsStrict } from './getExports.js';
7
8
  export { getImports, getImportss } from './getImports.js';
8
9
  export { getStartSame } from './getStartSame.js';
9
10
  export { getStartSames } from './getStartSames.js';
@@ -1,4 +1,4 @@
1
- import "../../chunk-WWAVGLQE.js";
1
+ import "../../chunk-CY2RRXP5.js";
2
2
  import {
3
3
  toFunctionParam,
4
4
  toFunctionParamOptions
@@ -25,6 +25,11 @@ import {
25
25
  getContent,
26
26
  getContents
27
27
  } from "../../chunk-YKSVLAAK.js";
28
+ import {
29
+ getExports,
30
+ getExportsExtended,
31
+ getExportsStrict
32
+ } from "../../chunk-4KYAGDPN.js";
28
33
  import {
29
34
  getImports,
30
35
  getImportss
@@ -70,6 +75,9 @@ export {
70
75
  firstUpper,
71
76
  getContent,
72
77
  getContents,
78
+ getExports,
79
+ getExportsExtended,
80
+ getExportsStrict,
73
81
  getFunctionFormat,
74
82
  getImports,
75
83
  getImportss,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBV6LMCAFcjs = require('./chunk-BV6LMCAF.cjs');
3
+ var _chunkG6O3Z6MXcjs = require('./chunk-G6O3Z6MX.cjs');
4
4
 
5
5
 
6
6
  var _chunkYUKBGZQ4cjs = require('./chunk-YUKBGZQ4.cjs');
@@ -16,7 +16,7 @@ var basic_exports = {};
16
16
  _chunk75ZPJI57cjs.__export.call(void 0, basic_exports, {
17
17
  array: () => _chunk65O7KWP4cjs.array_exports,
18
18
  object: () => _chunkYUKBGZQ4cjs.object_exports,
19
- string: () => _chunkBV6LMCAFcjs.string_exports
19
+ string: () => _chunkG6O3Z6MXcjs.string_exports
20
20
  });
21
21
 
22
22
 
@@ -0,0 +1,150 @@
1
+ import {
2
+ deComment
3
+ } from "./chunk-FS4JPT23.js";
4
+
5
+ // packages/basic/string/getExports.ts
6
+ var REGEX_PATTERNS = {
7
+ // export const/let/var variableName
8
+ VAR_EXPORT: /export\s+(?:const|let|var)\s+(\w+)/g,
9
+ // export function functionName
10
+ FUNCTION_EXPORT: /export\s+function\s+(\w+)/g,
11
+ // export class ClassName
12
+ CLASS_EXPORT: /export\s+class\s+(\w+)/g,
13
+ // export { a, b as c, d }
14
+ NAMED_EXPORTS: /export\s*\{([^}]+)\}/g,
15
+ // export default identifier
16
+ DEFAULT_EXPORT: /export\s+default\s+(\w+)/,
17
+ // 提取重命名后的名称
18
+ RENAME_SPLIT: /\s+as\s+/
19
+ };
20
+ function getExports(code) {
21
+ code = deComment(code);
22
+ const exports = {
23
+ named: [],
24
+ default: null
25
+ };
26
+ const namedExportsSet = /* @__PURE__ */ new Set();
27
+ const processMatches = (pattern, extractName) => {
28
+ const matches = code.matchAll(pattern);
29
+ for (const match of matches) {
30
+ const name = extractName(match);
31
+ if (name) {
32
+ namedExportsSet.add(name);
33
+ }
34
+ }
35
+ };
36
+ processMatches(REGEX_PATTERNS.VAR_EXPORT, (match) => match[1]);
37
+ processMatches(REGEX_PATTERNS.FUNCTION_EXPORT, (match) => match[1]);
38
+ processMatches(REGEX_PATTERNS.CLASS_EXPORT, (match) => match[1]);
39
+ const namedExportMatches = code.matchAll(REGEX_PATTERNS.NAMED_EXPORTS);
40
+ for (const match of namedExportMatches) {
41
+ const items = match[1];
42
+ if (!items) continue;
43
+ items.split(",").forEach((item) => {
44
+ const trimmed = item.trim();
45
+ if (!trimmed) return;
46
+ const parts = trimmed.split(REGEX_PATTERNS.RENAME_SPLIT);
47
+ const name = parts[parts.length - 1].trim();
48
+ if (name) {
49
+ namedExportsSet.add(name);
50
+ }
51
+ });
52
+ }
53
+ const defaultMatch = code.match(REGEX_PATTERNS.DEFAULT_EXPORT);
54
+ if (defaultMatch) {
55
+ exports.default = defaultMatch[1];
56
+ }
57
+ exports.named = Array.from(namedExportsSet).sort();
58
+ return exports;
59
+ }
60
+ function getExportsExtended(code) {
61
+ const exports = {
62
+ named: [],
63
+ default: null,
64
+ starExports: [],
65
+ reExports: []
66
+ };
67
+ const namedExportsSet = /* @__PURE__ */ new Set();
68
+ const EXTENDED_PATTERNS = {
69
+ // export * from 'module'
70
+ STAR_EXPORT: /export\s*\*\s*from\s*(['"])([^'"]+)\1/g,
71
+ // export { name } from 'module'
72
+ RE_EXPORT: /export\s*\{([^}]+)\}\s*from\s*(['"])([^'"]+)\2/g,
73
+ // 匿名默认导出:export default function() {...} 或 export default class {...}
74
+ ANONYMOUS_DEFAULT: /export\s+default\s+(?:function|class|\([^)]*\)\s*=>)/,
75
+ // 默认导出字面量
76
+ DEFAULT_LITERAL: /export\s+default\s+([^{(\s][^\s;{]*)/,
77
+ // 解构导出:export const { a, b } = obj
78
+ DESTRUCTURING_EXPORT: /export\s+(?:const|let|var)\s+\{([^}]+)\}/g
79
+ };
80
+ const basicExports = getExports(code);
81
+ basicExports.named.forEach((name) => namedExportsSet.add(name));
82
+ exports.default = basicExports.default;
83
+ const starMatches = code.matchAll(EXTENDED_PATTERNS.STAR_EXPORT);
84
+ for (const match of starMatches) {
85
+ const modulePath = match[2];
86
+ if (modulePath) {
87
+ exports.starExports.push(modulePath);
88
+ }
89
+ }
90
+ const reExportMatches = code.matchAll(EXTENDED_PATTERNS.RE_EXPORT);
91
+ for (const match of reExportMatches) {
92
+ const names = match[1];
93
+ const source = match[3];
94
+ if (names && source) {
95
+ names.split(",").forEach((item) => {
96
+ const trimmed = item.trim();
97
+ if (trimmed) {
98
+ const parts = trimmed.split(/\s+as\s+/);
99
+ const name = parts[parts.length - 1].trim();
100
+ if (name) {
101
+ exports.reExports.push({ name, source });
102
+ namedExportsSet.add(name);
103
+ }
104
+ }
105
+ });
106
+ }
107
+ }
108
+ if (EXTENDED_PATTERNS.ANONYMOUS_DEFAULT.test(code) && !exports.default) {
109
+ exports.default = "[anonymous]";
110
+ }
111
+ const literalMatch = code.match(EXTENDED_PATTERNS.DEFAULT_LITERAL);
112
+ if (literalMatch && !exports.default) {
113
+ exports.default = literalMatch[1].trim();
114
+ }
115
+ const destructuringMatches = code.matchAll(
116
+ EXTENDED_PATTERNS.DESTRUCTURING_EXPORT
117
+ );
118
+ for (const match of destructuringMatches) {
119
+ const items = match[1];
120
+ if (items) {
121
+ items.split(",").forEach((item) => {
122
+ const trimmed = item.trim();
123
+ if (trimmed) {
124
+ const colonParts = trimmed.split(":");
125
+ const name = colonParts[colonParts.length - 1].trim();
126
+ namedExportsSet.add(name);
127
+ }
128
+ });
129
+ }
130
+ }
131
+ exports.named = Array.from(namedExportsSet).sort();
132
+ return exports;
133
+ }
134
+ function isValidIdentifier(name) {
135
+ return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name);
136
+ }
137
+ function getExportsStrict(code) {
138
+ const result = getExports(code);
139
+ result.named = result.named.filter(isValidIdentifier);
140
+ if (result.default && !isValidIdentifier(result.default)) {
141
+ result.default = null;
142
+ }
143
+ return result;
144
+ }
145
+
146
+ export {
147
+ getExports,
148
+ getExportsExtended,
149
+ getExportsStrict
150
+ };
@@ -0,0 +1,150 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkXWCRGY54cjs = require('./chunk-XWCRGY54.cjs');
4
+
5
+ // packages/basic/string/getExports.ts
6
+ var REGEX_PATTERNS = {
7
+ // export const/let/var variableName
8
+ VAR_EXPORT: /export\s+(?:const|let|var)\s+(\w+)/g,
9
+ // export function functionName
10
+ FUNCTION_EXPORT: /export\s+function\s+(\w+)/g,
11
+ // export class ClassName
12
+ CLASS_EXPORT: /export\s+class\s+(\w+)/g,
13
+ // export { a, b as c, d }
14
+ NAMED_EXPORTS: /export\s*\{([^}]+)\}/g,
15
+ // export default identifier
16
+ DEFAULT_EXPORT: /export\s+default\s+(\w+)/,
17
+ // 提取重命名后的名称
18
+ RENAME_SPLIT: /\s+as\s+/
19
+ };
20
+ function getExports(code) {
21
+ code = _chunkXWCRGY54cjs.deComment.call(void 0, code);
22
+ const exports = {
23
+ named: [],
24
+ default: null
25
+ };
26
+ const namedExportsSet = /* @__PURE__ */ new Set();
27
+ const processMatches = (pattern, extractName) => {
28
+ const matches = code.matchAll(pattern);
29
+ for (const match of matches) {
30
+ const name = extractName(match);
31
+ if (name) {
32
+ namedExportsSet.add(name);
33
+ }
34
+ }
35
+ };
36
+ processMatches(REGEX_PATTERNS.VAR_EXPORT, (match) => match[1]);
37
+ processMatches(REGEX_PATTERNS.FUNCTION_EXPORT, (match) => match[1]);
38
+ processMatches(REGEX_PATTERNS.CLASS_EXPORT, (match) => match[1]);
39
+ const namedExportMatches = code.matchAll(REGEX_PATTERNS.NAMED_EXPORTS);
40
+ for (const match of namedExportMatches) {
41
+ const items = match[1];
42
+ if (!items) continue;
43
+ items.split(",").forEach((item) => {
44
+ const trimmed = item.trim();
45
+ if (!trimmed) return;
46
+ const parts = trimmed.split(REGEX_PATTERNS.RENAME_SPLIT);
47
+ const name = parts[parts.length - 1].trim();
48
+ if (name) {
49
+ namedExportsSet.add(name);
50
+ }
51
+ });
52
+ }
53
+ const defaultMatch = code.match(REGEX_PATTERNS.DEFAULT_EXPORT);
54
+ if (defaultMatch) {
55
+ exports.default = defaultMatch[1];
56
+ }
57
+ exports.named = Array.from(namedExportsSet).sort();
58
+ return exports;
59
+ }
60
+ function getExportsExtended(code) {
61
+ const exports = {
62
+ named: [],
63
+ default: null,
64
+ starExports: [],
65
+ reExports: []
66
+ };
67
+ const namedExportsSet = /* @__PURE__ */ new Set();
68
+ const EXTENDED_PATTERNS = {
69
+ // export * from 'module'
70
+ STAR_EXPORT: /export\s*\*\s*from\s*(['"])([^'"]+)\1/g,
71
+ // export { name } from 'module'
72
+ RE_EXPORT: /export\s*\{([^}]+)\}\s*from\s*(['"])([^'"]+)\2/g,
73
+ // 匿名默认导出:export default function() {...} 或 export default class {...}
74
+ ANONYMOUS_DEFAULT: /export\s+default\s+(?:function|class|\([^)]*\)\s*=>)/,
75
+ // 默认导出字面量
76
+ DEFAULT_LITERAL: /export\s+default\s+([^{(\s][^\s;{]*)/,
77
+ // 解构导出:export const { a, b } = obj
78
+ DESTRUCTURING_EXPORT: /export\s+(?:const|let|var)\s+\{([^}]+)\}/g
79
+ };
80
+ const basicExports = getExports(code);
81
+ basicExports.named.forEach((name) => namedExportsSet.add(name));
82
+ exports.default = basicExports.default;
83
+ const starMatches = code.matchAll(EXTENDED_PATTERNS.STAR_EXPORT);
84
+ for (const match of starMatches) {
85
+ const modulePath = match[2];
86
+ if (modulePath) {
87
+ exports.starExports.push(modulePath);
88
+ }
89
+ }
90
+ const reExportMatches = code.matchAll(EXTENDED_PATTERNS.RE_EXPORT);
91
+ for (const match of reExportMatches) {
92
+ const names = match[1];
93
+ const source = match[3];
94
+ if (names && source) {
95
+ names.split(",").forEach((item) => {
96
+ const trimmed = item.trim();
97
+ if (trimmed) {
98
+ const parts = trimmed.split(/\s+as\s+/);
99
+ const name = parts[parts.length - 1].trim();
100
+ if (name) {
101
+ exports.reExports.push({ name, source });
102
+ namedExportsSet.add(name);
103
+ }
104
+ }
105
+ });
106
+ }
107
+ }
108
+ if (EXTENDED_PATTERNS.ANONYMOUS_DEFAULT.test(code) && !exports.default) {
109
+ exports.default = "[anonymous]";
110
+ }
111
+ const literalMatch = code.match(EXTENDED_PATTERNS.DEFAULT_LITERAL);
112
+ if (literalMatch && !exports.default) {
113
+ exports.default = literalMatch[1].trim();
114
+ }
115
+ const destructuringMatches = code.matchAll(
116
+ EXTENDED_PATTERNS.DESTRUCTURING_EXPORT
117
+ );
118
+ for (const match of destructuringMatches) {
119
+ const items = match[1];
120
+ if (items) {
121
+ items.split(",").forEach((item) => {
122
+ const trimmed = item.trim();
123
+ if (trimmed) {
124
+ const colonParts = trimmed.split(":");
125
+ const name = colonParts[colonParts.length - 1].trim();
126
+ namedExportsSet.add(name);
127
+ }
128
+ });
129
+ }
130
+ }
131
+ exports.named = Array.from(namedExportsSet).sort();
132
+ return exports;
133
+ }
134
+ function isValidIdentifier(name) {
135
+ return /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name);
136
+ }
137
+ function getExportsStrict(code) {
138
+ const result = getExports(code);
139
+ result.named = result.named.filter(isValidIdentifier);
140
+ if (result.default && !isValidIdentifier(result.default)) {
141
+ result.default = null;
142
+ }
143
+ return result;
144
+ }
145
+
146
+
147
+
148
+
149
+
150
+ exports.getExports = getExports; exports.getExportsExtended = getExportsExtended; exports.getExportsStrict = getExportsStrict;
@@ -24,6 +24,11 @@ import {
24
24
  getContent,
25
25
  getContents
26
26
  } from "./chunk-YKSVLAAK.js";
27
+ import {
28
+ getExports,
29
+ getExportsExtended,
30
+ getExportsStrict
31
+ } from "./chunk-4KYAGDPN.js";
27
32
  import {
28
33
  getImports,
29
34
  getImportss
@@ -73,6 +78,9 @@ __export(string_exports, {
73
78
  firstUpper: () => firstUpper,
74
79
  getContent: () => getContent,
75
80
  getContents: () => getContents,
81
+ getExports: () => getExports,
82
+ getExportsExtended: () => getExportsExtended,
83
+ getExportsStrict: () => getExportsStrict,
76
84
  getFunctionFormat: () => getFunctionFormat,
77
85
  getImports: () => getImports,
78
86
  getImportss: () => getImportss,
@@ -27,6 +27,11 @@ var _chunk4PUYFFPOcjs = require('./chunk-4PUYFFPO.cjs');
27
27
 
28
28
 
29
29
 
30
+
31
+ var _chunkASGZ2VD6cjs = require('./chunk-ASGZ2VD6.cjs');
32
+
33
+
34
+
30
35
  var _chunkHWHYHL6Jcjs = require('./chunk-HWHYHL6J.cjs');
31
36
 
32
37
 
@@ -73,6 +78,9 @@ _chunk75ZPJI57cjs.__export.call(void 0, string_exports, {
73
78
  firstUpper: () => _chunkOQL4GIEJcjs.firstUpper,
74
79
  getContent: () => _chunk4PUYFFPOcjs.getContent,
75
80
  getContents: () => _chunk4PUYFFPOcjs.getContents,
81
+ getExports: () => _chunkASGZ2VD6cjs.getExports,
82
+ getExportsExtended: () => _chunkASGZ2VD6cjs.getExportsExtended,
83
+ getExportsStrict: () => _chunkASGZ2VD6cjs.getExportsStrict,
76
84
  getFunctionFormat: () => _chunkJJ37YIPJcjs.getFunctionFormat,
77
85
  getImports: () => _chunkHWHYHL6Jcjs.getImports,
78
86
  getImportss: () => _chunkHWHYHL6Jcjs.getImportss,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  string_exports
3
- } from "./chunk-WWAVGLQE.js";
3
+ } from "./chunk-CY2RRXP5.js";
4
4
  import {
5
5
  object_exports
6
6
  } from "./chunk-PRGC5MIZ.js";
@@ -1,6 +1,6 @@
1
1
  import { i as index$1 } from './index-BYfEDFkm.js';
2
2
  import { i as index$2 } from './index-oW2flHUo.js';
3
- import { i as index$3 } from './index-CRh3wZkY.js';
3
+ import { i as index$3 } from './index-BkNPwlhS.js';
4
4
 
5
5
  declare namespace index {
6
6
  export { index$1 as array, index$2 as object, index$3 as string };
@@ -4,6 +4,7 @@ import { deComment } from './basic/string/deComment.js';
4
4
  import { firstLower } from './basic/string/firstLower.js';
5
5
  import { firstUpper } from './basic/string/firstUpper.js';
6
6
  import { getContent, getContents } from './basic/string/getContent.js';
7
+ import { getExports, getExportsExtended, getExportsStrict } from './basic/string/getExports.js';
7
8
  import { getImports, getImportss } from './basic/string/getImports.js';
8
9
  import { getStartSame } from './basic/string/getStartSame.js';
9
10
  import { getStartSames } from './basic/string/getStartSames.js';
@@ -26,6 +27,9 @@ declare const index_firstLower: typeof firstLower;
26
27
  declare const index_firstUpper: typeof firstUpper;
27
28
  declare const index_getContent: typeof getContent;
28
29
  declare const index_getContents: typeof getContents;
30
+ declare const index_getExports: typeof getExports;
31
+ declare const index_getExportsExtended: typeof getExportsExtended;
32
+ declare const index_getExportsStrict: typeof getExportsStrict;
29
33
  declare const index_getFunctionFormat: typeof getFunctionFormat;
30
34
  declare const index_getImports: typeof getImports;
31
35
  declare const index_getImportss: typeof getImportss;
@@ -45,7 +49,7 @@ declare const index_toJSONSStringify: typeof toJSONSStringify;
45
49
  declare const index_toJSONStringify: typeof toJSONStringify;
46
50
  declare const index_toStringParse: typeof toStringParse;
47
51
  declare namespace index {
48
- export { index_CodeBlock as CodeBlock, index_FunctionFormat as FunctionFormat, index_appearNum as appearNum, index_appearNumSeat as appearNumSeat, index_deComment as deComment, index_extractParams as extractParams, index_firstLower as firstLower, index_firstUpper as firstUpper, index_getContent as getContent, index_getContents as getContents, index_getFunctionFormat as getFunctionFormat, index_getImports as getImports, index_getImportss as getImportss, index_getStartSame as getStartSame, index_getStartSames as getStartSames, index_getStrNunPosit as getStrNunPosit, index_serializeCodeBlock as serializeCodeBlock, index_serializeFunctionRef as serializeFunctionRef, index_splitUpper as splitUpper, index_startsNum as startsNum, index_toFunction as toFunction, index_toFunctionParam as toFunctionParam, index_toFunctionParamOptions as toFunctionParamOptions, index_toJSONParse as toJSONParse, index_toJSONSParse as toJSONSParse, index_toJSONSStringify as toJSONSStringify, index_toJSONStringify as toJSONStringify, index_toStringParse as toStringParse };
52
+ export { index_CodeBlock as CodeBlock, index_FunctionFormat as FunctionFormat, index_appearNum as appearNum, index_appearNumSeat as appearNumSeat, index_deComment as deComment, index_extractParams as extractParams, index_firstLower as firstLower, index_firstUpper as firstUpper, index_getContent as getContent, index_getContents as getContents, index_getExports as getExports, index_getExportsExtended as getExportsExtended, index_getExportsStrict as getExportsStrict, index_getFunctionFormat as getFunctionFormat, index_getImports as getImports, index_getImportss as getImportss, index_getStartSame as getStartSame, index_getStartSames as getStartSames, index_getStrNunPosit as getStrNunPosit, index_serializeCodeBlock as serializeCodeBlock, index_serializeFunctionRef as serializeFunctionRef, index_splitUpper as splitUpper, index_startsNum as startsNum, index_toFunction as toFunction, index_toFunctionParam as toFunctionParam, index_toFunctionParamOptions as toFunctionParamOptions, index_toJSONParse as toJSONParse, index_toJSONSParse as toJSONSParse, index_toJSONSStringify as toJSONSStringify, index_toJSONStringify as toJSONStringify, index_toStringParse as toStringParse };
49
53
  }
50
54
 
51
55
  export { index as i };
@@ -1,6 +1,6 @@
1
1
  import { i as index$1 } from './index-D8_Udh46.cjs';
2
2
  import { i as index$2 } from './index-Cz8fWd5l.cjs';
3
- import { i as index$3 } from './index-BmGaGt2M.cjs';
3
+ import { i as index$3 } from './index-JauNNBr7.cjs';
4
4
 
5
5
  declare namespace index {
6
6
  export { index$1 as array, index$2 as object, index$3 as string };
@@ -4,6 +4,7 @@ import { deComment } from './basic/string/deComment.cjs';
4
4
  import { firstLower } from './basic/string/firstLower.cjs';
5
5
  import { firstUpper } from './basic/string/firstUpper.cjs';
6
6
  import { getContent, getContents } from './basic/string/getContent.cjs';
7
+ import { getExports, getExportsExtended, getExportsStrict } from './basic/string/getExports.cjs';
7
8
  import { getImports, getImportss } from './basic/string/getImports.cjs';
8
9
  import { getStartSame } from './basic/string/getStartSame.cjs';
9
10
  import { getStartSames } from './basic/string/getStartSames.cjs';
@@ -26,6 +27,9 @@ declare const index_firstLower: typeof firstLower;
26
27
  declare const index_firstUpper: typeof firstUpper;
27
28
  declare const index_getContent: typeof getContent;
28
29
  declare const index_getContents: typeof getContents;
30
+ declare const index_getExports: typeof getExports;
31
+ declare const index_getExportsExtended: typeof getExportsExtended;
32
+ declare const index_getExportsStrict: typeof getExportsStrict;
29
33
  declare const index_getFunctionFormat: typeof getFunctionFormat;
30
34
  declare const index_getImports: typeof getImports;
31
35
  declare const index_getImportss: typeof getImportss;
@@ -45,7 +49,7 @@ declare const index_toJSONSStringify: typeof toJSONSStringify;
45
49
  declare const index_toJSONStringify: typeof toJSONStringify;
46
50
  declare const index_toStringParse: typeof toStringParse;
47
51
  declare namespace index {
48
- export { index_CodeBlock as CodeBlock, index_FunctionFormat as FunctionFormat, index_appearNum as appearNum, index_appearNumSeat as appearNumSeat, index_deComment as deComment, index_extractParams as extractParams, index_firstLower as firstLower, index_firstUpper as firstUpper, index_getContent as getContent, index_getContents as getContents, index_getFunctionFormat as getFunctionFormat, index_getImports as getImports, index_getImportss as getImportss, index_getStartSame as getStartSame, index_getStartSames as getStartSames, index_getStrNunPosit as getStrNunPosit, index_serializeCodeBlock as serializeCodeBlock, index_serializeFunctionRef as serializeFunctionRef, index_splitUpper as splitUpper, index_startsNum as startsNum, index_toFunction as toFunction, index_toFunctionParam as toFunctionParam, index_toFunctionParamOptions as toFunctionParamOptions, index_toJSONParse as toJSONParse, index_toJSONSParse as toJSONSParse, index_toJSONSStringify as toJSONSStringify, index_toJSONStringify as toJSONStringify, index_toStringParse as toStringParse };
52
+ export { index_CodeBlock as CodeBlock, index_FunctionFormat as FunctionFormat, index_appearNum as appearNum, index_appearNumSeat as appearNumSeat, index_deComment as deComment, index_extractParams as extractParams, index_firstLower as firstLower, index_firstUpper as firstUpper, index_getContent as getContent, index_getContents as getContents, index_getExports as getExports, index_getExportsExtended as getExportsExtended, index_getExportsStrict as getExportsStrict, index_getFunctionFormat as getFunctionFormat, index_getImports as getImports, index_getImportss as getImportss, index_getStartSame as getStartSame, index_getStartSames as getStartSames, index_getStrNunPosit as getStrNunPosit, index_serializeCodeBlock as serializeCodeBlock, index_serializeFunctionRef as serializeFunctionRef, index_splitUpper as splitUpper, index_startsNum as startsNum, index_toFunction as toFunction, index_toFunctionParam as toFunctionParam, index_toFunctionParamOptions as toFunctionParamOptions, index_toJSONParse as toJSONParse, index_toJSONSParse as toJSONSParse, index_toJSONSStringify as toJSONSStringify, index_toJSONStringify as toJSONStringify, index_toStringParse as toStringParse };
49
53
  }
50
54
 
51
55
  export { index as i };
package/dist/index.cjs CHANGED
@@ -12,9 +12,6 @@ require('./chunk-TPOVGKBX.cjs');
12
12
  require('./chunk-JFAHWIZ3.cjs');
13
13
  require('./chunk-VYOTXPMM.cjs');
14
14
  require('./chunk-PW76Z25D.cjs');
15
-
16
-
17
- var _chunkV6PYRA4Acjs = require('./chunk-V6PYRA4A.cjs');
18
15
  require('./chunk-H6KIVPAS.cjs');
19
16
  require('./chunk-CVBJXH33.cjs');
20
17
  require('./chunk-JAWXP52O.cjs');
@@ -25,22 +22,25 @@ require('./chunk-3DD7YCN2.cjs');
25
22
  require('./chunk-HMAAC5QA.cjs');
26
23
 
27
24
 
28
- var _chunkHUKQYAV6cjs = require('./chunk-HUKQYAV6.cjs');
29
- require('./chunk-5VQ4EAJZ.cjs');
25
+ var _chunkBG2YS767cjs = require('./chunk-BG2YS767.cjs');
30
26
 
31
27
 
32
- var _chunkPV2N6PF2cjs = require('./chunk-PV2N6PF2.cjs');
33
- require('./chunk-YAD5PHVF.cjs');
34
- require('./chunk-RYBJGHXK.cjs');
28
+ var _chunkV6PYRA4Acjs = require('./chunk-V6PYRA4A.cjs');
35
29
  require('./chunk-FGQXKLTH.cjs');
36
30
 
37
31
 
32
+ var _chunkAPRM3ELYcjs = require('./chunk-APRM3ELY.cjs');
33
+ require('./chunk-RYBJGHXK.cjs');
34
+ require('./chunk-YAD5PHVF.cjs');
35
+
36
+
38
37
  var _chunkBD6DK4QKcjs = require('./chunk-BD6DK4QK.cjs');
39
38
  require('./chunk-HCEAYQHS.cjs');
40
39
  require('./chunk-FP5ETUFZ.cjs');
41
40
 
42
41
 
43
- var _chunkBG2YS767cjs = require('./chunk-BG2YS767.cjs');
42
+ var _chunkHUKQYAV6cjs = require('./chunk-HUKQYAV6.cjs');
43
+ require('./chunk-5VQ4EAJZ.cjs');
44
44
  require('./chunk-KRBTSMT2.cjs');
45
45
  require('./chunk-O6P3QI3B.cjs');
46
46
  require('./chunk-XHR36FJK.cjs');
@@ -85,14 +85,15 @@ require('./chunk-7TGGIID4.cjs');
85
85
  require('./chunk-75UYCE4X.cjs');
86
86
 
87
87
 
88
- var _chunkMKAI4SMJcjs = require('./chunk-MKAI4SMJ.cjs');
89
- require('./chunk-BV6LMCAF.cjs');
88
+ var _chunk2IDKKVEAcjs = require('./chunk-2IDKKVEA.cjs');
89
+ require('./chunk-G6O3Z6MX.cjs');
90
90
  require('./chunk-BWXXXTFU.cjs');
91
91
  require('./chunk-K2XKKEE7.cjs');
92
92
  require('./chunk-TKE7IK2M.cjs');
93
93
  require('./chunk-HLKHFBMF.cjs');
94
94
  require('./chunk-JJ37YIPJ.cjs');
95
95
  require('./chunk-4PUYFFPO.cjs');
96
+ require('./chunk-ASGZ2VD6.cjs');
96
97
  require('./chunk-HWHYHL6J.cjs');
97
98
  require('./chunk-J7S3KBHL.cjs');
98
99
  require('./chunk-L7FSHU27.cjs');
@@ -150,4 +151,4 @@ require('./chunk-75ZPJI57.cjs');
150
151
 
151
152
 
152
153
 
153
- exports.basic = _chunkMKAI4SMJcjs.basic_exports; exports.css = _chunk2KAMKGPZcjs.css_exports; exports.date = _chunk5SOPYS7Lcjs.date_exports; exports.dom = _chunkZUIHJQD6cjs.dom_exports; exports.html = _chunkFLGYKRQ6cjs.html_exports; exports.iss = _chunkRYVXUCAScjs.iss_exports; exports.judge = _chunkFL2HPQ66cjs.judge_exports; exports.load = _chunkBD6DK4QKcjs.load_exports; exports.log = _chunkHUKQYAV6cjs.log_exports; exports.name = _chunkBG2YS767cjs.name_exports; exports.node = _chunkV6PYRA4Acjs.node_exports; exports.tree = _chunkPV2N6PF2cjs.tree_exports; exports.urls = _chunk7GCUYESUcjs.urls_exports; exports.window = _chunkMDSCUXDFcjs.window_exports;
154
+ exports.basic = _chunk2IDKKVEAcjs.basic_exports; exports.css = _chunk2KAMKGPZcjs.css_exports; exports.date = _chunk5SOPYS7Lcjs.date_exports; exports.dom = _chunkZUIHJQD6cjs.dom_exports; exports.html = _chunkFLGYKRQ6cjs.html_exports; exports.iss = _chunkRYVXUCAScjs.iss_exports; exports.judge = _chunkFL2HPQ66cjs.judge_exports; exports.load = _chunkBD6DK4QKcjs.load_exports; exports.log = _chunkHUKQYAV6cjs.log_exports; exports.name = _chunkBG2YS767cjs.name_exports; exports.node = _chunkV6PYRA4Acjs.node_exports; exports.tree = _chunkAPRM3ELYcjs.tree_exports; exports.urls = _chunk7GCUYESUcjs.urls_exports; exports.window = _chunkMDSCUXDFcjs.window_exports;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as basic } from './index-BMhmeVcw.cjs';
1
+ export { i as basic } from './index-C1ttB6pd.cjs';
2
2
  export { i as css } from './index-nli88Oxt.cjs';
3
3
  export { i as date } from './index-x-yhJQ-1.cjs';
4
4
  export { i as dom } from './index-BiHaQlE9.cjs';
@@ -36,13 +36,14 @@ import './basic/object/objValue.cjs';
36
36
  import './basic/object/reverseObj.cjs';
37
37
  import './basic/object/setSort.cjs';
38
38
  import './basic/object/unmergeObject.cjs';
39
- import './index-BmGaGt2M.cjs';
39
+ import './index-JauNNBr7.cjs';
40
40
  import './basic/string/appearNum.cjs';
41
41
  import './basic/string/appearNumSeat.cjs';
42
42
  import './basic/string/deComment.cjs';
43
43
  import './basic/string/firstLower.cjs';
44
44
  import './basic/string/firstUpper.cjs';
45
45
  import './basic/string/getContent.cjs';
46
+ import './basic/string/getExports.cjs';
46
47
  import './basic/string/getImports.cjs';
47
48
  import './basic/string/getStartSame.cjs';
48
49
  import './basic/string/getStartSames.cjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as basic } from './index-CGsG3tMc.js';
1
+ export { i as basic } from './index-BKbw-_J6.js';
2
2
  export { i as css } from './index-B0STkRZY.js';
3
3
  export { i as date } from './index-BFahmWSa.js';
4
4
  export { i as dom } from './index-BqhKBGyX.js';
@@ -36,13 +36,14 @@ import './basic/object/objValue.js';
36
36
  import './basic/object/reverseObj.js';
37
37
  import './basic/object/setSort.js';
38
38
  import './basic/object/unmergeObject.js';
39
- import './index-CRh3wZkY.js';
39
+ import './index-BkNPwlhS.js';
40
40
  import './basic/string/appearNum.js';
41
41
  import './basic/string/appearNumSeat.js';
42
42
  import './basic/string/deComment.js';
43
43
  import './basic/string/firstLower.js';
44
44
  import './basic/string/firstUpper.js';
45
45
  import './basic/string/getContent.js';
46
+ import './basic/string/getExports.js';
46
47
  import './basic/string/getImports.js';
47
48
  import './basic/string/getStartSame.js';
48
49
  import './basic/string/getStartSames.js';
package/dist/index.js CHANGED
@@ -12,9 +12,6 @@ import "./chunk-7KGS6354.js";
12
12
  import "./chunk-I5IL3OO7.js";
13
13
  import "./chunk-W45DTA4D.js";
14
14
  import "./chunk-ZLEU2YQ2.js";
15
- import {
16
- node_exports
17
- } from "./chunk-UZ3LZBJ5.js";
18
15
  import "./chunk-NWIJYHAJ.js";
19
16
  import "./chunk-KDOS4NFR.js";
20
17
  import "./chunk-GHTDWIJ5.js";
@@ -24,23 +21,26 @@ import "./chunk-ZJHRAMCL.js";
24
21
  import "./chunk-SE7A43WC.js";
25
22
  import "./chunk-GHJWTV6H.js";
26
23
  import {
27
- log_exports
28
- } from "./chunk-4FHGONC7.js";
29
- import "./chunk-HVQG2IGJ.js";
24
+ name_exports
25
+ } from "./chunk-BFN33JM5.js";
26
+ import {
27
+ node_exports
28
+ } from "./chunk-UZ3LZBJ5.js";
29
+ import "./chunk-HWR2FRME.js";
30
30
  import {
31
31
  tree_exports
32
- } from "./chunk-OVHYLUAS.js";
33
- import "./chunk-GVVJIN46.js";
32
+ } from "./chunk-QUIZWAFR.js";
34
33
  import "./chunk-XQOH3NGZ.js";
35
- import "./chunk-HWR2FRME.js";
34
+ import "./chunk-GVVJIN46.js";
36
35
  import {
37
36
  load_exports
38
37
  } from "./chunk-IAKHOOY7.js";
39
38
  import "./chunk-2SOGI5PH.js";
40
39
  import "./chunk-RU4PMJQS.js";
41
40
  import {
42
- name_exports
43
- } from "./chunk-BFN33JM5.js";
41
+ log_exports
42
+ } from "./chunk-4FHGONC7.js";
43
+ import "./chunk-HVQG2IGJ.js";
44
44
  import "./chunk-VRRDYCUH.js";
45
45
  import "./chunk-EJWFLQF3.js";
46
46
  import "./chunk-AM67P3W7.js";
@@ -85,14 +85,15 @@ import "./chunk-EKY7GXCD.js";
85
85
  import "./chunk-Q2EFMBMD.js";
86
86
  import {
87
87
  basic_exports
88
- } from "./chunk-YQETDPCJ.js";
89
- import "./chunk-WWAVGLQE.js";
88
+ } from "./chunk-NGZ6KFQR.js";
89
+ import "./chunk-CY2RRXP5.js";
90
90
  import "./chunk-U6V3V5KH.js";
91
91
  import "./chunk-TIZFQBWC.js";
92
92
  import "./chunk-ZADO6V3Z.js";
93
93
  import "./chunk-ADPTUJSF.js";
94
94
  import "./chunk-Q6BNW3MO.js";
95
95
  import "./chunk-YKSVLAAK.js";
96
+ import "./chunk-4KYAGDPN.js";
96
97
  import "./chunk-N5Y3XGHX.js";
97
98
  import "./chunk-7DTHADVK.js";
98
99
  import "./chunk-VKE5JARB.js";
@@ -1,14 +1,14 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-PV2N6PF2.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-APRM3ELY.cjs');
2
2
 
3
3
 
4
4
 
5
5
 
6
- var _chunkYAD5PHVFcjs = require('../chunk-YAD5PHVF.cjs');
6
+ var _chunkRYBJGHXKcjs = require('../chunk-RYBJGHXK.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkRYBJGHXKcjs = require('../chunk-RYBJGHXK.cjs');
11
+ var _chunkYAD5PHVFcjs = require('../chunk-YAD5PHVF.cjs');
12
12
  require('../chunk-XW3XIK3D.cjs');
13
13
  require('../chunk-75ZPJI57.cjs');
14
14
 
@@ -1,14 +1,14 @@
1
- import "../chunk-OVHYLUAS.js";
2
- import {
3
- arrayToTree,
4
- getTreeObj,
5
- treeToArray
6
- } from "../chunk-GVVJIN46.js";
1
+ import "../chunk-QUIZWAFR.js";
7
2
  import {
8
3
  splitGroup,
9
4
  splitGroupDitto,
10
5
  splitGroupExist
11
6
  } from "../chunk-XQOH3NGZ.js";
7
+ import {
8
+ arrayToTree,
9
+ getTreeObj,
10
+ treeToArray
11
+ } from "../chunk-GVVJIN46.js";
12
12
  import "../chunk-O34QAOO7.js";
13
13
  import "../chunk-MLKGABMK.js";
14
14
  export {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fangzhongya/utils",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.0.74",
5
+ "version": "0.0.75",
6
6
  "description ": "个人工具库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",
@@ -201,6 +201,11 @@
201
201
  "require": "./dist/basic/string/getContent.cjs",
202
202
  "import": "./dist/basic/string/getContent.js"
203
203
  },
204
+ "./basic/string/getExports": {
205
+ "types": "./dist/basic/string/getExports.d.ts",
206
+ "require": "./dist/basic/string/getExports.cjs",
207
+ "import": "./dist/basic/string/getExports.js"
208
+ },
204
209
  "./basic/string/getImports": {
205
210
  "types": "./dist/basic/string/getImports.d.ts",
206
211
  "require": "./dist/basic/string/getImports.cjs",
@@ -2,12 +2,12 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkYAD5PHVFcjs = require('./chunk-YAD5PHVF.cjs');
5
+ var _chunkRYBJGHXKcjs = require('./chunk-RYBJGHXK.cjs');
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkRYBJGHXKcjs = require('./chunk-RYBJGHXK.cjs');
10
+ var _chunkYAD5PHVFcjs = require('./chunk-YAD5PHVF.cjs');
11
11
 
12
12
 
13
13
  var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
@@ -1,13 +1,13 @@
1
- import {
2
- arrayToTree,
3
- getTreeObj,
4
- treeToArray
5
- } from "./chunk-GVVJIN46.js";
6
1
  import {
7
2
  splitGroup,
8
3
  splitGroupDitto,
9
4
  splitGroupExist
10
5
  } from "./chunk-XQOH3NGZ.js";
6
+ import {
7
+ arrayToTree,
8
+ getTreeObj,
9
+ treeToArray
10
+ } from "./chunk-GVVJIN46.js";
11
11
  import {
12
12
  __export
13
13
  } from "./chunk-MLKGABMK.js";