@koine/utils 2.0.0-beta.74 → 2.0.0-beta.76
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/Defer.js +1 -11
- package/Emitter.js +1 -20
- package/accentSets.js +1 -30
- package/addOrReplaceAtIdx.js +1 -15
- package/areEqual.js +1 -46
- package/arrayFilterFalsy.js +1 -2
- package/arrayFindLastIndex.js +1 -9
- package/arrayOfAll.js +1 -2
- package/arraySum.js +1 -2
- package/arrayToLookup.js +1 -5
- package/arrayUniqueByProperties.js +1 -2
- package/buildUrlQueryString.js +1 -21
- package/capitalize.js +1 -3
- package/changeCaseCamel.js +1 -19
- package/changeCaseCapital.js +1 -12
- package/changeCaseConstant.js +1 -8
- package/changeCaseDot.js +1 -3
- package/changeCaseHelpers.js +1 -71
- package/changeCaseKebab.js +1 -3
- package/changeCaseNone.js +1 -8
- package/changeCasePascal.js +1 -11
- package/changeCasePascalSnake.js +1 -3
- package/changeCasePath.js +1 -3
- package/changeCaseSentence.js +1 -17
- package/changeCaseSnake.js +1 -3
- package/changeCaseTrain.js +1 -3
- package/chunkByChunks.js +1 -32
- package/chunkBySize.js +1 -8
- package/cjs/Defer.d.ts +6 -0
- package/cjs/Emitter.d.ts +7 -0
- package/cjs/accentSets.d.ts +3 -0
- package/cjs/addOrReplaceAtIdx.d.ts +2 -0
- package/cjs/areEqual.d.ts +4 -0
- package/cjs/arrayFilterFalsy.d.ts +2 -0
- package/cjs/arrayFindLastIndex.d.ts +2 -0
- package/cjs/arrayOfAll.d.ts +3 -0
- package/cjs/arraySum.d.ts +2 -0
- package/cjs/arrayToLookup.d.ts +2 -0
- package/cjs/arrayUniqueByProperties.d.ts +2 -0
- package/cjs/buildUrlQueryString.d.ts +3 -0
- package/cjs/capitalize.d.ts +2 -0
- package/cjs/changeCaseCamel.d.ts +3 -0
- package/cjs/changeCaseCapital.d.ts +3 -0
- package/cjs/changeCaseConstant.d.ts +3 -0
- package/cjs/changeCaseDot.d.ts +3 -0
- package/cjs/changeCaseHelpers.d.ts +14 -0
- package/cjs/changeCaseKebab.d.ts +3 -0
- package/cjs/changeCaseNone.d.ts +3 -0
- package/cjs/changeCasePascal.d.ts +3 -0
- package/cjs/changeCasePascalSnake.d.ts +3 -0
- package/cjs/changeCasePath.d.ts +3 -0
- package/cjs/changeCaseSentence.d.ts +3 -0
- package/cjs/changeCaseSnake.d.ts +3 -0
- package/cjs/changeCaseTrain.d.ts +3 -0
- package/cjs/chunkByChunks.d.ts +2 -0
- package/cjs/chunkBySize.d.ts +2 -0
- package/cjs/clamp.d.ts +2 -0
- package/cjs/clsx.d.ts +6 -0
- package/cjs/convertRange.d.ts +2 -0
- package/cjs/cookie.d.ts +15 -0
- package/cjs/createPalette.d.ts +10 -0
- package/cjs/debounce.d.ts +2 -0
- package/cjs/debouncePromise.d.ts +11 -0
- package/cjs/debounceRaf.d.ts +2 -0
- package/cjs/decode.d.ts +2 -0
- package/cjs/encode.d.ts +2 -0
- package/cjs/ensureInt.d.ts +2 -0
- package/cjs/env.d.ts +0 -0
- package/cjs/errorToString.d.ts +2 -0
- package/cjs/escapeRegExp.d.ts +2 -0
- package/cjs/findDuplicatedIndexes.d.ts +2 -0
- package/cjs/forin.d.ts +2 -0
- package/cjs/gbToBytes.d.ts +2 -0
- package/cjs/getEmptyArray.d.ts +2 -0
- package/cjs/getKeys.d.ts +2 -0
- package/cjs/getMediaQueryWidthResolvers.d.ts +10 -0
- package/cjs/getMediaQueryWidthTailwindScreens.d.ts +5 -0
- package/cjs/getNonce.d.ts +2 -0
- package/cjs/getParamAmong.d.ts +2 -0
- package/cjs/getParamAsInt.d.ts +2 -0
- package/cjs/getParamAsString.d.ts +2 -0
- package/cjs/getType.d.ts +10 -0
- package/cjs/getUrlHashParams.d.ts +2 -0
- package/cjs/getUrlHashPathname.d.ts +2 -0
- package/cjs/getUrlPathnameParts.d.ts +2 -0
- package/cjs/getUrlQueryParams.d.ts +2 -0
- package/cjs/imgEmptyPixel.d.ts +2 -0
- package/cjs/index.d.ts +158 -0
- package/cjs/invariant.d.ts +2 -0
- package/cjs/isAbsoluteUrl.d.ts +2 -0
- package/cjs/isAnyObject.d.ts +3 -0
- package/cjs/isArray.d.ts +2 -0
- package/cjs/isBlob.d.ts +2 -0
- package/cjs/isBoolean.d.ts +2 -0
- package/cjs/isBrowser.d.ts +2 -0
- package/cjs/isBrowserNow.d.ts +2 -0
- package/cjs/isDate.d.ts +2 -0
- package/cjs/isEmptyArray.d.ts +2 -0
- package/cjs/isEmptyObject.d.ts +6 -0
- package/cjs/isEmptyString.d.ts +2 -0
- package/cjs/isError.d.ts +2 -0
- package/cjs/isExternalUrl.d.ts +2 -0
- package/cjs/isFile.d.ts +2 -0
- package/cjs/isFloat.d.ts +2 -0
- package/cjs/isFormData.d.ts +2 -0
- package/cjs/isFullArray.d.ts +2 -0
- package/cjs/isFullObject.d.ts +3 -0
- package/cjs/isFullString.d.ts +2 -0
- package/cjs/isFunction.d.ts +3 -0
- package/cjs/isInt.d.ts +2 -0
- package/cjs/isMap.d.ts +2 -0
- package/cjs/isNaNValue.d.ts +2 -0
- package/cjs/isNegativeNumber.d.ts +2 -0
- package/cjs/isNull.d.ts +2 -0
- package/cjs/isNullOrUndefined.d.ts +2 -0
- package/cjs/isNumber.d.ts +2 -0
- package/cjs/isNumericLiteral.d.ts +2 -0
- package/cjs/isObject.d.ts +3 -0
- package/cjs/isObjectLike.d.ts +3 -0
- package/cjs/isObjectStringKeyed.d.ts +3 -0
- package/cjs/isOneOf.d.ts +6 -0
- package/cjs/isPlainObject.d.ts +3 -0
- package/cjs/isPositiveNumber.d.ts +2 -0
- package/cjs/isPrimitive.d.ts +2 -0
- package/cjs/isPromise.d.ts +2 -0
- package/cjs/isRegExp.d.ts +2 -0
- package/cjs/isServer.d.ts +2 -0
- package/cjs/isServerNow.d.ts +2 -0
- package/cjs/isSet.d.ts +2 -0
- package/cjs/isString.d.ts +2 -0
- package/cjs/isSymbol.d.ts +2 -0
- package/cjs/isType.d.ts +3 -0
- package/cjs/isUndefined.d.ts +2 -0
- package/cjs/isWeakMap.d.ts +2 -0
- package/cjs/isWeakSet.d.ts +2 -0
- package/cjs/kbToBytes.d.ts +2 -0
- package/cjs/location.d.ts +1 -0
- package/cjs/lowercase.d.ts +2 -0
- package/cjs/mapListBy.d.ts +2 -0
- package/cjs/matchSorter.d.ts +54 -0
- package/cjs/mbToBytes.d.ts +2 -0
- package/cjs/mergeObjects.d.ts +2 -0
- package/cjs/mergeUrlQueryParams.d.ts +3 -0
- package/cjs/moveSortableArrayItemByKey.d.ts +2 -0
- package/cjs/noop.d.ts +2 -0
- package/cjs/normaliseUrl.d.ts +2 -0
- package/cjs/normaliseUrlPathname.d.ts +2 -0
- package/cjs/objectFlat.d.ts +4 -0
- package/cjs/objectFlip.d.ts +2 -0
- package/cjs/objectMergeWithDefaults.d.ts +6 -0
- package/cjs/objectOmit.d.ts +2 -0
- package/cjs/objectPick.d.ts +2 -0
- package/cjs/objectSort.d.ts +4 -0
- package/cjs/objectSortByKeysMatching.d.ts +4 -0
- package/cjs/objectToArray.d.ts +2 -0
- package/cjs/package.json +10 -0
- package/cjs/parseCookie.d.ts +3 -0
- package/cjs/parseURL.d.ts +11 -0
- package/cjs/quaranteneProps.d.ts +7 -0
- package/cjs/randomInt.d.ts +2 -0
- package/cjs/randomKey.d.ts +2 -0
- package/cjs/readCookie.d.ts +3 -0
- package/cjs/removeAccents.d.ts +3 -0
- package/cjs/removeCookie.d.ts +3 -0
- package/cjs/removeDuplicates.d.ts +2 -0
- package/cjs/removeDuplicatesByKey.d.ts +2 -0
- package/cjs/removeDuplicatesComparing.d.ts +2 -0
- package/cjs/removeIndexesFromArray.d.ts +2 -0
- package/cjs/removeTrailingSlash.d.ts +2 -0
- package/cjs/removeUrlQueryParams.d.ts +2 -0
- package/cjs/render.d.ts +13 -0
- package/cjs/round.d.ts +3 -0
- package/cjs/roundTo.d.ts +2 -0
- package/cjs/serializeCookie.d.ts +3 -0
- package/cjs/setCookie.d.ts +3 -0
- package/cjs/shuffle.d.ts +2 -0
- package/cjs/slugify.d.ts +2 -0
- package/cjs/split.d.ts +3 -0
- package/cjs/splitReverse.d.ts +5 -0
- package/cjs/swapMap.d.ts +2 -0
- package/cjs/throttle.d.ts +3 -0
- package/cjs/titleCase.d.ts +2 -0
- package/cjs/toNumber.d.ts +2 -0
- package/cjs/toRgba.d.ts +2 -0
- package/cjs/transformToUrlPathname.d.ts +2 -0
- package/cjs/truncate.d.ts +2 -0
- package/cjs/tryUntil.d.ts +2 -0
- package/cjs/types.d.ts +11 -0
- package/cjs/uid.d.ts +2 -0
- package/cjs/updateLinkParams.d.ts +3 -0
- package/cjs/updateUrlQueryParams.d.ts +3 -0
- package/cjs/uppercase.d.ts +2 -0
- package/cjs/utils/Defer.js +1 -0
- package/cjs/utils/Emitter.js +1 -0
- package/cjs/utils/accentSets.js +1 -0
- package/cjs/utils/addOrReplaceAtIdx.js +1 -0
- package/cjs/utils/areEqual.js +1 -0
- package/cjs/utils/arrayFilterFalsy.js +1 -0
- package/cjs/utils/arrayFindLastIndex.js +1 -0
- package/cjs/utils/arrayOfAll.js +1 -0
- package/cjs/utils/arraySum.js +1 -0
- package/cjs/utils/arrayToLookup.js +1 -0
- package/cjs/utils/arrayUniqueByProperties.js +1 -0
- package/cjs/utils/buildUrlQueryString.js +1 -0
- package/cjs/utils/capitalize.js +1 -0
- package/cjs/utils/changeCaseCamel.js +1 -0
- package/cjs/utils/changeCaseCapital.js +1 -0
- package/cjs/utils/changeCaseConstant.js +1 -0
- package/cjs/utils/changeCaseDot.js +1 -0
- package/cjs/utils/changeCaseHelpers.js +1 -0
- package/cjs/utils/changeCaseKebab.js +1 -0
- package/cjs/utils/changeCaseNone.js +1 -0
- package/cjs/utils/changeCasePascal.js +1 -0
- package/cjs/utils/changeCasePascalSnake.js +1 -0
- package/cjs/utils/changeCasePath.js +1 -0
- package/cjs/utils/changeCaseSentence.js +1 -0
- package/cjs/utils/changeCaseSnake.js +1 -0
- package/cjs/utils/changeCaseTrain.js +1 -0
- package/cjs/utils/chunkByChunks.js +1 -0
- package/cjs/utils/chunkBySize.js +1 -0
- package/cjs/utils/clamp.js +1 -0
- package/cjs/utils/clsx.js +7 -0
- package/cjs/utils/convertRange.js +1 -0
- package/cjs/utils/cookie.js +1 -0
- package/cjs/utils/createPalette.js +1 -0
- package/cjs/utils/debounce.js +1 -0
- package/cjs/utils/debouncePromise.js +7 -0
- package/cjs/utils/debounceRaf.js +7 -0
- package/cjs/utils/decode.js +1 -0
- package/cjs/utils/encode.js +1 -0
- package/cjs/utils/ensureInt.js +1 -0
- package/cjs/utils/env.js +0 -0
- package/cjs/utils/errorToString.js +1 -0
- package/cjs/utils/escapeRegExp.js +1 -0
- package/cjs/utils/findDuplicatedIndexes.js +1 -0
- package/cjs/utils/forin.js +1 -0
- package/cjs/utils/gbToBytes.js +1 -0
- package/cjs/utils/getEmptyArray.js +1 -0
- package/cjs/utils/getKeys.js +1 -0
- package/cjs/utils/getMediaQueryWidthResolvers.js +1 -0
- package/cjs/utils/getMediaQueryWidthTailwindScreens.js +1 -0
- package/cjs/utils/getNonce.js +1 -0
- package/cjs/utils/getParamAmong.js +1 -0
- package/cjs/utils/getParamAsInt.js +1 -0
- package/cjs/utils/getParamAsString.js +1 -0
- package/cjs/utils/getType.js +1 -0
- package/cjs/utils/getUrlHashParams.js +1 -0
- package/cjs/utils/getUrlHashPathname.js +1 -0
- package/cjs/utils/getUrlPathnameParts.js +1 -0
- package/cjs/utils/getUrlQueryParams.js +1 -0
- package/cjs/utils/imgEmptyPixel.js +1 -0
- package/cjs/utils/index.js +1 -0
- package/cjs/utils/invariant.js +1 -0
- package/cjs/utils/isAbsoluteUrl.js +1 -0
- package/cjs/utils/isAnyObject.js +1 -0
- package/cjs/utils/isArray.js +1 -0
- package/cjs/utils/isBlob.js +1 -0
- package/cjs/utils/isBoolean.js +1 -0
- package/cjs/utils/isBrowser.js +1 -0
- package/cjs/utils/isBrowserNow.js +1 -0
- package/cjs/utils/isDate.js +1 -0
- package/cjs/utils/isEmptyArray.js +1 -0
- package/cjs/utils/isEmptyObject.js +1 -0
- package/cjs/utils/isEmptyString.js +1 -0
- package/cjs/utils/isError.js +1 -0
- package/cjs/utils/isExternalUrl.js +1 -0
- package/cjs/utils/isFile.js +1 -0
- package/cjs/utils/isFloat.js +1 -0
- package/cjs/utils/isFormData.js +1 -0
- package/cjs/utils/isFullArray.js +1 -0
- package/cjs/utils/isFullObject.js +1 -0
- package/cjs/utils/isFullString.js +1 -0
- package/cjs/utils/isFunction.js +1 -0
- package/cjs/utils/isInt.js +1 -0
- package/cjs/utils/isMap.js +1 -0
- package/cjs/utils/isNaNValue.js +1 -0
- package/cjs/utils/isNegativeNumber.js +1 -0
- package/cjs/utils/isNull.js +1 -0
- package/cjs/utils/isNullOrUndefined.js +1 -0
- package/cjs/utils/isNumber.js +1 -0
- package/cjs/utils/isNumericLiteral.js +1 -0
- package/cjs/utils/isObject.js +1 -0
- package/cjs/utils/isObjectLike.js +1 -0
- package/cjs/utils/isObjectStringKeyed.js +1 -0
- package/cjs/utils/isOneOf.js +1 -0
- package/cjs/utils/isPlainObject.js +1 -0
- package/cjs/utils/isPositiveNumber.js +1 -0
- package/cjs/utils/isPrimitive.js +1 -0
- package/cjs/utils/isPromise.js +1 -0
- package/cjs/utils/isRegExp.js +1 -0
- package/cjs/utils/isServer.js +1 -0
- package/cjs/utils/isServerNow.js +1 -0
- package/cjs/utils/isSet.js +1 -0
- package/cjs/utils/isString.js +1 -0
- package/cjs/utils/isSymbol.js +1 -0
- package/cjs/utils/isType.js +1 -0
- package/cjs/utils/isUndefined.js +1 -0
- package/cjs/utils/isWeakMap.js +1 -0
- package/cjs/utils/isWeakSet.js +1 -0
- package/cjs/utils/kbToBytes.js +1 -0
- package/cjs/utils/location.js +1 -0
- package/cjs/utils/lowercase.js +1 -0
- package/cjs/utils/mapListBy.js +1 -0
- package/cjs/utils/matchSorter.js +16 -0
- package/cjs/utils/mbToBytes.js +1 -0
- package/cjs/utils/mergeObjects.js +1 -0
- package/cjs/utils/mergeUrlQueryParams.js +1 -0
- package/cjs/utils/moveSortableArrayItemByKey.js +1 -0
- package/cjs/utils/noop.js +1 -0
- package/cjs/utils/normaliseUrl.js +1 -0
- package/cjs/utils/normaliseUrlPathname.js +1 -0
- package/cjs/utils/objectFlat.js +1 -0
- package/cjs/utils/objectFlip.js +1 -0
- package/cjs/utils/objectMergeWithDefaults.js +1 -0
- package/cjs/utils/objectOmit.js +1 -0
- package/cjs/utils/objectPick.js +1 -0
- package/cjs/utils/objectSort.js +1 -0
- package/cjs/utils/objectSortByKeysMatching.js +1 -0
- package/cjs/utils/objectToArray.js +1 -0
- package/cjs/utils/parseCookie.js +1 -0
- package/cjs/utils/parseURL.js +1 -0
- package/cjs/utils/quaranteneProps.js +1 -0
- package/cjs/utils/randomInt.js +1 -0
- package/cjs/utils/randomKey.js +1 -0
- package/cjs/utils/readCookie.js +1 -0
- package/cjs/utils/removeAccents.js +1 -0
- package/cjs/utils/removeCookie.js +1 -0
- package/cjs/utils/removeDuplicates.js +1 -0
- package/cjs/utils/removeDuplicatesByKey.js +1 -0
- package/cjs/utils/removeDuplicatesComparing.js +1 -0
- package/cjs/utils/removeIndexesFromArray.js +1 -0
- package/cjs/utils/removeTrailingSlash.js +1 -0
- package/cjs/utils/removeUrlQueryParams.js +1 -0
- package/cjs/utils/render.js +1 -0
- package/cjs/utils/round.js +1 -0
- package/cjs/utils/roundTo.js +1 -0
- package/cjs/utils/serializeCookie.js +1 -0
- package/cjs/utils/setCookie.js +1 -0
- package/cjs/utils/shuffle.js +1 -0
- package/cjs/utils/slugify.js +1 -0
- package/cjs/utils/split.js +1 -0
- package/cjs/utils/splitReverse.js +1 -0
- package/cjs/utils/swapMap.js +1 -0
- package/cjs/utils/throttle.js +1 -0
- package/cjs/utils/titleCase.js +6 -0
- package/cjs/utils/toNumber.js +1 -0
- package/cjs/utils/toRgba.js +1 -0
- package/cjs/utils/transformToUrlPathname.js +1 -0
- package/cjs/utils/truncate.js +1 -0
- package/cjs/utils/tryUntil.js +1 -0
- package/cjs/utils/types.js +1 -0
- package/cjs/utils/uid.js +1 -0
- package/cjs/utils/updateLinkParams.js +1 -0
- package/cjs/utils/updateUrlQueryParams.js +1 -0
- package/cjs/utils/uppercase.js +1 -0
- package/cjs/utils/uuid.js +1 -0
- package/cjs/utils/uuidNumeric.js +1 -0
- package/cjs/utils/wait.js +1 -0
- package/cjs/utils/without.js +0 -0
- package/cjs/uuid.d.ts +2 -0
- package/cjs/uuidNumeric.d.ts +2 -0
- package/cjs/wait.d.ts +2 -0
- package/cjs/without.d.ts +0 -0
- package/clamp.js +1 -2
- package/clsx.js +7 -40
- package/convertRange.js +1 -2
- package/cookie.js +1 -1
- package/createPalette.js +1 -12
- package/debounce.js +1 -18
- package/debouncePromise.js +7 -52
- package/debounceRaf.js +7 -13
- package/decode.js +1 -2
- package/encode.js +1 -2
- package/ensureInt.js +1 -2
- package/env.js +0 -1
- package/errorToString.js +1 -3
- package/escapeRegExp.js +1 -2
- package/findDuplicatedIndexes.js +1 -11
- package/forin.js +1 -6
- package/gbToBytes.js +1 -2
- package/getEmptyArray.js +1 -5
- package/getKeys.js +1 -2
- package/getMediaQueryWidthResolvers.js +1 -42
- package/getMediaQueryWidthTailwindScreens.js +1 -27
- package/getNonce.js +1 -3
- package/getParamAmong.js +1 -6
- package/getParamAsInt.js +1 -9
- package/getParamAsString.js +1 -3
- package/getType.js +1 -2
- package/getUrlHashParams.js +1 -9
- package/getUrlHashPathname.js +1 -2
- package/getUrlPathnameParts.js +1 -6
- package/getUrlQueryParams.js +1 -22
- package/imgEmptyPixel.js +1 -2
- package/index.js +1 -156
- package/invariant.js +1 -17
- package/isAbsoluteUrl.js +1 -3
- package/isAnyObject.js +1 -3
- package/isArray.js +1 -3
- package/isBlob.js +1 -3
- package/isBoolean.js +1 -3
- package/isBrowser.js +1 -2
- package/isBrowserNow.js +1 -3
- package/isDate.js +1 -3
- package/isEmptyArray.js +1 -3
- package/isEmptyObject.js +1 -3
- package/isEmptyString.js +1 -2
- package/isError.js +1 -3
- package/isExternalUrl.js +1 -11
- package/isFile.js +1 -3
- package/isFloat.js +1 -3
- package/isFormData.js +1 -3
- package/isFullArray.js +1 -3
- package/isFullObject.js +1 -3
- package/isFullString.js +1 -3
- package/isFunction.js +1 -2
- package/isInt.js +1 -3
- package/isMap.js +1 -3
- package/isNaNValue.js +1 -3
- package/isNegativeNumber.js +1 -3
- package/isNull.js +1 -3
- package/isNullOrUndefined.js +1 -5
- package/isNumber.js +1 -3
- package/isNumericLiteral.js +1 -2
- package/isObject.js +1 -3
- package/isObjectLike.js +1 -3
- package/isObjectStringKeyed.js +1 -3
- package/isOneOf.js +1 -8
- package/isPlainObject.js +1 -6
- package/isPositiveNumber.js +1 -3
- package/isPrimitive.js +1 -13
- package/isPromise.js +1 -3
- package/isRegExp.js +1 -3
- package/isServer.js +1 -3
- package/isServerNow.js +1 -3
- package/isSet.js +1 -3
- package/isString.js +1 -3
- package/isSymbol.js +1 -3
- package/isType.js +1 -13
- package/isUndefined.js +1 -3
- package/isWeakMap.js +1 -3
- package/isWeakSet.js +1 -3
- package/kbToBytes.js +1 -2
- package/location.js +1 -1
- package/lowercase.js +1 -2
- package/mapListBy.js +1 -5
- package/matchSorter.js +16 -239
- package/mbToBytes.js +1 -2
- package/mergeObjects.js +1 -29
- package/mergeUrlQueryParams.js +1 -14
- package/moveSortableArrayItemByKey.js +1 -9
- package/noop.js +1 -2
- package/normaliseUrl.js +1 -3
- package/normaliseUrlPathname.js +1 -3
- package/objectFlat.js +1 -17
- package/objectFlip.js +1 -5
- package/objectMergeWithDefaults.js +1 -21
- package/objectOmit.js +1 -8
- package/objectPick.js +1 -9
- package/objectSort.js +1 -2
- package/objectSortByKeysMatching.js +1 -3
- package/objectToArray.js +1 -2
- package/package.json +670 -7
- package/parseCookie.js +1 -33
- package/parseURL.js +1 -14
- package/quaranteneProps.js +1 -16
- package/randomInt.js +1 -2
- package/randomKey.js +1 -5
- package/readCookie.js +1 -34
- package/removeAccents.js +1 -10
- package/removeCookie.js +1 -10
- package/removeDuplicates.js +1 -2
- package/removeDuplicatesByKey.js +1 -13
- package/removeDuplicatesComparing.js +1 -7
- package/removeIndexesFromArray.js +1 -10
- package/removeTrailingSlash.js +1 -2
- package/removeUrlQueryParams.js +1 -14
- package/render.js +1 -113
- package/round.js +1 -4
- package/roundTo.js +1 -11
- package/serializeCookie.js +1 -69
- package/setCookie.js +1 -45
- package/shuffle.js +1 -17
- package/slugify.js +1 -11
- package/split.js +1 -2
- package/splitReverse.js +1 -2
- package/swapMap.js +1 -8
- package/throttle.js +1 -15
- package/titleCase.js +6 -4
- package/toNumber.js +1 -3
- package/toRgba.js +1 -8
- package/transformToUrlPathname.js +1 -5
- package/truncate.js +1 -6
- package/tryUntil.js +1 -15
- package/types.js +1 -1
- package/uid.js +1 -6
- package/updateLinkParams.js +1 -7
- package/updateUrlQueryParams.js +1 -11
- package/uppercase.js +1 -2
- package/uuid.js +1 -5
- package/uuidNumeric.js +1 -2
- package/wait.js +1 -2
- package/without.js +0 -1
- package/README.md +0 -48
- package/index.cjs.d.ts +0 -1
- package/index.cjs.default.js +0 -1
- package/index.cjs.js +0 -497
- package/index.cjs.mjs +0 -2
- package/index.esm.js +0 -340
- package/typings.d.ts +0 -37
package/cjs/clsx.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
|
|
2
|
+
type ClassDictionary = Record<string, any>;
|
|
3
|
+
type ClassArray = ClassValue[];
|
|
4
|
+
export type ClsxClassValue = ClassValue;
|
|
5
|
+
export declare let clsx: (...args: ClassValue[]) => string;
|
|
6
|
+
export default clsx;
|
package/cjs/cookie.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type CookieAttributes = {
|
|
2
|
+
expires?: number | Date | undefined;
|
|
3
|
+
path?: string | undefined;
|
|
4
|
+
domain?: string | undefined;
|
|
5
|
+
secure?: boolean | undefined;
|
|
6
|
+
sameSite?: "strict" | "Strict" | "lax" | "Lax" | "none" | "None" | undefined;
|
|
7
|
+
};
|
|
8
|
+
export type CookieAttributesServer = CookieAttributes & {
|
|
9
|
+
maxAge?: number;
|
|
10
|
+
httpOnly?: boolean;
|
|
11
|
+
encode?: (input: string) => string;
|
|
12
|
+
decode?: (input: string) => string;
|
|
13
|
+
};
|
|
14
|
+
export type CookieAttributesClient = CookieAttributes;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type PaletteShade = readonly [number, string];
|
|
2
|
+
type PaletteShades = readonly PaletteShade[];
|
|
3
|
+
type PaletteMapPair<T extends PaletteShade> = {
|
|
4
|
+
[Pair in T as `${Pair[0]}`]: Pair[1];
|
|
5
|
+
};
|
|
6
|
+
type PaletteMap<T extends PaletteShades> = {
|
|
7
|
+
[PS in T[number] as keyof PaletteMapPair<PS>]: PaletteMapPair<PS>[keyof PaletteMapPair<PS>];
|
|
8
|
+
};
|
|
9
|
+
export declare let createPalette: <TName extends string, TShades extends PaletteShades, TColor = TShades[number][1], TMap = PaletteMap<TShades>>(name: TName, shades: TShades) => readonly [TMap, Record<`${TName}-${TShades[number][0]}`, string>, TColor[]];
|
|
10
|
+
export default createPalette;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type DebounceOptions<Result> = {
|
|
2
|
+
isImmediate?: boolean;
|
|
3
|
+
maxWait?: number;
|
|
4
|
+
callback?: (data: Result) => void;
|
|
5
|
+
};
|
|
6
|
+
export interface DebouncedFunction<Args extends any[], F extends (...args: Args) => any> {
|
|
7
|
+
(this: ThisParameterType<F>, ...args: Args & Parameters<F>): Promise<ReturnType<F>>;
|
|
8
|
+
cancel: (reason?: any) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare let debouncePromise: <Args extends any[], F extends (...args: Args) => any>(func: F, waitMilliseconds?: number, options?: DebounceOptions<ReturnType<F>>) => DebouncedFunction<Args, F>;
|
|
11
|
+
export default debouncePromise;
|
package/cjs/decode.d.ts
ADDED
package/cjs/encode.d.ts
ADDED
package/cjs/env.d.ts
ADDED
|
File without changes
|
package/cjs/forin.d.ts
ADDED
package/cjs/getKeys.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type GetMediaQueryWidthResolversBreakpoints = Record<string, number>;
|
|
2
|
+
export declare let getMediaQueryWidthResolvers: <TBreakpointsConfig extends GetMediaQueryWidthResolversBreakpoints>(customBreakpoints: TBreakpointsConfig) => {
|
|
3
|
+
max: (br: Extract<keyof TBreakpointsConfig, string>) => string;
|
|
4
|
+
min: (br: Extract<keyof TBreakpointsConfig, string>) => string;
|
|
5
|
+
down: (br: Extract<keyof TBreakpointsConfig, string>) => string;
|
|
6
|
+
up: (br: Extract<keyof TBreakpointsConfig, string>) => string;
|
|
7
|
+
between: (br1: Extract<keyof TBreakpointsConfig, string>, br2?: Extract<keyof TBreakpointsConfig, string> | undefined) => string;
|
|
8
|
+
only: (br: Extract<keyof TBreakpointsConfig, string>) => string;
|
|
9
|
+
};
|
|
10
|
+
export default getMediaQueryWidthResolvers;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type GetMediaQueryWidthResolversBreakpoints } from "./getMediaQueryWidthResolvers";
|
|
2
|
+
export declare let getMediaQueryWidthTailwindScreens: (breakpoints: GetMediaQueryWidthResolversBreakpoints) => Record<string, {
|
|
3
|
+
raw: string;
|
|
4
|
+
}>;
|
|
5
|
+
export default getMediaQueryWidthTailwindScreens;
|
package/cjs/getType.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type AnyFunction = (...args: any[]) => any;
|
|
2
|
+
export type AnyAsyncFunction = (...args: any[]) => Promise<any>;
|
|
3
|
+
export type AnyClass = new (...args: any[]) => any;
|
|
4
|
+
export type PlainObject = Record<string | number | symbol, any>;
|
|
5
|
+
export type PlainObjectStringKeyed = {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
export type TypeGuard<A, B extends A> = (payload: A) => payload is B;
|
|
9
|
+
export declare let getType: (payload: any) => string;
|
|
10
|
+
export default getType;
|
package/cjs/index.d.ts
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export { accentsSets, type AccentsSet } from "./accentSets";
|
|
2
|
+
export { addOrReplaceAtIdx } from "./addOrReplaceAtIdx";
|
|
3
|
+
export { areEqual } from "./areEqual";
|
|
4
|
+
export { arrayFilterFalsy } from "./arrayFilterFalsy";
|
|
5
|
+
export { arrayFindLastIndex } from "./arrayFindLastIndex";
|
|
6
|
+
export { arrayOfAll, type ArrayOfAll } from "./arrayOfAll";
|
|
7
|
+
export { arraySum } from "./arraySum";
|
|
8
|
+
export { arrayToLookup } from "./arrayToLookup";
|
|
9
|
+
export { arrayUniqueByProperties } from "./arrayUniqueByProperties";
|
|
10
|
+
export { buildUrlQueryString } from "./buildUrlQueryString";
|
|
11
|
+
export { capitalize } from "./capitalize";
|
|
12
|
+
export { changeCaseCamel } from "./changeCaseCamel";
|
|
13
|
+
export { changeCaseConstant } from "./changeCaseConstant";
|
|
14
|
+
export { changeCaseDot } from "./changeCaseDot";
|
|
15
|
+
export { changeCaseKebab } from "./changeCaseKebab";
|
|
16
|
+
export { changeCasePascal } from "./changeCasePascal";
|
|
17
|
+
export { changeCasePath } from "./changeCasePath";
|
|
18
|
+
export { changeCaseSentence } from "./changeCaseSentence";
|
|
19
|
+
export { changeCaseSnake } from "./changeCaseSnake";
|
|
20
|
+
export { changeCaseTrain } from "./changeCaseTrain";
|
|
21
|
+
export { chunkByChunks } from "./chunkByChunks";
|
|
22
|
+
export { chunkBySize } from "./chunkBySize";
|
|
23
|
+
export { clamp } from "./clamp";
|
|
24
|
+
export { clsx, type ClsxClassValue } from "./clsx";
|
|
25
|
+
export { convertRange } from "./convertRange";
|
|
26
|
+
export { type CookieAttributesClient, type CookieAttributesServer, } from "./cookie";
|
|
27
|
+
export { createPalette } from "./createPalette";
|
|
28
|
+
export { debounce } from "./debounce";
|
|
29
|
+
export { debounceRaf } from "./debounceRaf";
|
|
30
|
+
export { debouncePromise, type DebounceOptions, type DebouncedFunction, } from "./debouncePromise";
|
|
31
|
+
export { decode } from "./decode";
|
|
32
|
+
export { Defer, type Deferred } from "./Defer";
|
|
33
|
+
export { Emitter } from "./Emitter";
|
|
34
|
+
export { encode } from "./encode";
|
|
35
|
+
export { ensureInt } from "./ensureInt";
|
|
36
|
+
export { errorToString } from "./errorToString";
|
|
37
|
+
export { escapeRegExp } from "./escapeRegExp";
|
|
38
|
+
export { findDuplicatedIndexes } from "./findDuplicatedIndexes";
|
|
39
|
+
export { forin } from "./forin";
|
|
40
|
+
export { gbToBytes } from "./gbToBytes";
|
|
41
|
+
export { getEmptyArray } from "./getEmptyArray";
|
|
42
|
+
export { getKeys } from "./getKeys";
|
|
43
|
+
export { type GetMediaQueryWidthResolversBreakpoints, getMediaQueryWidthResolvers, } from "./getMediaQueryWidthResolvers";
|
|
44
|
+
export { getMediaQueryWidthTailwindScreens } from "./getMediaQueryWidthTailwindScreens";
|
|
45
|
+
export { getNonce } from "./getNonce";
|
|
46
|
+
export { getParamAmong } from "./getParamAmong";
|
|
47
|
+
export { getParamAsInt } from "./getParamAsInt";
|
|
48
|
+
export { getParamAsString } from "./getParamAsString";
|
|
49
|
+
export { type AnyClass, type AnyAsyncFunction, type AnyFunction, type PlainObject, type TypeGuard, getType, } from "./getType";
|
|
50
|
+
export { getUrlHashParams } from "./getUrlHashParams";
|
|
51
|
+
export { getUrlHashPathname } from "./getUrlHashPathname";
|
|
52
|
+
export { getUrlPathnameParts } from "./getUrlPathnameParts";
|
|
53
|
+
export { getUrlQueryParams } from "./getUrlQueryParams";
|
|
54
|
+
export { imgEmptyPixel } from "./imgEmptyPixel";
|
|
55
|
+
export { isAbsoluteUrl } from "./isAbsoluteUrl";
|
|
56
|
+
export { isAnyObject } from "./isAnyObject";
|
|
57
|
+
export { isArray } from "./isArray";
|
|
58
|
+
export { isBlob } from "./isBlob";
|
|
59
|
+
export { isBoolean } from "./isBoolean";
|
|
60
|
+
export { isBrowser } from "./isBrowser";
|
|
61
|
+
export { isBrowserNow } from "./isBrowserNow";
|
|
62
|
+
export { isDate } from "./isDate";
|
|
63
|
+
export { isEmptyArray } from "./isEmptyArray";
|
|
64
|
+
export { isEmptyObject } from "./isEmptyObject";
|
|
65
|
+
export { isEmptyString } from "./isEmptyString";
|
|
66
|
+
export { isError } from "./isError";
|
|
67
|
+
export { isExternalUrl } from "./isExternalUrl";
|
|
68
|
+
export { isFile } from "./isFile";
|
|
69
|
+
export { isFloat } from "./isFloat";
|
|
70
|
+
export { isFormData } from "./isFormData";
|
|
71
|
+
export { isFullArray } from "./isFullArray";
|
|
72
|
+
export { isFullObject } from "./isFullObject";
|
|
73
|
+
export { isFullString } from "./isFullString";
|
|
74
|
+
export { isFunction } from "./isFunction";
|
|
75
|
+
export { isInt } from "./isInt";
|
|
76
|
+
export { isMap } from "./isMap";
|
|
77
|
+
export { isNaNValue } from "./isNaNValue";
|
|
78
|
+
export { isNegativeNumber } from "./isNegativeNumber";
|
|
79
|
+
export { isNullOrUndefined } from "./isNullOrUndefined";
|
|
80
|
+
export { isNull } from "./isNull";
|
|
81
|
+
export { isNumber } from "./isNumber";
|
|
82
|
+
export { isNumericLiteral } from "./isNumericLiteral";
|
|
83
|
+
export { isObject } from "./isObject";
|
|
84
|
+
export { isObjectLike } from "./isObjectLike";
|
|
85
|
+
export { isObjectStringKeyed } from "./isObjectStringKeyed";
|
|
86
|
+
export { isOneOf } from "./isOneOf";
|
|
87
|
+
export { isPlainObject } from "./isPlainObject";
|
|
88
|
+
export { isPositiveNumber } from "./isPositiveNumber";
|
|
89
|
+
export { isPrimitive } from "./isPrimitive";
|
|
90
|
+
export { isPromise } from "./isPromise";
|
|
91
|
+
export { isRegExp } from "./isRegExp";
|
|
92
|
+
export { isServer } from "./isServer";
|
|
93
|
+
export { isServerNow } from "./isServerNow";
|
|
94
|
+
export { isSet } from "./isSet";
|
|
95
|
+
export { isString } from "./isString";
|
|
96
|
+
export { isSymbol } from "./isSymbol";
|
|
97
|
+
export { isType } from "./isType";
|
|
98
|
+
export { isUndefined } from "./isUndefined";
|
|
99
|
+
export { isWeakMap } from "./isWeakMap";
|
|
100
|
+
export { isWeakSet } from "./isWeakSet";
|
|
101
|
+
export { kbToBytes } from "./kbToBytes";
|
|
102
|
+
export { type AnyQueryParams } from "./location";
|
|
103
|
+
export { lowercase } from "./lowercase";
|
|
104
|
+
export { mapListBy } from "./mapListBy";
|
|
105
|
+
export { matchSorter } from "./matchSorter";
|
|
106
|
+
export { mbToBytes } from "./mbToBytes";
|
|
107
|
+
export { mergeObjects } from "./mergeObjects";
|
|
108
|
+
export { mergeUrlQueryParams } from "./mergeUrlQueryParams";
|
|
109
|
+
export { moveSortableArrayItemByKey } from "./moveSortableArrayItemByKey";
|
|
110
|
+
export { noop } from "./noop";
|
|
111
|
+
export { normaliseUrlPathname } from "./normaliseUrlPathname";
|
|
112
|
+
export { normaliseUrl } from "./normaliseUrl";
|
|
113
|
+
export { objectFlat } from "./objectFlat";
|
|
114
|
+
export { objectFlip } from "./objectFlip";
|
|
115
|
+
export { objectPick } from "./objectPick";
|
|
116
|
+
export { objectMergeWithDefaults, type ObjectMergeWithDefaults, } from "./objectMergeWithDefaults";
|
|
117
|
+
export { objectOmit } from "./objectOmit";
|
|
118
|
+
export { objectSort } from "./objectSort";
|
|
119
|
+
export { objectSortByKeysMatching } from "./objectSortByKeysMatching";
|
|
120
|
+
export { objectToArray } from "./objectToArray";
|
|
121
|
+
export { parseCookie } from "./parseCookie";
|
|
122
|
+
export { parseURL } from "./parseURL";
|
|
123
|
+
export { quaranteneProps } from "./quaranteneProps";
|
|
124
|
+
export { randomInt } from "./randomInt";
|
|
125
|
+
export { randomKey } from "./randomKey";
|
|
126
|
+
export { readCookie } from "./readCookie";
|
|
127
|
+
export { removeAccents } from "./removeAccents";
|
|
128
|
+
export { removeCookie } from "./removeCookie";
|
|
129
|
+
export { removeDuplicatesByKey } from "./removeDuplicatesByKey";
|
|
130
|
+
export { removeDuplicatesComparing } from "./removeDuplicatesComparing";
|
|
131
|
+
export { removeIndexesFromArray } from "./removeIndexesFromArray";
|
|
132
|
+
export { removeTrailingSlash } from "./removeTrailingSlash";
|
|
133
|
+
export { removeUrlQueryParams } from "./removeUrlQueryParams";
|
|
134
|
+
export { round } from "./round";
|
|
135
|
+
export { roundTo } from "./roundTo";
|
|
136
|
+
export { serializeCookie } from "./serializeCookie";
|
|
137
|
+
export { setCookie } from "./setCookie";
|
|
138
|
+
export { shuffle } from "./shuffle";
|
|
139
|
+
export { slugify } from "./slugify";
|
|
140
|
+
export { split } from "./split";
|
|
141
|
+
export { splitReverse } from "./splitReverse";
|
|
142
|
+
export { swapMap } from "./swapMap";
|
|
143
|
+
export { throttle } from "./throttle";
|
|
144
|
+
export { titleCase } from "./titleCase";
|
|
145
|
+
export { toNumber } from "./toNumber";
|
|
146
|
+
export { toRgba } from "./toRgba";
|
|
147
|
+
export { transformToUrlPathname } from "./transformToUrlPathname";
|
|
148
|
+
export { truncate } from "./truncate";
|
|
149
|
+
export { tryUntil } from "./tryUntil";
|
|
150
|
+
export { uid } from "./uid";
|
|
151
|
+
export { updateLinkParams } from "./updateLinkParams";
|
|
152
|
+
export { updateUrlQueryParams } from "./updateUrlQueryParams";
|
|
153
|
+
export { uppercase } from "./uppercase";
|
|
154
|
+
export { uuid } from "./uuid";
|
|
155
|
+
export { uuidNumeric } from "./uuidNumeric";
|
|
156
|
+
export { wait } from "./wait";
|
|
157
|
+
export type { AnythingFalsy, KeysStartsWith, KeysTailsStartsWith, PickStartsWith, PickStartsWithTails, } from "./types";
|
|
158
|
+
export type { KeysOfUnion, EmptyObject, IsEmptyObject, NonEmptyObject, UnknownRecord, UnknownArray, Except, TaggedUnion, Writable, WritableDeep, Merge, MergeDeep, MergeDeepOptions, MergeExclusive, RequireAtLeastOne, RequireExactlyOne, RequireAllOrNone, RequireOneOrNone, OmitIndexSignature, PickIndexSignature, PartialDeep, PartialDeepOptions, RequiredDeep, PickDeep, PartialOnUndefinedDeep, PartialOnUndefinedDeepOptions, UndefinedOnPartialDeep, ReadonlyDeep, LiteralUnion, Promisable, Opaque, UnwrapOpaque, Tagged, UnwrapTagged, InvariantOf, SetOptional, SetReadonly, SetRequired, SetNonNullable, ValueOf, AsyncReturnType, ConditionalExcept, ConditionalKeys, ConditionalPick, ConditionalPickDeep, ConditionalPickDeepOptions, UnionToIntersection, Stringified, FixedLengthArray, MultidimensionalArray, MultidimensionalReadonlyArray, IterableElement, Entry, Entries, SetReturnType, SetParameterType, Asyncify, Simplify, Jsonify, Jsonifiable, JsonObject, Schema, LiteralToPrimitive, LiteralToPrimitiveDeep, PositiveInfinity, NegativeInfinity, Finite, Integer, Float, NegativeFloat, Negative, NonNegative, NegativeInteger, NonNegativeInteger, StringKeyOf, Exact, ReadonlyTuple, OptionalKeysOf, OverrideProperties, HasOptionalKeys, RequiredKeysOf, HasRequiredKeys, ReadonlyKeysOf, HasReadonlyKeys, WritableKeysOf, HasWritableKeys, Spread, TupleToUnion, IntRange, IsEqual, IsLiteral, IsStringLiteral, IsNumericLiteral, IsBooleanLiteral, IsSymbolLiteral, IsAny, IfAny, IsNever, IfNever, IsUnknown, IfUnknown, ArrayIndices, ArrayValues, SetFieldType, Paths, SharedUnionFieldsDeep, CamelCase, CamelCasedProperties, CamelCasedPropertiesDeep, KebabCase, KebabCasedProperties, KebabCasedPropertiesDeep, PascalCase, PascalCasedProperties, PascalCasedPropertiesDeep, SnakeCase, SnakeCasedProperties, SnakeCasedPropertiesDeep, ScreamingSnakeCase, DelimiterCase, DelimiterCasedProperties, DelimiterCasedPropertiesDeep, Join, Split, Trim, Replace, Includes, Get, LastArrayElement, GlobalThis, PackageJson, TsConfigJson, } from "type-fest";
|
package/cjs/isArray.d.ts
ADDED
package/cjs/isBlob.d.ts
ADDED
package/cjs/isDate.d.ts
ADDED
package/cjs/isError.d.ts
ADDED
package/cjs/isFile.d.ts
ADDED
package/cjs/isFloat.d.ts
ADDED
package/cjs/isInt.d.ts
ADDED
package/cjs/isMap.d.ts
ADDED
package/cjs/isNull.d.ts
ADDED
package/cjs/isOneOf.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TypeGuard } from "./getType";
|
|
2
|
+
export declare function isOneOf<A, B extends A, C extends A>(a: TypeGuard<A, B>, b: TypeGuard<A, C>): TypeGuard<A, B | C>;
|
|
3
|
+
export declare function isOneOf<A, B extends A, C extends A, D extends A>(a: TypeGuard<A, B>, b: TypeGuard<A, C>, c: TypeGuard<A, D>): TypeGuard<A, B | C | D>;
|
|
4
|
+
export declare function isOneOf<A, B extends A, C extends A, D extends A, E extends A>(a: TypeGuard<A, B>, b: TypeGuard<A, C>, c: TypeGuard<A, D>, d: TypeGuard<A, E>): TypeGuard<A, B | C | D | E>;
|
|
5
|
+
export declare function isOneOf<A, B extends A, C extends A, D extends A, E extends A, F extends A>(a: TypeGuard<A, B>, b: TypeGuard<A, C>, c: TypeGuard<A, D>, d: TypeGuard<A, E>, e: TypeGuard<A, F>): TypeGuard<A, B | C | D | E | F>;
|
|
6
|
+
export default isOneOf;
|
package/cjs/isSet.d.ts
ADDED
package/cjs/isType.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AnyQueryParams = undefined | null | Record<string | number, unknown>;
|