umt 1.4.2 → 1.5.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.
- package/module/Advance/rangeAdvance.js +1 -1
- package/module/Advance/rangeAdvance.js.map +1 -1
- package/module/Array/chunk.d.ts +2 -1
- package/module/Array/chunk.js +7 -0
- package/module/Array/chunk.js.map +1 -1
- package/module/Array/getArraysCommon.d.ts +1 -1
- package/module/Array/getArraysCommon.js +1 -5
- package/module/Array/getArraysCommon.js.map +1 -1
- package/module/Array/getArraysDiff.d.ts +1 -1
- package/module/Array/getArraysDiff.js.map +1 -1
- package/module/Array/groupBy.d.ts +7 -0
- package/module/Array/groupBy.js +17 -0
- package/module/Array/groupBy.js.map +1 -0
- package/module/Array/index.d.ts +3 -0
- package/module/Array/index.js +3 -0
- package/module/Array/index.js.map +1 -1
- package/module/Array/zip.d.ts +7 -0
- package/module/Array/zip.js +15 -0
- package/module/Array/zip.js.map +1 -0
- package/module/Array/zipLongest.d.ts +10 -0
- package/module/Array/zipLongest.js +15 -0
- package/module/Array/zipLongest.js.map +1 -0
- package/module/Date/getDay.d.ts +1 -1
- package/module/Date/index.d.ts +1 -0
- package/module/Date/index.js +1 -0
- package/module/Date/index.js.map +1 -1
- package/module/Date/isLeapYear.d.ts +6 -0
- package/module/Date/isLeapYear.js +9 -0
- package/module/Date/isLeapYear.js.map +1 -0
- package/module/Date/new.d.ts +2 -2
- package/module/Date/now.d.ts +1 -1
- package/module/Date/now.js +1 -1
- package/module/Date/now.js.map +1 -1
- package/module/IP/isPrivateIp.d.ts +6 -0
- package/module/IP/isPrivateIp.js +17 -0
- package/module/IP/isPrivateIp.js.map +1 -0
- package/module/IP/subnetMaskToCidr.js +2 -2
- package/module/IP/subnetMaskToCidr.js.map +1 -1
- package/module/Simple/Array/index.d.ts +1 -0
- package/module/Simple/Array/index.js +2 -0
- package/module/Simple/Array/index.js.map +1 -0
- package/module/Simple/Date/nowSimple.d.ts +1 -1
- package/module/Simple/Date/nowSimple.js.map +1 -1
- package/module/Simple/Tool/birthdaySimple.d.ts +2 -2
- package/module/Simple/Tool/birthdaySimple.js.map +1 -1
- package/module/Simple/Tool/dayOfWeekSimple.d.ts +2 -2
- package/module/Simple/Tool/dayOfWeekSimple.js.map +1 -1
- package/module/Simple/index.d.ts +1 -0
- package/module/Simple/index.js +1 -0
- package/module/Simple/index.js.map +1 -1
- package/module/String/fromBase64.d.ts +1 -0
- package/module/String/fromBase64.js +4 -0
- package/module/String/fromBase64.js.map +1 -0
- package/module/String/index.d.ts +1 -0
- package/module/String/index.js +1 -0
- package/module/String/index.js.map +1 -1
- package/module/Tool/birthday.d.ts +2 -2
- package/module/Tool/birthday.js.map +1 -1
- package/module/Tool/dayOfWeek.d.ts +2 -2
- package/module/Tool/dayOfWeek.js.map +1 -1
- package/module/Validate/array/core.d.ts +1 -1
- package/module/Validate/array/core.js.map +1 -1
- package/module/Validate/boolean/core.d.ts +1 -1
- package/module/Validate/core/index.d.ts +1 -1
- package/module/Validate/index.d.ts +1 -0
- package/module/Validate/index.js +1 -0
- package/module/Validate/index.js.map +1 -1
- package/module/Validate/isPerfectSquare.d.ts +6 -0
- package/module/Validate/isPerfectSquare.js +13 -0
- package/module/Validate/isPerfectSquare.js.map +1 -0
- package/module/Validate/number/core.d.ts +1 -1
- package/module/Validate/number/double.d.ts +1 -1
- package/module/Validate/number/even.d.ts +1 -1
- package/module/Validate/number/maxValue.d.ts +1 -1
- package/module/Validate/number/minValue.d.ts +1 -1
- package/module/Validate/number/odd.d.ts +1 -1
- package/module/Validate/number/prime.d.ts +1 -1
- package/module/Validate/number/prime.js +1 -1
- package/module/Validate/number/prime.js.map +1 -1
- package/module/Validate/object/core.d.ts +1 -1
- package/module/Validate/string/core.d.ts +1 -1
- package/module/Validate/string/email.d.ts +1 -1
- package/module/Validate/string/length.d.ts +1 -1
- package/module/Validate/string/maxLength.d.ts +1 -1
- package/module/Validate/string/minLength.d.ts +1 -1
- package/module/Validate/string/numberString.d.ts +1 -1
- package/module/Validate/string/numberString.js +1 -1
- package/module/Validate/string/numberString.js.map +1 -1
- package/module/Validate/string/regexMatch.d.ts +1 -1
- package/module/Validate/string/uuid.d.ts +1 -1
- package/module/types/arrayType.d.ts +3 -1
- package/module/types/clockType.d.ts +1 -1
- package/module/types/jokeType.d.ts +1 -1
- package/module/types/logicType.d.ts +1 -1
- package/module/types/mathType.d.ts +1 -1
- package/package.json +19 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeAdvance.js","sourceRoot":"","sources":["../../src/Advance/rangeAdvance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"rangeAdvance.js","sourceRoot":"","sources":["../../src/Advance/rangeAdvance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC;;;;;;;GAOG;AACH,SAAS,YAAY,CACnB,KAAa,EACb,GAAY,EACZ,qBAAoD;IAEpD,IAAI,qBAAqB,EAAE,CAAC;QAC1B,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,KAAK,IAAI,KAAK,GAAG,KAAK,EAAE,KAAK,GAAI,GAAc,EAAE,KAAK,EAAE,EAAE,CAAC;YACzD,qBAAqB,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpD,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC3B,CAAC;AACD,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/module/Array/chunk.d.ts
CHANGED
package/module/Array/chunk.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 配列を指定した数で分割する
|
|
3
|
+
* @param arr 配列
|
|
4
|
+
* @param n 分割数
|
|
5
|
+
* @returns 分割された配列
|
|
6
|
+
* @example chunk([1, 2, 3, 4, 5, 6, 7, 8, 9], 3); // [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
|
|
7
|
+
*/
|
|
1
8
|
export const chunk = (array, n) => {
|
|
2
9
|
const result = [];
|
|
3
10
|
for (let index = 0; index < array.length; index += n) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk.js","sourceRoot":"","sources":["../../src/Array/chunk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chunk.js","sourceRoot":"","sources":["../../src/Array/chunk.ts"],"names":[],"mappings":"AACA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,KAAQ,EACR,CAAI,EACkB,EAAE;IACxB,MAAM,MAAM,GAAU,EAAE,CAAC;IACzB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACrD,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAmB,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,MAA8B,CAAC;AACxC,CAAC,CAAC"}
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* @returns unknown[]
|
|
6
6
|
* @example getArraysCommon([1, 2, 3], [2, 3, 4]); // [2, 3]
|
|
7
7
|
*/
|
|
8
|
-
export declare const getArraysCommon: <
|
|
8
|
+
export declare const getArraysCommon: <O, T extends unknown[] = unknown[]>(array: T, ...arrays: T[]) => O;
|
|
@@ -5,11 +5,7 @@
|
|
|
5
5
|
* @returns unknown[]
|
|
6
6
|
* @example getArraysCommon([1, 2, 3], [2, 3, 4]); // [2, 3]
|
|
7
7
|
*/
|
|
8
|
-
export const getArraysCommon = (
|
|
9
|
-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
10
|
-
array,
|
|
11
|
-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
12
|
-
...arrays) => {
|
|
8
|
+
export const getArraysCommon = (array, ...arrays) => {
|
|
13
9
|
const result = [array, ...arrays].reduce((previous, current) => {
|
|
14
10
|
return previous.filter((item) => current.includes(item));
|
|
15
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getArraysCommon.js","sourceRoot":"","sources":["../../src/Array/getArraysCommon.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG
|
|
1
|
+
{"version":3,"file":"getArraysCommon.js","sourceRoot":"","sources":["../../src/Array/getArraysCommon.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAQ,EACR,GAAG,MAAW,EACd,EAAE;IACF,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,GAAG,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE;QAC7D,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAa,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAM,CAAC;IACzE,CAAC,CAAC,CAAC;IACH,OAAO,MAAsB,CAAC;AAChC,CAAC,CAAC"}
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* @returns unknown[]
|
|
6
6
|
* @example getArraysDiff([1, 2, 3], [2, 3, 4]); // [1, 4]
|
|
7
7
|
*/
|
|
8
|
-
export declare const getArraysDiff: <T>(array: T
|
|
8
|
+
export declare const getArraysDiff: <O, T extends unknown[] = unknown[]>(array: T, ...arrays: T[]) => O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getArraysDiff.js","sourceRoot":"","sources":["../../src/Array/getArraysDiff.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"getArraysDiff.js","sourceRoot":"","sources":["../../src/Array/getArraysDiff.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,KAAQ,EACR,GAAG,MAAW,EACX,EAAE;IACL,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,MAAM,UAAU,GAAG,IAAI,GAAG,EAAK,CAAC;IAEhC,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE,CAAC;QAC5B,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,IAAI,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,UAAU,CAAC,GAAG,CAAC,KAAU,CAAC,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACN,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC,MAAM,CAC1B,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,KAAU,CAAC,CACvB,CAAC;AACpB,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 配列の要素をグループ化する
|
|
3
|
+
* @param array グループ化する配列
|
|
4
|
+
* @param iteratee 各要素に適用するグループ化関数
|
|
5
|
+
* @returns グループ化されたオブジェクト
|
|
6
|
+
*/
|
|
7
|
+
export const groupBy = (array, iteratee) => {
|
|
8
|
+
return array.reduce((accumulator, value, index, array) => {
|
|
9
|
+
const key = iteratee(value, index, array);
|
|
10
|
+
if (!accumulator[key]) {
|
|
11
|
+
accumulator[key] = [];
|
|
12
|
+
}
|
|
13
|
+
accumulator[key].push(value);
|
|
14
|
+
return accumulator;
|
|
15
|
+
}, {});
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=groupBy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groupBy.js","sourceRoot":"","sources":["../../src/Array/groupBy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,KAAU,EACV,QAAoD,EACpC,EAAE;IAClB,OAAO,KAAK,CAAC,MAAM,CACjB,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;QACnC,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;QACxB,CAAC;QACD,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7B,OAAO,WAAW,CAAC;IACrB,CAAC,EACD,EAAoB,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
package/module/Array/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./checkFlagAlignment";
|
|
|
3
3
|
export * from "./chunk";
|
|
4
4
|
export * from "./getArraysCommon";
|
|
5
5
|
export * from "./getArraysDiff";
|
|
6
|
+
export * from "./groupBy";
|
|
6
7
|
export * from "./insertionSort";
|
|
7
8
|
export * from "./mergeSort";
|
|
8
9
|
export * from "./quickSort";
|
|
@@ -11,3 +12,5 @@ export * from "./shuffle";
|
|
|
11
12
|
export * from "./shuffle2DArray";
|
|
12
13
|
export * from "./sum";
|
|
13
14
|
export * from "./timSort";
|
|
15
|
+
export * from "./zip";
|
|
16
|
+
export * from "./zipLongest";
|
package/module/Array/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./checkFlagAlignment";
|
|
|
3
3
|
export * from "./chunk";
|
|
4
4
|
export * from "./getArraysCommon";
|
|
5
5
|
export * from "./getArraysDiff";
|
|
6
|
+
export * from "./groupBy";
|
|
6
7
|
export * from "./insertionSort";
|
|
7
8
|
export * from "./mergeSort";
|
|
8
9
|
export * from "./quickSort";
|
|
@@ -11,4 +12,6 @@ export * from "./shuffle";
|
|
|
11
12
|
export * from "./shuffle2DArray";
|
|
12
13
|
export * from "./sum";
|
|
13
14
|
export * from "./timSort";
|
|
15
|
+
export * from "./zip";
|
|
16
|
+
export * from "./zipLongest";
|
|
14
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Array/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Array/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ZipArrayType } from "../types/arrayType";
|
|
2
|
+
/**
|
|
3
|
+
* 複数の配列を受け取り、それらの配列の要素を組み合わせて新しい配列を作成します。
|
|
4
|
+
* @param {T} arrays - 組み合わせる配列のリスト
|
|
5
|
+
* @returns {ZipArrayType<T>} - 各配列の要素が組み合わされた新しい配列
|
|
6
|
+
*/
|
|
7
|
+
export declare function zip<T extends unknown[][]>(...arrays: T): ZipArrayType<T>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 複数の配列を受け取り、それらの配列の要素を組み合わせて新しい配列を作成します。
|
|
3
|
+
* @param {T} arrays - 組み合わせる配列のリスト
|
|
4
|
+
* @returns {ZipArrayType<T>} - 各配列の要素が組み合わされた新しい配列
|
|
5
|
+
*/
|
|
6
|
+
export function zip(...arrays) {
|
|
7
|
+
if (arrays.length === 0) {
|
|
8
|
+
return [];
|
|
9
|
+
}
|
|
10
|
+
const length = Math.min(...arrays.map((array) => array.length));
|
|
11
|
+
return Array.from({ length }, (_, index) => {
|
|
12
|
+
return arrays.map((array) => array[index]);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=zip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zip.js","sourceRoot":"","sources":["../../src/Array/zip.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,GAAG,CAAwB,GAAG,MAAS;IACrD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,EAAgC,CAAC;IAC1C,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAChE,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;QACzC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7C,CAAC,CAA+B,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ZipArrayType } from "../types/arrayType";
|
|
2
|
+
/**
|
|
3
|
+
* 異なる長さの配列を組み合わせて、最も長い配列の長さに合わせた配列を生成します。
|
|
4
|
+
* 短い配列の不足分は`undefined`で埋められます。
|
|
5
|
+
*
|
|
6
|
+
* @param {T} arrays - 組み合わせる配列のリスト。
|
|
7
|
+
* @returns {ZipArrayType<T>} - 各配列の要素が組み合わされた新しい配列。
|
|
8
|
+
* 最も長い配列の長さに合わせて、短い配列の不足分は`undefined`で埋められます。
|
|
9
|
+
*/
|
|
10
|
+
export declare function zipLongest<T extends unknown[][]>(...arrays: T): ZipArrayType<T>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 異なる長さの配列を組み合わせて、最も長い配列の長さに合わせた配列を生成します。
|
|
3
|
+
* 短い配列の不足分は`undefined`で埋められます。
|
|
4
|
+
*
|
|
5
|
+
* @param {T} arrays - 組み合わせる配列のリスト。
|
|
6
|
+
* @returns {ZipArrayType<T>} - 各配列の要素が組み合わされた新しい配列。
|
|
7
|
+
* 最も長い配列の長さに合わせて、短い配列の不足分は`undefined`で埋められます。
|
|
8
|
+
*/
|
|
9
|
+
export function zipLongest(...arrays) {
|
|
10
|
+
const maxLength = Math.max(...arrays.map((array) => array.length));
|
|
11
|
+
return Array.from({ length: maxLength }, (_, index) => {
|
|
12
|
+
return arrays.map((array) => array[index]);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=zipLongest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zipLongest.js","sourceRoot":"","sources":["../../src/Array/zipLongest.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CACxB,GAAG,MAAS;IAEZ,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;QACpD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7C,CAAC,CAA+B,CAAC;AACnC,CAAC"}
|
package/module/Date/getDay.d.ts
CHANGED
package/module/Date/index.d.ts
CHANGED
package/module/Date/index.js
CHANGED
package/module/Date/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Date/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Date/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 与えられた年が閏年かどうかを判定する
|
|
3
|
+
* @param {number} year - 判定する年
|
|
4
|
+
* @returns {boolean} 閏年であればtrue、そうでなければfalse
|
|
5
|
+
*/
|
|
6
|
+
export const isLeapYear = (year) => {
|
|
7
|
+
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=isLeapYear.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isLeapYear.js","sourceRoot":"","sources":["../../src/Date/isLeapYear.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAW,EAAE;IAClD,OAAO,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,GAAG,GAAG,KAAK,CAAC,CAAC,IAAI,IAAI,GAAG,GAAG,KAAK,CAAC,CAAC;AAClE,CAAC,CAAC"}
|
package/module/Date/new.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hoursType, hoursTypeInt, millisecondsType, millisecondsTypeInt, minutesType, minutesTypeInt, secondsType, secondsTypeInt } from "../types/clockType";
|
|
2
|
-
import { dayType, dayTypeInt, monTypeInt, monTypeZero } from "../types/dateType";
|
|
1
|
+
import type { hoursType, hoursTypeInt, millisecondsType, millisecondsTypeInt, minutesType, minutesTypeInt, secondsType, secondsTypeInt } from "../types/clockType";
|
|
2
|
+
import type { dayType, dayTypeInt, monTypeInt, monTypeZero } from "../types/dateType";
|
|
3
3
|
/**
|
|
4
4
|
* 日付を生成する
|
|
5
5
|
* @param year
|
package/module/Date/now.d.ts
CHANGED
package/module/Date/now.js
CHANGED
package/module/Date/now.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"now.js","sourceRoot":"","sources":["../../src/Date/now.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"now.js","sourceRoot":"","sources":["../../src/Date/now.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,iBAA+B,CAAC,EAAQ,EAAE;IAC5D,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,cAAc,GAAG,SAAS,CAAC,CAAC;AAC3D,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ipToLong } from "./ipToLong";
|
|
2
|
+
import { isInRange } from "./isInRange";
|
|
3
|
+
/**
|
|
4
|
+
* IPアドレスがプライベート範囲にあるかどうかを判定します
|
|
5
|
+
* @param {string} ip - 判定するIPアドレス
|
|
6
|
+
* @returns {boolean} プライベート範囲にあればtrue
|
|
7
|
+
*/
|
|
8
|
+
export const isPrivateIp = (ip) => {
|
|
9
|
+
// プライベートIP範囲の定義
|
|
10
|
+
const privateRanges = [
|
|
11
|
+
{ start: "10.0.0.0", end: "10.255.255.255" },
|
|
12
|
+
{ start: "172.16.0.0", end: "172.31.255.255" },
|
|
13
|
+
{ start: "192.168.0.0", end: "192.168.255.255" },
|
|
14
|
+
];
|
|
15
|
+
return privateRanges.some((range) => isInRange(ip, range.start, ipToLong(range.end)));
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=isPrivateIp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPrivateIp.js","sourceRoot":"","sources":["../../src/IP/isPrivateIp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAU,EAAW,EAAE;IACjD,gBAAgB;IAChB,MAAM,aAAa,GAAG;QACpB,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,gBAAgB,EAAE;QAC5C,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,gBAAgB,EAAE;QAC9C,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,iBAAiB,EAAE;KACjD,CAAC;IAEF,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAClC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAChD,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -6,13 +6,13 @@ import { ipToBinaryString } from "./ipToBinaryString";
|
|
|
6
6
|
* @returns {number} CIDR
|
|
7
7
|
*/
|
|
8
8
|
export const subnetMaskToCidr = (subnetMask) => {
|
|
9
|
-
var _a;
|
|
10
9
|
// サブネットマスクが有効なIPアドレス形式かどうかをチェック
|
|
11
10
|
const octets = subnetMask.split(".").map(Number);
|
|
12
11
|
if (octets.length !== 4 ||
|
|
13
12
|
octets.some((octet) => isValueNaN(octet, true) || octet < 0 || octet > 255)) {
|
|
14
13
|
return 0;
|
|
15
14
|
}
|
|
16
|
-
return
|
|
15
|
+
return ipToBinaryString(subnetMask).match(/1/g)
|
|
16
|
+
.length;
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=subnetMaskToCidr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subnetMaskToCidr.js","sourceRoot":"","sources":["../../src/IP/subnetMaskToCidr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,UAAkB,EAAU,EAAE
|
|
1
|
+
{"version":3,"file":"subnetMaskToCidr.js","sourceRoot":"","sources":["../../src/IP/subnetMaskToCidr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,UAAkB,EAAU,EAAE;IAC7D,gCAAgC;IAChC,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACjD,IACE,MAAM,CAAC,MAAM,KAAK,CAAC;QACnB,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,GAAG,GAAG,CAAC,EAC3E,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IACD,OAAQ,gBAAgB,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,IAAI,CAAsB;SAClE,MAAgB,CAAC;AACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./quickSortSimple";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Simple/Array/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nowSimple.js","sourceRoot":"","sources":["../../../src/Simple/Date/nowSimple.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nowSimple.js","sourceRoot":"","sources":["../../../src/Simple/Date/nowSimple.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,iBAA2C,CAAC,EAAE,EAAE;IACxE,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;QACvC,OAAO,GAAG,CAAC,cAAc,CAAC,CAAC;IAC7B,CAAC;IACD,IAAI,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;QAC7B,OAAO,GAAG,CAAC,MAAM,CAAC,cAAc,CAAiB,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,GAAG,EAAE,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { hoursTypeInt } from "../../types/clockType";
|
|
2
|
+
import type { dayType, monType } from "../../types/dateType";
|
|
3
3
|
export interface BIRTHDAYSIMPLE {
|
|
4
4
|
<T extends monType>(birthdays: Date | `${number}-${T}-${dayType<T>}` | `${number}:${T}:${dayType<T>}` | `${number}/${T}/${dayType<T>}` | {
|
|
5
5
|
year: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"birthdaySimple.js","sourceRoot":"","sources":["../../../src/Simple/Tool/birthdaySimple.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"birthdaySimple.js","sourceRoot":"","sources":["../../../src/Simple/Tool/birthdaySimple.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAY3C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAC7B,SAK8C,EAC9C,iBAA+B,CAAC,EAChC,EAAE;IACF,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;QAClC,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAIvD,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAIvD,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;QAClD,CAAC;QACD,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAIvD,CAAC;QACF,OAAO,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IAClD,CAAC;IACD,IAAI,SAAS,YAAY,IAAI,EAAE,CAAC;QAC9B,OAAO,QAAQ,CACb,SAAS,CAAC,WAAW,EAAE,EACvB,SAAS,CAAC,QAAQ,EAAgB,EAClC,SAAS,CAAC,OAAO,EAA4B,EAC7C,cAAc,CACf,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CACb,SAAS,CAAC,IAAI,EACd,SAAS,CAAC,GAAiB,EAC3B,SAAS,CAAC,GAA6B,EACvC,cAAc,CACf,CAAC;AACJ,CAAC,CAAmB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hoursTypeInt } from "../../types/clockType";
|
|
2
|
-
import { MonthsWith31Days, MonthsWith31DaysInt, MonthsWithout31Days, MonthsWithout31DaysInt, convertMonTypeZero, dayType, dayTypeInt } from "../../types/dateType";
|
|
1
|
+
import type { hoursTypeInt } from "../../types/clockType";
|
|
2
|
+
import type { MonthsWith31Days, MonthsWith31DaysInt, MonthsWithout31Days, MonthsWithout31DaysInt, convertMonTypeZero, dayType, dayTypeInt } from "../../types/dateType";
|
|
3
3
|
/**
|
|
4
4
|
* 曜日を取得する
|
|
5
5
|
* @param properties - 年月日
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dayOfWeekSimple.js","sourceRoot":"","sources":["../../../src/Simple/Tool/dayOfWeekSimple.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dayOfWeekSimple.js","sourceRoot":"","sources":["../../../src/Simple/Tool/dayOfWeekSimple.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AA8B7C,SAAS,eAAe,CAOtB,UAyBQ,EACR,iBAA+B,CAAC;IAEhC,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,UAAU;iBAChC,KAAK,CAAC,GAAG,CAAC;gBACX,4DAA4D;iBAC3D,GAAG,CAAC,MAAM,CAAQ,CAAC;YACtB,OAAO,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;QACvD,CAAC;QACD,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,UAAU;iBAChC,KAAK,CAAC,GAAG,CAAC;gBACX,4DAA4D;iBAC3D,GAAG,CAAC,MAAM,CAAQ,CAAC;YACtB,OAAO,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;QACvD,CAAC;QACD,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,UAAU;aAChC,KAAK,CAAC,GAAG,CAAC;YACX,4DAA4D;aAC3D,GAAG,CAAC,MAAM,CAAQ,CAAC;QACtB,OAAO,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;IACvD,CAAC;IACD,IAAI,UAAU,YAAY,IAAI,EAAE,CAAC;QAC/B,OAAO,SAAS,CACd;YACE,IAAI,EAAE,UAAU,CAAC,WAAW,EAAE;YAC9B,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,GAAG,CAAC,CAER;YACvB,GAAG,EAAE,UAAU,CAAC,OAAO,EAEtB;SACF,EACD,cAAc,CACf,CAAC;IACJ,CAAC;IACD,OAAO,SAAS,CACd,UAIC,EACD,cAAc,CACf,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/module/Simple/index.d.ts
CHANGED
package/module/Simple/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Simple/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Simple/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fromBase64: (string_: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fromBase64.js","sourceRoot":"","sources":["../../src/String/fromBase64.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAe,EAAU,EAAE;IACpD,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC,CAAC"}
|
package/module/String/index.d.ts
CHANGED
package/module/String/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/String/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/String/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hoursTypeInt } from "../types/clockType";
|
|
2
|
-
import { dayTypeInt, monTypeInt } from "../types/dateType";
|
|
1
|
+
import type { hoursTypeInt } from "../types/clockType";
|
|
2
|
+
import type { dayTypeInt, monTypeInt } from "../types/dateType";
|
|
3
3
|
/**
|
|
4
4
|
* @param {number} year
|
|
5
5
|
* @param {number} mon
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"birthday.js","sourceRoot":"","sources":["../../src/Tool/birthday.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"birthday.js","sourceRoot":"","sources":["../../src/Tool/birthday.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,IAAY,EACZ,GAAM,EACN,GAAkB,EAClB,iBAA+B,CAAC,EAChC,EAAE;IACF,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAClD,MAAM,OAAO,GAAG,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACrD,MAAM,CAAC,GACL,OAAO;QACP,UAAU,CACR,OAAO,CAAC,WAAW,EAAE,EACrB,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAe,EACnC,IAAI,CAAC,MAAM,EAAmB,CAC/B;QACC,CAAC,CAAC,CAAC,GAAG,CAAC;QACP,CAAC,CAAC,CAAC,CAAC;IACR,OAAO,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACnC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { hoursTypeInt } from "../types/clockType";
|
|
2
|
-
import { dayTypeInt, monTypeInt } from "../types/dateType";
|
|
1
|
+
import type { hoursTypeInt } from "../types/clockType";
|
|
2
|
+
import type { dayTypeInt, monTypeInt } from "../types/dateType";
|
|
3
3
|
/**
|
|
4
4
|
* 曜日を取得する
|
|
5
5
|
* @param properties
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dayOfWeek.js","sourceRoot":"","sources":["../../src/Tool/dayOfWeek.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dayOfWeek.js","sourceRoot":"","sources":["../../src/Tool/dayOfWeek.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,UAIC,EACD,iBAA+B,CAAC,EAChC,EAAE;IACF,MAAM,OAAO,GAAG,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,UAAU,CACf,UAAU,CAAC,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,EACxC,UAAU,CAAC,GAAG,IAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAgB,EAC1D,UAAU,CAAC,GAAG,IAAK,OAAO,CAAC,OAAO,EAAoB,CACvD,CAAC,MAAM,EAAE,CAAC;IACb,CAAC;IACD,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Types, ValidateCoreReturnType, ValidateType } from "../../Validate/type";
|
|
1
|
+
import type { Types, ValidateCoreReturnType, ValidateType } from "../../Validate/type";
|
|
2
2
|
export declare const array: <A extends string | number | boolean, O extends { [P in Types<A>]: (value: ValidateType<P>) => ValidateCoreReturnType<ValidateType<P>>; } = { [P_1 in Types<A>]: (value: ValidateType<P_1>) => ValidateCoreReturnType<ValidateType<P_1>>; }>(option?: O, message?: string) => (values: A[]) => ValidateCoreReturnType<A[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/Validate/array/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/Validate/array/core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAOnD,MAAM,CAAC,MAAM,KAAK,GAAG,CAYnB,SAAY,EAAO,EACnB,OAAgB,EAChB,EAAE;IACF,OAAO,CAAC,MAAW,EAA+B,EAAE;QAClD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YACrB,OAAO;gBACL,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,OAAO,IAAI,EAAE;gBACtB,IAAI,EAAE,MAAM;aACb,CAAC;QACJ,CAAC;QACD,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YACvB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBAC3B,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,KAAiB,CAAC,CAAC;gBACnD,IAAI,CAAC,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG,KAAc,EAAE,QAAQ,CAAA,EAAE,CAAC;oBAC1C,OAAO;wBACL,QAAQ,EAAE,KAAK;wBACf,OAAO,EAAE,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG,KAAc,EAAE,OAAO,KAAI,EAAE;wBAClD,IAAI,EAAE,MAAM;qBACb,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateCoreReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateCoreReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const boolean: (message?: string) => (value: boolean) => ValidateCoreReturnType<boolean>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Types, ValidateCoreReturnType, ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { Types, ValidateCoreReturnType, ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const core: <T>(type: Types<T>) => <O extends ValidateReturnType<T>[]>(value: T, option?: O, message?: string) => ValidateCoreReturnType<T>;
|
package/module/Validate/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Validate/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,iBAAiB;AACjB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Validate/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,iBAAiB;AACjB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 与えられた数値が完全平方数かどうかを判定する
|
|
3
|
+
* @param {number} number_ - 判定する数値
|
|
4
|
+
* @returns {boolean} 完全平方数であればtrue、そうでなければfalse
|
|
5
|
+
*/
|
|
6
|
+
export const isPerfectSquare = (number_) => {
|
|
7
|
+
if (number_ < 0) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
const sqrt = Math.sqrt(number_);
|
|
11
|
+
return sqrt === Math.floor(sqrt);
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=isPerfectSquare.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPerfectSquare.js","sourceRoot":"","sources":["../../src/Validate/isPerfectSquare.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAe,EAAW,EAAE;IAC1D,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChC,OAAO,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const number: <T extends ValidateReturnType<number>[]>(option?: T | undefined, message?: string) => (value: number) => import("../../Validate/type").ValidateCoreReturnType<number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const double: (message?: string) => ValidateReturnType<number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const even: (message?: string) => ValidateReturnType<number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const maxValue: (maxValue: number, message?: string) => ValidateReturnType<number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const minValue: (minValue: number, message?: string) => ValidateReturnType<number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const odd: (message?: string) => ValidateReturnType<number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const prime: (message?: string) => ValidateReturnType<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prime.js","sourceRoot":"","sources":["../../../src/Validate/number/prime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prime.js","sourceRoot":"","sources":["../../../src/Validate/number/prime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGzD,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,OAAgB,EAA8B,EAAE;IACpE,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,OAAO;QACP,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC;KAC1C,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValidateCoreReturnType, ValidateType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateCoreReturnType, ValidateType } from "../../Validate/type";
|
|
2
2
|
export declare const object: <T extends {
|
|
3
3
|
[key: string]: (value: any) => ValidateCoreReturnType<any>;
|
|
4
4
|
}>(option?: T, message?: string) => (value: { [key in keyof T]: ValidateType<ReturnType<T[key]>["type"]>; }) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const string: <T extends ValidateReturnType<string>[]>(option?: T | undefined, message?: string) => (value: string) => import("../../Validate/type").ValidateCoreReturnType<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const email: (message?: string) => ValidateReturnType<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const length_: (length: number, message?: string) => ValidateReturnType<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const maxLength: (maxLength: number, message?: string) => ValidateReturnType<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const minLength: (minLength: number, message?: string) => ValidateReturnType<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const numberString: (message?: string) => ValidateReturnType<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numberString.js","sourceRoot":"","sources":["../../../src/Validate/string/numberString.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"numberString.js","sourceRoot":"","sources":["../../../src/Validate/string/numberString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAG/C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAgB,EAA8B,EAAE;IAC3E,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,OAAO;QACP,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;KACrC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const regexMatch: (pattern: RegExp, message?: string) => ValidateReturnType<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidateReturnType } from "../../Validate/type";
|
|
1
|
+
import type { ValidateReturnType } from "../../Validate/type";
|
|
2
2
|
export declare const uuid: (versions?: (1 | 2 | 3 | 4 | 5)[], message?: string) => ValidateReturnType<string>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Length } from "./logicType";
|
|
1
|
+
import type { Length } from "./logicType";
|
|
2
2
|
type Chunk<T, N extends number, C extends unknown[] = [], R extends unknown[] = []> = T extends [infer F, ...infer L] ? Length<C> extends N ? Chunk<L, N, [F], [...R, C]> : Chunk<L, N, [...C, F], R> : Length<C> extends 0 ? Length<R> extends 0 ? T[] : R : [...R, C];
|
|
3
3
|
export type ChunkArrayType<T, N extends number> = Chunk<T, N>;
|
|
4
|
+
type ZIP<T, O extends unknown[] = []> = T extends [infer Head, ...infer Tail] ? Head extends unknown[] ? ZIP<Tail, [...O, Head[number]]> : never : T extends [] ? O[] : T;
|
|
5
|
+
export type ZipArrayType<T extends unknown[][]> = ZIP<T>;
|
|
4
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { doubleDigitInt, int, tripleDigitInt, upToFifty, upToForty, upToSixty, upToThirty, upToTwenty } from "./int";
|
|
1
|
+
import type { doubleDigitInt, int, tripleDigitInt, upToFifty, upToForty, upToSixty, upToThirty, upToTwenty } from "./int";
|
|
2
2
|
export type hoursAmInt = int | 10 | 11 | 12;
|
|
3
3
|
export type hoursAm = `0${int}` | `${10 | 11 | 12}`;
|
|
4
4
|
export type hoursPmInt = 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Add, Multiply, Subtract } from "./mathType";
|
|
1
|
+
import type { Add, Multiply, Subtract } from "./mathType";
|
|
2
2
|
export type ThreeStepsForwardTwoStepsBack<T extends number> = T extends 1 ? 1 : T extends 2 ? 2 : T extends 3 ? 3 : Add<3, Multiply<3, Subtract<T, 3>>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Subtract } from "./mathType";
|
|
1
|
+
import type { Subtract } from "./mathType";
|
|
2
2
|
export type isBoolean<X> = X extends number ? X extends 0 ? false : true : X extends string ? X extends "" ? false : true : X extends boolean ? X : X extends undefined ? false : X extends null ? false : X extends object ? X extends unknown[] ? X extends [] ? false : true : true : X extends (...arguments_: unknown[]) => unknown ? false : true;
|
|
3
3
|
export type AND<X, Y> = isBoolean<X> extends true ? isBoolean<Y> extends true ? true : false : false;
|
|
4
4
|
export type OR<X, Y> = isBoolean<X> extends true ? true : isBoolean<Y> extends true ? true : false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BGreaterThanA, Length } from "./logicType";
|
|
1
|
+
import type { BGreaterThanA, Length } from "./logicType";
|
|
2
2
|
export type NumberToArray<T extends number, U extends number[] = []> = U["length"] extends T ? U : NumberToArray<T, [...U, U["length"]]>;
|
|
3
3
|
export type Add<X extends number, Y extends number> = `${X}` extends `-${infer N extends number}` ? `${Y}` extends `-${infer M extends number}` ? `-${Add<N, M>}` extends `${infer R extends number}` ? R : never : Subtract<Y, N> : `${Y}` extends `-${infer M extends number}` ? Subtract<X, M> : Length<[...NumberToArray<X>, ...NumberToArray<Y>]>;
|
|
4
4
|
export type Subtract<A extends number, B extends number> = `${A}` extends `-${infer N extends number}` ? `${B}` extends `-${infer M extends number}` ? Subtract<M, N> : `-${Add<N, B>}` extends `${infer R extends number}` ? R : never : `${B}` extends `-${infer M extends number}` ? Length<[...NumberToArray<A>, ...NumberToArray<M>]> : NumberToArray<A> extends [...NumberToArray<B>, ...infer R] ? Length<R> : NumberToArray<B> extends [...NumberToArray<A>, ...infer R] ? `-${Length<R>}` extends `${infer M extends number}` ? M : never : never;
|
package/package.json
CHANGED
|
@@ -5,24 +5,25 @@
|
|
|
5
5
|
},
|
|
6
6
|
"description": "個人的に作った便利関数集 個人用途なので破壊的変更がある可能性があります。 Main Packageに依存関係はありません。 JavaScriptからの呼び出しに対応しています。",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@biomejs/biome": "1.
|
|
9
|
-
"@swc/core": "^1.
|
|
10
|
-
"@swc/jest": "^0.2.
|
|
11
|
-
"@types/jest": "^29.5.
|
|
12
|
-
"@types/node": "^20.
|
|
13
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
14
|
-
"@typescript-eslint/parser": "^
|
|
15
|
-
"bun-types": "^1.0.
|
|
16
|
-
"
|
|
17
|
-
"eslint
|
|
18
|
-
"
|
|
8
|
+
"@biomejs/biome": "1.5.3",
|
|
9
|
+
"@swc/core": "^1.4.0",
|
|
10
|
+
"@swc/jest": "^0.2.36",
|
|
11
|
+
"@types/jest": "^29.5.12",
|
|
12
|
+
"@types/node": "^20.11.17",
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
|
14
|
+
"@typescript-eslint/parser": "^7.0.1",
|
|
15
|
+
"bun-types": "^1.0.26",
|
|
16
|
+
"dependency-cruiser": "^16.2.0",
|
|
17
|
+
"eslint": "^8.56.0",
|
|
18
|
+
"eslint-plugin-unicorn": "^51.0.1",
|
|
19
|
+
"gh-pages": "^6.1.1",
|
|
19
20
|
"jest": "^29.7.0",
|
|
20
|
-
"ts-jest": "^29.1.
|
|
21
|
-
"ts-node": "^10.9.
|
|
21
|
+
"ts-jest": "^29.1.2",
|
|
22
|
+
"ts-node": "^10.9.2",
|
|
22
23
|
"tsc-alias": "^1.8.8",
|
|
23
|
-
"typedoc": "^0.25.
|
|
24
|
-
"typescript": "^5.3.
|
|
25
|
-
"umt": "^1.
|
|
24
|
+
"typedoc": "^0.25.8",
|
|
25
|
+
"typescript": "^5.3.3",
|
|
26
|
+
"umt": "^1.4.2"
|
|
26
27
|
},
|
|
27
28
|
"directories": {
|
|
28
29
|
"doc": "doc",
|
|
@@ -51,9 +52,9 @@
|
|
|
51
52
|
"test": "jest",
|
|
52
53
|
"test-debug": "cd test && tsc",
|
|
53
54
|
"ts-node": "yarn build && ts-node --project tmp/tsconfig.json tmp/src/index.ts",
|
|
54
|
-
"lint": "yarn eslint --fix && biome
|
|
55
|
+
"lint": "yarn eslint --fix && biome ci . && tsc",
|
|
55
56
|
"format": "biome format . --write",
|
|
56
57
|
"eslint": "eslint src"
|
|
57
58
|
},
|
|
58
|
-
"version": "1.
|
|
59
|
+
"version": "1.5.1"
|
|
59
60
|
}
|