@fangzhongya/utils 0.0.4 → 0.0.6-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/basic/array/index.cjs +7 -4
  2. package/dist/basic/array/index.d.ts +1 -1
  3. package/dist/basic/array/index.js +7 -4
  4. package/dist/basic/array/isArray.cjs +1 -0
  5. package/dist/basic/array/isArray.js +1 -0
  6. package/dist/basic/array/toggleArray.cjs +5 -2
  7. package/dist/basic/array/toggleArray.d.ts +8 -2
  8. package/dist/basic/array/toggleArray.js +4 -1
  9. package/dist/basic/index.cjs +13 -20
  10. package/dist/basic/index.d.ts +10 -5
  11. package/dist/basic/index.js +18 -25
  12. package/dist/basic/object/index.cjs +8 -3
  13. package/dist/basic/object/index.d.ts +1 -0
  14. package/dist/basic/object/index.js +8 -3
  15. package/dist/basic/object/isObject.cjs +1 -0
  16. package/dist/basic/object/isObject.js +1 -0
  17. package/dist/basic/object/mergeObject.cjs +3 -2
  18. package/dist/basic/object/mergeObject.js +2 -1
  19. package/dist/basic/object/unmergeObject.cjs +7 -0
  20. package/dist/basic/object/unmergeObject.d.ts +11 -0
  21. package/dist/basic/object/unmergeObject.js +7 -0
  22. package/dist/basic/string/firstLower.cjs +7 -0
  23. package/dist/basic/string/firstLower.d.ts +8 -0
  24. package/dist/basic/string/firstLower.js +7 -0
  25. package/dist/basic/string/firstUpper.cjs +7 -0
  26. package/dist/basic/string/firstUpper.d.ts +8 -0
  27. package/dist/basic/string/firstUpper.js +7 -0
  28. package/dist/basic/string/index.cjs +5 -4
  29. package/dist/basic/string/index.d.ts +2 -1
  30. package/dist/basic/string/index.js +8 -7
  31. package/dist/chunk-2B742V22.cjs +19 -0
  32. package/dist/chunk-2PY55D6T.js +16 -0
  33. package/dist/chunk-34IFL7OR.js +24 -0
  34. package/dist/chunk-3OME5O5G.cjs +16 -0
  35. package/dist/chunk-3VYRYSWK.cjs +49 -0
  36. package/dist/chunk-3YPXLIH5.js +21 -0
  37. package/dist/chunk-4OBNLDTJ.js +8 -0
  38. package/dist/chunk-5AZGAKWR.cjs +9 -0
  39. package/dist/chunk-5VQ4EAJZ.cjs +33 -0
  40. package/dist/chunk-A6J46LQK.js +49 -0
  41. package/dist/chunk-AH7GPXDD.cjs +20 -0
  42. package/dist/chunk-AP2GHAT5.js +22 -0
  43. package/dist/{chunk-KRIX2OSK.cjs → chunk-BL4KF5G4.cjs} +5 -1
  44. package/dist/chunk-BRNROSJJ.cjs +24 -0
  45. package/dist/chunk-EWJJKQIO.js +8 -0
  46. package/dist/chunk-FXMA7ZCM.cjs +22 -0
  47. package/dist/chunk-HRECTLZO.js +20 -0
  48. package/dist/chunk-HVQG2IGJ.js +33 -0
  49. package/dist/{chunk-DEENZC5X.js → chunk-J7CICTHH.js} +3 -11
  50. package/dist/chunk-J7SPTSZM.cjs +16 -0
  51. package/dist/{chunk-BEQYORII.cjs → chunk-LTVXRDTD.cjs} +3 -11
  52. package/dist/chunk-MAIGGOA4.js +24 -0
  53. package/dist/chunk-MPKGL6EV.js +16 -0
  54. package/dist/chunk-N6OX2U6W.cjs +20 -0
  55. package/dist/chunk-NRJPCN4J.cjs +46 -0
  56. package/dist/chunk-O3RJ5M35.js +19 -0
  57. package/dist/chunk-OC2MRJDZ.cjs +21 -0
  58. package/dist/chunk-OQL4GIEJ.cjs +8 -0
  59. package/dist/{chunk-Z3GMPMGF.js → chunk-OX5EXWS2.js} +5 -1
  60. package/dist/chunk-PPEJX3ZH.js +20 -0
  61. package/dist/chunk-R7G5MSGO.cjs +24 -0
  62. package/dist/chunk-RD4EP3M5.js +46 -0
  63. package/dist/chunk-S7VMX72B.cjs +32 -0
  64. package/dist/chunk-TRLNJ6BO.cjs +38 -0
  65. package/dist/chunk-UEVMS6QD.cjs +8 -0
  66. package/dist/chunk-UICA3PK6.js +9 -0
  67. package/dist/chunk-W7OSG6B2.js +32 -0
  68. package/dist/chunk-YHBKZTYZ.js +38 -0
  69. package/dist/index-0cc6b278.d.ts +13 -0
  70. package/dist/index-24872dab.d.ts +13 -0
  71. package/dist/index-3062a21e.d.ts +16 -0
  72. package/dist/index-6be6487f.d.ts +15 -0
  73. package/dist/index-8925a102.d.ts +13 -0
  74. package/dist/index-ef15848a.d.ts +10 -0
  75. package/dist/index-f9cc2ca2.d.ts +22 -0
  76. package/dist/index.cjs +23 -19
  77. package/dist/index.d.ts +20 -5
  78. package/dist/index.js +29 -25
  79. package/dist/iss/index.cjs +2 -1
  80. package/dist/iss/index.js +2 -1
  81. package/dist/log/index.cjs +8 -0
  82. package/dist/log/index.d.ts +1 -0
  83. package/dist/log/index.js +8 -0
  84. package/dist/log/styleLog.cjs +7 -0
  85. package/dist/log/styleLog.d.ts +46 -0
  86. package/dist/log/styleLog.js +7 -0
  87. package/dist/name/getComponentNames.cjs +12 -0
  88. package/dist/name/getComponentNames.d.ts +8 -0
  89. package/dist/name/getComponentNames.js +12 -0
  90. package/dist/name/getNames.cjs +12 -0
  91. package/dist/name/getNames.d.ts +8 -0
  92. package/dist/name/getNames.js +12 -0
  93. package/dist/name/humpToLine.cjs +7 -0
  94. package/dist/name/humpToLine.d.ts +8 -0
  95. package/dist/name/humpToLine.js +7 -0
  96. package/dist/name/index.cjs +26 -0
  97. package/dist/name/index.d.ts +5 -0
  98. package/dist/name/index.js +26 -0
  99. package/dist/name/lineToLargeHump.cjs +8 -0
  100. package/dist/name/lineToLargeHump.d.ts +8 -0
  101. package/dist/name/lineToLargeHump.js +8 -0
  102. package/dist/name/lineToSmallHump.cjs +9 -0
  103. package/dist/name/lineToSmallHump.d.ts +8 -0
  104. package/dist/name/lineToSmallHump.js +9 -0
  105. package/package.json +100 -34
  106. package/dist/basic/string/index2.cjs +0 -10
  107. package/dist/basic/string/index2.d.ts +0 -20
  108. package/dist/basic/string/index2.js +0 -10
  109. package/dist/chunk-26S4B3P7.cjs +0 -42
  110. package/dist/chunk-4PCC2CMD.cjs +0 -1
  111. package/dist/chunk-5XHHUZZE.cjs +0 -1
  112. package/dist/chunk-EMPPRI5E.cjs +0 -1
  113. package/dist/chunk-F3UDXNR6.cjs +0 -1
  114. package/dist/chunk-J3FKWWZW.js +0 -0
  115. package/dist/chunk-LWHAS5EP.js +0 -42
  116. package/dist/chunk-OGMUZJ3Q.js +0 -0
  117. package/dist/chunk-PIZLEQ2W.js +0 -0
  118. package/dist/chunk-UDLHQNVY.js +0 -0
  119. package/dist/chunk-W25BSSSM.js +0 -0
  120. package/dist/chunk-WA2BUAMB.cjs +0 -1
@@ -1,11 +1,14 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-WA2BUAMB.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-FXMA7ZCM.cjs');
2
2
 
3
3
 
4
- var _chunkISHLY7WMcjs = require('../../chunk-ISHLY7WM.cjs');
5
4
 
5
+ var _chunkBL4KF5G4cjs = require('../../chunk-BL4KF5G4.cjs');
6
+
7
+
8
+ var _chunkISHLY7WMcjs = require('../../chunk-ISHLY7WM.cjs');
9
+ require('../../chunk-5AZGAKWR.cjs');
6
10
 
7
- var _chunkKRIX2OSKcjs = require('../../chunk-KRIX2OSK.cjs');
8
11
 
9
12
 
10
13
 
11
- exports.isArray = _chunkISHLY7WMcjs.isArray; exports.toggleArray = _chunkKRIX2OSKcjs.toggleArray;
14
+ exports.firstLower = _chunkBL4KF5G4cjs.firstLower; exports.isArray = _chunkISHLY7WMcjs.isArray; exports.toggleArray = _chunkBL4KF5G4cjs.toggleArray;
@@ -1,2 +1,2 @@
1
1
  export { isArray } from './isArray.js';
2
- export { toggleArray } from './toggleArray.js';
2
+ export { firstLower, toggleArray } from './toggleArray.js';
@@ -1,11 +1,14 @@
1
- import "../../chunk-J3FKWWZW.js";
1
+ import "../../chunk-AP2GHAT5.js";
2
+ import {
3
+ firstLower,
4
+ toggleArray
5
+ } from "../../chunk-OX5EXWS2.js";
2
6
  import {
3
7
  isArray
4
8
  } from "../../chunk-5PX3AFSC.js";
5
- import {
6
- toggleArray
7
- } from "../../chunk-Z3GMPMGF.js";
9
+ import "../../chunk-UICA3PK6.js";
8
10
  export {
11
+ firstLower,
9
12
  isArray,
10
13
  toggleArray
11
14
  };
@@ -1,6 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkISHLY7WMcjs = require('../../chunk-ISHLY7WM.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
4
5
 
5
6
 
6
7
  exports.isArray = _chunkISHLY7WMcjs.isArray;
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  isArray
3
3
  } from "../../chunk-5PX3AFSC.js";
4
+ import "../../chunk-UICA3PK6.js";
4
5
  export {
5
6
  isArray
6
7
  };
@@ -1,6 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKRIX2OSKcjs = require('../../chunk-KRIX2OSK.cjs');
4
3
 
4
+ var _chunkBL4KF5G4cjs = require('../../chunk-BL4KF5G4.cjs');
5
+ require('../../chunk-5AZGAKWR.cjs');
5
6
 
6
- exports.toggleArray = _chunkKRIX2OSKcjs.toggleArray;
7
+
8
+
9
+ exports.firstLower = _chunkBL4KF5G4cjs.firstLower; exports.toggleArray = _chunkBL4KF5G4cjs.toggleArray;
@@ -6,6 +6,12 @@ interface Objunkn {
6
6
  * @param {*} objs
7
7
  * @param {*} id
8
8
  */
9
- declare function toggleArray(objs: Array<Objunkn>, arr: Objunkn, id: string): Array<Objunkn>;
9
+ declare function toggleArray(objs: Array<Objunkn>, arr: Objunkn, id: string): Array<Objunkn>;
10
+ /**
11
+ * 首字母小写
12
+ * @param {string} vs
13
+ * @returns string
14
+ */
15
+ declare function firstLower(vs: string): string;
10
16
 
11
- export { toggleArray };
17
+ export { firstLower, toggleArray };
@@ -1,6 +1,9 @@
1
1
  import {
2
+ firstLower,
2
3
  toggleArray
3
- } from "../../chunk-Z3GMPMGF.js";
4
+ } from "../../chunk-OX5EXWS2.js";
5
+ import "../../chunk-UICA3PK6.js";
4
6
  export {
7
+ firstLower,
5
8
  toggleArray
6
9
  };
@@ -1,30 +1,23 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-F3UDXNR6.cjs');
2
- require('../chunk-4PCC2CMD.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-BRNROSJJ.cjs');
3
2
 
4
3
 
5
- var _chunk26S4B3P7cjs = require('../chunk-26S4B3P7.cjs');
4
+ var _chunkAH7GPXDDcjs = require('../chunk-AH7GPXDD.cjs');
6
5
 
7
6
 
8
- var _chunkXRGLFTH2cjs = require('../chunk-XRGLFTH2.cjs');
9
- require('../chunk-WA2BUAMB.cjs');
7
+ var _chunkFXMA7ZCMcjs = require('../chunk-FXMA7ZCM.cjs');
8
+ require('../chunk-BL4KF5G4.cjs');
10
9
 
11
10
 
12
- var _chunkISHLY7WMcjs = require('../chunk-ISHLY7WM.cjs');
11
+ var _chunkR7G5MSGOcjs = require('../chunk-R7G5MSGO.cjs');
12
+ require('../chunk-NRJPCN4J.cjs');
13
+ require('../chunk-3VYRYSWK.cjs');
14
+ require('../chunk-XRGLFTH2.cjs');
15
+ require('../chunk-ISHLY7WM.cjs');
16
+ require('../chunk-OQL4GIEJ.cjs');
17
+ require('../chunk-UEVMS6QD.cjs');
18
+ require('../chunk-5AZGAKWR.cjs');
13
19
 
14
20
 
15
- var _chunkKRIX2OSKcjs = require('../chunk-KRIX2OSK.cjs');
16
- require('../chunk-5XHHUZZE.cjs');
17
21
 
18
22
 
19
-
20
-
21
- var _chunkBEQYORIIcjs = require('../chunk-BEQYORII.cjs');
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
- exports.firstLower = _chunkBEQYORIIcjs.firstLower; exports.firstUpper = _chunkBEQYORIIcjs.firstUpper; exports.getNmaeBar = _chunkBEQYORIIcjs.getNmaeBar; exports.isArray = _chunkISHLY7WMcjs.isArray; exports.isObject = _chunkXRGLFTH2cjs.isObject; exports.mergeObject = _chunk26S4B3P7cjs.mergeObject; exports.toggleArray = _chunkKRIX2OSKcjs.toggleArray;
23
+ exports.array = _chunkFXMA7ZCMcjs.array_exports; exports.object = _chunkR7G5MSGOcjs.object_exports; exports.string = _chunkAH7GPXDDcjs.string_exports;
@@ -1,5 +1,10 @@
1
- export { isArray } from './array/isArray.js';
2
- export { toggleArray } from './array/toggleArray.js';
3
- export { isObject } from './object/isObject.js';
4
- export { mergeObject } from './object/mergeObject.js';
5
- export { firstLower, firstUpper, getNmaeBar } from './string/index2.js';
1
+ export { i as array } from '../index-6be6487f.js';
2
+ export { i as object } from '../index-3062a21e.js';
3
+ export { i as string } from '../index-8925a102.js';
4
+ import './array/isArray.js';
5
+ import './array/toggleArray.js';
6
+ import './object/isObject.js';
7
+ import './object/mergeObject.js';
8
+ import './object/unmergeObject.js';
9
+ import './string/firstLower.js';
10
+ import './string/firstUpper.js';
@@ -1,30 +1,23 @@
1
- import "../chunk-W25BSSSM.js";
2
- import "../chunk-OGMUZJ3Q.js";
1
+ import "../chunk-34IFL7OR.js";
3
2
  import {
4
- mergeObject
5
- } from "../chunk-LWHAS5EP.js";
3
+ string_exports
4
+ } from "../chunk-PPEJX3ZH.js";
6
5
  import {
7
- isObject
8
- } from "../chunk-WO6JQRTD.js";
9
- import "../chunk-J3FKWWZW.js";
6
+ array_exports
7
+ } from "../chunk-AP2GHAT5.js";
8
+ import "../chunk-OX5EXWS2.js";
10
9
  import {
11
- isArray
12
- } from "../chunk-5PX3AFSC.js";
13
- import {
14
- toggleArray
15
- } from "../chunk-Z3GMPMGF.js";
16
- import "../chunk-PIZLEQ2W.js";
17
- import {
18
- firstLower,
19
- firstUpper,
20
- getNmaeBar
21
- } from "../chunk-DEENZC5X.js";
10
+ object_exports
11
+ } from "../chunk-MAIGGOA4.js";
12
+ import "../chunk-RD4EP3M5.js";
13
+ import "../chunk-A6J46LQK.js";
14
+ import "../chunk-WO6JQRTD.js";
15
+ import "../chunk-5PX3AFSC.js";
16
+ import "../chunk-EWJJKQIO.js";
17
+ import "../chunk-4OBNLDTJ.js";
18
+ import "../chunk-UICA3PK6.js";
22
19
  export {
23
- firstLower,
24
- firstUpper,
25
- getNmaeBar,
26
- isArray,
27
- isObject,
28
- mergeObject,
29
- toggleArray
20
+ array_exports as array,
21
+ object_exports as object,
22
+ string_exports as string
30
23
  };
@@ -1,12 +1,17 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-4PCC2CMD.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-R7G5MSGO.cjs');
2
2
 
3
3
 
4
- var _chunk26S4B3P7cjs = require('../../chunk-26S4B3P7.cjs');
4
+ var _chunkNRJPCN4Jcjs = require('../../chunk-NRJPCN4J.cjs');
5
+
6
+
7
+ var _chunk3VYRYSWKcjs = require('../../chunk-3VYRYSWK.cjs');
5
8
 
6
9
 
7
10
  var _chunkXRGLFTH2cjs = require('../../chunk-XRGLFTH2.cjs');
8
11
  require('../../chunk-ISHLY7WM.cjs');
12
+ require('../../chunk-5AZGAKWR.cjs');
13
+
9
14
 
10
15
 
11
16
 
12
- exports.isObject = _chunkXRGLFTH2cjs.isObject; exports.mergeObject = _chunk26S4B3P7cjs.mergeObject;
17
+ exports.isObject = _chunkXRGLFTH2cjs.isObject; exports.mergeObject = _chunkNRJPCN4Jcjs.mergeObject; exports.unmergeObject = _chunk3VYRYSWKcjs.unmergeObject;
@@ -1,2 +1,3 @@
1
1
  export { isObject } from './isObject.js';
2
2
  export { mergeObject } from './mergeObject.js';
3
+ export { unmergeObject } from './unmergeObject.js';
@@ -1,12 +1,17 @@
1
- import "../../chunk-OGMUZJ3Q.js";
1
+ import "../../chunk-MAIGGOA4.js";
2
2
  import {
3
3
  mergeObject
4
- } from "../../chunk-LWHAS5EP.js";
4
+ } from "../../chunk-RD4EP3M5.js";
5
+ import {
6
+ unmergeObject
7
+ } from "../../chunk-A6J46LQK.js";
5
8
  import {
6
9
  isObject
7
10
  } from "../../chunk-WO6JQRTD.js";
8
11
  import "../../chunk-5PX3AFSC.js";
12
+ import "../../chunk-UICA3PK6.js";
9
13
  export {
10
14
  isObject,
11
- mergeObject
15
+ mergeObject,
16
+ unmergeObject
12
17
  };
@@ -2,6 +2,7 @@
2
2
 
3
3
  var _chunkXRGLFTH2cjs = require('../../chunk-XRGLFTH2.cjs');
4
4
  require('../../chunk-ISHLY7WM.cjs');
5
+ require('../../chunk-5AZGAKWR.cjs');
5
6
 
6
7
 
7
8
  exports.isObject = _chunkXRGLFTH2cjs.isObject;
@@ -2,6 +2,7 @@ import {
2
2
  isObject
3
3
  } from "../../chunk-WO6JQRTD.js";
4
4
  import "../../chunk-5PX3AFSC.js";
5
+ import "../../chunk-UICA3PK6.js";
5
6
  export {
6
7
  isObject
7
8
  };
@@ -1,6 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk26S4B3P7cjs = require('../../chunk-26S4B3P7.cjs');
3
+ var _chunkNRJPCN4Jcjs = require('../../chunk-NRJPCN4J.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
4
5
 
5
6
 
6
- exports.mergeObject = _chunk26S4B3P7cjs.mergeObject;
7
+ exports.mergeObject = _chunkNRJPCN4Jcjs.mergeObject;
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  mergeObject
3
- } from "../../chunk-LWHAS5EP.js";
3
+ } from "../../chunk-RD4EP3M5.js";
4
+ import "../../chunk-UICA3PK6.js";
4
5
  export {
5
6
  mergeObject
6
7
  };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk3VYRYSWKcjs = require('../../chunk-3VYRYSWK.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.unmergeObject = _chunk3VYRYSWKcjs.unmergeObject;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 合并两个对象的值
3
+ * @param a 合并到的对象
4
+ * @param b 合并对象
5
+ * @param j 合并级别
6
+ * @param i 是否合并数组
7
+ * @returns 合并的对象
8
+ */
9
+ declare function unmergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
10
+
11
+ export { unmergeObject };
@@ -0,0 +1,7 @@
1
+ import {
2
+ unmergeObject
3
+ } from "../../chunk-A6J46LQK.js";
4
+ import "../../chunk-UICA3PK6.js";
5
+ export {
6
+ unmergeObject
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkUEVMS6QDcjs = require('../../chunk-UEVMS6QD.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.firstLower = _chunkUEVMS6QDcjs.firstLower;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 首字母小写
3
+ * @param { string } str
4
+ * @returns
5
+ */
6
+ declare function firstLower(str: string): string;
7
+
8
+ export { firstLower };
@@ -0,0 +1,7 @@
1
+ import {
2
+ firstLower
3
+ } from "../../chunk-4OBNLDTJ.js";
4
+ import "../../chunk-UICA3PK6.js";
5
+ export {
6
+ firstLower
7
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkOQL4GIEJcjs = require('../../chunk-OQL4GIEJ.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 首字母大写
3
+ * @param {string} str
4
+ * @returns
5
+ */
6
+ declare function firstUpper(str: string): string;
7
+
8
+ export { firstUpper };
@@ -0,0 +1,7 @@
1
+ import {
2
+ firstUpper
3
+ } from "../../chunk-EWJJKQIO.js";
4
+ import "../../chunk-UICA3PK6.js";
5
+ export {
6
+ firstUpper
7
+ };
@@ -1,11 +1,12 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-5XHHUZZE.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-AH7GPXDD.cjs');
2
2
 
3
3
 
4
+ var _chunkOQL4GIEJcjs = require('../../chunk-OQL4GIEJ.cjs');
4
5
 
5
6
 
6
- var _chunkBEQYORIIcjs = require('../../chunk-BEQYORII.cjs');
7
+ var _chunkUEVMS6QDcjs = require('../../chunk-UEVMS6QD.cjs');
8
+ require('../../chunk-5AZGAKWR.cjs');
7
9
 
8
10
 
9
11
 
10
-
11
- exports.firstLower = _chunkBEQYORIIcjs.firstLower; exports.firstUpper = _chunkBEQYORIIcjs.firstUpper; exports.getNmaeBar = _chunkBEQYORIIcjs.getNmaeBar;
12
+ exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper;
@@ -1 +1,2 @@
1
- export { firstLower, firstUpper, getNmaeBar } from './index2.js';
1
+ export { firstLower } from './firstLower.js';
2
+ export { firstUpper } from './firstUpper.js';
@@ -1,11 +1,12 @@
1
- import "../../chunk-PIZLEQ2W.js";
1
+ import "../../chunk-PPEJX3ZH.js";
2
2
  import {
3
- firstLower,
4
- firstUpper,
5
- getNmaeBar
6
- } from "../../chunk-DEENZC5X.js";
3
+ firstUpper
4
+ } from "../../chunk-EWJJKQIO.js";
5
+ import {
6
+ firstLower
7
+ } from "../../chunk-4OBNLDTJ.js";
8
+ import "../../chunk-UICA3PK6.js";
7
9
  export {
8
10
  firstLower,
9
- firstUpper,
10
- getNmaeBar
11
+ firstUpper
11
12
  };
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkOQL4GIEJcjs = require('./chunk-OQL4GIEJ.cjs');
4
+
5
+
6
+ var _chunkUEVMS6QDcjs = require('./chunk-UEVMS6QD.cjs');
7
+
8
+ // packages/name/lineToSmallHump.ts
9
+ function lineToSmallHump(name) {
10
+ let arr = name.split("-");
11
+ arr = arr.map((vs) => {
12
+ return _chunkUEVMS6QDcjs.firstLower.call(void 0, vs);
13
+ });
14
+ return _chunkOQL4GIEJcjs.firstUpper.call(void 0, arr.join(""));
15
+ }
16
+
17
+
18
+
19
+ exports.lineToSmallHump = lineToSmallHump;
@@ -0,0 +1,16 @@
1
+ import {
2
+ firstLower
3
+ } from "./chunk-4OBNLDTJ.js";
4
+
5
+ // packages/name/lineToLargeHump.ts
6
+ function lineToLargeHump(name) {
7
+ let arr = name.split("-");
8
+ arr = arr.map((vs) => {
9
+ return firstLower(vs);
10
+ });
11
+ return arr.join("");
12
+ }
13
+
14
+ export {
15
+ lineToLargeHump
16
+ };
@@ -0,0 +1,24 @@
1
+ import {
2
+ string_exports
3
+ } from "./chunk-PPEJX3ZH.js";
4
+ import {
5
+ array_exports
6
+ } from "./chunk-AP2GHAT5.js";
7
+ import {
8
+ object_exports
9
+ } from "./chunk-MAIGGOA4.js";
10
+ import {
11
+ __export
12
+ } from "./chunk-UICA3PK6.js";
13
+
14
+ // packages/basic/index.ts
15
+ var basic_exports = {};
16
+ __export(basic_exports, {
17
+ array: () => array_exports,
18
+ object: () => object_exports,
19
+ string: () => string_exports
20
+ });
21
+
22
+ export {
23
+ basic_exports
24
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkUEVMS6QDcjs = require('./chunk-UEVMS6QD.cjs');
4
+
5
+ // packages/name/lineToLargeHump.ts
6
+ function lineToLargeHump(name) {
7
+ let arr = name.split("-");
8
+ arr = arr.map((vs) => {
9
+ return _chunkUEVMS6QDcjs.firstLower.call(void 0, vs);
10
+ });
11
+ return arr.join("");
12
+ }
13
+
14
+
15
+
16
+ exports.lineToLargeHump = lineToLargeHump;
@@ -0,0 +1,49 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/object/unmergeObject.ts
2
+ function unmergeObject(a, b, j = 0, i) {
3
+ let c;
4
+ if (a instanceof Array) {
5
+ if (j > 0 && i) {
6
+ c = Object.assign([], a);
7
+ if (b instanceof Array) {
8
+ for (const v of b) {
9
+ if (!a.includes(v)) {
10
+ c.push(v);
11
+ }
12
+ }
13
+ } else {
14
+ if (!a.includes(b)) {
15
+ c.push(b);
16
+ }
17
+ }
18
+ } else {
19
+ c = b;
20
+ }
21
+ } else if (typeof a == "object") {
22
+ const cv = Object.prototype.toString.call(a);
23
+ const ct = Object.prototype.toString.call(b);
24
+ if (a && typeof b == "object" && cv == ct && j > 0) {
25
+ c = { ...a };
26
+ const n = j - 1;
27
+ if (n > 0) {
28
+ for (const key in b) {
29
+ const v = a[key];
30
+ const t = b[key];
31
+ c[key] = unmergeObject(v, t, n, i);
32
+ }
33
+ } else {
34
+ for (const key in b) {
35
+ c[key] = b[key];
36
+ }
37
+ }
38
+ } else {
39
+ c = b;
40
+ }
41
+ } else {
42
+ c = b;
43
+ }
44
+ return c;
45
+ }
46
+
47
+
48
+
49
+ exports.unmergeObject = unmergeObject;
@@ -0,0 +1,21 @@
1
+ import {
2
+ lineToLargeHump
3
+ } from "./chunk-2PY55D6T.js";
4
+ import {
5
+ lineToSmallHump
6
+ } from "./chunk-O3RJ5M35.js";
7
+ import {
8
+ humpToLine
9
+ } from "./chunk-J7CICTHH.js";
10
+
11
+ // packages/name/getNames.ts
12
+ function getNames(name) {
13
+ const line = humpToLine(name);
14
+ const upper = lineToLargeHump(line);
15
+ const lower = lineToSmallHump(upper);
16
+ return [line, upper, lower];
17
+ }
18
+
19
+ export {
20
+ getNames
21
+ };
@@ -0,0 +1,8 @@
1
+ // packages/basic/string/firstLower.ts
2
+ function firstLower(str) {
3
+ return str.slice(0, 1).toLowerCase() + str.slice(1);
4
+ }
5
+
6
+ export {
7
+ firstLower
8
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+
8
+
9
+ exports.__export = __export;
@@ -0,0 +1,33 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// packages/log/styleLog.ts
2
+ function styleLog(msg = "", obj) {
3
+ const arr = ["\x1B[0m"];
4
+ if (_optionalChain([obj, 'optionalAccess', _ => _.revert])) {
5
+ arr.push("\x1B[4m");
6
+ }
7
+ if (_optionalChain([obj, 'optionalAccess', _2 => _2.lineThrough])) {
8
+ arr.push("\x1B[9m");
9
+ }
10
+ if (_optionalChain([obj, 'optionalAccess', _3 => _3.italic])) {
11
+ arr.push("\x1B[3m");
12
+ }
13
+ if (_optionalChain([obj, 'optionalAccess', _4 => _4.bold])) {
14
+ arr.push("\x1B[1m");
15
+ }
16
+ if (_optionalChain([obj, 'optionalAccess', _5 => _5.bag])) {
17
+ arr.push(`\x1B[4${_optionalChain([obj, 'optionalAccess', _6 => _6.bag])}m`);
18
+ } else {
19
+ arr.push("\x1B[40m");
20
+ }
21
+ if (_optionalChain([obj, 'optionalAccess', _7 => _7.text])) {
22
+ arr.push(`\x1B[3${_optionalChain([obj, 'optionalAccess', _8 => _8.text])}m`);
23
+ } else {
24
+ arr.push("\x1B[30m");
25
+ }
26
+ arr.push(msg);
27
+ arr.push("\x1B[0m");
28
+ return arr.join("");
29
+ }
30
+
31
+
32
+
33
+ exports.styleLog = styleLog;