@fangzhongya/utils 0.0.17 → 0.0.18

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.
Files changed (41) hide show
  1. package/dist/basic/index.cjs +7 -5
  2. package/dist/basic/index.d.cts +3 -1
  3. package/dist/basic/index.d.ts +3 -1
  4. package/dist/basic/index.js +6 -4
  5. package/dist/basic/string/deComment.cjs +7 -0
  6. package/dist/basic/string/deComment.d.cts +7 -0
  7. package/dist/basic/string/deComment.d.ts +7 -0
  8. package/dist/basic/string/deComment.js +7 -0
  9. package/dist/basic/string/getImports.cjs +7 -0
  10. package/dist/basic/string/getImports.d.cts +6 -0
  11. package/dist/basic/string/getImports.d.ts +6 -0
  12. package/dist/basic/string/getImports.js +7 -0
  13. package/dist/basic/string/index.cjs +14 -6
  14. package/dist/basic/string/index.d.cts +2 -0
  15. package/dist/basic/string/index.d.ts +2 -0
  16. package/dist/basic/string/index.js +15 -7
  17. package/dist/{chunk-ZEMAXGD5.js → chunk-2FCXQCZK.js} +14 -6
  18. package/dist/{chunk-2J3S75C6.cjs → chunk-2TOYA4H3.cjs} +2 -2
  19. package/dist/{chunk-CMBQ66JH.js → chunk-7ST7U7BZ.js} +1 -1
  20. package/dist/{chunk-VJUGYXBC.cjs → chunk-CEWOTVIJ.cjs} +12 -4
  21. package/dist/{chunk-PSHKOVLY.cjs → chunk-FKHYIRA5.cjs} +2 -2
  22. package/dist/{chunk-FSIQKHKH.js → chunk-MMONYXIE.js} +1 -1
  23. package/dist/chunk-TZWVFIQ6.js +95 -0
  24. package/dist/chunk-UDHZO4RQ.cjs +17 -0
  25. package/dist/chunk-YYF5TJ2R.cjs +95 -0
  26. package/dist/chunk-ZP73W6GC.js +17 -0
  27. package/dist/{index-C6CeIuau.d.cts → index-B97eDKqX.d.cts} +5 -1
  28. package/dist/{index-20jIrGxr.d.ts → index-BcgeB76v.d.ts} +5 -1
  29. package/dist/{index-D1WceQZE.d.ts → index-FhMxFhW9.d.ts} +1 -1
  30. package/dist/{index-haAz3CpA.d.cts → index-p51PQiT3.d.cts} +1 -1
  31. package/dist/index.cjs +18 -16
  32. package/dist/index.d.cts +4 -2
  33. package/dist/index.d.ts +4 -2
  34. package/dist/index.js +19 -17
  35. package/dist/urls/getReplaceCompleteUrl.cjs +3 -3
  36. package/dist/urls/getReplaceCompleteUrl.js +2 -2
  37. package/dist/urls/index.cjs +4 -4
  38. package/dist/urls/index.js +3 -3
  39. package/package.json +11 -1
  40. package/dist/{chunk-3NBXSBFM.js → chunk-QS6GY3QV.js} +3 -3
  41. package/dist/{chunk-NESVPZNF.cjs → chunk-UF6FYYWF.cjs} +2 -2
@@ -1,12 +1,14 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-PSHKOVLY.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-FKHYIRA5.cjs');
2
2
 
3
3
 
4
- var _chunkVJUGYXBCcjs = require('../chunk-VJUGYXBC.cjs');
4
+ var _chunkCEWOTVIJcjs = require('../chunk-CEWOTVIJ.cjs');
5
+ require('../chunk-L7FSHU27.cjs');
5
6
  require('../chunk-JHV27P2Q.cjs');
6
7
  require('../chunk-ETMYYVQJ.cjs');
7
8
  require('../chunk-QXK4IUBI.cjs');
9
+ require('../chunk-YYF5TJ2R.cjs');
10
+ require('../chunk-UDHZO4RQ.cjs');
8
11
  require('../chunk-J7S3KBHL.cjs');
9
- require('../chunk-L7FSHU27.cjs');
10
12
 
11
13
 
12
14
  var _chunkUGT4QBTMcjs = require('../chunk-UGT4QBTM.cjs');
@@ -31,8 +33,8 @@ require('../chunk-MHHMXDHD.cjs');
31
33
  require('../chunk-OJBZ7UUC.cjs');
32
34
  require('../chunk-JR6ZN6QD.cjs');
33
35
  require('../chunk-XW3XIK3D.cjs');
34
- require('../chunk-2H3KVSFA.cjs');
35
36
  require('../chunk-ILJLXJ5O.cjs');
37
+ require('../chunk-2H3KVSFA.cjs');
36
38
  require('../chunk-PW7RP73J.cjs');
37
39
  require('../chunk-UEVMS6QD.cjs');
38
40
  require('../chunk-OQL4GIEJ.cjs');
@@ -44,4 +46,4 @@ require('../chunk-75ZPJI57.cjs');
44
46
 
45
47
 
46
48
 
47
- exports.array = _chunk4BGJIMWMcjs.array_exports; exports.object = _chunkUGT4QBTMcjs.object_exports; exports.string = _chunkVJUGYXBCcjs.string_exports;
49
+ exports.array = _chunk4BGJIMWMcjs.array_exports; exports.object = _chunkUGT4QBTMcjs.object_exports; exports.string = _chunkCEWOTVIJcjs.string_exports;
@@ -1,6 +1,6 @@
1
1
  export { i as array } from '../index-qUiGxoy_.cjs';
2
2
  export { i as object } from '../index-BU0xla6v.cjs';
3
- export { i as string } from '../index-C6CeIuau.cjs';
3
+ export { i as string } from '../index-B97eDKqX.cjs';
4
4
  import './array/asyncMergeArray.cjs';
5
5
  import './array/deleteArray.cjs';
6
6
  import './array/duplicateRemoval.cjs';
@@ -22,8 +22,10 @@ import './object/setSort.cjs';
22
22
  import './object/unmergeObject.cjs';
23
23
  import './string/appearNum.cjs';
24
24
  import './string/appearNumSeat.cjs';
25
+ import './string/deComment.cjs';
25
26
  import './string/firstLower.cjs';
26
27
  import './string/firstUpper.cjs';
28
+ import './string/getImports.cjs';
27
29
  import './string/getStartSame.cjs';
28
30
  import './string/getStartSames.cjs';
29
31
  import './string/getStrNunPosit.cjs';
@@ -1,6 +1,6 @@
1
1
  export { i as array } from '../index-C29DFVeC.js';
2
2
  export { i as object } from '../index-DOq59RNr.js';
3
- export { i as string } from '../index-20jIrGxr.js';
3
+ export { i as string } from '../index-BcgeB76v.js';
4
4
  import './array/asyncMergeArray.js';
5
5
  import './array/deleteArray.js';
6
6
  import './array/duplicateRemoval.js';
@@ -22,8 +22,10 @@ import './object/setSort.js';
22
22
  import './object/unmergeObject.js';
23
23
  import './string/appearNum.js';
24
24
  import './string/appearNumSeat.js';
25
+ import './string/deComment.js';
25
26
  import './string/firstLower.js';
26
27
  import './string/firstUpper.js';
28
+ import './string/getImports.js';
27
29
  import './string/getStartSame.js';
28
30
  import './string/getStartSames.js';
29
31
  import './string/getStrNunPosit.js';
@@ -1,12 +1,14 @@
1
- import "../chunk-FSIQKHKH.js";
1
+ import "../chunk-MMONYXIE.js";
2
2
  import {
3
3
  string_exports
4
- } from "../chunk-ZEMAXGD5.js";
4
+ } from "../chunk-2FCXQCZK.js";
5
+ import "../chunk-VKE5JARB.js";
5
6
  import "../chunk-U3PZBQ6G.js";
6
7
  import "../chunk-5HC662VK.js";
7
8
  import "../chunk-7O4MJOHM.js";
9
+ import "../chunk-TZWVFIQ6.js";
10
+ import "../chunk-ZP73W6GC.js";
8
11
  import "../chunk-7DTHADVK.js";
9
- import "../chunk-VKE5JARB.js";
10
12
  import {
11
13
  object_exports
12
14
  } from "../chunk-IEQHKLEL.js";
@@ -31,8 +33,8 @@ import "../chunk-K33LOE73.js";
31
33
  import "../chunk-LPMR5W6M.js";
32
34
  import "../chunk-DMZP4RPN.js";
33
35
  import "../chunk-O34QAOO7.js";
34
- import "../chunk-USIMBBLW.js";
35
36
  import "../chunk-P7AWHISY.js";
37
+ import "../chunk-USIMBBLW.js";
36
38
  import "../chunk-A276ZDLP.js";
37
39
  import "../chunk-4OBNLDTJ.js";
38
40
  import "../chunk-EWJJKQIO.js";
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkYYF5TJ2Rcjs = require('../../chunk-YYF5TJ2R.cjs');
4
+ require('../../chunk-75ZPJI57.cjs');
5
+
6
+
7
+ exports.removeComments = _chunkYYF5TJ2Rcjs.removeComments;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 去掉注释代码
3
+ * @param text
4
+ */
5
+ declare function removeComments(code: string): string;
6
+
7
+ export { removeComments };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 去掉注释代码
3
+ * @param text
4
+ */
5
+ declare function removeComments(code: string): string;
6
+
7
+ export { removeComments };
@@ -0,0 +1,7 @@
1
+ import {
2
+ removeComments
3
+ } from "../../chunk-TZWVFIQ6.js";
4
+ import "../../chunk-MLKGABMK.js";
5
+ export {
6
+ removeComments
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkUDHZO4RQcjs = require('../../chunk-UDHZO4RQ.cjs');
4
+ require('../../chunk-75ZPJI57.cjs');
5
+
6
+
7
+ exports.getImports = _chunkUDHZO4RQcjs.getImports;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 获取代码中的引用地址
3
+ */
4
+ declare function getImports(code: string): unknown[];
5
+
6
+ export { getImports };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 获取代码中的引用地址
3
+ */
4
+ declare function getImports(code: string): unknown[];
5
+
6
+ export { getImports };
@@ -0,0 +1,7 @@
1
+ import {
2
+ getImports
3
+ } from "../../chunk-ZP73W6GC.js";
4
+ import "../../chunk-MLKGABMK.js";
5
+ export {
6
+ getImports
7
+ };
@@ -1,4 +1,7 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-VJUGYXBC.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CEWOTVIJ.cjs');
2
+
3
+
4
+ var _chunkL7FSHU27cjs = require('../../chunk-L7FSHU27.cjs');
2
5
 
3
6
 
4
7
 
@@ -15,10 +18,13 @@ var _chunkETMYYVQJcjs = require('../../chunk-ETMYYVQJ.cjs');
15
18
  var _chunkQXK4IUBIcjs = require('../../chunk-QXK4IUBI.cjs');
16
19
 
17
20
 
18
- var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
21
+ var _chunkYYF5TJ2Rcjs = require('../../chunk-YYF5TJ2R.cjs');
19
22
 
20
23
 
21
- var _chunkL7FSHU27cjs = require('../../chunk-L7FSHU27.cjs');
24
+ var _chunkUDHZO4RQcjs = require('../../chunk-UDHZO4RQ.cjs');
25
+
26
+
27
+ var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
22
28
  require('../../chunk-E4WBX6J5.cjs');
23
29
 
24
30
 
@@ -28,10 +34,10 @@ var _chunkOJBZ7UUCcjs = require('../../chunk-OJBZ7UUC.cjs');
28
34
  var _chunkJR6ZN6QDcjs = require('../../chunk-JR6ZN6QD.cjs');
29
35
 
30
36
 
31
- var _chunk2H3KVSFAcjs = require('../../chunk-2H3KVSFA.cjs');
37
+ var _chunkILJLXJ5Ocjs = require('../../chunk-ILJLXJ5O.cjs');
32
38
 
33
39
 
34
- var _chunkILJLXJ5Ocjs = require('../../chunk-ILJLXJ5O.cjs');
40
+ var _chunk2H3KVSFAcjs = require('../../chunk-2H3KVSFA.cjs');
35
41
 
36
42
 
37
43
  var _chunkPW7RP73Jcjs = require('../../chunk-PW7RP73J.cjs');
@@ -60,4 +66,6 @@ require('../../chunk-75ZPJI57.cjs');
60
66
 
61
67
 
62
68
 
63
- exports.appearNum = _chunkOJBZ7UUCcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getFunctionFormat = _chunkQXK4IUBIcjs.getFunctionFormat; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.getStrNunPosit = _chunk2H3KVSFAcjs.getStrNunPosit; exports.serializeCodeBlock = _chunkETMYYVQJcjs.serializeCodeBlock; exports.serializeFunctionRef = _chunkETMYYVQJcjs.serializeFunctionRef; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper; exports.startsNum = _chunkILJLXJ5Ocjs.startsNum; exports.toFunction = _chunkQXK4IUBIcjs.toFunction; exports.toJSONParse = _chunkJHV27P2Qcjs.toJSONParse; exports.toJSONSParse = _chunkETMYYVQJcjs.toJSONSParse; exports.toJSONSStringify = _chunkETMYYVQJcjs.toJSONSStringify; exports.toJSONStringify = _chunkJHV27P2Qcjs.toJSONStringify;
69
+
70
+
71
+ exports.appearNum = _chunkOJBZ7UUCcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getFunctionFormat = _chunkQXK4IUBIcjs.getFunctionFormat; exports.getImports = _chunkUDHZO4RQcjs.getImports; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.getStrNunPosit = _chunk2H3KVSFAcjs.getStrNunPosit; exports.removeComments = _chunkYYF5TJ2Rcjs.removeComments; exports.serializeCodeBlock = _chunkETMYYVQJcjs.serializeCodeBlock; exports.serializeFunctionRef = _chunkETMYYVQJcjs.serializeFunctionRef; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper; exports.startsNum = _chunkILJLXJ5Ocjs.startsNum; exports.toFunction = _chunkQXK4IUBIcjs.toFunction; exports.toJSONParse = _chunkJHV27P2Qcjs.toJSONParse; exports.toJSONSParse = _chunkETMYYVQJcjs.toJSONSParse; exports.toJSONSStringify = _chunkETMYYVQJcjs.toJSONSStringify; exports.toJSONStringify = _chunkJHV27P2Qcjs.toJSONStringify;
@@ -1,7 +1,9 @@
1
1
  export { appearNum } from './appearNum.cjs';
2
2
  export { appearNumSeat } from './appearNumSeat.cjs';
3
+ export { removeComments } from './deComment.cjs';
3
4
  export { firstLower } from './firstLower.cjs';
4
5
  export { firstUpper } from './firstUpper.cjs';
6
+ export { getImports } from './getImports.cjs';
5
7
  export { getStartSame } from './getStartSame.cjs';
6
8
  export { getStartSames } from './getStartSames.cjs';
7
9
  export { getStrNunPosit } from './getStrNunPosit.cjs';
@@ -1,7 +1,9 @@
1
1
  export { appearNum } from './appearNum.js';
2
2
  export { appearNumSeat } from './appearNumSeat.js';
3
+ export { removeComments } from './deComment.js';
3
4
  export { firstLower } from './firstLower.js';
4
5
  export { firstUpper } from './firstUpper.js';
6
+ export { getImports } from './getImports.js';
5
7
  export { getStartSame } from './getStartSame.js';
6
8
  export { getStartSames } from './getStartSames.js';
7
9
  export { getStrNunPosit } from './getStrNunPosit.js';
@@ -1,4 +1,7 @@
1
- import "../../chunk-ZEMAXGD5.js";
1
+ import "../../chunk-2FCXQCZK.js";
2
+ import {
3
+ splitUpper
4
+ } from "../../chunk-VKE5JARB.js";
2
5
  import {
3
6
  toJSONParse,
4
7
  toJSONStringify
@@ -13,12 +16,15 @@ import {
13
16
  getFunctionFormat,
14
17
  toFunction
15
18
  } from "../../chunk-7O4MJOHM.js";
19
+ import {
20
+ removeComments
21
+ } from "../../chunk-TZWVFIQ6.js";
22
+ import {
23
+ getImports
24
+ } from "../../chunk-ZP73W6GC.js";
16
25
  import {
17
26
  getStartSame
18
27
  } from "../../chunk-7DTHADVK.js";
19
- import {
20
- splitUpper
21
- } from "../../chunk-VKE5JARB.js";
22
28
  import "../../chunk-754Z5VW6.js";
23
29
  import {
24
30
  appearNum
@@ -26,12 +32,12 @@ import {
26
32
  import {
27
33
  appearNumSeat
28
34
  } from "../../chunk-DMZP4RPN.js";
29
- import {
30
- getStrNunPosit
31
- } from "../../chunk-USIMBBLW.js";
32
35
  import {
33
36
  startsNum
34
37
  } from "../../chunk-P7AWHISY.js";
38
+ import {
39
+ getStrNunPosit
40
+ } from "../../chunk-USIMBBLW.js";
35
41
  import {
36
42
  getStartSames
37
43
  } from "../../chunk-A276ZDLP.js";
@@ -48,9 +54,11 @@ export {
48
54
  firstLower,
49
55
  firstUpper,
50
56
  getFunctionFormat,
57
+ getImports,
51
58
  getStartSame,
52
59
  getStartSames,
53
60
  getStrNunPosit,
61
+ removeComments,
54
62
  serializeCodeBlock,
55
63
  serializeFunctionRef,
56
64
  splitUpper,
@@ -1,3 +1,6 @@
1
+ import {
2
+ splitUpper
3
+ } from "./chunk-VKE5JARB.js";
1
4
  import {
2
5
  toJSONParse,
3
6
  toJSONStringify
@@ -12,24 +15,27 @@ import {
12
15
  getFunctionFormat,
13
16
  toFunction
14
17
  } from "./chunk-7O4MJOHM.js";
18
+ import {
19
+ removeComments
20
+ } from "./chunk-TZWVFIQ6.js";
21
+ import {
22
+ getImports
23
+ } from "./chunk-ZP73W6GC.js";
15
24
  import {
16
25
  getStartSame
17
26
  } from "./chunk-7DTHADVK.js";
18
- import {
19
- splitUpper
20
- } from "./chunk-VKE5JARB.js";
21
27
  import {
22
28
  appearNum
23
29
  } from "./chunk-LPMR5W6M.js";
24
30
  import {
25
31
  appearNumSeat
26
32
  } from "./chunk-DMZP4RPN.js";
27
- import {
28
- getStrNunPosit
29
- } from "./chunk-USIMBBLW.js";
30
33
  import {
31
34
  startsNum
32
35
  } from "./chunk-P7AWHISY.js";
36
+ import {
37
+ getStrNunPosit
38
+ } from "./chunk-USIMBBLW.js";
33
39
  import {
34
40
  getStartSames
35
41
  } from "./chunk-A276ZDLP.js";
@@ -51,9 +57,11 @@ __export(string_exports, {
51
57
  firstLower: () => firstLower,
52
58
  firstUpper: () => firstUpper,
53
59
  getFunctionFormat: () => getFunctionFormat,
60
+ getImports: () => getImports,
54
61
  getStartSame: () => getStartSame,
55
62
  getStartSames: () => getStartSames,
56
63
  getStrNunPosit: () => getStrNunPosit,
64
+ removeComments: () => removeComments,
57
65
  serializeCodeBlock: () => serializeCodeBlock,
58
66
  serializeFunctionRef: () => serializeFunctionRef,
59
67
  splitUpper: () => splitUpper,
@@ -21,7 +21,7 @@ var _chunkIRKWYW5Bcjs = require('./chunk-IRKWYW5B.cjs');
21
21
  var _chunk43VE3KXLcjs = require('./chunk-43VE3KXL.cjs');
22
22
 
23
23
 
24
- var _chunkNESVPZNFcjs = require('./chunk-NESVPZNF.cjs');
24
+ var _chunkUF6FYYWFcjs = require('./chunk-UF6FYYWF.cjs');
25
25
 
26
26
 
27
27
  var _chunk77SI5VSScjs = require('./chunk-77SI5VSS.cjs');
@@ -38,7 +38,7 @@ _chunk75ZPJI57cjs.__export.call(void 0, urls_exports, {
38
38
  getImportUrl: () => _chunkIRKWYW5Bcjs.getImportUrl,
39
39
  getImportUrlSuffix: () => _chunk27WA7EI2cjs.getImportUrlSuffix,
40
40
  getNewFileName: () => _chunk43VE3KXLcjs.getNewFileName,
41
- getReplaceCompleteUrl: () => _chunkNESVPZNFcjs.getReplaceCompleteUrl,
41
+ getReplaceCompleteUrl: () => _chunkUF6FYYWFcjs.getReplaceCompleteUrl,
42
42
  getReplaceImportUrl: () => _chunkRFUD3TOQcjs.getReplaceImportUrl,
43
43
  getReplaceUrl: () => _chunk3DD7YCN2cjs.getReplaceUrl,
44
44
  getSuffix: () => _chunk6A6EAFGLcjs.getSuffix,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-YYWENXJO.js";
22
22
  import {
23
23
  getReplaceCompleteUrl
24
- } from "./chunk-3NBXSBFM.js";
24
+ } from "./chunk-QS6GY3QV.js";
25
25
  import {
26
26
  getUrlCatalogueObj
27
27
  } from "./chunk-TP5BP64T.js";
@@ -1,5 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
+ var _chunkL7FSHU27cjs = require('./chunk-L7FSHU27.cjs');
4
+
5
+
3
6
 
4
7
  var _chunkJHV27P2Qcjs = require('./chunk-JHV27P2Q.cjs');
5
8
 
@@ -14,10 +17,13 @@ var _chunkETMYYVQJcjs = require('./chunk-ETMYYVQJ.cjs');
14
17
  var _chunkQXK4IUBIcjs = require('./chunk-QXK4IUBI.cjs');
15
18
 
16
19
 
17
- var _chunkJ7S3KBHLcjs = require('./chunk-J7S3KBHL.cjs');
20
+ var _chunkYYF5TJ2Rcjs = require('./chunk-YYF5TJ2R.cjs');
18
21
 
19
22
 
20
- var _chunkL7FSHU27cjs = require('./chunk-L7FSHU27.cjs');
23
+ var _chunkUDHZO4RQcjs = require('./chunk-UDHZO4RQ.cjs');
24
+
25
+
26
+ var _chunkJ7S3KBHLcjs = require('./chunk-J7S3KBHL.cjs');
21
27
 
22
28
 
23
29
  var _chunkOJBZ7UUCcjs = require('./chunk-OJBZ7UUC.cjs');
@@ -26,10 +32,10 @@ var _chunkOJBZ7UUCcjs = require('./chunk-OJBZ7UUC.cjs');
26
32
  var _chunkJR6ZN6QDcjs = require('./chunk-JR6ZN6QD.cjs');
27
33
 
28
34
 
29
- var _chunk2H3KVSFAcjs = require('./chunk-2H3KVSFA.cjs');
35
+ var _chunkILJLXJ5Ocjs = require('./chunk-ILJLXJ5O.cjs');
30
36
 
31
37
 
32
- var _chunkILJLXJ5Ocjs = require('./chunk-ILJLXJ5O.cjs');
38
+ var _chunk2H3KVSFAcjs = require('./chunk-2H3KVSFA.cjs');
33
39
 
34
40
 
35
41
  var _chunkPW7RP73Jcjs = require('./chunk-PW7RP73J.cjs');
@@ -51,9 +57,11 @@ _chunk75ZPJI57cjs.__export.call(void 0, string_exports, {
51
57
  firstLower: () => _chunkUEVMS6QDcjs.firstLower,
52
58
  firstUpper: () => _chunkOQL4GIEJcjs.firstUpper,
53
59
  getFunctionFormat: () => _chunkQXK4IUBIcjs.getFunctionFormat,
60
+ getImports: () => _chunkUDHZO4RQcjs.getImports,
54
61
  getStartSame: () => _chunkJ7S3KBHLcjs.getStartSame,
55
62
  getStartSames: () => _chunkPW7RP73Jcjs.getStartSames,
56
63
  getStrNunPosit: () => _chunk2H3KVSFAcjs.getStrNunPosit,
64
+ removeComments: () => _chunkYYF5TJ2Rcjs.removeComments,
57
65
  serializeCodeBlock: () => _chunkETMYYVQJcjs.serializeCodeBlock,
58
66
  serializeFunctionRef: () => _chunkETMYYVQJcjs.serializeFunctionRef,
59
67
  splitUpper: () => _chunkL7FSHU27cjs.splitUpper,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkVJUGYXBCcjs = require('./chunk-VJUGYXBC.cjs');
3
+ var _chunkCEWOTVIJcjs = require('./chunk-CEWOTVIJ.cjs');
4
4
 
5
5
 
6
6
  var _chunkUGT4QBTMcjs = require('./chunk-UGT4QBTM.cjs');
@@ -16,7 +16,7 @@ var basic_exports = {};
16
16
  _chunk75ZPJI57cjs.__export.call(void 0, basic_exports, {
17
17
  array: () => _chunk4BGJIMWMcjs.array_exports,
18
18
  object: () => _chunkUGT4QBTMcjs.object_exports,
19
- string: () => _chunkVJUGYXBCcjs.string_exports
19
+ string: () => _chunkCEWOTVIJcjs.string_exports
20
20
  });
21
21
 
22
22
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  string_exports
3
- } from "./chunk-ZEMAXGD5.js";
3
+ } from "./chunk-2FCXQCZK.js";
4
4
  import {
5
5
  object_exports
6
6
  } from "./chunk-IEQHKLEL.js";
@@ -0,0 +1,95 @@
1
+ // packages/basic/string/deComment.ts
2
+ function removeComments(code) {
3
+ let output = "";
4
+ let state = "code";
5
+ let escaping = false;
6
+ let i = 0;
7
+ const len = code.length;
8
+ while (i < len) {
9
+ const char = code[i];
10
+ const nextChar = code[i + 1];
11
+ switch (state) {
12
+ case "code":
13
+ if (char === "/" && nextChar === "/") {
14
+ state = "singleLine";
15
+ i += 2;
16
+ } else if (char === "/" && nextChar === "*") {
17
+ state = "multiLine";
18
+ i += 2;
19
+ } else if (char === "'") {
20
+ state = "singleQuote";
21
+ output += char;
22
+ i++;
23
+ } else if (char === '"') {
24
+ state = "doubleQuote";
25
+ output += char;
26
+ i++;
27
+ } else if (char === "`") {
28
+ state = "template";
29
+ output += char;
30
+ i++;
31
+ } else {
32
+ output += char;
33
+ i++;
34
+ }
35
+ break;
36
+ case "singleLine":
37
+ if (char === "\n" || char === "\r") {
38
+ state = "code";
39
+ output += char;
40
+ i++;
41
+ if (char === "\r" && nextChar === "\n") {
42
+ output += nextChar;
43
+ i++;
44
+ }
45
+ } else {
46
+ i++;
47
+ }
48
+ break;
49
+ case "multiLine":
50
+ if (char === "*" && nextChar === "/") {
51
+ state = "code";
52
+ i += 2;
53
+ if (output.length > 0 && /[a-zA-Z0-9_$]$/.test(output) && i < len && /[a-zA-Z0-9_$]/.test(code[i])) {
54
+ output += " ";
55
+ }
56
+ } else {
57
+ i++;
58
+ }
59
+ break;
60
+ case "singleQuote":
61
+ output += char;
62
+ if (!escaping && char === "'") {
63
+ state = "code";
64
+ }
65
+ escaping = !escaping && char === "\\";
66
+ i++;
67
+ break;
68
+ case "doubleQuote":
69
+ output += char;
70
+ if (!escaping && char === '"') {
71
+ state = "code";
72
+ }
73
+ escaping = !escaping && char === "\\";
74
+ i++;
75
+ break;
76
+ case "template":
77
+ output += char;
78
+ if (!escaping && char === "`") {
79
+ state = "code";
80
+ } else if (!escaping && char === "$" && nextChar === "{") {
81
+ output += nextChar;
82
+ i += 2;
83
+ continue;
84
+ }
85
+ escaping = !escaping && char === "\\";
86
+ i++;
87
+ break;
88
+ }
89
+ }
90
+ return output;
91
+ }
92
+
93
+ export {
94
+ removeComments
95
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/getImports.ts
2
+ function getImports(code) {
3
+ const regex = /import\s?(?:type)?\s?(?:(?:(?:[\w*\s{},]*)\s+from\s+)?['"](.*?)['"]|['"](.*?)['"])|import\(['"](.*?)['"]\)/g;
4
+ const imports = /* @__PURE__ */ new Set();
5
+ let match;
6
+ while ((match = regex.exec(code)) !== null) {
7
+ const path = match[1] || match[2] || match[3];
8
+ if (path) {
9
+ imports.add(path);
10
+ }
11
+ }
12
+ return Array.from(imports);
13
+ }
14
+
15
+
16
+
17
+ exports.getImports = getImports;
@@ -0,0 +1,95 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/deComment.ts
2
+ function removeComments(code) {
3
+ let output = "";
4
+ let state = "code";
5
+ let escaping = false;
6
+ let i = 0;
7
+ const len = code.length;
8
+ while (i < len) {
9
+ const char = code[i];
10
+ const nextChar = code[i + 1];
11
+ switch (state) {
12
+ case "code":
13
+ if (char === "/" && nextChar === "/") {
14
+ state = "singleLine";
15
+ i += 2;
16
+ } else if (char === "/" && nextChar === "*") {
17
+ state = "multiLine";
18
+ i += 2;
19
+ } else if (char === "'") {
20
+ state = "singleQuote";
21
+ output += char;
22
+ i++;
23
+ } else if (char === '"') {
24
+ state = "doubleQuote";
25
+ output += char;
26
+ i++;
27
+ } else if (char === "`") {
28
+ state = "template";
29
+ output += char;
30
+ i++;
31
+ } else {
32
+ output += char;
33
+ i++;
34
+ }
35
+ break;
36
+ case "singleLine":
37
+ if (char === "\n" || char === "\r") {
38
+ state = "code";
39
+ output += char;
40
+ i++;
41
+ if (char === "\r" && nextChar === "\n") {
42
+ output += nextChar;
43
+ i++;
44
+ }
45
+ } else {
46
+ i++;
47
+ }
48
+ break;
49
+ case "multiLine":
50
+ if (char === "*" && nextChar === "/") {
51
+ state = "code";
52
+ i += 2;
53
+ if (output.length > 0 && /[a-zA-Z0-9_$]$/.test(output) && i < len && /[a-zA-Z0-9_$]/.test(code[i])) {
54
+ output += " ";
55
+ }
56
+ } else {
57
+ i++;
58
+ }
59
+ break;
60
+ case "singleQuote":
61
+ output += char;
62
+ if (!escaping && char === "'") {
63
+ state = "code";
64
+ }
65
+ escaping = !escaping && char === "\\";
66
+ i++;
67
+ break;
68
+ case "doubleQuote":
69
+ output += char;
70
+ if (!escaping && char === '"') {
71
+ state = "code";
72
+ }
73
+ escaping = !escaping && char === "\\";
74
+ i++;
75
+ break;
76
+ case "template":
77
+ output += char;
78
+ if (!escaping && char === "`") {
79
+ state = "code";
80
+ } else if (!escaping && char === "$" && nextChar === "{") {
81
+ output += nextChar;
82
+ i += 2;
83
+ continue;
84
+ }
85
+ escaping = !escaping && char === "\\";
86
+ i++;
87
+ break;
88
+ }
89
+ }
90
+ return output;
91
+ }
92
+
93
+
94
+
95
+ exports.removeComments = removeComments;
@@ -0,0 +1,17 @@
1
+ // packages/basic/string/getImports.ts
2
+ function getImports(code) {
3
+ const regex = /import\s?(?:type)?\s?(?:(?:(?:[\w*\s{},]*)\s+from\s+)?['"](.*?)['"]|['"](.*?)['"])|import\(['"](.*?)['"]\)/g;
4
+ const imports = /* @__PURE__ */ new Set();
5
+ let match;
6
+ while ((match = regex.exec(code)) !== null) {
7
+ const path = match[1] || match[2] || match[3];
8
+ if (path) {
9
+ imports.add(path);
10
+ }
11
+ }
12
+ return Array.from(imports);
13
+ }
14
+
15
+ export {
16
+ getImports
17
+ };
@@ -1,7 +1,9 @@
1
1
  import { appearNum } from './basic/string/appearNum.cjs';
2
2
  import { appearNumSeat } from './basic/string/appearNumSeat.cjs';
3
+ import { removeComments } from './basic/string/deComment.cjs';
3
4
  import { firstLower } from './basic/string/firstLower.cjs';
4
5
  import { firstUpper } from './basic/string/firstUpper.cjs';
6
+ import { getImports } from './basic/string/getImports.cjs';
5
7
  import { getStartSame } from './basic/string/getStartSame.cjs';
6
8
  import { getStartSames } from './basic/string/getStartSames.cjs';
7
9
  import { getStrNunPosit } from './basic/string/getStrNunPosit.cjs';
@@ -17,9 +19,11 @@ declare const index_appearNumSeat: typeof appearNumSeat;
17
19
  declare const index_firstLower: typeof firstLower;
18
20
  declare const index_firstUpper: typeof firstUpper;
19
21
  declare const index_getFunctionFormat: typeof getFunctionFormat;
22
+ declare const index_getImports: typeof getImports;
20
23
  declare const index_getStartSame: typeof getStartSame;
21
24
  declare const index_getStartSames: typeof getStartSames;
22
25
  declare const index_getStrNunPosit: typeof getStrNunPosit;
26
+ declare const index_removeComments: typeof removeComments;
23
27
  declare const index_serializeCodeBlock: typeof serializeCodeBlock;
24
28
  declare const index_serializeFunctionRef: typeof serializeFunctionRef;
25
29
  declare const index_splitUpper: typeof splitUpper;
@@ -30,7 +34,7 @@ declare const index_toJSONSParse: typeof toJSONSParse;
30
34
  declare const index_toJSONSStringify: typeof toJSONSStringify;
31
35
  declare const index_toJSONStringify: typeof toJSONStringify;
32
36
  declare namespace index {
33
- export { index_CodeBlock as CodeBlock, index_appearNum as appearNum, index_appearNumSeat as appearNumSeat, index_firstLower as firstLower, index_firstUpper as firstUpper, index_getFunctionFormat as getFunctionFormat, 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_toJSONParse as toJSONParse, index_toJSONSParse as toJSONSParse, index_toJSONSStringify as toJSONSStringify, index_toJSONStringify as toJSONStringify };
37
+ export { index_CodeBlock as CodeBlock, index_appearNum as appearNum, index_appearNumSeat as appearNumSeat, index_firstLower as firstLower, index_firstUpper as firstUpper, index_getFunctionFormat as getFunctionFormat, index_getImports as getImports, index_getStartSame as getStartSame, index_getStartSames as getStartSames, index_getStrNunPosit as getStrNunPosit, index_removeComments as removeComments, index_serializeCodeBlock as serializeCodeBlock, index_serializeFunctionRef as serializeFunctionRef, index_splitUpper as splitUpper, index_startsNum as startsNum, index_toFunction as toFunction, index_toJSONParse as toJSONParse, index_toJSONSParse as toJSONSParse, index_toJSONSStringify as toJSONSStringify, index_toJSONStringify as toJSONStringify };
34
38
  }
35
39
 
36
40
  export { index as i };
@@ -1,7 +1,9 @@
1
1
  import { appearNum } from './basic/string/appearNum.js';
2
2
  import { appearNumSeat } from './basic/string/appearNumSeat.js';
3
+ import { removeComments } from './basic/string/deComment.js';
3
4
  import { firstLower } from './basic/string/firstLower.js';
4
5
  import { firstUpper } from './basic/string/firstUpper.js';
6
+ import { getImports } from './basic/string/getImports.js';
5
7
  import { getStartSame } from './basic/string/getStartSame.js';
6
8
  import { getStartSames } from './basic/string/getStartSames.js';
7
9
  import { getStrNunPosit } from './basic/string/getStrNunPosit.js';
@@ -17,9 +19,11 @@ declare const index_appearNumSeat: typeof appearNumSeat;
17
19
  declare const index_firstLower: typeof firstLower;
18
20
  declare const index_firstUpper: typeof firstUpper;
19
21
  declare const index_getFunctionFormat: typeof getFunctionFormat;
22
+ declare const index_getImports: typeof getImports;
20
23
  declare const index_getStartSame: typeof getStartSame;
21
24
  declare const index_getStartSames: typeof getStartSames;
22
25
  declare const index_getStrNunPosit: typeof getStrNunPosit;
26
+ declare const index_removeComments: typeof removeComments;
23
27
  declare const index_serializeCodeBlock: typeof serializeCodeBlock;
24
28
  declare const index_serializeFunctionRef: typeof serializeFunctionRef;
25
29
  declare const index_splitUpper: typeof splitUpper;
@@ -30,7 +34,7 @@ declare const index_toJSONSParse: typeof toJSONSParse;
30
34
  declare const index_toJSONSStringify: typeof toJSONSStringify;
31
35
  declare const index_toJSONStringify: typeof toJSONStringify;
32
36
  declare namespace index {
33
- export { index_CodeBlock as CodeBlock, index_appearNum as appearNum, index_appearNumSeat as appearNumSeat, index_firstLower as firstLower, index_firstUpper as firstUpper, index_getFunctionFormat as getFunctionFormat, 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_toJSONParse as toJSONParse, index_toJSONSParse as toJSONSParse, index_toJSONSStringify as toJSONSStringify, index_toJSONStringify as toJSONStringify };
37
+ export { index_CodeBlock as CodeBlock, index_appearNum as appearNum, index_appearNumSeat as appearNumSeat, index_firstLower as firstLower, index_firstUpper as firstUpper, index_getFunctionFormat as getFunctionFormat, index_getImports as getImports, index_getStartSame as getStartSame, index_getStartSames as getStartSames, index_getStrNunPosit as getStrNunPosit, index_removeComments as removeComments, index_serializeCodeBlock as serializeCodeBlock, index_serializeFunctionRef as serializeFunctionRef, index_splitUpper as splitUpper, index_startsNum as startsNum, index_toFunction as toFunction, index_toJSONParse as toJSONParse, index_toJSONSParse as toJSONSParse, index_toJSONSStringify as toJSONSStringify, index_toJSONStringify as toJSONStringify };
34
38
  }
35
39
 
36
40
  export { index as i };
@@ -1,6 +1,6 @@
1
1
  import { i as index$1 } from './index-C29DFVeC.js';
2
2
  import { i as index$2 } from './index-DOq59RNr.js';
3
- import { i as index$3 } from './index-20jIrGxr.js';
3
+ import { i as index$3 } from './index-BcgeB76v.js';
4
4
 
5
5
  declare namespace index {
6
6
  export { index$1 as array, index$2 as object, index$3 as string };
@@ -1,6 +1,6 @@
1
1
  import { i as index$1 } from './index-qUiGxoy_.cjs';
2
2
  import { i as index$2 } from './index-BU0xla6v.cjs';
3
- import { i as index$3 } from './index-C6CeIuau.cjs';
3
+ import { i as index$3 } from './index-B97eDKqX.cjs';
4
4
 
5
5
  declare namespace index {
6
6
  export { index$1 as array, index$2 as object, index$3 as string };
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  var _chunkVCQOLLVKcjs = require('./chunk-VCQOLLVK.cjs');
4
4
 
5
5
 
6
- var _chunk2J3S75C6cjs = require('./chunk-2J3S75C6.cjs');
6
+ var _chunk2TOYA4H3cjs = require('./chunk-2TOYA4H3.cjs');
7
7
  require('./chunk-3DD7YCN2.cjs');
8
8
  require('./chunk-6A6EAFGL.cjs');
9
9
  require('./chunk-CP2ZSRMU.cjs');
@@ -18,7 +18,7 @@ require('./chunk-RYBJGHXK.cjs');
18
18
  require('./chunk-27WA7EI2.cjs');
19
19
  require('./chunk-IRKWYW5B.cjs');
20
20
  require('./chunk-43VE3KXL.cjs');
21
- require('./chunk-NESVPZNF.cjs');
21
+ require('./chunk-UF6FYYWF.cjs');
22
22
  require('./chunk-77SI5VSS.cjs');
23
23
  require('./chunk-RFUD3TOQ.cjs');
24
24
 
@@ -34,12 +34,9 @@ var _chunkV6PYRA4Acjs = require('./chunk-V6PYRA4A.cjs');
34
34
  require('./chunk-FGQXKLTH.cjs');
35
35
 
36
36
 
37
- var _chunkUHKL2RG3cjs = require('./chunk-UHKL2RG3.cjs');
38
- require('./chunk-V2DXOH6B.cjs');
39
- require('./chunk-T22I7TJQ.cjs');
40
- require('./chunk-YGJOBIEO.cjs');
41
- require('./chunk-ZZEFL2TE.cjs');
42
- require('./chunk-2BY5RQHU.cjs');
37
+ var _chunkBD6DK4QKcjs = require('./chunk-BD6DK4QK.cjs');
38
+ require('./chunk-HCEAYQHS.cjs');
39
+ require('./chunk-FP5ETUFZ.cjs');
43
40
 
44
41
 
45
42
  var _chunkHUKQYAV6cjs = require('./chunk-HUKQYAV6.cjs');
@@ -55,9 +52,12 @@ require('./chunk-EWXBN4VG.cjs');
55
52
  var _chunkIJDVZOVJcjs = require('./chunk-IJDVZOVJ.cjs');
56
53
 
57
54
 
58
- var _chunkBD6DK4QKcjs = require('./chunk-BD6DK4QK.cjs');
59
- require('./chunk-HCEAYQHS.cjs');
60
- require('./chunk-FP5ETUFZ.cjs');
55
+ var _chunkUHKL2RG3cjs = require('./chunk-UHKL2RG3.cjs');
56
+ require('./chunk-V2DXOH6B.cjs');
57
+ require('./chunk-T22I7TJQ.cjs');
58
+ require('./chunk-YGJOBIEO.cjs');
59
+ require('./chunk-ZZEFL2TE.cjs');
60
+ require('./chunk-2BY5RQHU.cjs');
61
61
 
62
62
 
63
63
  var _chunkMHM3QHXOcjs = require('./chunk-MHM3QHXO.cjs');
@@ -73,13 +73,15 @@ require('./chunk-2OR4FUOA.cjs');
73
73
  require('./chunk-UPPSZFBE.cjs');
74
74
 
75
75
 
76
- var _chunkPSHKOVLYcjs = require('./chunk-PSHKOVLY.cjs');
77
- require('./chunk-VJUGYXBC.cjs');
76
+ var _chunkFKHYIRA5cjs = require('./chunk-FKHYIRA5.cjs');
77
+ require('./chunk-CEWOTVIJ.cjs');
78
+ require('./chunk-L7FSHU27.cjs');
78
79
  require('./chunk-JHV27P2Q.cjs');
79
80
  require('./chunk-ETMYYVQJ.cjs');
80
81
  require('./chunk-QXK4IUBI.cjs');
82
+ require('./chunk-YYF5TJ2R.cjs');
83
+ require('./chunk-UDHZO4RQ.cjs');
81
84
  require('./chunk-J7S3KBHL.cjs');
82
- require('./chunk-L7FSHU27.cjs');
83
85
  require('./chunk-UGT4QBTM.cjs');
84
86
  require('./chunk-NRJPCN4J.cjs');
85
87
  require('./chunk-E4WBX6J5.cjs');
@@ -100,8 +102,8 @@ require('./chunk-MHHMXDHD.cjs');
100
102
  require('./chunk-OJBZ7UUC.cjs');
101
103
  require('./chunk-JR6ZN6QD.cjs');
102
104
  require('./chunk-XW3XIK3D.cjs');
103
- require('./chunk-2H3KVSFA.cjs');
104
105
  require('./chunk-ILJLXJ5O.cjs');
106
+ require('./chunk-2H3KVSFA.cjs');
105
107
  require('./chunk-PW7RP73J.cjs');
106
108
  require('./chunk-UEVMS6QD.cjs');
107
109
  require('./chunk-OQL4GIEJ.cjs');
@@ -129,4 +131,4 @@ require('./chunk-75ZPJI57.cjs');
129
131
 
130
132
 
131
133
 
132
- exports.basic = _chunkPSHKOVLYcjs.basic_exports; exports.css = _chunkMHM3QHXOcjs.css_exports; exports.dom = _chunkKNTGZRPDcjs.dom_exports; exports.html = _chunkG3EAHOZLcjs.html_exports; exports.iss = _chunkIJDVZOVJcjs.iss_exports; exports.judge = _chunkUHKL2RG3cjs.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 = _chunk2J3S75C6cjs.urls_exports; exports.window = _chunkVCQOLLVKcjs.window_exports;
134
+ exports.basic = _chunkFKHYIRA5cjs.basic_exports; exports.css = _chunkMHM3QHXOcjs.css_exports; exports.dom = _chunkKNTGZRPDcjs.dom_exports; exports.html = _chunkG3EAHOZLcjs.html_exports; exports.iss = _chunkIJDVZOVJcjs.iss_exports; exports.judge = _chunkUHKL2RG3cjs.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 = _chunk2TOYA4H3cjs.urls_exports; exports.window = _chunkVCQOLLVKcjs.window_exports;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as basic } from './index-haAz3CpA.cjs';
1
+ export { i as basic } from './index-p51PQiT3.cjs';
2
2
  export { i as css } from './index-DUjGVmMW.cjs';
3
3
  export { i as dom } from './index-BiHaQlE9.cjs';
4
4
  export { i as html } from './index-DyDvVtuo.cjs';
@@ -32,11 +32,13 @@ import './basic/object/objValue.cjs';
32
32
  import './basic/object/reverseObj.cjs';
33
33
  import './basic/object/setSort.cjs';
34
34
  import './basic/object/unmergeObject.cjs';
35
- import './index-C6CeIuau.cjs';
35
+ import './index-B97eDKqX.cjs';
36
36
  import './basic/string/appearNum.cjs';
37
37
  import './basic/string/appearNumSeat.cjs';
38
+ import './basic/string/deComment.cjs';
38
39
  import './basic/string/firstLower.cjs';
39
40
  import './basic/string/firstUpper.cjs';
41
+ import './basic/string/getImports.cjs';
40
42
  import './basic/string/getStartSame.cjs';
41
43
  import './basic/string/getStartSames.cjs';
42
44
  import './basic/string/getStrNunPosit.cjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { i as basic } from './index-D1WceQZE.js';
1
+ export { i as basic } from './index-FhMxFhW9.js';
2
2
  export { i as css } from './index-8zofKw_u.js';
3
3
  export { i as dom } from './index-BqhKBGyX.js';
4
4
  export { i as html } from './index-CTSD8gS7.js';
@@ -32,11 +32,13 @@ import './basic/object/objValue.js';
32
32
  import './basic/object/reverseObj.js';
33
33
  import './basic/object/setSort.js';
34
34
  import './basic/object/unmergeObject.js';
35
- import './index-20jIrGxr.js';
35
+ import './index-BcgeB76v.js';
36
36
  import './basic/string/appearNum.js';
37
37
  import './basic/string/appearNumSeat.js';
38
+ import './basic/string/deComment.js';
38
39
  import './basic/string/firstLower.js';
39
40
  import './basic/string/firstUpper.js';
41
+ import './basic/string/getImports.js';
40
42
  import './basic/string/getStartSame.js';
41
43
  import './basic/string/getStartSames.js';
42
44
  import './basic/string/getStrNunPosit.js';
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5M5OM6N6.js";
4
4
  import {
5
5
  urls_exports
6
- } from "./chunk-CMBQ66JH.js";
6
+ } from "./chunk-7ST7U7BZ.js";
7
7
  import "./chunk-SE7A43WC.js";
8
8
  import "./chunk-UOADEBDH.js";
9
9
  import "./chunk-YWL2IWBT.js";
@@ -18,7 +18,7 @@ import "./chunk-XQOH3NGZ.js";
18
18
  import "./chunk-XBZX5YZW.js";
19
19
  import "./chunk-AWC672JW.js";
20
20
  import "./chunk-YYWENXJO.js";
21
- import "./chunk-3NBXSBFM.js";
21
+ import "./chunk-QS6GY3QV.js";
22
22
  import "./chunk-TP5BP64T.js";
23
23
  import "./chunk-ZJHRAMCL.js";
24
24
  import {
@@ -33,13 +33,10 @@ import {
33
33
  } from "./chunk-UZ3LZBJ5.js";
34
34
  import "./chunk-HWR2FRME.js";
35
35
  import {
36
- judge_exports
37
- } from "./chunk-YKNGDK4I.js";
38
- import "./chunk-PLNZCEDI.js";
39
- import "./chunk-T2QKEABG.js";
40
- import "./chunk-YNOFNHEK.js";
41
- import "./chunk-S6JRKYPY.js";
42
- import "./chunk-IRGCP7KH.js";
36
+ load_exports
37
+ } from "./chunk-IAKHOOY7.js";
38
+ import "./chunk-2SOGI5PH.js";
39
+ import "./chunk-RU4PMJQS.js";
43
40
  import {
44
41
  log_exports
45
42
  } from "./chunk-4FHGONC7.js";
@@ -54,10 +51,13 @@ import {
54
51
  iss_exports
55
52
  } from "./chunk-RRYGGI5L.js";
56
53
  import {
57
- load_exports
58
- } from "./chunk-IAKHOOY7.js";
59
- import "./chunk-2SOGI5PH.js";
60
- import "./chunk-RU4PMJQS.js";
54
+ judge_exports
55
+ } from "./chunk-YKNGDK4I.js";
56
+ import "./chunk-PLNZCEDI.js";
57
+ import "./chunk-T2QKEABG.js";
58
+ import "./chunk-YNOFNHEK.js";
59
+ import "./chunk-S6JRKYPY.js";
60
+ import "./chunk-IRGCP7KH.js";
61
61
  import {
62
62
  css_exports
63
63
  } from "./chunk-R4I5BSZX.js";
@@ -73,13 +73,15 @@ import "./chunk-Q63V2U5G.js";
73
73
  import "./chunk-VBS6YE6H.js";
74
74
  import {
75
75
  basic_exports
76
- } from "./chunk-FSIQKHKH.js";
77
- import "./chunk-ZEMAXGD5.js";
76
+ } from "./chunk-MMONYXIE.js";
77
+ import "./chunk-2FCXQCZK.js";
78
+ import "./chunk-VKE5JARB.js";
78
79
  import "./chunk-U3PZBQ6G.js";
79
80
  import "./chunk-5HC662VK.js";
80
81
  import "./chunk-7O4MJOHM.js";
82
+ import "./chunk-TZWVFIQ6.js";
83
+ import "./chunk-ZP73W6GC.js";
81
84
  import "./chunk-7DTHADVK.js";
82
- import "./chunk-VKE5JARB.js";
83
85
  import "./chunk-IEQHKLEL.js";
84
86
  import "./chunk-RD4EP3M5.js";
85
87
  import "./chunk-754Z5VW6.js";
@@ -100,8 +102,8 @@ import "./chunk-K33LOE73.js";
100
102
  import "./chunk-LPMR5W6M.js";
101
103
  import "./chunk-DMZP4RPN.js";
102
104
  import "./chunk-O34QAOO7.js";
103
- import "./chunk-USIMBBLW.js";
104
105
  import "./chunk-P7AWHISY.js";
106
+ import "./chunk-USIMBBLW.js";
105
107
  import "./chunk-A276ZDLP.js";
106
108
  import "./chunk-4OBNLDTJ.js";
107
109
  import "./chunk-EWJJKQIO.js";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNESVPZNFcjs = require('../chunk-NESVPZNF.cjs');
3
+ var _chunkUF6FYYWFcjs = require('../chunk-UF6FYYWF.cjs');
4
4
  require('../chunk-77SI5VSS.cjs');
5
- require('../chunk-2H3KVSFA.cjs');
6
5
  require('../chunk-ILJLXJ5O.cjs');
6
+ require('../chunk-2H3KVSFA.cjs');
7
7
  require('../chunk-75ZPJI57.cjs');
8
8
 
9
9
 
10
- exports.getReplaceCompleteUrl = _chunkNESVPZNFcjs.getReplaceCompleteUrl;
10
+ exports.getReplaceCompleteUrl = _chunkUF6FYYWFcjs.getReplaceCompleteUrl;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getReplaceCompleteUrl
3
- } from "../chunk-3NBXSBFM.js";
3
+ } from "../chunk-QS6GY3QV.js";
4
4
  import "../chunk-TP5BP64T.js";
5
- import "../chunk-USIMBBLW.js";
6
5
  import "../chunk-P7AWHISY.js";
6
+ import "../chunk-USIMBBLW.js";
7
7
  import "../chunk-MLKGABMK.js";
8
8
  export {
9
9
  getReplaceCompleteUrl
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-2J3S75C6.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-2TOYA4H3.cjs');
2
2
 
3
3
 
4
4
  var _chunk3DD7YCN2cjs = require('../chunk-3DD7YCN2.cjs');
@@ -22,7 +22,7 @@ var _chunkIRKWYW5Bcjs = require('../chunk-IRKWYW5B.cjs');
22
22
  var _chunk43VE3KXLcjs = require('../chunk-43VE3KXL.cjs');
23
23
 
24
24
 
25
- var _chunkNESVPZNFcjs = require('../chunk-NESVPZNF.cjs');
25
+ var _chunkUF6FYYWFcjs = require('../chunk-UF6FYYWF.cjs');
26
26
 
27
27
 
28
28
  var _chunk77SI5VSScjs = require('../chunk-77SI5VSS.cjs');
@@ -31,8 +31,8 @@ var _chunk77SI5VSScjs = require('../chunk-77SI5VSS.cjs');
31
31
  var _chunkRFUD3TOQcjs = require('../chunk-RFUD3TOQ.cjs');
32
32
  require('../chunk-OJBZ7UUC.cjs');
33
33
  require('../chunk-JR6ZN6QD.cjs');
34
- require('../chunk-2H3KVSFA.cjs');
35
34
  require('../chunk-ILJLXJ5O.cjs');
35
+ require('../chunk-2H3KVSFA.cjs');
36
36
  require('../chunk-PW7RP73J.cjs');
37
37
  require('../chunk-75ZPJI57.cjs');
38
38
 
@@ -46,4 +46,4 @@ require('../chunk-75ZPJI57.cjs');
46
46
 
47
47
 
48
48
 
49
- exports.getImportUrl = _chunkIRKWYW5Bcjs.getImportUrl; exports.getImportUrlSuffix = _chunk27WA7EI2cjs.getImportUrlSuffix; exports.getNewFileName = _chunk43VE3KXLcjs.getNewFileName; exports.getReplaceCompleteUrl = _chunkNESVPZNFcjs.getReplaceCompleteUrl; exports.getReplaceImportUrl = _chunkRFUD3TOQcjs.getReplaceImportUrl; exports.getReplaceUrl = _chunk3DD7YCN2cjs.getReplaceUrl; exports.getSuffix = _chunk6A6EAFGLcjs.getSuffix; exports.getUrlCatalogue = _chunkCP2ZSRMUcjs.getUrlCatalogue; exports.getUrlCatalogueLast = _chunk3ERQHPTDcjs.getUrlCatalogueLast; exports.getUrlCatalogueObj = _chunk77SI5VSScjs.getUrlCatalogueObj;
49
+ exports.getImportUrl = _chunkIRKWYW5Bcjs.getImportUrl; exports.getImportUrlSuffix = _chunk27WA7EI2cjs.getImportUrlSuffix; exports.getNewFileName = _chunk43VE3KXLcjs.getNewFileName; exports.getReplaceCompleteUrl = _chunkUF6FYYWFcjs.getReplaceCompleteUrl; exports.getReplaceImportUrl = _chunkRFUD3TOQcjs.getReplaceImportUrl; exports.getReplaceUrl = _chunk3DD7YCN2cjs.getReplaceUrl; exports.getSuffix = _chunk6A6EAFGLcjs.getSuffix; exports.getUrlCatalogue = _chunkCP2ZSRMUcjs.getUrlCatalogue; exports.getUrlCatalogueLast = _chunk3ERQHPTDcjs.getUrlCatalogueLast; exports.getUrlCatalogueObj = _chunk77SI5VSScjs.getUrlCatalogueObj;
@@ -1,4 +1,4 @@
1
- import "../chunk-CMBQ66JH.js";
1
+ import "../chunk-7ST7U7BZ.js";
2
2
  import {
3
3
  getReplaceUrl
4
4
  } from "../chunk-SE7A43WC.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "../chunk-YYWENXJO.js";
23
23
  import {
24
24
  getReplaceCompleteUrl
25
- } from "../chunk-3NBXSBFM.js";
25
+ } from "../chunk-QS6GY3QV.js";
26
26
  import {
27
27
  getUrlCatalogueObj
28
28
  } from "../chunk-TP5BP64T.js";
@@ -31,8 +31,8 @@ import {
31
31
  } from "../chunk-ZJHRAMCL.js";
32
32
  import "../chunk-LPMR5W6M.js";
33
33
  import "../chunk-DMZP4RPN.js";
34
- import "../chunk-USIMBBLW.js";
35
34
  import "../chunk-P7AWHISY.js";
35
+ import "../chunk-USIMBBLW.js";
36
36
  import "../chunk-A276ZDLP.js";
37
37
  import "../chunk-MLKGABMK.js";
38
38
  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.17",
5
+ "version": "0.0.18",
6
6
  "description ": "个人工具库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",
@@ -166,6 +166,11 @@
166
166
  "require": "./dist/basic/string/appearNumSeat.cjs",
167
167
  "import": "./dist/basic/string/appearNumSeat.js"
168
168
  },
169
+ "./basic/string/deComment": {
170
+ "types": "./dist/basic/string/deComment.d.ts",
171
+ "require": "./dist/basic/string/deComment.cjs",
172
+ "import": "./dist/basic/string/deComment.js"
173
+ },
169
174
  "./basic/string/firstLower": {
170
175
  "types": "./dist/basic/string/firstLower.d.ts",
171
176
  "require": "./dist/basic/string/firstLower.cjs",
@@ -176,6 +181,11 @@
176
181
  "require": "./dist/basic/string/firstUpper.cjs",
177
182
  "import": "./dist/basic/string/firstUpper.js"
178
183
  },
184
+ "./basic/string/getImports": {
185
+ "types": "./dist/basic/string/getImports.d.ts",
186
+ "require": "./dist/basic/string/getImports.cjs",
187
+ "import": "./dist/basic/string/getImports.js"
188
+ },
179
189
  "./basic/string/getStartSame": {
180
190
  "types": "./dist/basic/string/getStartSame.d.ts",
181
191
  "require": "./dist/basic/string/getStartSame.cjs",
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getUrlCatalogueObj
3
3
  } from "./chunk-TP5BP64T.js";
4
- import {
5
- getStrNunPosit
6
- } from "./chunk-USIMBBLW.js";
7
4
  import {
8
5
  startsNum
9
6
  } from "./chunk-P7AWHISY.js";
7
+ import {
8
+ getStrNunPosit
9
+ } from "./chunk-USIMBBLW.js";
10
10
 
11
11
  // packages/urls/getReplaceCompleteUrl.ts
12
12
  function getReplaceCompleteUrl(url, imp) {
@@ -3,10 +3,10 @@
3
3
  var _chunk77SI5VSScjs = require('./chunk-77SI5VSS.cjs');
4
4
 
5
5
 
6
- var _chunk2H3KVSFAcjs = require('./chunk-2H3KVSFA.cjs');
6
+ var _chunkILJLXJ5Ocjs = require('./chunk-ILJLXJ5O.cjs');
7
7
 
8
8
 
9
- var _chunkILJLXJ5Ocjs = require('./chunk-ILJLXJ5O.cjs');
9
+ var _chunk2H3KVSFAcjs = require('./chunk-2H3KVSFA.cjs');
10
10
 
11
11
  // packages/urls/getReplaceCompleteUrl.ts
12
12
  function getReplaceCompleteUrl(url, imp) {