diff --git a/packages/core/src/predicate/index.ts b/packages/core/src/predicate/index.ts index 76f405d..6c0b0dd 100644 --- a/packages/core/src/predicate/index.ts +++ b/packages/core/src/predicate/index.ts @@ -1,5 +1,13 @@ +export { isBoolean } from './isBoolean.ts'; +export { isDate } from './isDate.ts'; export { isEqual } from './isEqual.ts'; +export { isFunction } from './isFunction.ts'; export { isNil } from './isNil.ts'; export { isNotNil } from './isNotNil.ts'; export { isNull } from './isNull.ts'; +export { isNumber } from './isNumber.ts'; +export { isObject } from './isObject.ts'; +export { isRegExp } from './isRegExp.ts'; +export { isString } from './isString.ts'; export { isUndefined } from './isUndefined.ts'; +export { isWindow } from './isWindow.ts'; diff --git a/scripts/changeLog.json b/scripts/changeLog.json index 3a03a35..f32af00 100644 --- a/scripts/changeLog.json +++ b/scripts/changeLog.json @@ -1,4 +1,44 @@ [ + { + "hash": "a0635cb44eeb737fe0b1c6c3ef6fdacaea6cdde9", + "date": "Thu Jul 18 13:27:08 2024 +0700", + "message": "chore: release v1.0.12", + "refs": "tag: v1.0.12", + "body": "", + "author_name": "hunghg255", + "author_email": "giahunghust@gmail.com", + "version": "v1.0.12" + }, + { + "hash": "9da0c8c8b4421654986029a7cf4fc347ce5363f7", + "date": "Thu Jul 18 13:22:51 2024 +0700", + "message": "chore: release v1.0.11", + "refs": "tag: v1.0.11", + "body": "", + "author_name": "hunghg255", + "author_email": "giahunghust@gmail.com", + "version": "v1.0.11" + }, + { + "hash": "fd16d0f26080855d39dfdd17cb9ea456261cd56b", + "date": "Thu Jul 18 13:16:39 2024 +0700", + "message": "chore: release v1.0.10", + "refs": "tag: v1.0.10", + "body": "", + "author_name": "hunghg255", + "author_email": "giahunghust@gmail.com", + "version": "v1.0.10" + }, + { + "hash": "4e4063004ed9416db474442d37ef40828feb2656", + "date": "Thu Jul 18 13:01:17 2024 +0700", + "message": "chore: release v1.0.9", + "refs": "tag: v1.0.9", + "body": "", + "author_name": "hunghg255", + "author_email": "giahunghust@gmail.com", + "version": "v1.0.9" + }, { "hash": "8bc93607abed18bb3b7365f7f1e27e97be70d684", "date": "Thu Jul 18 00:30:42 2024 +0700", diff --git a/scripts/contributions.json b/scripts/contributions.json index b9f4d24..5ee47b3 100644 --- a/scripts/contributions.json +++ b/scripts/contributions.json @@ -2,665 +2,665 @@ "AbortError.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "chunk.ts": [ + "debounce.ts": [ + { + "name": "hunghg255", + "count": 2, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "negate.ts": [ { "name": "hunghg255", "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], + "noop.ts": [ + { + "name": "hunghg255", + "count": 2, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "once.ts": [ + { + "name": "hunghg255", + "count": 2, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "throttle.ts": [ + { + "name": "hunghg255", + "count": 2, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "chunk.ts": [ + { + "name": "hunghg255", + "count": 3, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], "compact.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "countBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "difference.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "differenceBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "differenceWith.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "drop.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "dropRight.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "dropRightWhile.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "dropWhile.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "fill.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "flatten.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "flattenDeep.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "forEachRight.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "groupBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "head.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "initial.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "intersection.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "intersectionBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "intersectionWith.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "keyBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "last.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "maxBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "minBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "orderBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "partition.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "sample.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "sampleSize.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "shuffle.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "tail.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "take.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "takeRight.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "takeRightWhile.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "takeWhile.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "toFilled.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "union.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "unionBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "unionWith.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "uniq.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "uniqBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "uniqWith.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "unzip.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "unzipWith.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "without.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "xor.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "xorBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "xorWith.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "zip.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "zipObject.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "zipWith.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "debounce.ts": [ + "clone.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "negate.ts": [ + "invert.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "noop.ts": [ + "omit.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "once.ts": [ + "omitBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "throttle.ts": [ + "pick.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "pickBy.ts": [ + { + "name": "hunghg255", + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "clamp.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "inRange.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "lerp.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "mean.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "meanBy.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "random.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "randomInt.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "range.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "remap.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "round.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "sum.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "sumBy.ts": [ { "name": "hunghg255", - "count": 1, - "hash": "3732f6a5b9cdd33a2f401844e7daf029" - } - ], - "clone.ts": [ - { - "name": "hunghg255", - "count": 1, - "hash": "3732f6a5b9cdd33a2f401844e7daf029" - } - ], - "invert.ts": [ - { - "name": "hunghg255", - "count": 1, - "hash": "3732f6a5b9cdd33a2f401844e7daf029" - } - ], - "omit.ts": [ - { - "name": "hunghg255", - "count": 1, - "hash": "3732f6a5b9cdd33a2f401844e7daf029" - } - ], - "omitBy.ts": [ - { - "name": "hunghg255", - "count": 1, - "hash": "3732f6a5b9cdd33a2f401844e7daf029" - } - ], - "pick.ts": [ - { - "name": "hunghg255", - "count": 1, - "hash": "3732f6a5b9cdd33a2f401844e7daf029" - } - ], - "pickBy.ts": [ - { - "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "delay.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "pChain.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isBoolean.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isDate.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isEqual.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isFunction.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isNil.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isNotNil.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isNull.ts": [ { "name": "hunghg255", - "count": 2, + "count": 3, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isNumber.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isObject.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isRegExp.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isString.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isUndefined.ts": [ { "name": "hunghg255", - "count": 2, + "count": 3, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "isWindow.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "camelCase.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "capitalize.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "kebabCase.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "lowerCase.ts": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "snakeCase.ts": [ { "name": "hunghg255", - "count": 2, + "count": 3, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], "array": [ { "name": "hunghg255", - "count": 1, + "count": 2, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ] diff --git a/scripts/funcUtils.json b/scripts/funcUtils.json index 66e5298..6ea397d 100644 --- a/scripts/funcUtils.json +++ b/scripts/funcUtils.json @@ -6,6 +6,41 @@ "AbortError" ] }, + { + "name": "debounce.ts", + "package": "function", + "alias": [ + "debounce" + ] + }, + { + "name": "negate.ts", + "package": "function", + "alias": [ + "negate" + ] + }, + { + "name": "noop.ts", + "package": "function", + "alias": [ + "noop" + ] + }, + { + "name": "once.ts", + "package": "function", + "alias": [ + "once" + ] + }, + { + "name": "throttle.ts", + "package": "function", + "alias": [ + "throttle" + ] + }, { "name": "chunk.ts", "package": "array", @@ -357,38 +392,45 @@ ] }, { - "name": "debounce.ts", - "package": "function", + "name": "clone.ts", + "package": "object", "alias": [ - "debounce" + "clone" ] }, { - "name": "negate.ts", - "package": "function", + "name": "invert.ts", + "package": "object", "alias": [ - "negate" + "invert" ] }, { - "name": "noop.ts", - "package": "function", + "name": "omit.ts", + "package": "object", "alias": [ - "noop" + "omit" ] }, { - "name": "once.ts", - "package": "function", + "name": "omitBy.ts", + "package": "object", "alias": [ - "once" + "omitBy" ] }, { - "name": "throttle.ts", - "package": "function", + "name": "pick.ts", + "package": "object", "alias": [ - "throttle" + "pick" + ] + }, + { + "name": "pickBy.ts", + "package": "object", + "alias": [ + "pickBy" ] }, { @@ -475,48 +517,6 @@ "sumBy" ] }, - { - "name": "clone.ts", - "package": "object", - "alias": [ - "clone" - ] - }, - { - "name": "invert.ts", - "package": "object", - "alias": [ - "invert" - ] - }, - { - "name": "omit.ts", - "package": "object", - "alias": [ - "omit" - ] - }, - { - "name": "omitBy.ts", - "package": "object", - "alias": [ - "omitBy" - ] - }, - { - "name": "pick.ts", - "package": "object", - "alias": [ - "pick" - ] - }, - { - "name": "pickBy.ts", - "package": "object", - "alias": [ - "pickBy" - ] - }, { "name": "delay.ts", "package": "promise", diff --git a/scripts/genFuncUtils.ts b/scripts/genFuncUtils.ts index 190b8c9..2a2d633 100644 --- a/scripts/genFuncUtils.ts +++ b/scripts/genFuncUtils.ts @@ -17,7 +17,6 @@ import { globby } from 'globby'; const files = await globby('packages/core/src/**/*.ts', { ignore: ['packages/core/src/index.ts', 'packages/core/src/**/*/index.ts', 'packages/core/src/**/*.spec.ts', 'packages/core/src/string/_internal/*.ts', 'packages/core/src/predicate/_internal/*.ts', 'packages/core/src/compat/_internal/*.ts'], // Exclude .spec.ts files }) - // console.log(files); const newFile = files.map((v: any) => { const vv = v.replace('packages/core/', ''); @@ -29,7 +28,6 @@ import { globby } from 'globby'; alias: [i.replace('.ts', '')], } }); - console.log(newFile); fs.writeFileSync('./scripts/funcUtils.json', JSON.stringify(newFile, null, 2)); })()