@fangzhongya/utils 0.0.7-7 → 0.0.7-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  export { asyncMergeArray } from './asyncMergeArray.js';
2
2
  export { duplicateRemoval } from './duplicateRemoval.js';
3
- export { toggleArray } from './toggleArray.js';
4
3
  export { isArray } from './isArray.js';
4
+ export { toggleArray } from './toggleArray.js';
@@ -1,15 +1,15 @@
1
- export { i as array } from '../index-ab13c58f.js';
2
- export { i as object } from '../index-8473d4b5.js';
3
- export { i as string } from '../index-7563997b.js';
1
+ export { i as array } from '../index-b61bcc84.js';
2
+ export { i as object } from '../index-3062a21e.js';
3
+ export { i as string } from '../index-f8e894a2.js';
4
4
  import './array/asyncMergeArray.js';
5
5
  import './array/duplicateRemoval.js';
6
- import './array/toggleArray.js';
7
6
  import './array/isArray.js';
8
- import './object/mergeObject.js';
7
+ import './array/toggleArray.js';
9
8
  import './object/isObject.js';
9
+ import './object/mergeObject.js';
10
10
  import './object/unmergeObject.js';
11
- import './string/appearNumSeat.js';
12
11
  import './string/appearNum.js';
12
+ import './string/appearNumSeat.js';
13
13
  import './string/firstLower.js';
14
14
  import './string/firstUpper.js';
15
15
  import './string/getStartSame.js';
@@ -1,3 +1,3 @@
1
- export { mergeObject } from './mergeObject.js';
2
1
  export { isObject } from './isObject.js';
2
+ export { mergeObject } from './mergeObject.js';
3
3
  export { unmergeObject } from './unmergeObject.js';
@@ -1,5 +1,5 @@
1
- export { appearNumSeat } from './appearNumSeat.js';
2
1
  export { appearNum } from './appearNum.js';
2
+ export { appearNumSeat } from './appearNumSeat.js';
3
3
  export { firstLower } from './firstLower.js';
4
4
  export { firstUpper } from './firstUpper.js';
5
5
  export { getStartSame } from './getStartSame.js';
@@ -1,10 +1,11 @@
1
1
  import { getImportUrl } from './urls/getImportUrl.js';
2
2
  import { getImportUrlSuffix } from './urls/getImportUrlSuffix.js';
3
3
  import { getReplaceUrl } from './urls/getReplaceUrl.js';
4
- import { getUrlCatalogueLast } from './urls/getUrlCatalogueLast.js';
5
4
  import { getUrlCatalogue } from './urls/getUrlCatalogue.js';
6
- import { getUrlCatalogueObj } from './urls/getUrlCatalogueObj.js';
5
+ import { getUrlCatalogueLast } from './urls/getUrlCatalogueLast.js';
6
+ import { UrlCatalogue, getUrlCatalogueObj } from './urls/getUrlCatalogueObj.js';
7
7
 
8
+ declare const index_UrlCatalogue: typeof UrlCatalogue;
8
9
  declare const index_getImportUrl: typeof getImportUrl;
9
10
  declare const index_getImportUrlSuffix: typeof getImportUrlSuffix;
10
11
  declare const index_getReplaceUrl: typeof getReplaceUrl;
@@ -13,6 +14,7 @@ declare const index_getUrlCatalogueLast: typeof getUrlCatalogueLast;
13
14
  declare const index_getUrlCatalogueObj: typeof getUrlCatalogueObj;
14
15
  declare namespace index {
15
16
  export {
17
+ index_UrlCatalogue as UrlCatalogue,
16
18
  index_getImportUrl as getImportUrl,
17
19
  index_getImportUrlSuffix as getImportUrlSuffix,
18
20
  index_getReplaceUrl as getReplaceUrl,
@@ -1,5 +1,5 @@
1
- import { mergeObject } from './basic/object/mergeObject.js';
2
1
  import { isObject } from './basic/object/isObject.js';
2
+ import { mergeObject } from './basic/object/mergeObject.js';
3
3
  import { unmergeObject } from './basic/object/unmergeObject.js';
4
4
 
5
5
  declare const index_isObject: typeof isObject;
@@ -0,0 +1,13 @@
1
+ import { i as index$1 } from './index-b61bcc84.js';
2
+ import { i as index$2 } from './index-3062a21e.js';
3
+ import { i as index$3 } from './index-f8e894a2.js';
4
+
5
+ declare namespace index {
6
+ export {
7
+ index$1 as array,
8
+ index$2 as object,
9
+ index$3 as string,
10
+ };
11
+ }
12
+
13
+ export { index as i };
@@ -1,6 +1,6 @@
1
+ import { getComponentNames } from './name/getComponentNames.js';
1
2
  import { getNames } from './name/getNames.js';
2
3
  import { humpToLine } from './name/humpToLine.js';
3
- import { getComponentNames } from './name/getComponentNames.js';
4
4
  import { lineToLargeHump } from './name/lineToLargeHump.js';
5
5
  import { lineToSmallHump } from './name/lineToSmallHump.js';
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { asyncMergeArray } from './basic/array/asyncMergeArray.js';
2
2
  import { duplicateRemoval } from './basic/array/duplicateRemoval.js';
3
- import { toggleArray } from './basic/array/toggleArray.js';
4
3
  import { isArray } from './basic/array/isArray.js';
4
+ import { toggleArray } from './basic/array/toggleArray.js';
5
5
 
6
6
  declare const index_asyncMergeArray: typeof asyncMergeArray;
7
7
  declare const index_duplicateRemoval: typeof duplicateRemoval;
@@ -1,5 +1,5 @@
1
- import { appearNumSeat } from './basic/string/appearNumSeat.js';
2
1
  import { appearNum } from './basic/string/appearNum.js';
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
5
  import { getStartSame } from './basic/string/getStartSame.js';
package/dist/index.cjs CHANGED
@@ -38,16 +38,16 @@ require('./chunk-UEVMS6QD.cjs');
38
38
  require('./chunk-OQL4GIEJ.cjs');
39
39
 
40
40
 
41
- var _chunkN6OX2U6Wcjs = require('./chunk-N6OX2U6W.cjs');
42
- require('./chunk-XRGLFTH2.cjs');
43
- require('./chunk-ISHLY7WM.cjs');
44
-
45
-
46
41
  var _chunkSYXWQKOOcjs = require('./chunk-SYXWQKOO.cjs');
47
42
  require('./chunk-T22I7TJQ.cjs');
48
43
  require('./chunk-YGJOBIEO.cjs');
49
44
  require('./chunk-ZZEFL2TE.cjs');
50
45
  require('./chunk-2BY5RQHU.cjs');
46
+
47
+
48
+ var _chunkN6OX2U6Wcjs = require('./chunk-N6OX2U6W.cjs');
49
+ require('./chunk-XRGLFTH2.cjs');
50
+ require('./chunk-ISHLY7WM.cjs');
51
51
  require('./chunk-5AZGAKWR.cjs');
52
52
 
53
53
 
package/dist/index.d.ts CHANGED
@@ -1,21 +1,21 @@
1
- export { i as basic } from './index-a726ae9a.js';
2
- export { i as iss } from './index-24872dab.js';
1
+ export { i as basic } from './index-7cb1dacf.js';
3
2
  export { i as judge } from './index-445fe401.js';
4
3
  export { i as log } from './index-ef15848a.js';
5
- export { i as name } from './index-1033f402.js';
6
- export { i as urls } from './index-9e5e6ecd.js';
7
- import './index-ab13c58f.js';
4
+ export { i as iss } from './index-24872dab.js';
5
+ export { i as name } from './index-a65f6120.js';
6
+ export { i as urls } from './index-1809a70e.js';
7
+ import './index-b61bcc84.js';
8
8
  import './basic/array/asyncMergeArray.js';
9
9
  import './basic/array/duplicateRemoval.js';
10
- import './basic/array/toggleArray.js';
11
10
  import './basic/array/isArray.js';
12
- import './index-8473d4b5.js';
13
- import './basic/object/mergeObject.js';
11
+ import './basic/array/toggleArray.js';
12
+ import './index-3062a21e.js';
14
13
  import './basic/object/isObject.js';
14
+ import './basic/object/mergeObject.js';
15
15
  import './basic/object/unmergeObject.js';
16
- import './index-7563997b.js';
17
- import './basic/string/appearNumSeat.js';
16
+ import './index-f8e894a2.js';
18
17
  import './basic/string/appearNum.js';
18
+ import './basic/string/appearNumSeat.js';
19
19
  import './basic/string/firstLower.js';
20
20
  import './basic/string/firstUpper.js';
21
21
  import './basic/string/getStartSame.js';
@@ -25,14 +25,14 @@ import './judge/matchsEnd.js';
25
25
  import './judge/matchsStart.js';
26
26
  import './judge/matchsWhole.js';
27
27
  import './log/styleLog.js';
28
+ import './name/getComponentNames.js';
28
29
  import './name/getNames.js';
29
30
  import './name/humpToLine.js';
30
- import './name/getComponentNames.js';
31
31
  import './name/lineToLargeHump.js';
32
32
  import './name/lineToSmallHump.js';
33
33
  import './urls/getImportUrl.js';
34
34
  import './urls/getImportUrlSuffix.js';
35
35
  import './urls/getReplaceUrl.js';
36
- import './urls/getUrlCatalogueLast.js';
37
36
  import './urls/getUrlCatalogue.js';
37
+ import './urls/getUrlCatalogueLast.js';
38
38
  import './urls/getUrlCatalogueObj.js';
package/dist/index.js CHANGED
@@ -36,11 +36,6 @@ import "./chunk-A276ZDLP.js";
36
36
  import "./chunk-XQB2HUHZ.js";
37
37
  import "./chunk-4OBNLDTJ.js";
38
38
  import "./chunk-EWJJKQIO.js";
39
- import {
40
- iss_exports
41
- } from "./chunk-HRECTLZO.js";
42
- import "./chunk-WO6JQRTD.js";
43
- import "./chunk-5PX3AFSC.js";
44
39
  import {
45
40
  judge_exports
46
41
  } from "./chunk-ZQX2TYQB.js";
@@ -48,6 +43,11 @@ import "./chunk-T2QKEABG.js";
48
43
  import "./chunk-YNOFNHEK.js";
49
44
  import "./chunk-S6JRKYPY.js";
50
45
  import "./chunk-IRGCP7KH.js";
46
+ import {
47
+ iss_exports
48
+ } from "./chunk-HRECTLZO.js";
49
+ import "./chunk-WO6JQRTD.js";
50
+ import "./chunk-5PX3AFSC.js";
51
51
  import "./chunk-UICA3PK6.js";
52
52
  export {
53
53
  basic_exports as basic,
@@ -1,5 +1,5 @@
1
+ export { getComponentNames } from './getComponentNames.js';
1
2
  export { getNames } from './getNames.js';
2
3
  export { humpToLine } from './humpToLine.js';
3
- export { getComponentNames } from './getComponentNames.js';
4
4
  export { lineToLargeHump } from './lineToLargeHump.js';
5
5
  export { lineToSmallHump } from './lineToSmallHump.js';
@@ -1,8 +1,8 @@
1
- interface UrlCatalogue {
1
+ type UrlCatalogue = {
2
2
  catalogue: string;
3
3
  name: string;
4
4
  suffix: string;
5
- }
5
+ };
6
6
  /**
7
7
  * 去掉文件,获取文件目录对象
8
8
  * @param str { 文件地址 }
@@ -13,4 +13,4 @@ interface UrlCatalogue {
13
13
  */
14
14
  declare function getUrlCatalogueObj(str: string): UrlCatalogue;
15
15
 
16
- export { getUrlCatalogueObj };
16
+ export { UrlCatalogue, getUrlCatalogueObj };
@@ -1,6 +1,6 @@
1
1
  export { getImportUrl } from './getImportUrl.js';
2
2
  export { getImportUrlSuffix } from './getImportUrlSuffix.js';
3
3
  export { getReplaceUrl } from './getReplaceUrl.js';
4
- export { getUrlCatalogueLast } from './getUrlCatalogueLast.js';
5
4
  export { getUrlCatalogue } from './getUrlCatalogue.js';
6
- export { getUrlCatalogueObj } from './getUrlCatalogueObj.js';
5
+ export { getUrlCatalogueLast } from './getUrlCatalogueLast.js';
6
+ export { UrlCatalogue, getUrlCatalogueObj } from './getUrlCatalogueObj.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.7-7",
5
+ "version": "0.0.7-9",
6
6
  "description ": "个人工具库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",
@@ -24,9 +24,9 @@
24
24
  "test": "vitest test"
25
25
  },
26
26
  "devDependencies": {
27
- "@fangzhongya/create": "0.2.0-6",
28
- "@types/node": "^18.11.19",
29
- "tsup": "^6.5.0",
27
+ "@fangzhongya/create": "0.2.0-13",
28
+ "@types/node": "^18.13.0",
29
+ "tsup": "^6.6.0",
30
30
  "typescript": "^4.9.5",
31
31
  "vitest": "^0.28.4"
32
32
  },
@@ -58,26 +58,26 @@
58
58
  "import": "./dist/basic/array/index.js",
59
59
  "types": "./dist/basic/array/index.d.ts"
60
60
  },
61
- "./basic/array/isArray": {
62
- "require": "./dist/basic/array/isArray.cjs",
63
- "import": "./dist/basic/array/isArray.js",
64
- "types": "./dist/basic/array/isArray.d.ts"
65
- },
66
61
  "./basic/array/toggleArray": {
67
62
  "require": "./dist/basic/array/toggleArray.cjs",
68
63
  "import": "./dist/basic/array/toggleArray.js",
69
64
  "types": "./dist/basic/array/toggleArray.d.ts"
70
65
  },
71
- "./basic/object/index": {
72
- "require": "./dist/basic/object/index.cjs",
73
- "import": "./dist/basic/object/index.js",
74
- "types": "./dist/basic/object/index.d.ts"
66
+ "./basic/array/isArray": {
67
+ "require": "./dist/basic/array/isArray.cjs",
68
+ "import": "./dist/basic/array/isArray.js",
69
+ "types": "./dist/basic/array/isArray.d.ts"
75
70
  },
76
71
  "./basic/object/isObject": {
77
72
  "require": "./dist/basic/object/isObject.cjs",
78
73
  "import": "./dist/basic/object/isObject.js",
79
74
  "types": "./dist/basic/object/isObject.d.ts"
80
75
  },
76
+ "./basic/object/index": {
77
+ "require": "./dist/basic/object/index.cjs",
78
+ "import": "./dist/basic/object/index.js",
79
+ "types": "./dist/basic/object/index.d.ts"
80
+ },
81
81
  "./basic/object/mergeObject": {
82
82
  "require": "./dist/basic/object/mergeObject.cjs",
83
83
  "import": "./dist/basic/object/mergeObject.js",
@@ -108,26 +108,31 @@
108
108
  "import": "./dist/basic/string/firstUpper.js",
109
109
  "types": "./dist/basic/string/firstUpper.d.ts"
110
110
  },
111
- "./basic/string/index": {
112
- "require": "./dist/basic/string/index.cjs",
113
- "import": "./dist/basic/string/index.js",
114
- "types": "./dist/basic/string/index.d.ts"
111
+ "./basic/string/getStartSames": {
112
+ "require": "./dist/basic/string/getStartSames.cjs",
113
+ "import": "./dist/basic/string/getStartSames.js",
114
+ "types": "./dist/basic/string/getStartSames.d.ts"
115
115
  },
116
116
  "./basic/string/getStartSame": {
117
117
  "require": "./dist/basic/string/getStartSame.cjs",
118
118
  "import": "./dist/basic/string/getStartSame.js",
119
119
  "types": "./dist/basic/string/getStartSame.d.ts"
120
120
  },
121
- "./basic/string/getStartSames": {
122
- "require": "./dist/basic/string/getStartSames.cjs",
123
- "import": "./dist/basic/string/getStartSames.js",
124
- "types": "./dist/basic/string/getStartSames.d.ts"
121
+ "./basic/string/index": {
122
+ "require": "./dist/basic/string/index.cjs",
123
+ "import": "./dist/basic/string/index.js",
124
+ "types": "./dist/basic/string/index.d.ts"
125
125
  },
126
126
  "./basic/index": {
127
127
  "require": "./dist/basic/index.cjs",
128
128
  "import": "./dist/basic/index.js",
129
129
  "types": "./dist/basic/index.d.ts"
130
130
  },
131
+ "./iss/index": {
132
+ "require": "./dist/iss/index.cjs",
133
+ "import": "./dist/iss/index.js",
134
+ "types": "./dist/iss/index.d.ts"
135
+ },
131
136
  "./judge/index": {
132
137
  "require": "./dist/judge/index.cjs",
133
138
  "import": "./dist/judge/index.js",
@@ -163,16 +168,16 @@
163
168
  "import": "./dist/log/styleLog.js",
164
169
  "types": "./dist/log/styleLog.d.ts"
165
170
  },
166
- "./iss/index": {
167
- "require": "./dist/iss/index.cjs",
168
- "import": "./dist/iss/index.js",
169
- "types": "./dist/iss/index.d.ts"
170
- },
171
171
  "./name/getComponentNames": {
172
172
  "require": "./dist/name/getComponentNames.cjs",
173
173
  "import": "./dist/name/getComponentNames.js",
174
174
  "types": "./dist/name/getComponentNames.d.ts"
175
175
  },
176
+ "./name/index": {
177
+ "require": "./dist/name/index.cjs",
178
+ "import": "./dist/name/index.js",
179
+ "types": "./dist/name/index.d.ts"
180
+ },
176
181
  "./name/getNames": {
177
182
  "require": "./dist/name/getNames.cjs",
178
183
  "import": "./dist/name/getNames.js",
@@ -183,11 +188,6 @@
183
188
  "import": "./dist/name/humpToLine.js",
184
189
  "types": "./dist/name/humpToLine.d.ts"
185
190
  },
186
- "./name/index": {
187
- "require": "./dist/name/index.cjs",
188
- "import": "./dist/name/index.js",
189
- "types": "./dist/name/index.d.ts"
190
- },
191
191
  "./name/lineToLargeHump": {
192
192
  "require": "./dist/name/lineToLargeHump.cjs",
193
193
  "import": "./dist/name/lineToLargeHump.js",
@@ -247,4 +247,4 @@
247
247
  "main": "./dist/index.cjs",
248
248
  "module": "./dist/index.js",
249
249
  "types": "./dist/index.d.ts"
250
- }
250
+ }
@@ -1,13 +0,0 @@
1
- import { i as index$1 } from './index-ab13c58f.js';
2
- import { i as index$2 } from './index-8473d4b5.js';
3
- import { i as index$3 } from './index-7563997b.js';
4
-
5
- declare namespace index {
6
- export {
7
- index$1 as array,
8
- index$2 as object,
9
- index$3 as string,
10
- };
11
- }
12
-
13
- export { index as i };