@fangzhongya/utils 0.0.6-1 → 0.0.6-2
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/index.cjs +13 -9
- package/dist/basic/index.d.ts +5 -1
- package/dist/basic/index.js +12 -8
- package/dist/basic/string/appearNum.cjs +7 -0
- package/dist/basic/string/appearNum.d.ts +9 -0
- package/dist/basic/string/appearNum.js +7 -0
- package/dist/basic/string/appearNumSeat.cjs +7 -0
- package/dist/basic/string/appearNumSeat.d.ts +9 -0
- package/dist/basic/string/appearNumSeat.js +7 -0
- package/dist/basic/string/getStartSame.cjs +7 -0
- package/dist/basic/string/getStartSame.d.ts +6 -0
- package/dist/basic/string/getStartSame.js +7 -0
- package/dist/basic/string/getStartSames.cjs +7 -0
- package/dist/basic/string/getStartSames.d.ts +6 -0
- package/dist/basic/string/getStartSames.js +7 -0
- package/dist/basic/string/index.cjs +18 -2
- package/dist/basic/string/index.d.ts +4 -0
- package/dist/basic/string/index.js +18 -2
- package/dist/chunk-2BY5RQHU.cjs +23 -0
- package/dist/chunk-554L4Z7N.cjs +28 -0
- package/dist/chunk-5RFKTFSS.js +17 -0
- package/dist/chunk-7DTHADVK.js +18 -0
- package/dist/chunk-A276ZDLP.js +19 -0
- package/dist/chunk-DILKJQYV.cjs +9 -0
- package/dist/{chunk-34IFL7OR.js → chunk-EKPIFODS.js} +4 -4
- package/dist/{chunk-YHBKZTYZ.js → chunk-FESWCW7T.js} +3 -3
- package/dist/{chunk-W7OSG6B2.js → chunk-G3AKL6ST.js} +5 -5
- package/dist/chunk-GNWP6WL2.js +15 -0
- package/dist/{chunk-OC2MRJDZ.cjs → chunk-IMCJXCTH.cjs} +3 -3
- package/dist/chunk-IRGCP7KH.js +23 -0
- package/dist/chunk-J7S3KBHL.cjs +18 -0
- package/dist/{chunk-TRLNJ6BO.cjs → chunk-JSU6KHXP.cjs} +3 -3
- package/dist/chunk-NCT6AHE4.cjs +36 -0
- package/dist/chunk-OQA35EMO.js +24 -0
- package/dist/chunk-P2BJW4C6.js +25 -0
- package/dist/{chunk-BRNROSJJ.cjs → chunk-P426BDUW.cjs} +4 -4
- package/dist/chunk-POV5YM7P.cjs +15 -0
- package/dist/chunk-PW7RP73J.cjs +19 -0
- package/dist/chunk-RIQILIWY.js +28 -0
- package/dist/chunk-S6JRKYPY.js +23 -0
- package/dist/chunk-SYXWQKOO.cjs +28 -0
- package/dist/chunk-T22I7TJQ.cjs +25 -0
- package/dist/chunk-T2QKEABG.js +25 -0
- package/dist/chunk-TUNW4BHX.cjs +25 -0
- package/dist/chunk-U7NNQBWE.js +36 -0
- package/dist/{chunk-S7VMX72B.cjs → chunk-UL24YTNH.cjs} +7 -7
- package/dist/{chunk-3YPXLIH5.js → chunk-VHMUSGCJ.js} +3 -3
- package/dist/chunk-WAUWAPXT.js +15 -0
- package/dist/chunk-WMLWU4IM.cjs +15 -0
- package/dist/chunk-X26IWDP4.cjs +24 -0
- package/dist/chunk-XRUVLIEL.cjs +17 -0
- package/dist/chunk-YGJOBIEO.cjs +23 -0
- package/dist/chunk-YNOFNHEK.js +23 -0
- package/dist/chunk-ZEXHP7HI.js +9 -0
- package/dist/chunk-ZQX2TYQB.js +28 -0
- package/dist/chunk-ZZEFL2TE.cjs +23 -0
- package/dist/index-445fe401.d.ts +19 -0
- package/dist/index-a1a99eec.d.ts +25 -0
- package/dist/{index-f9cc2ca2.d.ts → index-a65f6120.d.ts} +1 -1
- package/dist/index-d6d3b4d8.d.ts +19 -0
- package/dist/{index-0cc6b278.d.ts → index-d8958166.d.ts} +1 -1
- package/dist/index.cjs +35 -15
- package/dist/index.d.ts +19 -5
- package/dist/index.js +36 -16
- package/dist/judge/index.cjs +20 -0
- package/dist/judge/index.d.ts +4 -0
- package/dist/judge/index.js +20 -0
- package/dist/judge/matchs.cjs +10 -0
- package/dist/judge/matchs.d.ts +3 -0
- package/dist/judge/matchs.js +10 -0
- package/dist/judge/matchsEnd.cjs +7 -0
- package/dist/judge/matchsEnd.d.ts +3 -0
- package/dist/judge/matchsEnd.js +7 -0
- package/dist/judge/matchsStart.cjs +7 -0
- package/dist/judge/matchsStart.d.ts +3 -0
- package/dist/judge/matchsStart.js +7 -0
- package/dist/judge/matchsWhole.cjs +7 -0
- package/dist/judge/matchsWhole.d.ts +3 -0
- package/dist/judge/matchsWhole.js +7 -0
- package/dist/name/getComponentNames.cjs +3 -3
- package/dist/name/getComponentNames.js +2 -2
- package/dist/name/getNames.cjs +3 -3
- package/dist/name/getNames.js +2 -2
- package/dist/name/index.cjs +7 -7
- package/dist/name/index.d.ts +1 -1
- package/dist/name/index.js +6 -6
- package/dist/urls/getImportUrl.cjs +8 -0
- package/dist/urls/getImportUrl.d.ts +9 -0
- package/dist/urls/getImportUrl.js +8 -0
- package/dist/urls/getImportUrlSuffix.cjs +9 -0
- package/dist/urls/getImportUrlSuffix.d.ts +9 -0
- package/dist/urls/getImportUrlSuffix.js +9 -0
- package/dist/urls/getReplaceUrl.cjs +10 -0
- package/dist/urls/getReplaceUrl.d.ts +8 -0
- package/dist/urls/getReplaceUrl.js +10 -0
- package/dist/urls/getUrlCatalogue.cjs +7 -0
- package/dist/urls/getUrlCatalogue.d.ts +8 -0
- package/dist/urls/getUrlCatalogue.js +7 -0
- package/dist/urls/index.cjs +23 -0
- package/dist/urls/index.d.ts +4 -0
- package/dist/urls/index.js +23 -0
- package/package.json +72 -2
- package/dist/chunk-AH7GPXDD.cjs +0 -20
- package/dist/chunk-PPEJX3ZH.js +0 -20
- package/dist/index-8925a102.d.ts +0 -13
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkXRUVLIELcjs = require('./chunk-XRUVLIEL.cjs');
|
|
4
|
+
|
|
5
|
+
// packages/urls/getImportUrlSuffix.ts
|
|
6
|
+
function getImportUrlSuffix(url, imp) {
|
|
7
|
+
return _chunkXRUVLIELcjs.getImportUrl.call(void 0, url, imp).replace(
|
|
8
|
+
/\.([a-z|A-Z]+)$/,
|
|
9
|
+
""
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.getImportUrlSuffix = getImportUrlSuffix;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/getStartSames.ts
|
|
2
|
+
function getStartSames(str, val) {
|
|
3
|
+
let s = "";
|
|
4
|
+
const vs = [...val];
|
|
5
|
+
let index = 0;
|
|
6
|
+
for (; index < vs.length; index++) {
|
|
7
|
+
const element = vs[index];
|
|
8
|
+
if (element === str.charAt(index)) {
|
|
9
|
+
s += element;
|
|
10
|
+
} else {
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return [s, str.substring(index), val.substring(index)];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.getStartSames = getStartSames;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getImportUrlSuffix
|
|
3
|
+
} from "./chunk-GNWP6WL2.js";
|
|
4
|
+
import {
|
|
5
|
+
getImportUrl
|
|
6
|
+
} from "./chunk-5RFKTFSS.js";
|
|
7
|
+
import {
|
|
8
|
+
getReplaceUrl
|
|
9
|
+
} from "./chunk-P2BJW4C6.js";
|
|
10
|
+
import {
|
|
11
|
+
getUrlCatalogue
|
|
12
|
+
} from "./chunk-ZEXHP7HI.js";
|
|
13
|
+
import {
|
|
14
|
+
__export
|
|
15
|
+
} from "./chunk-UICA3PK6.js";
|
|
16
|
+
|
|
17
|
+
// packages/urls/index.ts
|
|
18
|
+
var urls_exports = {};
|
|
19
|
+
__export(urls_exports, {
|
|
20
|
+
getImportUrl: () => getImportUrl,
|
|
21
|
+
getImportUrlSuffix: () => getImportUrlSuffix,
|
|
22
|
+
getReplaceUrl: () => getReplaceUrl,
|
|
23
|
+
getUrlCatalogue: () => getUrlCatalogue
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
urls_exports
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// packages/judge/matchsStart.ts
|
|
2
|
+
function matchsStart(key, matchs) {
|
|
3
|
+
if (matchs && matchs.length > 0) {
|
|
4
|
+
for (const value of matchs) {
|
|
5
|
+
if (typeof value == "string") {
|
|
6
|
+
if (key.startsWith(value)) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
} else {
|
|
10
|
+
if (value.test(key)) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
} else {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
matchsStart
|
|
23
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkT22I7TJQcjs = require('./chunk-T22I7TJQ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
16
|
+
|
|
17
|
+
// packages/judge/index.ts
|
|
18
|
+
var judge_exports = {};
|
|
19
|
+
_chunk5AZGAKWRcjs.__export.call(void 0, judge_exports, {
|
|
20
|
+
matchs: () => _chunkT22I7TJQcjs.matchs,
|
|
21
|
+
matchsEnd: () => _chunkYGJOBIEOcjs.matchsEnd,
|
|
22
|
+
matchsStart: () => _chunkZZEFL2TEcjs.matchsStart,
|
|
23
|
+
matchsWhole: () => _chunk2BY5RQHUcjs.matchsWhole
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.judge_exports = judge_exports;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkYGJOBIEOcjs = require('./chunk-YGJOBIEO.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkZZEFL2TEcjs = require('./chunk-ZZEFL2TE.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunk2BY5RQHUcjs = require('./chunk-2BY5RQHU.cjs');
|
|
10
|
+
|
|
11
|
+
// packages/judge/matchs.ts
|
|
12
|
+
function matchs(key, matchs2, type) {
|
|
13
|
+
switch (type) {
|
|
14
|
+
case "end":
|
|
15
|
+
return _chunkYGJOBIEOcjs.matchsEnd.call(void 0, key, matchs2);
|
|
16
|
+
case "start":
|
|
17
|
+
return _chunkZZEFL2TEcjs.matchsStart.call(void 0, key, matchs2);
|
|
18
|
+
default:
|
|
19
|
+
return _chunk2BY5RQHUcjs.matchsWhole.call(void 0, key, matchs2);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
exports.matchs = matchs;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
matchsEnd
|
|
3
|
+
} from "./chunk-YNOFNHEK.js";
|
|
4
|
+
import {
|
|
5
|
+
matchsStart
|
|
6
|
+
} from "./chunk-S6JRKYPY.js";
|
|
7
|
+
import {
|
|
8
|
+
matchsWhole
|
|
9
|
+
} from "./chunk-IRGCP7KH.js";
|
|
10
|
+
|
|
11
|
+
// packages/judge/matchs.ts
|
|
12
|
+
function matchs(key, matchs2, type) {
|
|
13
|
+
switch (type) {
|
|
14
|
+
case "end":
|
|
15
|
+
return matchsEnd(key, matchs2);
|
|
16
|
+
case "start":
|
|
17
|
+
return matchsStart(key, matchs2);
|
|
18
|
+
default:
|
|
19
|
+
return matchsWhole(key, matchs2);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
matchs
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkWMLWU4IMcjs = require('./chunk-WMLWU4IM.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkX26IWDP4cjs = require('./chunk-X26IWDP4.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkPW7RP73Jcjs = require('./chunk-PW7RP73J.cjs');
|
|
10
|
+
|
|
11
|
+
// packages/urls/getReplaceUrl.ts
|
|
12
|
+
function getReplaceUrl(url, add) {
|
|
13
|
+
const reg = /[\\|\/]/g;
|
|
14
|
+
const arr = _chunkPW7RP73Jcjs.getStartSames.call(void 0, url, add);
|
|
15
|
+
const uz = _chunkX26IWDP4cjs.appearNumSeat.call(void 0,
|
|
16
|
+
arr[1],
|
|
17
|
+
reg,
|
|
18
|
+
_chunkWMLWU4IMcjs.appearNum.call(void 0, arr[2], reg) + 1
|
|
19
|
+
);
|
|
20
|
+
return add + arr[1].substring(uz);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
exports.getReplaceUrl = getReplaceUrl;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getStartSame
|
|
3
|
+
} from "./chunk-7DTHADVK.js";
|
|
4
|
+
import {
|
|
5
|
+
appearNum
|
|
6
|
+
} from "./chunk-WAUWAPXT.js";
|
|
7
|
+
import {
|
|
8
|
+
appearNumSeat
|
|
9
|
+
} from "./chunk-OQA35EMO.js";
|
|
10
|
+
import {
|
|
11
|
+
getStartSames
|
|
12
|
+
} from "./chunk-A276ZDLP.js";
|
|
13
|
+
import {
|
|
14
|
+
firstUpper
|
|
15
|
+
} from "./chunk-EWJJKQIO.js";
|
|
16
|
+
import {
|
|
17
|
+
firstLower
|
|
18
|
+
} from "./chunk-4OBNLDTJ.js";
|
|
19
|
+
import {
|
|
20
|
+
__export
|
|
21
|
+
} from "./chunk-UICA3PK6.js";
|
|
22
|
+
|
|
23
|
+
// packages/basic/string/index.ts
|
|
24
|
+
var string_exports = {};
|
|
25
|
+
__export(string_exports, {
|
|
26
|
+
appearNum: () => appearNum,
|
|
27
|
+
appearNumSeat: () => appearNumSeat,
|
|
28
|
+
firstLower: () => firstLower,
|
|
29
|
+
firstUpper: () => firstUpper,
|
|
30
|
+
getStartSame: () => getStartSame,
|
|
31
|
+
getStartSames: () => getStartSames
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
string_exports
|
|
36
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJSU6KHXPcjs = require('./chunk-JSU6KHXP.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIMCJXCTHcjs = require('./chunk-IMCJXCTH.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkLTVXRDTDcjs = require('./chunk-LTVXRDTD.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk3OME5O5Gcjs = require('./chunk-3OME5O5G.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2B742V22cjs = require('./chunk-2B742V22.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
@@ -20,8 +20,8 @@ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
|
|
|
20
20
|
// packages/name/index.ts
|
|
21
21
|
var name_exports = {};
|
|
22
22
|
_chunk5AZGAKWRcjs.__export.call(void 0, name_exports, {
|
|
23
|
-
getComponentNames: () =>
|
|
24
|
-
getNames: () =>
|
|
23
|
+
getComponentNames: () => _chunkJSU6KHXPcjs.getComponentNames,
|
|
24
|
+
getNames: () => _chunkIMCJXCTHcjs.getNames,
|
|
25
25
|
humpToLine: () => _chunkLTVXRDTDcjs.humpToLine,
|
|
26
26
|
lineToLargeHump: () => _chunk3OME5O5Gcjs.lineToLargeHump,
|
|
27
27
|
lineToSmallHump: () => _chunk2B742V22cjs.lineToSmallHump
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
humpToLine
|
|
3
|
+
} from "./chunk-J7CICTHH.js";
|
|
1
4
|
import {
|
|
2
5
|
lineToLargeHump
|
|
3
6
|
} from "./chunk-2PY55D6T.js";
|
|
4
7
|
import {
|
|
5
8
|
lineToSmallHump
|
|
6
9
|
} from "./chunk-O3RJ5M35.js";
|
|
7
|
-
import {
|
|
8
|
-
humpToLine
|
|
9
|
-
} from "./chunk-J7CICTHH.js";
|
|
10
10
|
|
|
11
11
|
// packages/name/getNames.ts
|
|
12
12
|
function getNames(name) {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// packages/basic/string/appearNum.ts
|
|
2
|
+
function appearNum(str, t) {
|
|
3
|
+
let reg = t;
|
|
4
|
+
if (typeof t == "string") {
|
|
5
|
+
reg = new RegExp(t, "g");
|
|
6
|
+
}
|
|
7
|
+
let arr = str.match(reg);
|
|
8
|
+
let c = arr ? arr.length : 0;
|
|
9
|
+
console.log(arr);
|
|
10
|
+
return c;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
appearNum
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/appearNum.ts
|
|
2
|
+
function appearNum(str, t) {
|
|
3
|
+
let reg = t;
|
|
4
|
+
if (typeof t == "string") {
|
|
5
|
+
reg = new RegExp(t, "g");
|
|
6
|
+
}
|
|
7
|
+
let arr = str.match(reg);
|
|
8
|
+
let c = arr ? arr.length : 0;
|
|
9
|
+
console.log(arr);
|
|
10
|
+
return c;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.appearNum = appearNum;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/appearNumSeat.ts
|
|
2
|
+
function appearNumSeat(str, t, n) {
|
|
3
|
+
let reg;
|
|
4
|
+
if (typeof t == "string") {
|
|
5
|
+
reg = new RegExp(t, "g");
|
|
6
|
+
} else {
|
|
7
|
+
reg = t;
|
|
8
|
+
}
|
|
9
|
+
let i = 0;
|
|
10
|
+
let s = -1;
|
|
11
|
+
let arr;
|
|
12
|
+
while ((arr = reg.exec(str)) !== null) {
|
|
13
|
+
console.log(arr);
|
|
14
|
+
i++;
|
|
15
|
+
if (i >= n) {
|
|
16
|
+
return arr.index;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return s;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
exports.appearNumSeat = appearNumSeat;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkPW7RP73Jcjs = require('./chunk-PW7RP73J.cjs');
|
|
4
|
+
|
|
5
|
+
// packages/urls/getImportUrl.ts
|
|
6
|
+
function getImportUrl(url, imp) {
|
|
7
|
+
const arr = _chunkPW7RP73Jcjs.getStartSames.call(void 0, url, imp);
|
|
8
|
+
const us = arr[1].split(/\\|\//);
|
|
9
|
+
const ds = us.map(() => {
|
|
10
|
+
return "../";
|
|
11
|
+
});
|
|
12
|
+
return ds.join("") + arr[2].replace(/\\/, "/");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.getImportUrl = getImportUrl;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/judge/matchsEnd.ts
|
|
2
|
+
function matchsEnd(key, matchs) {
|
|
3
|
+
if (matchs && matchs.length > 0) {
|
|
4
|
+
for (const value of matchs) {
|
|
5
|
+
if (typeof value == "string") {
|
|
6
|
+
if (key.endsWith(value)) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
} else {
|
|
10
|
+
if (value.test(key)) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
} else {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.matchsEnd = matchsEnd;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// packages/judge/matchsEnd.ts
|
|
2
|
+
function matchsEnd(key, matchs) {
|
|
3
|
+
if (matchs && matchs.length > 0) {
|
|
4
|
+
for (const value of matchs) {
|
|
5
|
+
if (typeof value == "string") {
|
|
6
|
+
if (key.endsWith(value)) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
} else {
|
|
10
|
+
if (value.test(key)) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
} else {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
matchsEnd
|
|
23
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
matchs
|
|
3
|
+
} from "./chunk-T2QKEABG.js";
|
|
4
|
+
import {
|
|
5
|
+
matchsEnd
|
|
6
|
+
} from "./chunk-YNOFNHEK.js";
|
|
7
|
+
import {
|
|
8
|
+
matchsStart
|
|
9
|
+
} from "./chunk-S6JRKYPY.js";
|
|
10
|
+
import {
|
|
11
|
+
matchsWhole
|
|
12
|
+
} from "./chunk-IRGCP7KH.js";
|
|
13
|
+
import {
|
|
14
|
+
__export
|
|
15
|
+
} from "./chunk-UICA3PK6.js";
|
|
16
|
+
|
|
17
|
+
// packages/judge/index.ts
|
|
18
|
+
var judge_exports = {};
|
|
19
|
+
__export(judge_exports, {
|
|
20
|
+
matchs: () => matchs,
|
|
21
|
+
matchsEnd: () => matchsEnd,
|
|
22
|
+
matchsStart: () => matchsStart,
|
|
23
|
+
matchsWhole: () => matchsWhole
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
judge_exports
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/judge/matchsStart.ts
|
|
2
|
+
function matchsStart(key, matchs) {
|
|
3
|
+
if (matchs && matchs.length > 0) {
|
|
4
|
+
for (const value of matchs) {
|
|
5
|
+
if (typeof value == "string") {
|
|
6
|
+
if (key.startsWith(value)) {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
} else {
|
|
10
|
+
if (value.test(key)) {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
} else {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.matchsStart = matchsStart;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { matchs } from './judge/matchs.js';
|
|
2
|
+
import { matchsEnd } from './judge/matchsEnd.js';
|
|
3
|
+
import { matchsStart } from './judge/matchsStart.js';
|
|
4
|
+
import { matchsWhole } from './judge/matchsWhole.js';
|
|
5
|
+
|
|
6
|
+
declare const index_matchs: typeof matchs;
|
|
7
|
+
declare const index_matchsEnd: typeof matchsEnd;
|
|
8
|
+
declare const index_matchsStart: typeof matchsStart;
|
|
9
|
+
declare const index_matchsWhole: typeof matchsWhole;
|
|
10
|
+
declare namespace index {
|
|
11
|
+
export {
|
|
12
|
+
index_matchs as matchs,
|
|
13
|
+
index_matchsEnd as matchsEnd,
|
|
14
|
+
index_matchsStart as matchsStart,
|
|
15
|
+
index_matchsWhole as matchsWhole,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { index as i };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { firstLower } from './basic/string/firstLower.js';
|
|
2
|
+
import { appearNumSeat } from './basic/string/appearNumSeat.js';
|
|
3
|
+
import { appearNum } from './basic/string/appearNum.js';
|
|
4
|
+
import { firstUpper } from './basic/string/firstUpper.js';
|
|
5
|
+
import { getStartSame } from './basic/string/getStartSame.js';
|
|
6
|
+
import { getStartSames } from './basic/string/getStartSames.js';
|
|
7
|
+
|
|
8
|
+
declare const index_appearNum: typeof appearNum;
|
|
9
|
+
declare const index_appearNumSeat: typeof appearNumSeat;
|
|
10
|
+
declare const index_firstLower: typeof firstLower;
|
|
11
|
+
declare const index_firstUpper: typeof firstUpper;
|
|
12
|
+
declare const index_getStartSame: typeof getStartSame;
|
|
13
|
+
declare const index_getStartSames: typeof getStartSames;
|
|
14
|
+
declare namespace index {
|
|
15
|
+
export {
|
|
16
|
+
index_appearNum as appearNum,
|
|
17
|
+
index_appearNumSeat as appearNumSeat,
|
|
18
|
+
index_firstLower as firstLower,
|
|
19
|
+
index_firstUpper as firstUpper,
|
|
20
|
+
index_getStartSame as getStartSame,
|
|
21
|
+
index_getStartSames as getStartSames,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { index as i };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getNames } from './name/getNames.js';
|
|
2
1
|
import { getComponentNames } from './name/getComponentNames.js';
|
|
2
|
+
import { getNames } from './name/getNames.js';
|
|
3
3
|
import { humpToLine } from './name/humpToLine.js';
|
|
4
4
|
import { lineToLargeHump } from './name/lineToLargeHump.js';
|
|
5
5
|
import { lineToSmallHump } from './name/lineToSmallHump.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getImportUrl } from './urls/getImportUrl.js';
|
|
2
|
+
import { getImportUrlSuffix } from './urls/getImportUrlSuffix.js';
|
|
3
|
+
import { getReplaceUrl } from './urls/getReplaceUrl.js';
|
|
4
|
+
import { getUrlCatalogue } from './urls/getUrlCatalogue.js';
|
|
5
|
+
|
|
6
|
+
declare const index_getImportUrl: typeof getImportUrl;
|
|
7
|
+
declare const index_getImportUrlSuffix: typeof getImportUrlSuffix;
|
|
8
|
+
declare const index_getReplaceUrl: typeof getReplaceUrl;
|
|
9
|
+
declare const index_getUrlCatalogue: typeof getUrlCatalogue;
|
|
10
|
+
declare namespace index {
|
|
11
|
+
export {
|
|
12
|
+
index_getImportUrl as getImportUrl,
|
|
13
|
+
index_getImportUrlSuffix as getImportUrlSuffix,
|
|
14
|
+
index_getReplaceUrl as getReplaceUrl,
|
|
15
|
+
index_getUrlCatalogue as getUrlCatalogue,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { index as i };
|
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,37 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk554L4Z7Ncjs = require('./chunk-554L4Z7N.cjs');
|
|
4
|
+
require('./chunk-POV5YM7P.cjs');
|
|
5
|
+
require('./chunk-XRUVLIEL.cjs');
|
|
6
|
+
require('./chunk-TUNW4BHX.cjs');
|
|
7
|
+
require('./chunk-DILKJQYV.cjs');
|
|
4
8
|
|
|
5
9
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
var _chunkJ7SPTSZMcjs = require('./chunk-J7SPTSZM.cjs');
|
|
11
|
+
require('./chunk-5VQ4EAJZ.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunkUL24YTNHcjs = require('./chunk-UL24YTNH.cjs');
|
|
15
|
+
require('./chunk-JSU6KHXP.cjs');
|
|
16
|
+
require('./chunk-IMCJXCTH.cjs');
|
|
17
|
+
require('./chunk-LTVXRDTD.cjs');
|
|
18
|
+
require('./chunk-3OME5O5G.cjs');
|
|
19
|
+
require('./chunk-2B742V22.cjs');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var _chunkP426BDUWcjs = require('./chunk-P426BDUW.cjs');
|
|
23
|
+
require('./chunk-NCT6AHE4.cjs');
|
|
24
|
+
require('./chunk-J7S3KBHL.cjs');
|
|
10
25
|
require('./chunk-R7G5MSGO.cjs');
|
|
11
26
|
require('./chunk-NRJPCN4J.cjs');
|
|
12
27
|
require('./chunk-3VYRYSWK.cjs');
|
|
28
|
+
require('./chunk-WMLWU4IM.cjs');
|
|
29
|
+
require('./chunk-X26IWDP4.cjs');
|
|
30
|
+
require('./chunk-PW7RP73J.cjs');
|
|
31
|
+
require('./chunk-FXMA7ZCM.cjs');
|
|
32
|
+
require('./chunk-BL4KF5G4.cjs');
|
|
33
|
+
require('./chunk-OQL4GIEJ.cjs');
|
|
34
|
+
require('./chunk-UEVMS6QD.cjs');
|
|
13
35
|
|
|
14
36
|
|
|
15
37
|
var _chunkN6OX2U6Wcjs = require('./chunk-N6OX2U6W.cjs');
|
|
@@ -17,19 +39,17 @@ require('./chunk-XRGLFTH2.cjs');
|
|
|
17
39
|
require('./chunk-ISHLY7WM.cjs');
|
|
18
40
|
|
|
19
41
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-2B742V22.cjs');
|
|
26
|
-
require('./chunk-OQL4GIEJ.cjs');
|
|
27
|
-
require('./chunk-UEVMS6QD.cjs');
|
|
28
|
-
require('./chunk-LTVXRDTD.cjs');
|
|
42
|
+
var _chunkSYXWQKOOcjs = require('./chunk-SYXWQKOO.cjs');
|
|
43
|
+
require('./chunk-T22I7TJQ.cjs');
|
|
44
|
+
require('./chunk-YGJOBIEO.cjs');
|
|
45
|
+
require('./chunk-ZZEFL2TE.cjs');
|
|
46
|
+
require('./chunk-2BY5RQHU.cjs');
|
|
29
47
|
require('./chunk-5AZGAKWR.cjs');
|
|
30
48
|
|
|
31
49
|
|
|
32
50
|
|
|
33
51
|
|
|
34
52
|
|
|
35
|
-
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
exports.basic = _chunkP426BDUWcjs.basic_exports; exports.iss = _chunkN6OX2U6Wcjs.iss_exports; exports.judge = _chunkSYXWQKOOcjs.judge_exports; exports.log = _chunkJ7SPTSZMcjs.log_exports; exports.name = _chunkUL24YTNHcjs.name_exports; exports.urls = _chunk554L4Z7Ncjs.urls_exports;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export { i as basic } from './index-
|
|
2
|
-
export { i as log } from './index-ef15848a.js';
|
|
1
|
+
export { i as basic } from './index-d8958166.js';
|
|
3
2
|
export { i as iss } from './index-24872dab.js';
|
|
4
|
-
export { i as
|
|
3
|
+
export { i as log } from './index-ef15848a.js';
|
|
4
|
+
export { i as name } from './index-a65f6120.js';
|
|
5
|
+
export { i as judge } from './index-445fe401.js';
|
|
6
|
+
export { i as urls } from './index-d6d3b4d8.js';
|
|
5
7
|
import './index-6be6487f.js';
|
|
6
8
|
import './basic/array/isArray.js';
|
|
7
9
|
import './basic/array/toggleArray.js';
|
|
@@ -9,12 +11,24 @@ import './index-3062a21e.js';
|
|
|
9
11
|
import './basic/object/isObject.js';
|
|
10
12
|
import './basic/object/mergeObject.js';
|
|
11
13
|
import './basic/object/unmergeObject.js';
|
|
12
|
-
import './index-
|
|
14
|
+
import './index-a1a99eec.js';
|
|
13
15
|
import './basic/string/firstLower.js';
|
|
16
|
+
import './basic/string/appearNumSeat.js';
|
|
17
|
+
import './basic/string/appearNum.js';
|
|
14
18
|
import './basic/string/firstUpper.js';
|
|
19
|
+
import './basic/string/getStartSame.js';
|
|
20
|
+
import './basic/string/getStartSames.js';
|
|
15
21
|
import './log/styleLog.js';
|
|
16
|
-
import './name/getNames.js';
|
|
17
22
|
import './name/getComponentNames.js';
|
|
23
|
+
import './name/getNames.js';
|
|
18
24
|
import './name/humpToLine.js';
|
|
19
25
|
import './name/lineToLargeHump.js';
|
|
20
26
|
import './name/lineToSmallHump.js';
|
|
27
|
+
import './judge/matchs.js';
|
|
28
|
+
import './judge/matchsEnd.js';
|
|
29
|
+
import './judge/matchsStart.js';
|
|
30
|
+
import './judge/matchsWhole.js';
|
|
31
|
+
import './urls/getImportUrl.js';
|
|
32
|
+
import './urls/getImportUrlSuffix.js';
|
|
33
|
+
import './urls/getReplaceUrl.js';
|
|
34
|
+
import './urls/getUrlCatalogue.js';
|