@fangzhongya/utils 0.0.8-11 → 0.0.8-13

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 (33) hide show
  1. package/dist/basic/array/index.d.ts +1 -1
  2. package/dist/basic/index.d.ts +4 -4
  3. package/dist/basic/string/index.d.ts +1 -1
  4. package/dist/{chunk-6WSP6FLZ.cjs → chunk-2KTCFVJU.cjs} +9 -0
  5. package/dist/{chunk-36NQW7GX.cjs → chunk-BN6IUJQF.cjs} +4 -4
  6. package/dist/chunk-J3LLPNGV.js +17 -0
  7. package/dist/{chunk-7KXJO4NI.js → chunk-OX2F2ZHB.js} +2 -2
  8. package/dist/{chunk-O2RP4UZQ.cjs → chunk-UGFSIZ5P.cjs} +2 -23
  9. package/dist/{chunk-QKLVFB74.js → chunk-WX3JYE47.js} +2 -23
  10. package/dist/css/fetchUnitValue.cjs +2 -2
  11. package/dist/css/fetchUnitValue.js +1 -1
  12. package/dist/css/getCss.d.ts +1 -1
  13. package/dist/css/index.cjs +4 -4
  14. package/dist/css/index.js +3 -3
  15. package/dist/css/setCss.cjs +2 -2
  16. package/dist/css/setCss.d.ts +3 -1
  17. package/dist/css/setCss.js +1 -1
  18. package/dist/{index-98fa8a0f.d.ts → index-0b87eda3.d.ts} +2 -2
  19. package/dist/index.cjs +14 -14
  20. package/dist/index.d.ts +20 -20
  21. package/dist/index.js +14 -14
  22. package/dist/judge/index.d.ts +1 -1
  23. package/dist/load/index.cjs +3 -3
  24. package/dist/load/index.js +4 -4
  25. package/dist/urls/index.d.ts +1 -1
  26. package/package.json +82 -82
  27. package/dist/chunk-7IXRH3MU.js +0 -8
  28. package/dist/{chunk-AW3EGUGB.cjs → chunk-AXAVKIR3.cjs} +2 -2
  29. package/dist/{chunk-PN4OFZGM.js → chunk-XCTPS2CO.js} +3 -3
  30. package/dist/{index-a325ab56.d.ts → index-110fd300.d.ts} +1 -1
  31. package/dist/{index-b16b81dc.d.ts → index-50e83532.d.ts} +1 -1
  32. package/dist/{index-f0bbf5f8.d.ts → index-eef2a16c.d.ts} +1 -1
  33. package/dist/{index-42672b09.d.ts → index-f35b85db.d.ts} +1 -1
@@ -1,5 +1,5 @@
1
1
  export { asyncMergeArray } from './asyncMergeArray.js';
2
2
  export { duplicateRemoval } from './duplicateRemoval.js';
3
3
  export { isArray } from './isArray.js';
4
- export { replaceAfter } from './replaceAfter.js';
5
4
  export { toggleArray } from './toggleArray.js';
5
+ export { replaceAfter } from './replaceAfter.js';
@@ -1,17 +1,17 @@
1
- export { i as array } from '../index-b16b81dc.js';
2
- export { i as string } from '../index-f0bbf5f8.js';
1
+ export { i as array } from '../index-50e83532.js';
2
+ export { i as string } from '../index-eef2a16c.js';
3
3
  export { i as object } from '../index-0f061f5b.js';
4
4
  import './array/asyncMergeArray.js';
5
5
  import './array/duplicateRemoval.js';
6
6
  import './array/isArray.js';
7
- import './array/replaceAfter.js';
8
7
  import './array/toggleArray.js';
8
+ import './array/replaceAfter.js';
9
9
  import './string/appearNum.js';
10
10
  import './string/appearNumSeat.js';
11
11
  import './string/firstLower.js';
12
12
  import './string/firstUpper.js';
13
- import './string/getStartSames.js';
14
13
  import './string/getStartSame.js';
14
+ import './string/getStartSames.js';
15
15
  import './string/splitUpper.js';
16
16
  import './object/attrValueSort.js';
17
17
  import './object/filterObject.js';
@@ -2,6 +2,6 @@ export { appearNum } from './appearNum.js';
2
2
  export { appearNumSeat } from './appearNumSeat.js';
3
3
  export { firstLower } from './firstLower.js';
4
4
  export { firstUpper } from './firstUpper.js';
5
- export { getStartSames } from './getStartSames.js';
6
5
  export { getStartSame } from './getStartSame.js';
6
+ export { getStartSames } from './getStartSames.js';
7
7
  export { splitUpper } from './splitUpper.js';
@@ -1,5 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/css/setCss.ts
2
2
  function setCss(elem, style, value) {
3
+ if (typeof style == "string") {
4
+ set(elem, style, value || "");
5
+ } else {
6
+ Object.keys(style).forEach((key) => {
7
+ set(elem, key, style[key]);
8
+ });
9
+ }
10
+ }
11
+ function set(elem, style, value) {
3
12
  elem.style.setProperty(style, value);
4
13
  }
5
14
 
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkO2RP4UZQcjs = require('./chunk-O2RP4UZQ.cjs');
3
+ var _chunkUGFSIZ5Pcjs = require('./chunk-UGFSIZ5P.cjs');
4
4
 
5
5
 
6
6
  var _chunkUGS2F6DKcjs = require('./chunk-UGS2F6DK.cjs');
7
7
 
8
8
 
9
- var _chunk6WSP6FLZcjs = require('./chunk-6WSP6FLZ.cjs');
9
+ var _chunk2KTCFVJUcjs = require('./chunk-2KTCFVJU.cjs');
10
10
 
11
11
 
12
12
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
@@ -14,9 +14,9 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
14
14
  // packages/css/index.ts
15
15
  var css_exports = {};
16
16
  _chunk5AZGAKWRcjs.__export.call(void 0, css_exports, {
17
- fetchUnitValue: () => _chunkO2RP4UZQcjs.fetchUnitValue,
17
+ fetchUnitValue: () => _chunkUGFSIZ5Pcjs.fetchUnitValue,
18
18
  getCss: () => _chunkUGS2F6DKcjs.getCss,
19
- setCss: () => _chunk6WSP6FLZcjs.setCss
19
+ setCss: () => _chunk2KTCFVJUcjs.setCss
20
20
  });
21
21
 
22
22
 
@@ -0,0 +1,17 @@
1
+ // packages/css/setCss.ts
2
+ function setCss(elem, style, value) {
3
+ if (typeof style == "string") {
4
+ set(elem, style, value || "");
5
+ } else {
6
+ Object.keys(style).forEach((key) => {
7
+ set(elem, key, style[key]);
8
+ });
9
+ }
10
+ }
11
+ function set(elem, style, value) {
12
+ elem.style.setProperty(style, value);
13
+ }
14
+
15
+ export {
16
+ setCss
17
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  fetchUnitValue
3
- } from "./chunk-QKLVFB74.js";
3
+ } from "./chunk-WX3JYE47.js";
4
4
  import {
5
5
  getCss
6
6
  } from "./chunk-5RZYHE3X.js";
7
7
  import {
8
8
  setCss
9
- } from "./chunk-7IXRH3MU.js";
9
+ } from "./chunk-J3LLPNGV.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-UICA3PK6.js";
@@ -1,27 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/css/fetchUnitValue.ts
2
- var tops = [
3
- "\n",
4
- "\r",
5
- " ",
6
- "+",
7
- "-",
8
- "*",
9
- "/",
10
- ":",
11
- "("
12
- ];
13
- var ends = [
14
- "\n",
15
- "\r",
16
- " ",
17
- "+",
18
- "-",
19
- "*",
20
- "/",
21
- ";",
22
- ")",
23
- "}"
24
- ];
2
+ var tops = ["\n", "\r", " ", "+", "-", "*", "/", ":", "("];
3
+ var ends = ["\n", "\r", " ", "+", "-", "*", "/", ";", ")", "}"];
25
4
  function fetchUnitValue(text, str, callback) {
26
5
  const reg = new RegExp(`([-]?[0-9\\.]+)(${str})`, "g");
27
6
  return text.replace(reg, function(a, b, c, d) {
@@ -1,27 +1,6 @@
1
1
  // packages/css/fetchUnitValue.ts
2
- var tops = [
3
- "\n",
4
- "\r",
5
- " ",
6
- "+",
7
- "-",
8
- "*",
9
- "/",
10
- ":",
11
- "("
12
- ];
13
- var ends = [
14
- "\n",
15
- "\r",
16
- " ",
17
- "+",
18
- "-",
19
- "*",
20
- "/",
21
- ";",
22
- ")",
23
- "}"
24
- ];
2
+ var tops = ["\n", "\r", " ", "+", "-", "*", "/", ":", "("];
3
+ var ends = ["\n", "\r", " ", "+", "-", "*", "/", ";", ")", "}"];
25
4
  function fetchUnitValue(text, str, callback) {
26
5
  const reg = new RegExp(`([-]?[0-9\\.]+)(${str})`, "g");
27
6
  return text.replace(reg, function(a, b, c, d) {
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkO2RP4UZQcjs = require('../chunk-O2RP4UZQ.cjs');
3
+ var _chunkUGFSIZ5Pcjs = require('../chunk-UGFSIZ5P.cjs');
4
4
  require('../chunk-5AZGAKWR.cjs');
5
5
 
6
6
 
7
- exports.fetchUnitValue = _chunkO2RP4UZQcjs.fetchUnitValue;
7
+ exports.fetchUnitValue = _chunkUGFSIZ5Pcjs.fetchUnitValue;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  fetchUnitValue
3
- } from "../chunk-QKLVFB74.js";
3
+ } from "../chunk-WX3JYE47.js";
4
4
  import "../chunk-UICA3PK6.js";
5
5
  export {
6
6
  fetchUnitValue
@@ -1,3 +1,3 @@
1
- declare function getCss(elem: HTMLDivElement, style: string): any;
1
+ declare function getCss(elem: HTMLElement, style: string): any;
2
2
 
3
3
  export { getCss };
@@ -1,16 +1,16 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-36NQW7GX.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-BN6IUJQF.cjs');
2
2
 
3
3
 
4
- var _chunkO2RP4UZQcjs = require('../chunk-O2RP4UZQ.cjs');
4
+ var _chunkUGFSIZ5Pcjs = require('../chunk-UGFSIZ5P.cjs');
5
5
 
6
6
 
7
7
  var _chunkUGS2F6DKcjs = require('../chunk-UGS2F6DK.cjs');
8
8
 
9
9
 
10
- var _chunk6WSP6FLZcjs = require('../chunk-6WSP6FLZ.cjs');
10
+ var _chunk2KTCFVJUcjs = require('../chunk-2KTCFVJU.cjs');
11
11
  require('../chunk-5AZGAKWR.cjs');
12
12
 
13
13
 
14
14
 
15
15
 
16
- exports.fetchUnitValue = _chunkO2RP4UZQcjs.fetchUnitValue; exports.getCss = _chunkUGS2F6DKcjs.getCss; exports.setCss = _chunk6WSP6FLZcjs.setCss;
16
+ exports.fetchUnitValue = _chunkUGFSIZ5Pcjs.fetchUnitValue; exports.getCss = _chunkUGS2F6DKcjs.getCss; exports.setCss = _chunk2KTCFVJUcjs.setCss;
package/dist/css/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import "../chunk-7KXJO4NI.js";
1
+ import "../chunk-OX2F2ZHB.js";
2
2
  import {
3
3
  fetchUnitValue
4
- } from "../chunk-QKLVFB74.js";
4
+ } from "../chunk-WX3JYE47.js";
5
5
  import {
6
6
  getCss
7
7
  } from "../chunk-5RZYHE3X.js";
8
8
  import {
9
9
  setCss
10
- } from "../chunk-7IXRH3MU.js";
10
+ } from "../chunk-J3LLPNGV.js";
11
11
  import "../chunk-UICA3PK6.js";
12
12
  export {
13
13
  fetchUnitValue,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6WSP6FLZcjs = require('../chunk-6WSP6FLZ.cjs');
3
+ var _chunk2KTCFVJUcjs = require('../chunk-2KTCFVJU.cjs');
4
4
  require('../chunk-5AZGAKWR.cjs');
5
5
 
6
6
 
7
- exports.setCss = _chunk6WSP6FLZcjs.setCss;
7
+ exports.setCss = _chunk2KTCFVJUcjs.setCss;
@@ -1,3 +1,5 @@
1
- declare function setCss(elem: HTMLDivElement, style: string, value: string): void;
1
+ declare function setCss(elem: HTMLElement, style: string | {
2
+ [key: string]: string;
3
+ }, value?: string): void;
2
4
 
3
5
  export { setCss };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  setCss
3
- } from "../chunk-7IXRH3MU.js";
3
+ } from "../chunk-J3LLPNGV.js";
4
4
  import "../chunk-UICA3PK6.js";
5
5
  export {
6
6
  setCss
@@ -1,5 +1,5 @@
1
- import { i as index$1 } from './index-b16b81dc.js';
2
- import { i as index$3 } from './index-f0bbf5f8.js';
1
+ import { i as index$1 } from './index-50e83532.js';
2
+ import { i as index$3 } from './index-eef2a16c.js';
3
3
  import { i as index$2 } from './index-0f061f5b.js';
4
4
 
5
5
  declare namespace index {
package/dist/index.cjs CHANGED
@@ -16,8 +16,9 @@ require('./chunk-RFUD3TOQ.cjs');
16
16
  require('./chunk-6RIGEV6G.cjs');
17
17
 
18
18
 
19
- var _chunkJ7SPTSZMcjs = require('./chunk-J7SPTSZM.cjs');
20
- require('./chunk-5VQ4EAJZ.cjs');
19
+ var _chunkAXAVKIR3cjs = require('./chunk-AXAVKIR3.cjs');
20
+ require('./chunk-HCEAYQHS.cjs');
21
+ require('./chunk-FP5ETUFZ.cjs');
21
22
 
22
23
 
23
24
  var _chunkSQSYFDCIcjs = require('./chunk-SQSYFDCI.cjs');
@@ -31,6 +32,10 @@ require('./chunk-WI55O3IV.cjs');
31
32
  var _chunkM7CD62S3cjs = require('./chunk-M7CD62S3.cjs');
32
33
 
33
34
 
35
+ var _chunkJ7SPTSZMcjs = require('./chunk-J7SPTSZM.cjs');
36
+ require('./chunk-5VQ4EAJZ.cjs');
37
+
38
+
34
39
  var _chunkSYXWQKOOcjs = require('./chunk-SYXWQKOO.cjs');
35
40
  require('./chunk-T22I7TJQ.cjs');
36
41
  require('./chunk-YGJOBIEO.cjs');
@@ -38,11 +43,6 @@ require('./chunk-ZZEFL2TE.cjs');
38
43
  require('./chunk-2BY5RQHU.cjs');
39
44
 
40
45
 
41
- var _chunkAW3EGUGBcjs = require('./chunk-AW3EGUGB.cjs');
42
- require('./chunk-FP5ETUFZ.cjs');
43
- require('./chunk-HCEAYQHS.cjs');
44
-
45
-
46
46
  var _chunk2SJNYSOTcjs = require('./chunk-2SJNYSOT.cjs');
47
47
  require('./chunk-GH6ZVMB4.cjs');
48
48
  require('./chunk-L7FSHU27.cjs');
@@ -67,14 +67,14 @@ require('./chunk-MIC3W2VY.cjs');
67
67
  require('./chunk-ISHLY7WM.cjs');
68
68
 
69
69
 
70
- var _chunk36NQW7GXcjs = require('./chunk-36NQW7GX.cjs');
71
- require('./chunk-O2RP4UZQ.cjs');
72
- require('./chunk-UGS2F6DK.cjs');
73
- require('./chunk-6WSP6FLZ.cjs');
74
-
75
-
76
70
  var _chunkVYMN4FOMcjs = require('./chunk-VYMN4FOM.cjs');
77
71
  require('./chunk-EWXBN4VG.cjs');
72
+
73
+
74
+ var _chunkBN6IUJQFcjs = require('./chunk-BN6IUJQF.cjs');
75
+ require('./chunk-UGFSIZ5P.cjs');
76
+ require('./chunk-UGS2F6DK.cjs');
77
+ require('./chunk-2KTCFVJU.cjs');
78
78
  require('./chunk-5AZGAKWR.cjs');
79
79
 
80
80
 
@@ -87,4 +87,4 @@ require('./chunk-5AZGAKWR.cjs');
87
87
 
88
88
 
89
89
 
90
- exports.basic = _chunk2SJNYSOTcjs.basic_exports; exports.css = _chunk36NQW7GXcjs.css_exports; exports.html = _chunkVYMN4FOMcjs.html_exports; exports.iss = _chunkM7CD62S3cjs.iss_exports; exports.judge = _chunkSYXWQKOOcjs.judge_exports; exports.load = _chunkAW3EGUGBcjs.load_exports; exports.log = _chunkJ7SPTSZMcjs.log_exports; exports.name = _chunkSQSYFDCIcjs.name_exports; exports.node = _chunkQZVMLHFWcjs.node_exports; exports.urls = _chunkDREUOE7Lcjs.urls_exports;
90
+ exports.basic = _chunk2SJNYSOTcjs.basic_exports; exports.css = _chunkBN6IUJQFcjs.css_exports; exports.html = _chunkVYMN4FOMcjs.html_exports; exports.iss = _chunkM7CD62S3cjs.iss_exports; exports.judge = _chunkSYXWQKOOcjs.judge_exports; exports.load = _chunkAXAVKIR3cjs.load_exports; exports.log = _chunkJ7SPTSZMcjs.log_exports; exports.name = _chunkSQSYFDCIcjs.name_exports; exports.node = _chunkQZVMLHFWcjs.node_exports; exports.urls = _chunkDREUOE7Lcjs.urls_exports;
package/dist/index.d.ts CHANGED
@@ -1,26 +1,26 @@
1
- export { i as basic } from './index-98fa8a0f.js';
2
- export { i as html } from './index-da501f98.js';
3
- export { i as css } from './index-82b62caf.js';
4
- export { i as load } from './index-84b0c6c3.js';
1
+ export { i as basic } from './index-0b87eda3.js';
5
2
  export { i as iss } from './index-09cd203a.js';
6
- export { i as name } from './index-a65f6120.js';
3
+ export { i as css } from './index-82b62caf.js';
4
+ export { i as html } from './index-da501f98.js';
5
+ export { i as judge } from './index-110fd300.js';
7
6
  export { i as log } from './index-ef15848a.js';
8
- export { i as judge } from './index-a325ab56.js';
7
+ export { i as name } from './index-a65f6120.js';
8
+ export { i as load } from './index-84b0c6c3.js';
9
9
  export { i as node } from './index-130ae781.js';
10
- export { i as urls } from './index-42672b09.js';
11
- import './index-b16b81dc.js';
10
+ export { i as urls } from './index-f35b85db.js';
11
+ import './index-50e83532.js';
12
12
  import './basic/array/asyncMergeArray.js';
13
13
  import './basic/array/duplicateRemoval.js';
14
14
  import './basic/array/isArray.js';
15
- import './basic/array/replaceAfter.js';
16
15
  import './basic/array/toggleArray.js';
17
- import './index-f0bbf5f8.js';
16
+ import './basic/array/replaceAfter.js';
17
+ import './index-eef2a16c.js';
18
18
  import './basic/string/appearNum.js';
19
19
  import './basic/string/appearNumSeat.js';
20
20
  import './basic/string/firstLower.js';
21
21
  import './basic/string/firstUpper.js';
22
- import './basic/string/getStartSames.js';
23
22
  import './basic/string/getStartSame.js';
23
+ import './basic/string/getStartSames.js';
24
24
  import './basic/string/splitUpper.js';
25
25
  import './index-0f061f5b.js';
26
26
  import './basic/object/attrValueSort.js';
@@ -29,27 +29,27 @@ import './basic/object/isObject.js';
29
29
  import './basic/object/isObjectArray.js';
30
30
  import './basic/object/mergeObject.js';
31
31
  import './basic/object/unmergeObject.js';
32
- import './html/htmlEscape.js';
33
32
  import './css/fetchUnitValue.js';
34
33
  import './css/getCss.js';
35
34
  import './css/setCss.js';
36
- import './load/getSynch.js';
37
- import './load/loadScript.js';
35
+ import './html/htmlEscape.js';
36
+ import './judge/matchs.js';
37
+ import './judge/matchsStart.js';
38
+ import './judge/matchsEnd.js';
39
+ import './judge/matchsWhole.js';
40
+ import './log/styleLog.js';
38
41
  import './name/getComponentNames.js';
39
42
  import './name/getNames.js';
40
43
  import './name/humpToLine.js';
41
44
  import './name/lineToLargeHump.js';
42
45
  import './name/lineToSmallHump.js';
43
- import './log/styleLog.js';
44
- import './judge/matchs.js';
45
- import './judge/matchsEnd.js';
46
- import './judge/matchsWhole.js';
47
- import './judge/matchsStart.js';
46
+ import './load/getSynch.js';
47
+ import './load/loadScript.js';
48
48
  import './node/getPort.js';
49
49
  import './urls/getImportUrl.js';
50
50
  import './urls/getImportUrlSuffix.js';
51
- import './urls/getNewFileName.js';
52
51
  import './urls/getReplaceImportUrl.js';
52
+ import './urls/getNewFileName.js';
53
53
  import './urls/getReplaceUrl.js';
54
54
  import './urls/getSuffix.js';
55
55
  import './urls/getUrlCatalogue.js';
package/dist/index.js CHANGED
@@ -15,9 +15,10 @@ import "./chunk-TP5BP64T.js";
15
15
  import "./chunk-ZJHRAMCL.js";
16
16
  import "./chunk-ZRZ5HATA.js";
17
17
  import {
18
- log_exports
19
- } from "./chunk-MPKGL6EV.js";
20
- import "./chunk-HVQG2IGJ.js";
18
+ load_exports
19
+ } from "./chunk-XCTPS2CO.js";
20
+ import "./chunk-2SOGI5PH.js";
21
+ import "./chunk-RU4PMJQS.js";
21
22
  import {
22
23
  name_exports
23
24
  } from "./chunk-DVA5F2QX.js";
@@ -29,6 +30,10 @@ import "./chunk-XCDKXZFR.js";
29
30
  import {
30
31
  iss_exports
31
32
  } from "./chunk-2MCEAUE7.js";
33
+ import {
34
+ log_exports
35
+ } from "./chunk-MPKGL6EV.js";
36
+ import "./chunk-HVQG2IGJ.js";
32
37
  import {
33
38
  judge_exports
34
39
  } from "./chunk-ZQX2TYQB.js";
@@ -36,11 +41,6 @@ import "./chunk-T2QKEABG.js";
36
41
  import "./chunk-YNOFNHEK.js";
37
42
  import "./chunk-S6JRKYPY.js";
38
43
  import "./chunk-IRGCP7KH.js";
39
- import {
40
- load_exports
41
- } from "./chunk-PN4OFZGM.js";
42
- import "./chunk-RU4PMJQS.js";
43
- import "./chunk-2SOGI5PH.js";
44
44
  import {
45
45
  basic_exports
46
46
  } from "./chunk-JNDHSC43.js";
@@ -65,16 +65,16 @@ import "./chunk-EWJJKQIO.js";
65
65
  import "./chunk-GYE23WAN.js";
66
66
  import "./chunk-MXY4W3K5.js";
67
67
  import "./chunk-5PX3AFSC.js";
68
- import {
69
- css_exports
70
- } from "./chunk-7KXJO4NI.js";
71
- import "./chunk-QKLVFB74.js";
72
- import "./chunk-5RZYHE3X.js";
73
- import "./chunk-7IXRH3MU.js";
74
68
  import {
75
69
  html_exports
76
70
  } from "./chunk-XAQM2IVP.js";
77
71
  import "./chunk-NCSN3MC5.js";
72
+ import {
73
+ css_exports
74
+ } from "./chunk-OX2F2ZHB.js";
75
+ import "./chunk-WX3JYE47.js";
76
+ import "./chunk-5RZYHE3X.js";
77
+ import "./chunk-J3LLPNGV.js";
78
78
  import "./chunk-UICA3PK6.js";
79
79
  export {
80
80
  basic_exports as basic,
@@ -1,4 +1,4 @@
1
1
  export { matchs } from './matchs.js';
2
+ export { matchsStart } from './matchsStart.js';
2
3
  export { matchsEnd } from './matchsEnd.js';
3
4
  export { matchsWhole } from './matchsWhole.js';
4
- export { matchsStart } from './matchsStart.js';
@@ -1,10 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-AW3EGUGB.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-AXAVKIR3.cjs');
2
2
 
3
3
 
4
- var _chunkFP5ETUFZcjs = require('../chunk-FP5ETUFZ.cjs');
4
+ var _chunkHCEAYQHScjs = require('../chunk-HCEAYQHS.cjs');
5
5
 
6
6
 
7
- var _chunkHCEAYQHScjs = require('../chunk-HCEAYQHS.cjs');
7
+ var _chunkFP5ETUFZcjs = require('../chunk-FP5ETUFZ.cjs');
8
8
  require('../chunk-5AZGAKWR.cjs');
9
9
 
10
10
 
@@ -1,10 +1,10 @@
1
- import "../chunk-PN4OFZGM.js";
2
- import {
3
- loadScript
4
- } from "../chunk-RU4PMJQS.js";
1
+ import "../chunk-XCTPS2CO.js";
5
2
  import {
6
3
  getSynch
7
4
  } from "../chunk-2SOGI5PH.js";
5
+ import {
6
+ loadScript
7
+ } from "../chunk-RU4PMJQS.js";
8
8
  import "../chunk-UICA3PK6.js";
9
9
  export {
10
10
  getSynch,
@@ -1,7 +1,7 @@
1
1
  export { getImportUrl } from './getImportUrl.js';
2
2
  export { getImportUrlSuffix } from './getImportUrlSuffix.js';
3
- export { getNewFileName } from './getNewFileName.js';
4
3
  export { getReplaceImportUrl } from './getReplaceImportUrl.js';
4
+ export { getNewFileName } from './getNewFileName.js';
5
5
  export { getReplaceUrl } from './getReplaceUrl.js';
6
6
  export { getSuffix } from './getSuffix.js';
7
7
  export { getUrlCatalogue } from './getUrlCatalogue.js';
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.8-11",
5
+ "version": "0.0.8-13",
6
6
  "description ": "个人工具库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",
@@ -42,26 +42,26 @@
42
42
  "import": "./dist/basic/array/duplicateRemoval.js",
43
43
  "types": "./dist/basic/array/duplicateRemoval.d.ts"
44
44
  },
45
- "./basic/array": {
46
- "require": "./dist/basic/array/index.cjs",
47
- "import": "./dist/basic/array/index.js",
48
- "types": "./dist/basic/array/index.d.ts"
49
- },
50
45
  "./basic/array/isArray": {
51
46
  "require": "./dist/basic/array/isArray.cjs",
52
47
  "import": "./dist/basic/array/isArray.js",
53
48
  "types": "./dist/basic/array/isArray.d.ts"
54
49
  },
55
- "./basic/array/replaceAfter": {
56
- "require": "./dist/basic/array/replaceAfter.cjs",
57
- "import": "./dist/basic/array/replaceAfter.js",
58
- "types": "./dist/basic/array/replaceAfter.d.ts"
50
+ "./basic/array": {
51
+ "require": "./dist/basic/array/index.cjs",
52
+ "import": "./dist/basic/array/index.js",
53
+ "types": "./dist/basic/array/index.d.ts"
59
54
  },
60
55
  "./basic/array/toggleArray": {
61
56
  "require": "./dist/basic/array/toggleArray.cjs",
62
57
  "import": "./dist/basic/array/toggleArray.js",
63
58
  "types": "./dist/basic/array/toggleArray.d.ts"
64
59
  },
60
+ "./basic/array/replaceAfter": {
61
+ "require": "./dist/basic/array/replaceAfter.cjs",
62
+ "import": "./dist/basic/array/replaceAfter.js",
63
+ "types": "./dist/basic/array/replaceAfter.d.ts"
64
+ },
65
65
  "./basic/string/appearNum": {
66
66
  "require": "./dist/basic/string/appearNum.cjs",
67
67
  "import": "./dist/basic/string/appearNum.js",
@@ -82,6 +82,11 @@
82
82
  "import": "./dist/basic/string/firstUpper.js",
83
83
  "types": "./dist/basic/string/firstUpper.d.ts"
84
84
  },
85
+ "./basic/string/getStartSame": {
86
+ "require": "./dist/basic/string/getStartSame.cjs",
87
+ "import": "./dist/basic/string/getStartSame.js",
88
+ "types": "./dist/basic/string/getStartSame.d.ts"
89
+ },
85
90
  "./basic/string/getStartSames": {
86
91
  "require": "./dist/basic/string/getStartSames.cjs",
87
92
  "import": "./dist/basic/string/getStartSames.js",
@@ -92,11 +97,6 @@
92
97
  "import": "./dist/basic/string/index.js",
93
98
  "types": "./dist/basic/string/index.d.ts"
94
99
  },
95
- "./basic/string/getStartSame": {
96
- "require": "./dist/basic/string/getStartSame.cjs",
97
- "import": "./dist/basic/string/getStartSame.js",
98
- "types": "./dist/basic/string/getStartSame.d.ts"
99
- },
100
100
  "./basic/string/splitUpper": {
101
101
  "require": "./dist/basic/string/splitUpper.cjs",
102
102
  "import": "./dist/basic/string/splitUpper.js",
@@ -112,16 +112,16 @@
112
112
  "import": "./dist/basic/object/filterObject.js",
113
113
  "types": "./dist/basic/object/filterObject.d.ts"
114
114
  },
115
- "./basic/object": {
116
- "require": "./dist/basic/object/index.cjs",
117
- "import": "./dist/basic/object/index.js",
118
- "types": "./dist/basic/object/index.d.ts"
119
- },
120
115
  "./basic/object/isObject": {
121
116
  "require": "./dist/basic/object/isObject.cjs",
122
117
  "import": "./dist/basic/object/isObject.js",
123
118
  "types": "./dist/basic/object/isObject.d.ts"
124
119
  },
120
+ "./basic/object": {
121
+ "require": "./dist/basic/object/index.cjs",
122
+ "import": "./dist/basic/object/index.js",
123
+ "types": "./dist/basic/object/index.d.ts"
124
+ },
125
125
  "./basic/object/isObjectArray": {
126
126
  "require": "./dist/basic/object/isObjectArray.cjs",
127
127
  "import": "./dist/basic/object/isObjectArray.js",
@@ -142,15 +142,10 @@
142
142
  "import": "./dist/basic/index.js",
143
143
  "types": "./dist/basic/index.d.ts"
144
144
  },
145
- "./html": {
146
- "require": "./dist/html/index.cjs",
147
- "import": "./dist/html/index.js",
148
- "types": "./dist/html/index.d.ts"
149
- },
150
- "./html/htmlEscape": {
151
- "require": "./dist/html/htmlEscape.cjs",
152
- "import": "./dist/html/htmlEscape.js",
153
- "types": "./dist/html/htmlEscape.d.ts"
145
+ "./iss": {
146
+ "require": "./dist/iss/index.cjs",
147
+ "import": "./dist/iss/index.js",
148
+ "types": "./dist/iss/index.d.ts"
154
149
  },
155
150
  "./css/fetchUnitValue": {
156
151
  "require": "./dist/css/fetchUnitValue.cjs",
@@ -172,25 +167,50 @@
172
167
  "import": "./dist/css/setCss.js",
173
168
  "types": "./dist/css/setCss.d.ts"
174
169
  },
175
- "./load/getSynch": {
176
- "require": "./dist/load/getSynch.cjs",
177
- "import": "./dist/load/getSynch.js",
178
- "types": "./dist/load/getSynch.d.ts"
170
+ "./html/htmlEscape": {
171
+ "require": "./dist/html/htmlEscape.cjs",
172
+ "import": "./dist/html/htmlEscape.js",
173
+ "types": "./dist/html/htmlEscape.d.ts"
179
174
  },
180
- "./load": {
181
- "require": "./dist/load/index.cjs",
182
- "import": "./dist/load/index.js",
183
- "types": "./dist/load/index.d.ts"
175
+ "./html": {
176
+ "require": "./dist/html/index.cjs",
177
+ "import": "./dist/html/index.js",
178
+ "types": "./dist/html/index.d.ts"
184
179
  },
185
- "./load/loadScript": {
186
- "require": "./dist/load/loadScript.cjs",
187
- "import": "./dist/load/loadScript.js",
188
- "types": "./dist/load/loadScript.d.ts"
180
+ "./judge": {
181
+ "require": "./dist/judge/index.cjs",
182
+ "import": "./dist/judge/index.js",
183
+ "types": "./dist/judge/index.d.ts"
189
184
  },
190
- "./iss": {
191
- "require": "./dist/iss/index.cjs",
192
- "import": "./dist/iss/index.js",
193
- "types": "./dist/iss/index.d.ts"
185
+ "./judge/matchs": {
186
+ "require": "./dist/judge/matchs.cjs",
187
+ "import": "./dist/judge/matchs.js",
188
+ "types": "./dist/judge/matchs.d.ts"
189
+ },
190
+ "./judge/matchsStart": {
191
+ "require": "./dist/judge/matchsStart.cjs",
192
+ "import": "./dist/judge/matchsStart.js",
193
+ "types": "./dist/judge/matchsStart.d.ts"
194
+ },
195
+ "./judge/matchsEnd": {
196
+ "require": "./dist/judge/matchsEnd.cjs",
197
+ "import": "./dist/judge/matchsEnd.js",
198
+ "types": "./dist/judge/matchsEnd.d.ts"
199
+ },
200
+ "./judge/matchsWhole": {
201
+ "require": "./dist/judge/matchsWhole.cjs",
202
+ "import": "./dist/judge/matchsWhole.js",
203
+ "types": "./dist/judge/matchsWhole.d.ts"
204
+ },
205
+ "./log": {
206
+ "require": "./dist/log/index.cjs",
207
+ "import": "./dist/log/index.js",
208
+ "types": "./dist/log/index.d.ts"
209
+ },
210
+ "./log/styleLog": {
211
+ "require": "./dist/log/styleLog.cjs",
212
+ "import": "./dist/log/styleLog.js",
213
+ "types": "./dist/log/styleLog.d.ts"
194
214
  },
195
215
  "./name/getComponentNames": {
196
216
  "require": "./dist/name/getComponentNames.cjs",
@@ -222,40 +242,20 @@
222
242
  "import": "./dist/name/lineToSmallHump.js",
223
243
  "types": "./dist/name/lineToSmallHump.d.ts"
224
244
  },
225
- "./log": {
226
- "require": "./dist/log/index.cjs",
227
- "import": "./dist/log/index.js",
228
- "types": "./dist/log/index.d.ts"
229
- },
230
- "./log/styleLog": {
231
- "require": "./dist/log/styleLog.cjs",
232
- "import": "./dist/log/styleLog.js",
233
- "types": "./dist/log/styleLog.d.ts"
234
- },
235
- "./judge": {
236
- "require": "./dist/judge/index.cjs",
237
- "import": "./dist/judge/index.js",
238
- "types": "./dist/judge/index.d.ts"
239
- },
240
- "./judge/matchs": {
241
- "require": "./dist/judge/matchs.cjs",
242
- "import": "./dist/judge/matchs.js",
243
- "types": "./dist/judge/matchs.d.ts"
244
- },
245
- "./judge/matchsEnd": {
246
- "require": "./dist/judge/matchsEnd.cjs",
247
- "import": "./dist/judge/matchsEnd.js",
248
- "types": "./dist/judge/matchsEnd.d.ts"
245
+ "./load/getSynch": {
246
+ "require": "./dist/load/getSynch.cjs",
247
+ "import": "./dist/load/getSynch.js",
248
+ "types": "./dist/load/getSynch.d.ts"
249
249
  },
250
- "./judge/matchsWhole": {
251
- "require": "./dist/judge/matchsWhole.cjs",
252
- "import": "./dist/judge/matchsWhole.js",
253
- "types": "./dist/judge/matchsWhole.d.ts"
250
+ "./load": {
251
+ "require": "./dist/load/index.cjs",
252
+ "import": "./dist/load/index.js",
253
+ "types": "./dist/load/index.d.ts"
254
254
  },
255
- "./judge/matchsStart": {
256
- "require": "./dist/judge/matchsStart.cjs",
257
- "import": "./dist/judge/matchsStart.js",
258
- "types": "./dist/judge/matchsStart.d.ts"
255
+ "./load/loadScript": {
256
+ "require": "./dist/load/loadScript.cjs",
257
+ "import": "./dist/load/loadScript.js",
258
+ "types": "./dist/load/loadScript.d.ts"
259
259
  },
260
260
  "./node/getPort": {
261
261
  "require": "./dist/node/getPort.cjs",
@@ -277,16 +277,16 @@
277
277
  "import": "./dist/urls/getImportUrlSuffix.js",
278
278
  "types": "./dist/urls/getImportUrlSuffix.d.ts"
279
279
  },
280
- "./urls/getNewFileName": {
281
- "require": "./dist/urls/getNewFileName.cjs",
282
- "import": "./dist/urls/getNewFileName.js",
283
- "types": "./dist/urls/getNewFileName.d.ts"
284
- },
285
280
  "./urls/getReplaceImportUrl": {
286
281
  "require": "./dist/urls/getReplaceImportUrl.cjs",
287
282
  "import": "./dist/urls/getReplaceImportUrl.js",
288
283
  "types": "./dist/urls/getReplaceImportUrl.d.ts"
289
284
  },
285
+ "./urls/getNewFileName": {
286
+ "require": "./dist/urls/getNewFileName.cjs",
287
+ "import": "./dist/urls/getNewFileName.js",
288
+ "types": "./dist/urls/getNewFileName.d.ts"
289
+ },
290
290
  "./urls/getReplaceUrl": {
291
291
  "require": "./dist/urls/getReplaceUrl.cjs",
292
292
  "import": "./dist/urls/getReplaceUrl.js",
@@ -1,8 +0,0 @@
1
- // packages/css/setCss.ts
2
- function setCss(elem, style, value) {
3
- elem.style.setProperty(style, value);
4
- }
5
-
6
- export {
7
- setCss
8
- };
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkFP5ETUFZcjs = require('./chunk-FP5ETUFZ.cjs');
3
+ var _chunkHCEAYQHScjs = require('./chunk-HCEAYQHS.cjs');
4
4
 
5
5
 
6
- var _chunkHCEAYQHScjs = require('./chunk-HCEAYQHS.cjs');
6
+ var _chunkFP5ETUFZcjs = require('./chunk-FP5ETUFZ.cjs');
7
7
 
8
8
 
9
9
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
@@ -1,9 +1,9 @@
1
- import {
2
- loadScript
3
- } from "./chunk-RU4PMJQS.js";
4
1
  import {
5
2
  getSynch
6
3
  } from "./chunk-2SOGI5PH.js";
4
+ import {
5
+ loadScript
6
+ } from "./chunk-RU4PMJQS.js";
7
7
  import {
8
8
  __export
9
9
  } from "./chunk-UICA3PK6.js";
@@ -1,7 +1,7 @@
1
1
  import { matchs } from './judge/matchs.js';
2
+ import { matchsStart } from './judge/matchsStart.js';
2
3
  import { matchsEnd } from './judge/matchsEnd.js';
3
4
  import { matchsWhole } from './judge/matchsWhole.js';
4
- import { matchsStart } from './judge/matchsStart.js';
5
5
 
6
6
  declare const index_matchs: typeof matchs;
7
7
  declare const index_matchsEnd: typeof matchsEnd;
@@ -1,8 +1,8 @@
1
1
  import { asyncMergeArray } from './basic/array/asyncMergeArray.js';
2
2
  import { duplicateRemoval } from './basic/array/duplicateRemoval.js';
3
3
  import { isArray } from './basic/array/isArray.js';
4
- import { replaceAfter } from './basic/array/replaceAfter.js';
5
4
  import { toggleArray } from './basic/array/toggleArray.js';
5
+ import { replaceAfter } from './basic/array/replaceAfter.js';
6
6
 
7
7
  declare const index_asyncMergeArray: typeof asyncMergeArray;
8
8
  declare const index_duplicateRemoval: typeof duplicateRemoval;
@@ -2,8 +2,8 @@ import { appearNum } from './basic/string/appearNum.js';
2
2
  import { appearNumSeat } from './basic/string/appearNumSeat.js';
3
3
  import { firstLower } from './basic/string/firstLower.js';
4
4
  import { firstUpper } from './basic/string/firstUpper.js';
5
- import { getStartSames } from './basic/string/getStartSames.js';
6
5
  import { getStartSame } from './basic/string/getStartSame.js';
6
+ import { getStartSames } from './basic/string/getStartSames.js';
7
7
  import { splitUpper } from './basic/string/splitUpper.js';
8
8
 
9
9
  declare const index_appearNum: typeof appearNum;
@@ -1,7 +1,7 @@
1
1
  import { getImportUrl } from './urls/getImportUrl.js';
2
2
  import { getImportUrlSuffix } from './urls/getImportUrlSuffix.js';
3
- import { getNewFileName } from './urls/getNewFileName.js';
4
3
  import { getReplaceImportUrl } from './urls/getReplaceImportUrl.js';
4
+ import { getNewFileName } from './urls/getNewFileName.js';
5
5
  import { getReplaceUrl } from './urls/getReplaceUrl.js';
6
6
  import { getSuffix } from './urls/getSuffix.js';
7
7
  import { getUrlCatalogue } from './urls/getUrlCatalogue.js';