@fangzhongya/utils 0.0.7-3 → 0.0.7-4
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.
- package/dist/basic/array/asyncMergeArray.cjs +7 -0
- package/dist/basic/array/asyncMergeArray.d.ts +9 -0
- package/dist/basic/array/asyncMergeArray.js +7 -0
- package/dist/basic/array/duplicateRemoval.cjs +7 -0
- package/dist/basic/array/duplicateRemoval.d.ts +12 -0
- package/dist/basic/array/duplicateRemoval.js +7 -0
- package/dist/basic/array/index.cjs +10 -2
- package/dist/basic/array/index.d.ts +3 -1
- package/dist/basic/array/index.js +9 -1
- package/dist/basic/index.cjs +8 -6
- package/dist/basic/index.d.ts +8 -6
- package/dist/basic/index.js +7 -5
- package/dist/basic/object/index.d.ts +1 -1
- package/dist/basic/string/index.d.ts +1 -1
- package/dist/{chunk-4J3S27XY.cjs → chunk-2SHHYPNP.cjs} +3 -3
- package/dist/chunk-3ERQHPTD.cjs +13 -0
- package/dist/{chunk-MPDCMTGO.js → chunk-6U3EBKWQ.js} +3 -3
- package/dist/chunk-A4Q6B3YY.js +16 -0
- package/dist/chunk-BDJORZRC.js +13 -0
- package/dist/{chunk-6ADW34CB.cjs → chunk-CRCTXUWY.cjs} +4 -0
- package/dist/chunk-I5DOER3M.cjs +16 -0
- package/dist/{chunk-YMC5G5SU.js → chunk-LLE2EBH3.js} +8 -0
- package/dist/{chunk-L45SIOB3.js → chunk-O3XAY3SX.js} +4 -0
- package/dist/{chunk-ETPPNXJN.cjs → chunk-Q7JC2RVJ.cjs} +8 -0
- package/dist/{chunk-ZLCUSADU.cjs → chunk-SYXWQKOO.cjs} +5 -5
- package/dist/{chunk-NGQKVTCR.cjs → chunk-T22I7TJQ.cjs} +3 -3
- package/dist/{chunk-FRGDQOX4.js → chunk-T2QKEABG.js} +3 -3
- package/dist/chunk-VNVG4BJ4.cjs +23 -0
- package/dist/chunk-XQB2HUHZ.js +23 -0
- package/dist/{chunk-V3AYCU2W.js → chunk-ZQX2TYQB.js} +4 -4
- package/dist/index-171a9cd6.d.ts +13 -0
- package/dist/{index-8473d4b5.d.ts → index-1a3ad18b.d.ts} +1 -1
- package/dist/{index-ceb2f683.d.ts → index-445fe401.d.ts} +2 -2
- package/dist/index-b61bcc84.d.ts +19 -0
- package/dist/{index-e2af3c0a.d.ts → index-d34b8a94.d.ts} +4 -1
- package/dist/{index-172cff2e.d.ts → index-f6ea5a6a.d.ts} +2 -2
- package/dist/{index-82dfd1d9.d.ts → index-f8e894a2.d.ts} +1 -1
- package/dist/index.cjs +15 -12
- package/dist/index.d.ts +18 -15
- package/dist/index.js +14 -11
- package/dist/judge/index.cjs +6 -6
- package/dist/judge/index.d.ts +2 -2
- package/dist/judge/index.js +5 -5
- package/dist/judge/matchs.cjs +3 -3
- package/dist/judge/matchs.js +2 -2
- package/dist/name/index.d.ts +2 -2
- package/dist/urls/getUrlCatalogueLast.cjs +4 -11
- package/dist/urls/getUrlCatalogueLast.js +3 -10
- package/dist/urls/index.cjs +6 -2
- package/dist/urls/index.d.ts +2 -1
- package/dist/urls/index.js +5 -1
- package/package.json +48 -38
- package/dist/index-0fa8abe5.d.ts +0 -13
- package/dist/index-b1455ca1.d.ts +0 -13
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 处理数组遍历问题
|
|
3
|
+
* @param <Array> arr 遍历数组
|
|
4
|
+
* @param callback 处理方法
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
declare function asyncMergeArray<T>(arr: Array<T>, callback: (resolve: () => void, reject: (reason?: any) => void, value: T, index: number, array: T[]) => void): Promise<unknown>;
|
|
8
|
+
|
|
9
|
+
export { asyncMergeArray };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Objunkn {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* 数组对象去重
|
|
6
|
+
* @param {Array} arr 要去重数组
|
|
7
|
+
* @param {string} key 对象中的唯一key
|
|
8
|
+
* @returns {Array }
|
|
9
|
+
*/
|
|
10
|
+
declare function duplicateRemoval(arr: Array<Objunkn>, key: string): Array<Objunkn>;
|
|
11
|
+
|
|
12
|
+
export { duplicateRemoval };
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-Q7JC2RVJ.cjs');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkI5DOER3Mcjs = require('../../chunk-I5DOER3M.cjs');
|
|
2
5
|
|
|
3
6
|
|
|
4
7
|
var _chunk3BKSZA3Ucjs = require('../../chunk-3BKSZA3U.cjs');
|
|
5
8
|
|
|
6
9
|
|
|
10
|
+
var _chunkVNVG4BJ4cjs = require('../../chunk-VNVG4BJ4.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
7
13
|
var _chunkISHLY7WMcjs = require('../../chunk-ISHLY7WM.cjs');
|
|
8
14
|
require('../../chunk-5AZGAKWR.cjs');
|
|
9
15
|
|
|
10
16
|
|
|
11
17
|
|
|
12
|
-
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.asyncMergeArray = _chunkVNVG4BJ4cjs.asyncMergeArray; exports.duplicateRemoval = _chunkI5DOER3Mcjs.duplicateRemoval; exports.isArray = _chunkISHLY7WMcjs.isArray; exports.toggleArray = _chunk3BKSZA3Ucjs.toggleArray;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-LLE2EBH3.js";
|
|
2
|
+
import {
|
|
3
|
+
duplicateRemoval
|
|
4
|
+
} from "../../chunk-A4Q6B3YY.js";
|
|
2
5
|
import {
|
|
3
6
|
toggleArray
|
|
4
7
|
} from "../../chunk-HULCI3SJ.js";
|
|
8
|
+
import {
|
|
9
|
+
asyncMergeArray
|
|
10
|
+
} from "../../chunk-XQB2HUHZ.js";
|
|
5
11
|
import {
|
|
6
12
|
isArray
|
|
7
13
|
} from "../../chunk-5PX3AFSC.js";
|
|
8
14
|
import "../../chunk-UICA3PK6.js";
|
|
9
15
|
export {
|
|
16
|
+
asyncMergeArray,
|
|
17
|
+
duplicateRemoval,
|
|
10
18
|
isArray,
|
|
11
19
|
toggleArray
|
|
12
20
|
};
|
package/dist/basic/index.cjs
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-2SHHYPNP.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _chunkASN2EUM7cjs = require('../chunk-ASN2EUM7.cjs');
|
|
5
5
|
require('../chunk-J7S3KBHL.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
var _chunkQ7JC2RVJcjs = require('../chunk-Q7JC2RVJ.cjs');
|
|
9
|
+
require('../chunk-I5DOER3M.cjs');
|
|
10
|
+
require('../chunk-3BKSZA3U.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
8
13
|
var _chunkR7G5MSGOcjs = require('../chunk-R7G5MSGO.cjs');
|
|
9
14
|
require('../chunk-NRJPCN4J.cjs');
|
|
10
15
|
require('../chunk-3VYRYSWK.cjs');
|
|
11
16
|
require('../chunk-3HXQ7TGV.cjs');
|
|
12
17
|
require('../chunk-JR6ZN6QD.cjs');
|
|
13
18
|
require('../chunk-PW7RP73J.cjs');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var _chunkETPPNXJNcjs = require('../chunk-ETPPNXJN.cjs');
|
|
17
|
-
require('../chunk-3BKSZA3U.cjs');
|
|
19
|
+
require('../chunk-VNVG4BJ4.cjs');
|
|
18
20
|
require('../chunk-UEVMS6QD.cjs');
|
|
19
21
|
require('../chunk-OQL4GIEJ.cjs');
|
|
20
22
|
require('../chunk-XRGLFTH2.cjs');
|
|
@@ -24,4 +26,4 @@ require('../chunk-5AZGAKWR.cjs');
|
|
|
24
26
|
|
|
25
27
|
|
|
26
28
|
|
|
27
|
-
exports.array =
|
|
29
|
+
exports.array = _chunkQ7JC2RVJcjs.array_exports; exports.object = _chunkR7G5MSGOcjs.object_exports; exports.string = _chunkASN2EUM7cjs.string_exports;
|
package/dist/basic/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export { i as array } from '../index-
|
|
2
|
-
export { i as object } from '../index-
|
|
3
|
-
export { i as string } from '../index-
|
|
4
|
-
import './array/
|
|
1
|
+
export { i as array } from '../index-b61bcc84.js';
|
|
2
|
+
export { i as object } from '../index-1a3ad18b.js';
|
|
3
|
+
export { i as string } from '../index-f8e894a2.js';
|
|
4
|
+
import './array/asyncMergeArray.js';
|
|
5
|
+
import './array/duplicateRemoval.js';
|
|
5
6
|
import './array/isArray.js';
|
|
6
|
-
import './
|
|
7
|
+
import './array/toggleArray.js';
|
|
7
8
|
import './object/isObject.js';
|
|
8
9
|
import './object/unmergeObject.js';
|
|
10
|
+
import './object/mergeObject.js';
|
|
9
11
|
import './string/appearNum.js';
|
|
10
12
|
import './string/appearNumSeat.js';
|
|
11
13
|
import './string/firstLower.js';
|
|
12
|
-
import './string/getStartSame.js';
|
|
13
14
|
import './string/firstUpper.js';
|
|
15
|
+
import './string/getStartSame.js';
|
|
14
16
|
import './string/getStartSames.js';
|
package/dist/basic/index.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-6U3EBKWQ.js";
|
|
2
2
|
import {
|
|
3
3
|
string_exports
|
|
4
4
|
} from "../chunk-H2LFD53G.js";
|
|
5
5
|
import "../chunk-7DTHADVK.js";
|
|
6
|
+
import {
|
|
7
|
+
array_exports
|
|
8
|
+
} from "../chunk-LLE2EBH3.js";
|
|
9
|
+
import "../chunk-A4Q6B3YY.js";
|
|
10
|
+
import "../chunk-HULCI3SJ.js";
|
|
6
11
|
import {
|
|
7
12
|
object_exports
|
|
8
13
|
} from "../chunk-MAIGGOA4.js";
|
|
@@ -11,10 +16,7 @@ import "../chunk-A6J46LQK.js";
|
|
|
11
16
|
import "../chunk-SNABGVNO.js";
|
|
12
17
|
import "../chunk-DMZP4RPN.js";
|
|
13
18
|
import "../chunk-A276ZDLP.js";
|
|
14
|
-
import
|
|
15
|
-
array_exports
|
|
16
|
-
} from "../chunk-YMC5G5SU.js";
|
|
17
|
-
import "../chunk-HULCI3SJ.js";
|
|
19
|
+
import "../chunk-XQB2HUHZ.js";
|
|
18
20
|
import "../chunk-4OBNLDTJ.js";
|
|
19
21
|
import "../chunk-EWJJKQIO.js";
|
|
20
22
|
import "../chunk-WO6JQRTD.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { appearNum } from './appearNum.js';
|
|
2
2
|
export { appearNumSeat } from './appearNumSeat.js';
|
|
3
3
|
export { firstLower } from './firstLower.js';
|
|
4
|
-
export { getStartSame } from './getStartSame.js';
|
|
5
4
|
export { firstUpper } from './firstUpper.js';
|
|
5
|
+
export { getStartSame } from './getStartSame.js';
|
|
6
6
|
export { getStartSames } from './getStartSames.js';
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var _chunkASN2EUM7cjs = require('./chunk-ASN2EUM7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQ7JC2RVJcjs = require('./chunk-Q7JC2RVJ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkR7G5MSGOcjs = require('./chunk-R7G5MSGO.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
@@ -14,7 +14,7 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
|
14
14
|
// packages/basic/index.ts
|
|
15
15
|
var basic_exports = {};
|
|
16
16
|
_chunk5AZGAKWRcjs.__export.call(void 0, basic_exports, {
|
|
17
|
-
array: () =>
|
|
17
|
+
array: () => _chunkQ7JC2RVJcjs.array_exports,
|
|
18
18
|
object: () => _chunkR7G5MSGOcjs.object_exports,
|
|
19
19
|
string: () => _chunkASN2EUM7cjs.string_exports
|
|
20
20
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/urls/getUrlCatalogueLast.ts
|
|
2
|
+
function getUrlCatalogueLast(str) {
|
|
3
|
+
const reg = /(\\|\/)([^\\|\/]+)(\\|\/)?(([^\\|\/]+)(\.[a-z|A-Z]+))?$/g;
|
|
4
|
+
const arr = reg.exec(str);
|
|
5
|
+
if (arr && arr.length > 0) {
|
|
6
|
+
return arr[2];
|
|
7
|
+
}
|
|
8
|
+
return "";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.getUrlCatalogueLast = getUrlCatalogueLast;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
string_exports
|
|
3
3
|
} from "./chunk-H2LFD53G.js";
|
|
4
|
+
import {
|
|
5
|
+
array_exports
|
|
6
|
+
} from "./chunk-LLE2EBH3.js";
|
|
4
7
|
import {
|
|
5
8
|
object_exports
|
|
6
9
|
} from "./chunk-MAIGGOA4.js";
|
|
7
|
-
import {
|
|
8
|
-
array_exports
|
|
9
|
-
} from "./chunk-YMC5G5SU.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./chunk-UICA3PK6.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// packages/basic/array/duplicateRemoval.ts
|
|
2
|
+
function duplicateRemoval(arr, key) {
|
|
3
|
+
let ks = [];
|
|
4
|
+
return arr.filter((obj) => {
|
|
5
|
+
if (ks.includes(obj[key])) {
|
|
6
|
+
return false;
|
|
7
|
+
} else {
|
|
8
|
+
ks.push(obj[key]);
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
duplicateRemoval
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// packages/urls/getUrlCatalogueLast.ts
|
|
2
|
+
function getUrlCatalogueLast(str) {
|
|
3
|
+
const reg = /(\\|\/)([^\\|\/]+)(\\|\/)?(([^\\|\/]+)(\.[a-z|A-Z]+))?$/g;
|
|
4
|
+
const arr = reg.exec(str);
|
|
5
|
+
if (arr && arr.length > 0) {
|
|
6
|
+
return arr[2];
|
|
7
|
+
}
|
|
8
|
+
return "";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
getUrlCatalogueLast
|
|
13
|
+
};
|
|
@@ -12,6 +12,9 @@ var _chunk6RIGEV6Gcjs = require('./chunk-6RIGEV6G.cjs');
|
|
|
12
12
|
var _chunkDILKJQYVcjs = require('./chunk-DILKJQYV.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
var _chunk3ERQHPTDcjs = require('./chunk-3ERQHPTD.cjs');
|
|
16
|
+
|
|
17
|
+
|
|
15
18
|
var _chunkP3YVE7JKcjs = require('./chunk-P3YVE7JK.cjs');
|
|
16
19
|
|
|
17
20
|
|
|
@@ -24,6 +27,7 @@ _chunk5AZGAKWRcjs.__export.call(void 0, urls_exports, {
|
|
|
24
27
|
getImportUrlSuffix: () => _chunkO6GUK5PLcjs.getImportUrlSuffix,
|
|
25
28
|
getReplaceUrl: () => _chunk6RIGEV6Gcjs.getReplaceUrl,
|
|
26
29
|
getUrlCatalogue: () => _chunkDILKJQYVcjs.getUrlCatalogue,
|
|
30
|
+
getUrlCatalogueLast: () => _chunk3ERQHPTDcjs.getUrlCatalogueLast,
|
|
27
31
|
getUrlCatalogueObj: () => _chunkP3YVE7JKcjs.getUrlCatalogueObj
|
|
28
32
|
});
|
|
29
33
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/array/duplicateRemoval.ts
|
|
2
|
+
function duplicateRemoval(arr, key) {
|
|
3
|
+
let ks = [];
|
|
4
|
+
return arr.filter((obj) => {
|
|
5
|
+
if (ks.includes(obj[key])) {
|
|
6
|
+
return false;
|
|
7
|
+
} else {
|
|
8
|
+
ks.push(obj[key]);
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.duplicateRemoval = duplicateRemoval;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
duplicateRemoval
|
|
3
|
+
} from "./chunk-A4Q6B3YY.js";
|
|
1
4
|
import {
|
|
2
5
|
toggleArray
|
|
3
6
|
} from "./chunk-HULCI3SJ.js";
|
|
7
|
+
import {
|
|
8
|
+
asyncMergeArray
|
|
9
|
+
} from "./chunk-XQB2HUHZ.js";
|
|
4
10
|
import {
|
|
5
11
|
isArray
|
|
6
12
|
} from "./chunk-5PX3AFSC.js";
|
|
@@ -11,6 +17,8 @@ import {
|
|
|
11
17
|
// packages/basic/array/index.ts
|
|
12
18
|
var array_exports = {};
|
|
13
19
|
__export(array_exports, {
|
|
20
|
+
asyncMergeArray: () => asyncMergeArray,
|
|
21
|
+
duplicateRemoval: () => duplicateRemoval,
|
|
14
22
|
isArray: () => isArray,
|
|
15
23
|
toggleArray: () => toggleArray
|
|
16
24
|
});
|
|
@@ -10,6 +10,9 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
getUrlCatalogue
|
|
12
12
|
} from "./chunk-ZEXHP7HI.js";
|
|
13
|
+
import {
|
|
14
|
+
getUrlCatalogueLast
|
|
15
|
+
} from "./chunk-BDJORZRC.js";
|
|
13
16
|
import {
|
|
14
17
|
getUrlCatalogueObj
|
|
15
18
|
} from "./chunk-AS3WKQP7.js";
|
|
@@ -24,6 +27,7 @@ __export(urls_exports, {
|
|
|
24
27
|
getImportUrlSuffix: () => getImportUrlSuffix,
|
|
25
28
|
getReplaceUrl: () => getReplaceUrl,
|
|
26
29
|
getUrlCatalogue: () => getUrlCatalogue,
|
|
30
|
+
getUrlCatalogueLast: () => getUrlCatalogueLast,
|
|
27
31
|
getUrlCatalogueObj: () => getUrlCatalogueObj
|
|
28
32
|
});
|
|
29
33
|
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _chunkI5DOER3Mcjs = require('./chunk-I5DOER3M.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunk3BKSZA3Ucjs = require('./chunk-3BKSZA3U.cjs');
|
|
4
7
|
|
|
5
8
|
|
|
9
|
+
var _chunkVNVG4BJ4cjs = require('./chunk-VNVG4BJ4.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
6
12
|
var _chunkISHLY7WMcjs = require('./chunk-ISHLY7WM.cjs');
|
|
7
13
|
|
|
8
14
|
|
|
@@ -11,6 +17,8 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
|
11
17
|
// packages/basic/array/index.ts
|
|
12
18
|
var array_exports = {};
|
|
13
19
|
_chunk5AZGAKWRcjs.__export.call(void 0, array_exports, {
|
|
20
|
+
asyncMergeArray: () => _chunkVNVG4BJ4cjs.asyncMergeArray,
|
|
21
|
+
duplicateRemoval: () => _chunkI5DOER3Mcjs.duplicateRemoval,
|
|
14
22
|
isArray: () => _chunkISHLY7WMcjs.isArray,
|
|
15
23
|
toggleArray: () => _chunk3BKSZA3Ucjs.toggleArray
|
|
16
24
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkT22I7TJQcjs = require('./chunk-T22I7TJQ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
@@ -17,7 +17,7 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
|
17
17
|
// packages/judge/index.ts
|
|
18
18
|
var judge_exports = {};
|
|
19
19
|
_chunk5AZGAKWRcjs.__export.call(void 0, judge_exports, {
|
|
20
|
-
matchs: () =>
|
|
20
|
+
matchs: () => _chunkT22I7TJQcjs.matchs,
|
|
21
21
|
matchsEnd: () => _chunkYGJOBIEOcjs.matchsEnd,
|
|
22
22
|
matchsStart: () => _chunkZZEFL2TEcjs.matchsStart,
|
|
23
23
|
matchsWhole: () => _chunk2BY5RQHUcjs.matchsWhole
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
|
|
10
10
|
|
|
11
11
|
// packages/judge/matchs.ts
|
|
12
12
|
function matchs(key, matchs2, type) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
matchsEnd
|
|
3
|
+
} from "./chunk-YNOFNHEK.js";
|
|
1
4
|
import {
|
|
2
5
|
matchsStart
|
|
3
6
|
} from "./chunk-S6JRKYPY.js";
|
|
4
7
|
import {
|
|
5
8
|
matchsWhole
|
|
6
9
|
} from "./chunk-IRGCP7KH.js";
|
|
7
|
-
import {
|
|
8
|
-
matchsEnd
|
|
9
|
-
} from "./chunk-YNOFNHEK.js";
|
|
10
10
|
|
|
11
11
|
// packages/judge/matchs.ts
|
|
12
12
|
function matchs(key, matchs2, type) {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/array/asyncMergeArray.ts
|
|
2
|
+
function asyncMergeArray(arr, callback) {
|
|
3
|
+
return new Promise((resolve, reject) => {
|
|
4
|
+
let index = 0;
|
|
5
|
+
const k = arr.length;
|
|
6
|
+
arr.forEach((...a) => {
|
|
7
|
+
callback(
|
|
8
|
+
(...arr2) => {
|
|
9
|
+
index++;
|
|
10
|
+
if (k == index) {
|
|
11
|
+
resolve(arr2);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
reject,
|
|
15
|
+
...a
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.asyncMergeArray = asyncMergeArray;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// packages/basic/array/asyncMergeArray.ts
|
|
2
|
+
function asyncMergeArray(arr, callback) {
|
|
3
|
+
return new Promise((resolve, reject) => {
|
|
4
|
+
let index = 0;
|
|
5
|
+
const k = arr.length;
|
|
6
|
+
arr.forEach((...a) => {
|
|
7
|
+
callback(
|
|
8
|
+
(...arr2) => {
|
|
9
|
+
index++;
|
|
10
|
+
if (k == index) {
|
|
11
|
+
resolve(arr2);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
reject,
|
|
15
|
+
...a
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
asyncMergeArray
|
|
23
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
matchs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T2QKEABG.js";
|
|
4
|
+
import {
|
|
5
|
+
matchsEnd
|
|
6
|
+
} from "./chunk-YNOFNHEK.js";
|
|
4
7
|
import {
|
|
5
8
|
matchsStart
|
|
6
9
|
} from "./chunk-S6JRKYPY.js";
|
|
7
10
|
import {
|
|
8
11
|
matchsWhole
|
|
9
12
|
} from "./chunk-IRGCP7KH.js";
|
|
10
|
-
import {
|
|
11
|
-
matchsEnd
|
|
12
|
-
} from "./chunk-YNOFNHEK.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
15
|
} from "./chunk-UICA3PK6.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { i as index$1 } from './index-b61bcc84.js';
|
|
2
|
+
import { i as index$2 } from './index-1a3ad18b.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 { mergeObject } from './basic/object/mergeObject.js';
|
|
2
1
|
import { isObject } from './basic/object/isObject.js';
|
|
3
2
|
import { unmergeObject } from './basic/object/unmergeObject.js';
|
|
3
|
+
import { mergeObject } from './basic/object/mergeObject.js';
|
|
4
4
|
|
|
5
5
|
declare const index_isObject: typeof isObject;
|
|
6
6
|
declare const index_mergeObject: typeof mergeObject;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { matchs } from './judge/matchs.js';
|
|
1
2
|
import { matchsEnd } from './judge/matchsEnd.js';
|
|
2
|
-
import { matchsWhole } from './judge/matchsWhole.js';
|
|
3
3
|
import { matchsStart } from './judge/matchsStart.js';
|
|
4
|
-
import {
|
|
4
|
+
import { matchsWhole } from './judge/matchsWhole.js';
|
|
5
5
|
|
|
6
6
|
declare const index_matchs: typeof matchs;
|
|
7
7
|
declare const index_matchsEnd: typeof matchsEnd;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { asyncMergeArray } from './basic/array/asyncMergeArray.js';
|
|
2
|
+
import { duplicateRemoval } from './basic/array/duplicateRemoval.js';
|
|
3
|
+
import { isArray } from './basic/array/isArray.js';
|
|
4
|
+
import { toggleArray } from './basic/array/toggleArray.js';
|
|
5
|
+
|
|
6
|
+
declare const index_asyncMergeArray: typeof asyncMergeArray;
|
|
7
|
+
declare const index_duplicateRemoval: typeof duplicateRemoval;
|
|
8
|
+
declare const index_isArray: typeof isArray;
|
|
9
|
+
declare const index_toggleArray: typeof toggleArray;
|
|
10
|
+
declare namespace index {
|
|
11
|
+
export {
|
|
12
|
+
index_asyncMergeArray as asyncMergeArray,
|
|
13
|
+
index_duplicateRemoval as duplicateRemoval,
|
|
14
|
+
index_isArray as isArray,
|
|
15
|
+
index_toggleArray as toggleArray,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { index as i };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { getImportUrlSuffix } from './urls/getImportUrlSuffix.js';
|
|
2
1
|
import { getImportUrl } from './urls/getImportUrl.js';
|
|
2
|
+
import { getImportUrlSuffix } from './urls/getImportUrlSuffix.js';
|
|
3
3
|
import { getReplaceUrl } from './urls/getReplaceUrl.js';
|
|
4
4
|
import { getUrlCatalogue } from './urls/getUrlCatalogue.js';
|
|
5
|
+
import { getUrlCatalogueLast } from './urls/getUrlCatalogueLast.js';
|
|
5
6
|
import { getUrlCatalogueObj } from './urls/getUrlCatalogueObj.js';
|
|
6
7
|
|
|
7
8
|
declare const index_getImportUrl: typeof getImportUrl;
|
|
8
9
|
declare const index_getImportUrlSuffix: typeof getImportUrlSuffix;
|
|
9
10
|
declare const index_getReplaceUrl: typeof getReplaceUrl;
|
|
10
11
|
declare const index_getUrlCatalogue: typeof getUrlCatalogue;
|
|
12
|
+
declare const index_getUrlCatalogueLast: typeof getUrlCatalogueLast;
|
|
11
13
|
declare const index_getUrlCatalogueObj: typeof getUrlCatalogueObj;
|
|
12
14
|
declare namespace index {
|
|
13
15
|
export {
|
|
@@ -15,6 +17,7 @@ declare namespace index {
|
|
|
15
17
|
index_getImportUrlSuffix as getImportUrlSuffix,
|
|
16
18
|
index_getReplaceUrl as getReplaceUrl,
|
|
17
19
|
index_getUrlCatalogue as getUrlCatalogue,
|
|
20
|
+
index_getUrlCatalogueLast as getUrlCatalogueLast,
|
|
18
21
|
index_getUrlCatalogueObj as getUrlCatalogueObj,
|
|
19
22
|
};
|
|
20
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getComponentNames } from './name/getComponentNames.js';
|
|
2
|
-
import { getNames } from './name/getNames.js';
|
|
3
|
-
import { lineToSmallHump } from './name/lineToSmallHump.js';
|
|
4
2
|
import { humpToLine } from './name/humpToLine.js';
|
|
3
|
+
import { getNames } from './name/getNames.js';
|
|
5
4
|
import { lineToLargeHump } from './name/lineToLargeHump.js';
|
|
5
|
+
import { lineToSmallHump } from './name/lineToSmallHump.js';
|
|
6
6
|
|
|
7
7
|
declare const index_getComponentNames: typeof getComponentNames;
|
|
8
8
|
declare const index_getNames: typeof getNames;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
import { getStartSame } from './basic/string/getStartSame.js';
|
|
5
4
|
import { firstUpper } from './basic/string/firstUpper.js';
|
|
5
|
+
import { getStartSame } from './basic/string/getStartSame.js';
|
|
6
6
|
import { getStartSames } from './basic/string/getStartSames.js';
|
|
7
7
|
|
|
8
8
|
declare const index_appearNum: typeof appearNum;
|