@koine/utils 2.0.0-beta.13 → 2.0.0-beta.15
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.d.ts +0 -14
- package/Defer.js +11 -0
- package/Emitter.d.ts +0 -20
- package/Emitter.js +20 -0
- package/accentSets.d.ts +0 -14
- package/accentSets.js +30 -0
- package/addOrReplaceAtIdx.d.ts +0 -7
- package/addOrReplaceAtIdx.js +16 -0
- package/areEqual.d.ts +0 -15
- package/areEqual.js +55 -0
- package/arrayOfAll.d.ts +0 -25
- package/arrayOfAll.js +6 -0
- package/arraySum.d.ts +0 -6
- package/arraySum.js +4 -0
- package/arrayToLookup.d.ts +0 -5
- package/arrayToLookup.js +8 -0
- package/buildUrlQueryString.d.ts +1 -10
- package/buildUrlQueryString.js +21 -0
- package/capitalize.d.ts +0 -7
- package/capitalize.js +6 -0
- package/changeUrlPath.d.ts +0 -8
- package/changeUrlPath.js +10 -0
- package/chunkByChunks.d.ts +0 -5
- package/chunkByChunks.js +32 -0
- package/chunkBySize.d.ts +0 -4
- package/chunkBySize.js +8 -0
- package/cjs/Defer.d.ts +6 -0
- package/cjs/Defer.js +15 -0
- package/cjs/Emitter.d.ts +7 -0
- package/cjs/Emitter.js +24 -0
- package/cjs/accentSets.d.ts +3 -0
- package/cjs/accentSets.js +33 -0
- package/cjs/addOrReplaceAtIdx.d.ts +2 -0
- package/cjs/addOrReplaceAtIdx.js +20 -0
- package/cjs/areEqual.d.ts +4 -0
- package/cjs/areEqual.js +59 -0
- package/cjs/arrayOfAll.d.ts +2 -0
- package/cjs/arrayOfAll.js +10 -0
- package/cjs/arraySum.d.ts +2 -0
- package/cjs/arraySum.js +8 -0
- package/cjs/arrayToLookup.d.ts +2 -0
- package/cjs/arrayToLookup.js +12 -0
- package/cjs/buildUrlQueryString.d.ts +3 -0
- package/cjs/buildUrlQueryString.js +25 -0
- package/cjs/capitalize.d.ts +2 -0
- package/cjs/capitalize.js +10 -0
- package/cjs/changeUrlPath.d.ts +2 -0
- package/cjs/changeUrlPath.js +14 -0
- package/cjs/chunkByChunks.d.ts +2 -0
- package/cjs/chunkByChunks.js +36 -0
- package/cjs/chunkBySize.d.ts +2 -0
- package/cjs/chunkBySize.js +12 -0
- package/cjs/clamp.d.ts +2 -0
- package/cjs/clamp.js +8 -0
- package/cjs/clsx.d.ts +6 -0
- package/cjs/clsx.js +44 -0
- package/cjs/convertRange.d.ts +2 -0
- package/cjs/convertRange.js +8 -0
- package/cjs/cookie.d.ts +18 -0
- package/cjs/cookie.js +4 -0
- package/cjs/createPalette.d.ts +10 -0
- package/cjs/createPalette.js +16 -0
- package/cjs/debounce.d.ts +2 -0
- package/cjs/debounce.js +26 -0
- package/cjs/debouncePromise.d.ts +11 -0
- package/cjs/debouncePromise.js +69 -0
- package/cjs/debounceRaf.d.ts +2 -0
- package/cjs/debounceRaf.js +21 -0
- package/cjs/decode.d.ts +2 -0
- package/cjs/decode.js +10 -0
- package/cjs/encode.d.ts +2 -0
- package/cjs/encode.js +10 -0
- package/cjs/ensureInt.d.ts +2 -0
- package/cjs/ensureInt.js +8 -0
- package/cjs/env.d.ts +0 -0
- package/cjs/env.js +1 -0
- package/cjs/errorToString.d.ts +2 -0
- package/cjs/errorToString.js +9 -0
- package/cjs/findDuplicatedIndexes.d.ts +2 -0
- package/cjs/findDuplicatedIndexes.js +15 -0
- package/cjs/forin.d.ts +2 -0
- package/cjs/forin.js +10 -0
- package/cjs/gbToBytes.d.ts +2 -0
- package/cjs/gbToBytes.js +6 -0
- package/cjs/getEmptyArray.d.ts +2 -0
- package/cjs/getEmptyArray.js +12 -0
- package/cjs/getKeys.d.ts +2 -0
- package/cjs/getKeys.js +5 -0
- package/cjs/getMediaQueryWidthResolvers.d.ts +10 -0
- package/cjs/getMediaQueryWidthResolvers.js +44 -0
- package/cjs/getMediaQueryWidthTailwindScreens.d.ts +5 -0
- package/cjs/getMediaQueryWidthTailwindScreens.js +31 -0
- package/cjs/getNonce.d.ts +2 -0
- package/cjs/getNonce.js +9 -0
- package/cjs/getParamAmong.d.ts +2 -0
- package/cjs/getParamAmong.js +11 -0
- package/cjs/getParamAsInt.d.ts +2 -0
- package/cjs/getParamAsInt.js +14 -0
- package/cjs/getParamAsString.d.ts +2 -0
- package/cjs/getParamAsString.js +9 -0
- package/cjs/getType.d.ts +7 -0
- package/cjs/getType.js +8 -0
- package/cjs/getUrlHashParams.d.ts +3 -0
- package/cjs/getUrlHashParams.js +14 -0
- package/cjs/getUrlHashPathname.d.ts +2 -0
- package/cjs/getUrlHashPathname.js +10 -0
- package/cjs/getUrlPathnameParts.d.ts +2 -0
- package/cjs/getUrlPathnameParts.js +14 -0
- package/cjs/getUrlQueryParams.d.ts +3 -0
- package/cjs/getUrlQueryParams.js +29 -0
- package/cjs/imgEmptyPixel.d.ts +2 -0
- package/cjs/imgEmptyPixel.js +5 -0
- package/{index.mjs → cjs/index.d.ts} +9 -7
- package/cjs/index.js +265 -0
- package/cjs/invariant.d.ts +2 -0
- package/cjs/invariant.js +21 -0
- package/cjs/isAnyObject.d.ts +3 -0
- package/cjs/isAnyObject.js +9 -0
- package/cjs/isArray.d.ts +2 -0
- package/cjs/isArray.js +9 -0
- package/cjs/isBlob.d.ts +2 -0
- package/cjs/isBlob.js +9 -0
- package/cjs/isBoolean.d.ts +2 -0
- package/cjs/isBoolean.js +9 -0
- package/cjs/isBrowser.d.ts +2 -0
- package/cjs/isBrowser.js +5 -0
- package/cjs/isBrowserNow.d.ts +2 -0
- package/cjs/isBrowserNow.js +7 -0
- package/cjs/isDate.d.ts +2 -0
- package/cjs/isDate.js +9 -0
- package/cjs/isEmptyArray.d.ts +2 -0
- package/cjs/isEmptyArray.js +9 -0
- package/cjs/isEmptyObject.d.ts +4 -0
- package/cjs/isEmptyObject.js +9 -0
- package/cjs/isEmptyString.d.ts +2 -0
- package/cjs/isEmptyString.js +8 -0
- package/cjs/isError.d.ts +2 -0
- package/cjs/isError.js +9 -0
- package/cjs/isExternalUrl.d.ts +2 -0
- package/cjs/isExternalUrl.js +16 -0
- package/cjs/isFile.d.ts +2 -0
- package/cjs/isFile.js +9 -0
- package/cjs/isFloat.d.ts +2 -0
- package/cjs/isFloat.js +9 -0
- package/cjs/isFormData.d.ts +2 -0
- package/cjs/isFormData.js +9 -0
- package/cjs/isFullArray.d.ts +2 -0
- package/cjs/isFullArray.js +9 -0
- package/cjs/isFullObject.d.ts +3 -0
- package/cjs/isFullObject.js +9 -0
- package/cjs/isFullString.d.ts +2 -0
- package/cjs/isFullString.js +9 -0
- package/cjs/isFunction.d.ts +3 -0
- package/cjs/isFunction.js +8 -0
- package/cjs/isInt.d.ts +2 -0
- package/cjs/isInt.js +9 -0
- package/cjs/isMap.d.ts +2 -0
- package/cjs/isMap.js +9 -0
- package/cjs/isNaNValue.d.ts +2 -0
- package/cjs/isNaNValue.js +9 -0
- package/cjs/isNegativeNumber.d.ts +2 -0
- package/cjs/isNegativeNumber.js +9 -0
- package/cjs/isNull.d.ts +2 -0
- package/cjs/isNull.js +9 -0
- package/cjs/isNullOrUndefined.d.ts +2 -0
- package/cjs/isNullOrUndefined.js +8 -0
- package/cjs/isNumber.d.ts +2 -0
- package/cjs/isNumber.js +9 -0
- package/cjs/isObject.d.ts +3 -0
- package/cjs/isObject.js +9 -0
- package/cjs/isObjectLike.d.ts +3 -0
- package/cjs/isObjectLike.js +9 -0
- package/cjs/isOneOf.d.ts +6 -0
- package/cjs/isOneOf.js +14 -0
- package/cjs/isPlainObject.d.ts +3 -0
- package/cjs/isPlainObject.js +12 -0
- package/cjs/isPositiveNumber.d.ts +2 -0
- package/cjs/isPositiveNumber.js +9 -0
- package/cjs/isPrimitive.d.ts +2 -0
- package/cjs/isPrimitive.js +19 -0
- package/cjs/isPromise.d.ts +2 -0
- package/cjs/isPromise.js +9 -0
- package/cjs/isRegExp.d.ts +2 -0
- package/cjs/isRegExp.js +9 -0
- package/cjs/isServer.d.ts +2 -0
- package/cjs/isServer.js +6 -0
- package/cjs/isServerNow.d.ts +2 -0
- package/cjs/isServerNow.js +7 -0
- package/cjs/isSet.d.ts +2 -0
- package/cjs/isSet.js +9 -0
- package/cjs/isString.d.ts +2 -0
- package/cjs/isString.js +9 -0
- package/cjs/isSymbol.d.ts +2 -0
- package/cjs/isSymbol.js +9 -0
- package/cjs/isType.d.ts +3 -0
- package/cjs/isType.js +17 -0
- package/cjs/isUndefined.d.ts +2 -0
- package/cjs/isUndefined.js +9 -0
- package/cjs/isWeakMap.d.ts +2 -0
- package/cjs/isWeakMap.js +9 -0
- package/cjs/isWeakSet.d.ts +2 -0
- package/cjs/isWeakSet.js +9 -0
- package/cjs/kbToBytes.d.ts +2 -0
- package/cjs/kbToBytes.js +6 -0
- package/cjs/location.d.ts +1 -0
- package/cjs/location.js +2 -0
- package/cjs/lowercase.d.ts +2 -0
- package/cjs/lowercase.js +8 -0
- package/cjs/mapListBy.d.ts +2 -0
- package/cjs/mapListBy.js +13 -0
- package/cjs/matchSorter.d.ts +54 -0
- package/cjs/matchSorter.js +259 -0
- package/cjs/mbToBytes.d.ts +2 -0
- package/cjs/mbToBytes.js +6 -0
- package/cjs/mergeObjects.d.ts +1 -0
- package/cjs/mergeObjects.js +37 -0
- package/cjs/mergeUrlQueryParams.d.ts +3 -0
- package/cjs/mergeUrlQueryParams.js +20 -0
- package/cjs/moveSortableArrayItemByKey.d.ts +2 -0
- package/cjs/moveSortableArrayItemByKey.js +14 -0
- package/cjs/noop.d.ts +2 -0
- package/cjs/noop.js +6 -0
- package/cjs/normaliseUrl.d.ts +2 -0
- package/cjs/normaliseUrl.js +10 -0
- package/cjs/normaliseUrlPathname.d.ts +2 -0
- package/cjs/normaliseUrlPathname.js +10 -0
- package/cjs/objectOmit.d.ts +2 -0
- package/cjs/objectOmit.js +14 -0
- package/cjs/objectPick.d.ts +2 -0
- package/cjs/objectPick.js +13 -0
- package/cjs/package.json +6 -0
- package/cjs/parseCookie.d.ts +3 -0
- package/cjs/parseCookie.js +38 -0
- package/cjs/parseURL.d.ts +11 -0
- package/cjs/parseURL.js +18 -0
- package/cjs/quaranteneProps.d.ts +7 -0
- package/cjs/quaranteneProps.js +20 -0
- package/cjs/randomInt.d.ts +2 -0
- package/cjs/randomInt.js +8 -0
- package/cjs/randomKey.d.ts +2 -0
- package/cjs/randomKey.js +9 -0
- package/cjs/readCookie.d.ts +3 -0
- package/cjs/readCookie.js +38 -0
- package/cjs/removeAccents.d.ts +3 -0
- package/cjs/removeAccents.js +16 -0
- package/cjs/removeCookie.d.ts +3 -0
- package/cjs/removeCookie.js +12 -0
- package/cjs/removeDuplicates.d.ts +0 -0
- package/cjs/removeDuplicates.js +1 -0
- package/cjs/removeDuplicatesByKey.d.ts +2 -0
- package/cjs/removeDuplicatesByKey.js +18 -0
- package/cjs/removeDuplicatesComparing.d.ts +2 -0
- package/cjs/removeDuplicatesComparing.js +11 -0
- package/cjs/removeIndexesFromArray.d.ts +2 -0
- package/cjs/removeIndexesFromArray.js +14 -0
- package/cjs/removeTrailingSlash.d.ts +2 -0
- package/cjs/removeTrailingSlash.js +9 -0
- package/cjs/removeUrlQueryParams.d.ts +2 -0
- package/cjs/removeUrlQueryParams.js +19 -0
- package/cjs/render.d.ts +13 -0
- package/cjs/render.js +123 -0
- package/cjs/roundTo.d.ts +2 -0
- package/cjs/roundTo.js +16 -0
- package/cjs/serializeCookie.d.ts +3 -0
- package/cjs/serializeCookie.js +74 -0
- package/cjs/setCookie.d.ts +3 -0
- package/cjs/setCookie.js +47 -0
- package/cjs/shuffle.d.ts +2 -0
- package/cjs/shuffle.js +22 -0
- package/cjs/slugify.d.ts +2 -0
- package/cjs/slugify.js +18 -0
- package/cjs/split.d.ts +3 -0
- package/cjs/split.js +8 -0
- package/cjs/swapMap.d.ts +2 -0
- package/cjs/swapMap.js +13 -0
- package/cjs/throttle.d.ts +2 -0
- package/cjs/throttle.js +24 -0
- package/cjs/titleCase.d.ts +2 -0
- package/cjs/titleCase.js +10 -0
- package/cjs/toNumber.d.ts +2 -0
- package/cjs/toNumber.js +9 -0
- package/cjs/toRgba.d.ts +2 -0
- package/cjs/toRgba.js +13 -0
- package/cjs/transformToUrlPathname.d.ts +2 -0
- package/cjs/transformToUrlPathname.js +11 -0
- package/cjs/truncate.d.ts +2 -0
- package/cjs/truncate.js +12 -0
- package/cjs/tryUntil.d.ts +2 -0
- package/cjs/tryUntil.js +19 -0
- package/cjs/types.d.ts +10 -0
- package/cjs/types.js +2 -0
- package/cjs/uid.d.ts +2 -0
- package/cjs/uid.js +11 -0
- package/cjs/updateLinkParams.d.ts +3 -0
- package/cjs/updateLinkParams.js +11 -0
- package/cjs/updateUrlQueryParams.d.ts +3 -0
- package/cjs/updateUrlQueryParams.js +16 -0
- package/cjs/uppercase.d.ts +2 -0
- package/cjs/uppercase.js +8 -0
- package/cjs/uuid.d.ts +2 -0
- package/cjs/uuid.js +11 -0
- package/cjs/uuidNumeric.d.ts +2 -0
- package/cjs/uuidNumeric.js +6 -0
- package/cjs/wait.d.ts +2 -0
- package/cjs/wait.js +8 -0
- package/cjs/without.d.ts +0 -0
- package/cjs/without.js +1 -0
- package/clamp.d.ts +0 -6
- package/clamp.js +4 -0
- package/clsx.d.ts +0 -7
- package/clsx.js +40 -0
- package/convertRange.d.ts +0 -14
- package/convertRange.js +4 -0
- package/cookie.d.ts +0 -48
- package/cookie.js +1 -0
- package/createPalette.d.ts +0 -12
- package/createPalette.js +12 -0
- package/debounce.d.ts +0 -6
- package/debounce.js +22 -0
- package/debouncePromise.d.ts +0 -18
- package/debouncePromise.js +65 -0
- package/debounceRaf.d.ts +0 -7
- package/debounceRaf.js +17 -0
- package/decode.d.ts +0 -4
- package/decode.js +6 -0
- package/encode.d.ts +0 -4
- package/encode.js +6 -0
- package/ensureInt.d.ts +0 -5
- package/ensureInt.js +4 -0
- package/env.js +1 -0
- package/errorToString.d.ts +0 -6
- package/errorToString.js +5 -0
- package/findDuplicatedIndexes.d.ts +0 -3
- package/findDuplicatedIndexes.js +11 -0
- package/forin.d.ts +0 -6
- package/forin.js +6 -0
- package/gbToBytes.d.ts +0 -5
- package/gbToBytes.js +2 -0
- package/getEmptyArray.d.ts +0 -6
- package/getEmptyArray.js +8 -0
- package/getKeys.d.ts +0 -8
- package/getKeys.js +2 -0
- package/getMediaQueryWidthResolvers.d.ts +0 -6
- package/getMediaQueryWidthResolvers.js +40 -0
- package/getMediaQueryWidthTailwindScreens.d.ts +1 -5
- package/getMediaQueryWidthTailwindScreens.js +27 -0
- package/getNonce.d.ts +0 -4
- package/getNonce.js +5 -0
- package/getParamAmong.d.ts +0 -11
- package/getParamAmong.js +7 -0
- package/getParamAsInt.d.ts +0 -10
- package/getParamAsInt.js +10 -0
- package/getParamAsString.d.ts +0 -9
- package/getParamAsString.js +5 -0
- package/getType.d.ts +0 -12
- package/getType.js +4 -0
- package/getUrlHashParams.d.ts +1 -7
- package/getUrlHashParams.js +10 -0
- package/getUrlHashPathname.d.ts +0 -7
- package/getUrlHashPathname.js +6 -0
- package/getUrlPathnameParts.d.ts +0 -10
- package/getUrlPathnameParts.js +10 -0
- package/getUrlQueryParams.d.ts +1 -11
- package/getUrlQueryParams.js +25 -0
- package/imgEmptyPixel.d.ts +0 -5
- package/imgEmptyPixel.js +2 -0
- package/index.d.ts +133 -136
- package/index.js +130 -0
- package/invariant.d.ts +0 -17
- package/invariant.js +17 -0
- package/isAnyObject.d.ts +1 -6
- package/isAnyObject.js +5 -0
- package/isArray.d.ts +0 -5
- package/isArray.js +5 -0
- package/isBlob.d.ts +0 -5
- package/isBlob.js +5 -0
- package/isBoolean.d.ts +0 -5
- package/isBoolean.js +5 -0
- package/isBrowser.d.ts +0 -4
- package/isBrowser.js +2 -0
- package/isBrowserNow.d.ts +0 -4
- package/isBrowserNow.js +3 -0
- package/isDate.d.ts +0 -5
- package/isDate.js +5 -0
- package/isEmptyArray.d.ts +0 -5
- package/isEmptyArray.js +5 -0
- package/isEmptyObject.d.ts +0 -5
- package/isEmptyObject.js +5 -0
- package/isEmptyString.d.ts +0 -5
- package/isEmptyString.js +4 -0
- package/isError.d.ts +0 -5
- package/isError.js +5 -0
- package/isExternalUrl.d.ts +0 -7
- package/isExternalUrl.js +12 -0
- package/isFile.d.ts +0 -5
- package/isFile.js +5 -0
- package/isFloat.d.ts +0 -5
- package/isFloat.js +5 -0
- package/isFormData.d.ts +0 -5
- package/isFormData.js +5 -0
- package/isFullArray.d.ts +0 -5
- package/isFullArray.js +5 -0
- package/isFullObject.d.ts +1 -6
- package/isFullObject.js +5 -0
- package/isFullString.d.ts +0 -5
- package/isFullString.js +5 -0
- package/isFunction.d.ts +1 -6
- package/isFunction.js +4 -0
- package/isInt.d.ts +0 -5
- package/isInt.js +5 -0
- package/isMap.d.ts +0 -5
- package/isMap.js +5 -0
- package/isNaNValue.d.ts +0 -5
- package/isNaNValue.js +5 -0
- package/isNegativeNumber.d.ts +0 -5
- package/isNegativeNumber.js +5 -0
- package/isNull.d.ts +0 -5
- package/isNull.js +5 -0
- package/isNullOrUndefined.d.ts +0 -5
- package/isNullOrUndefined.js +5 -0
- package/isNumber.d.ts +0 -7
- package/isNumber.js +5 -0
- package/isObject.d.ts +1 -6
- package/isObject.js +5 -0
- package/isObjectLike.d.ts +1 -8
- package/isObjectLike.js +5 -0
- package/isOneOf.d.ts +1 -4
- package/isOneOf.js +10 -0
- package/isPlainObject.d.ts +1 -6
- package/isPlainObject.js +8 -0
- package/isPositiveNumber.d.ts +0 -5
- package/isPositiveNumber.js +5 -0
- package/isPrimitive.d.ts +0 -5
- package/isPrimitive.js +15 -0
- package/isPromise.d.ts +0 -5
- package/isPromise.js +5 -0
- package/isRegExp.d.ts +0 -5
- package/isRegExp.js +5 -0
- package/isServer.d.ts +0 -4
- package/isServer.js +3 -0
- package/isServerNow.d.ts +0 -4
- package/isServerNow.js +3 -0
- package/isSet.d.ts +0 -5
- package/isSet.js +5 -0
- package/isString.d.ts +0 -5
- package/isString.js +5 -0
- package/isSymbol.d.ts +0 -5
- package/isSymbol.js +5 -0
- package/isType.d.ts +1 -9
- package/isType.js +13 -0
- package/isUndefined.d.ts +0 -5
- package/isUndefined.js +5 -0
- package/isWeakMap.d.ts +0 -5
- package/isWeakMap.js +5 -0
- package/isWeakSet.d.ts +0 -5
- package/isWeakSet.js +5 -0
- package/kbToBytes.d.ts +0 -5
- package/kbToBytes.js +2 -0
- package/location.d.ts +0 -3
- package/location.js +1 -0
- package/lowercase.d.ts +0 -5
- package/lowercase.js +4 -0
- package/mapListBy.d.ts +0 -5
- package/mapListBy.js +9 -0
- package/matchSorter.d.ts +0 -7
- package/matchSorter.js +255 -0
- package/mbToBytes.d.ts +0 -5
- package/mbToBytes.js +2 -0
- package/mergeObjects.d.ts +0 -6
- package/mergeObjects.js +33 -0
- package/mergeUrlQueryParams.d.ts +1 -6
- package/mergeUrlQueryParams.js +16 -0
- package/moveSortableArrayItemByKey.d.ts +0 -7
- package/moveSortableArrayItemByKey.js +10 -0
- package/noop.d.ts +0 -5
- package/noop.js +2 -0
- package/normaliseUrl.d.ts +0 -9
- package/normaliseUrl.js +6 -0
- package/normaliseUrlPathname.d.ts +0 -8
- package/normaliseUrlPathname.js +6 -0
- package/objectOmit.d.ts +0 -9
- package/objectOmit.js +10 -0
- package/objectPick.d.ts +0 -6
- package/objectPick.js +9 -0
- package/package.json +568 -6
- package/parseCookie.d.ts +1 -9
- package/parseCookie.js +34 -0
- package/parseURL.d.ts +0 -6
- package/parseURL.js +14 -0
- package/quaranteneProps.d.ts +0 -15
- package/quaranteneProps.js +16 -0
- package/randomInt.d.ts +0 -5
- package/randomInt.js +4 -0
- package/randomKey.d.ts +0 -6
- package/randomKey.js +5 -0
- package/readCookie.d.ts +0 -5
- package/{readCookie.mjs → readCookie.js} +8 -7
- package/removeAccents.d.ts +1 -4
- package/removeAccents.js +12 -0
- package/removeCookie.d.ts +1 -4
- package/removeCookie.js +8 -0
- package/removeDuplicates.js +1 -0
- package/removeDuplicatesByKey.d.ts +0 -6
- package/removeDuplicatesByKey.js +14 -0
- package/removeDuplicatesComparing.d.ts +0 -3
- package/removeDuplicatesComparing.js +7 -0
- package/removeIndexesFromArray.d.ts +0 -3
- package/removeIndexesFromArray.js +10 -0
- package/removeTrailingSlash.d.ts +0 -5
- package/removeTrailingSlash.js +5 -0
- package/removeUrlQueryParams.d.ts +0 -5
- package/removeUrlQueryParams.js +15 -0
- package/render.d.ts +0 -40
- package/render.js +119 -0
- package/roundTo.d.ts +0 -6
- package/roundTo.js +12 -0
- package/serializeCookie.d.ts +1 -21
- package/{serializeCookie.mjs → serializeCookie.js} +9 -33
- package/setCookie.d.ts +1 -4
- package/setCookie.js +43 -0
- package/shuffle.d.ts +0 -15
- package/shuffle.js +18 -0
- package/slugify.d.ts +0 -10
- package/slugify.js +14 -0
- package/split.d.ts +0 -4
- package/split.js +4 -0
- package/swapMap.d.ts +0 -5
- package/swapMap.js +9 -0
- package/throttle.d.ts +0 -7
- package/throttle.js +20 -0
- package/titleCase.d.ts +0 -6
- package/titleCase.js +6 -0
- package/toNumber.d.ts +0 -3
- package/toNumber.js +5 -0
- package/toRgba.d.ts +0 -3
- package/toRgba.js +9 -0
- package/transformToUrlPathname.d.ts +0 -9
- package/transformToUrlPathname.js +7 -0
- package/truncate.d.ts +0 -5
- package/truncate.js +8 -0
- package/tryUntil.d.ts +0 -9
- package/tryUntil.js +15 -0
- package/types.d.ts +0 -18
- package/types.js +1 -0
- package/uid.d.ts +0 -5
- package/uid.js +7 -0
- package/updateLinkParams.d.ts +1 -8
- package/updateLinkParams.js +7 -0
- package/updateUrlQueryParams.d.ts +1 -6
- package/updateUrlQueryParams.js +12 -0
- package/uppercase.d.ts +0 -6
- package/uppercase.js +4 -0
- package/uuid.d.ts +0 -6
- package/uuid.js +7 -0
- package/uuidNumeric.d.ts +0 -4
- package/uuidNumeric.js +2 -0
- package/wait.d.ts +0 -5
- package/wait.js +4 -0
- package/without.js +1 -0
- package/Defer.mjs +0 -27
- package/Emitter.mjs +0 -37
- package/README.md +0 -47
- package/accentSets.mjs +0 -123
- package/addOrReplaceAtIdx.mjs +0 -26
- package/areEqual.mjs +0 -71
- package/arrayOfAll.mjs +0 -26
- package/arraySum.mjs +0 -7
- package/arrayToLookup.mjs +0 -11
- package/buildUrlQueryString.mjs +0 -28
- package/capitalize.mjs +0 -11
- package/changeUrlPath.mjs +0 -17
- package/chunkByChunks.mjs +0 -34
- package/chunkBySize.mjs +0 -11
- package/clamp.mjs +0 -9
- package/clsx.mjs +0 -48
- package/convertRange.mjs +0 -17
- package/cookie.mjs +0 -15
- package/createPalette.mjs +0 -32
- package/debounce.mjs +0 -21
- package/debouncePromise.mjs +0 -79
- package/debounceRaf.mjs +0 -22
- package/decode.mjs +0 -9
- package/encode.mjs +0 -9
- package/ensureInt.mjs +0 -6
- package/env.mjs +0 -2
- package/errorToString.mjs +0 -8
- package/findDuplicatedIndexes.mjs +0 -13
- package/forin.mjs +0 -11
- package/gbToBytes.mjs +0 -6
- package/getEmptyArray.mjs +0 -15
- package/getKeys.mjs +0 -9
- package/getMediaQueryWidthResolvers.mjs +0 -67
- package/getMediaQueryWidthTailwindScreens.mjs +0 -36
- package/getNonce.mjs +0 -8
- package/getParamAmong.mjs +0 -16
- package/getParamAsInt.mjs +0 -18
- package/getParamAsString.mjs +0 -13
- package/getType.mjs +0 -14
- package/getUrlHashParams.mjs +0 -14
- package/getUrlHashPathname.mjs +0 -11
- package/getUrlPathnameParts.mjs +0 -15
- package/getUrlQueryParams.mjs +0 -26
- package/imgEmptyPixel.mjs +0 -6
- package/invariant.mjs +0 -32
- package/isAnyObject.mjs +0 -9
- package/isArray.mjs +0 -9
- package/isBlob.mjs +0 -9
- package/isBoolean.mjs +0 -9
- package/isBrowser.mjs +0 -5
- package/isBrowserNow.mjs +0 -6
- package/isDate.mjs +0 -9
- package/isEmptyArray.mjs +0 -9
- package/isEmptyObject.mjs +0 -9
- package/isEmptyString.mjs +0 -8
- package/isError.mjs +0 -9
- package/isExternalUrl.mjs +0 -19
- package/isFile.mjs +0 -9
- package/isFloat.mjs +0 -9
- package/isFormData.mjs +0 -9
- package/isFullArray.mjs +0 -9
- package/isFullObject.mjs +0 -9
- package/isFullString.mjs +0 -9
- package/isFunction.mjs +0 -8
- package/isInt.mjs +0 -9
- package/isMap.mjs +0 -9
- package/isNaNValue.mjs +0 -9
- package/isNegativeNumber.mjs +0 -9
- package/isNull.mjs +0 -9
- package/isNullOrUndefined.mjs +0 -9
- package/isNumber.mjs +0 -11
- package/isObject.mjs +0 -9
- package/isObjectLike.mjs +0 -11
- package/isOneOf.mjs +0 -4
- package/isPlainObject.mjs +0 -10
- package/isPositiveNumber.mjs +0 -9
- package/isPrimitive.mjs +0 -14
- package/isPromise.mjs +0 -9
- package/isRegExp.mjs +0 -9
- package/isServer.mjs +0 -7
- package/isServerNow.mjs +0 -6
- package/isSet.mjs +0 -9
- package/isString.mjs +0 -9
- package/isSymbol.mjs +0 -9
- package/isType.mjs +0 -20
- package/isUndefined.mjs +0 -9
- package/isWeakMap.mjs +0 -9
- package/isWeakSet.mjs +0 -9
- package/kbToBytes.mjs +0 -6
- package/location.mjs +0 -3
- package/lowercase.mjs +0 -6
- package/mapListBy.mjs +0 -11
- package/matchSorter.mjs +0 -352
- package/mbToBytes.mjs +0 -6
- package/mergeObjects.mjs +0 -34
- package/mergeUrlQueryParams.mjs +0 -17
- package/moveSortableArrayItemByKey.mjs +0 -17
- package/noop.mjs +0 -6
- package/normaliseUrl.mjs +0 -13
- package/normaliseUrlPathname.mjs +0 -12
- package/objectOmit.mjs +0 -17
- package/objectPick.mjs +0 -14
- package/parseCookie.mjs +0 -44
- package/parseURL.mjs +0 -19
- package/quaranteneProps.mjs +0 -31
- package/randomInt.mjs +0 -8
- package/randomKey.mjs +0 -10
- package/removeAccents.mjs +0 -12
- package/removeCookie.mjs +0 -12
- package/removeDuplicates.mjs +0 -12
- package/removeDuplicatesByKey.mjs +0 -18
- package/removeDuplicatesComparing.mjs +0 -9
- package/removeIndexesFromArray.mjs +0 -13
- package/removeTrailingSlash.mjs +0 -8
- package/removeUrlQueryParams.mjs +0 -18
- package/render.mjs +0 -111
- package/roundTo.mjs +0 -32
- package/setCookie.mjs +0 -51
- package/shuffle.mjs +0 -33
- package/slugify.mjs +0 -26
- package/split.mjs +0 -7
- package/swapMap.mjs +0 -12
- package/throttle.mjs +0 -20
- package/titleCase.mjs +0 -7
- package/toNumber.mjs +0 -7
- package/toRgba.mjs +0 -14
- package/transformToUrlPathname.mjs +0 -13
- package/truncate.mjs +0 -6
- package/tryUntil.mjs +0 -27
- package/types.mjs +0 -2
- package/uid.mjs +0 -10
- package/updateLinkParams.mjs +0 -13
- package/updateUrlQueryParams.mjs +0 -13
- package/uppercase.mjs +0 -7
- package/uuid.mjs +0 -10
- package/uuidNumeric.mjs +0 -5
- package/wait.mjs +0 -6
- package/without.mjs +0 -54
package/index.d.ts
CHANGED
|
@@ -1,137 +1,134 @@
|
|
|
1
|
-
export { accentsSets, type AccentsSet } from "./accentSets";
|
|
2
|
-
export { addOrReplaceAtIdx } from "./addOrReplaceAtIdx";
|
|
3
|
-
export { areEqual } from "./areEqual";
|
|
4
|
-
export { arrayOfAll } from "./arrayOfAll";
|
|
5
|
-
export { arraySum } from "./arraySum";
|
|
6
|
-
export { arrayToLookup } from "./arrayToLookup";
|
|
7
|
-
export { buildUrlQueryString } from "./buildUrlQueryString";
|
|
8
|
-
export { capitalize } from "./capitalize";
|
|
9
|
-
export { changeUrlPath } from "./changeUrlPath";
|
|
10
|
-
export { chunkByChunks } from "./chunkByChunks";
|
|
11
|
-
export { chunkBySize } from "./chunkBySize";
|
|
12
|
-
export { clamp } from "./clamp";
|
|
13
|
-
export { clsx, type ClsxClassValue } from "./clsx";
|
|
14
|
-
export { convertRange } from "./convertRange";
|
|
15
|
-
export { type CookieAttributesClient, type CookieAttributesServer, } from "./cookie";
|
|
16
|
-
export { createPalette } from "./createPalette";
|
|
17
|
-
export { debounce } from "./debounce";
|
|
18
|
-
export { debounceRaf } from "./debounceRaf";
|
|
19
|
-
export { debouncePromise, type DebounceOptions, type DebouncedFunction, } from "./debouncePromise";
|
|
20
|
-
export { decode } from "./decode";
|
|
21
|
-
export { Defer, type Deferred } from "./Defer";
|
|
22
|
-
export { Emitter } from "./Emitter";
|
|
23
|
-
export { encode } from "./encode";
|
|
24
|
-
export { ensureInt } from "./ensureInt";
|
|
25
|
-
export { errorToString } from "./errorToString";
|
|
26
|
-
export { findDuplicatedIndexes } from "./findDuplicatedIndexes";
|
|
27
|
-
export { forin } from "./forin";
|
|
28
|
-
export { gbToBytes } from "./gbToBytes";
|
|
29
|
-
export { getEmptyArray } from "./getEmptyArray";
|
|
30
|
-
export { getKeys } from "./getKeys";
|
|
31
|
-
export { getMediaQueryWidthResolvers } from "./getMediaQueryWidthResolvers";
|
|
32
|
-
export { getMediaQueryWidthTailwindScreens } from "./getMediaQueryWidthTailwindScreens";
|
|
33
|
-
export { getNonce } from "./getNonce";
|
|
34
|
-
export { getParamAmong } from "./getParamAmong";
|
|
35
|
-
export { getParamAsInt } from "./getParamAsInt";
|
|
36
|
-
export { getParamAsString } from "./getParamAsString";
|
|
37
|
-
export { type AnyClass, type AnyAsyncFunction, type AnyFunction, type PlainObject, type TypeGuard, getType, } from "./getType";
|
|
38
|
-
export { getUrlHashParams } from "./getUrlHashParams";
|
|
39
|
-
export { getUrlHashPathname } from "./getUrlHashPathname";
|
|
40
|
-
export { getUrlPathnameParts } from "./getUrlPathnameParts";
|
|
41
|
-
export { getUrlQueryParams } from "./getUrlQueryParams";
|
|
42
|
-
export { imgEmptyPixel } from "./imgEmptyPixel";
|
|
43
|
-
export { isAnyObject } from "./isAnyObject";
|
|
44
|
-
export { isArray } from "./isArray";
|
|
45
|
-
export { isBlob } from "./isBlob";
|
|
46
|
-
export { isBoolean } from "./isBoolean";
|
|
47
|
-
export { isBrowser } from "./isBrowser";
|
|
48
|
-
export { isBrowserNow } from "./isBrowserNow";
|
|
49
|
-
export { isDate } from "./isDate";
|
|
50
|
-
export { isEmptyArray } from "./isEmptyArray";
|
|
51
|
-
export { isEmptyObject } from "./isEmptyObject";
|
|
52
|
-
export { isEmptyString } from "./isEmptyString";
|
|
53
|
-
export { isError } from "./isError";
|
|
54
|
-
export { isExternalUrl } from "./isExternalUrl";
|
|
55
|
-
export { isFile } from "./isFile";
|
|
56
|
-
export { isFloat } from "./isFloat";
|
|
57
|
-
export { isFormData } from "./isFormData";
|
|
58
|
-
export { isFullArray } from "./isFullArray";
|
|
59
|
-
export { isFullObject } from "./isFullObject";
|
|
60
|
-
export { isFullString } from "./isFullString";
|
|
61
|
-
export { isFunction } from "./isFunction";
|
|
62
|
-
export { isInt } from "./isInt";
|
|
63
|
-
export { isMap } from "./isMap";
|
|
64
|
-
export { isNaNValue } from "./isNaNValue";
|
|
65
|
-
export { isNegativeNumber } from "./isNegativeNumber";
|
|
66
|
-
export { isNullOrUndefined } from "./isNullOrUndefined";
|
|
67
|
-
export { isNull } from "./isNull";
|
|
68
|
-
export { isNumber } from "./isNumber";
|
|
69
|
-
export { isObjectLike } from "./isObjectLike";
|
|
70
|
-
export { isObject } from "./isObject";
|
|
71
|
-
export { isOneOf } from "./isOneOf";
|
|
72
|
-
export { isPlainObject } from "./isPlainObject";
|
|
73
|
-
export { isPositiveNumber } from "./isPositiveNumber";
|
|
74
|
-
export { isPrimitive } from "./isPrimitive";
|
|
75
|
-
export { isPromise } from "./isPromise";
|
|
76
|
-
export { isRegExp } from "./isRegExp";
|
|
77
|
-
export { isServer } from "./isServer";
|
|
78
|
-
export { isServerNow } from "./isServerNow";
|
|
79
|
-
export { isSet } from "./isSet";
|
|
80
|
-
export { isString } from "./isString";
|
|
81
|
-
export { isSymbol } from "./isSymbol";
|
|
82
|
-
export { isType } from "./isType";
|
|
83
|
-
export { isUndefined } from "./isUndefined";
|
|
84
|
-
export { isWeakMap } from "./isWeakMap";
|
|
85
|
-
export { isWeakSet } from "./isWeakSet";
|
|
86
|
-
export { kbToBytes } from "./kbToBytes";
|
|
87
|
-
export { type AnyQueryParams } from "./location";
|
|
88
|
-
export { lowercase } from "./lowercase";
|
|
89
|
-
export { mapListBy } from "./mapListBy";
|
|
90
|
-
export { matchSorter } from "./matchSorter";
|
|
91
|
-
export { mbToBytes } from "./mbToBytes";
|
|
92
|
-
export { mergeObjects } from "./mergeObjects";
|
|
93
|
-
export { mergeUrlQueryParams } from "./mergeUrlQueryParams";
|
|
94
|
-
export { moveSortableArrayItemByKey } from "./moveSortableArrayItemByKey";
|
|
95
|
-
export { noop } from "./noop";
|
|
96
|
-
export { normaliseUrlPathname } from "./normaliseUrlPathname";
|
|
97
|
-
export { normaliseUrl } from "./normaliseUrl";
|
|
98
|
-
export { objectPick } from "./objectPick";
|
|
99
|
-
export { objectOmit } from "./objectOmit";
|
|
100
|
-
export { parseCookie } from "./parseCookie";
|
|
101
|
-
export { parseURL } from "./parseURL";
|
|
102
|
-
export { quaranteneProps } from "./quaranteneProps";
|
|
103
|
-
export { randomInt } from "./randomInt";
|
|
104
|
-
export { randomKey } from "./randomKey";
|
|
105
|
-
export { readCookie } from "./readCookie";
|
|
106
|
-
export { removeAccents } from "./removeAccents";
|
|
107
|
-
export { removeCookie } from "./removeCookie";
|
|
108
|
-
export { removeDuplicatesByKey } from "./removeDuplicatesByKey";
|
|
109
|
-
export { removeDuplicatesComparing } from "./removeDuplicatesComparing";
|
|
110
|
-
export { removeIndexesFromArray } from "./removeIndexesFromArray";
|
|
111
|
-
export { removeTralingSlash } from "./removeTrailingSlash";
|
|
112
|
-
export { removeUrlQueryParams } from "./removeUrlQueryParams";
|
|
113
|
-
export { roundTo } from "./roundTo";
|
|
114
|
-
export { serializeCookie } from "./serializeCookie";
|
|
115
|
-
export { setCookie } from "./setCookie";
|
|
116
|
-
export { shuffle } from "./shuffle";
|
|
117
|
-
export { slugify } from "./slugify";
|
|
118
|
-
export { swapMap } from "./swapMap";
|
|
119
|
-
export { throttle } from "./throttle";
|
|
120
|
-
export { titleCase } from "./titleCase";
|
|
121
|
-
export { toNumber } from "./toNumber";
|
|
122
|
-
export { toRgba } from "./toRgba";
|
|
123
|
-
export { transformToUrlPathname } from "./transformToUrlPathname";
|
|
124
|
-
export { truncate } from "./truncate";
|
|
125
|
-
export { tryUntil } from "./tryUntil";
|
|
126
|
-
export { uid } from "./uid";
|
|
127
|
-
export { updateLinkParams } from "./updateLinkParams";
|
|
128
|
-
export { updateUrlQueryParams } from "./updateUrlQueryParams";
|
|
129
|
-
export { uppercase } from "./uppercase";
|
|
130
|
-
export { uuid } from "./uuid";
|
|
131
|
-
export { uuidNumeric } from "./uuidNumeric";
|
|
132
|
-
export { wait } from "./wait";
|
|
133
|
-
export type { AnythingFalsy, KeysStartsWith, KeysTailsStartsWith, PickStartsWith, PickStartsWithTails, } from "./types";
|
|
134
|
-
/**
|
|
135
|
-
* These types should not be documented by using [`excludeExternals` TypeDoc flag](https://typedoc.org/options/input/#excludeexternals)
|
|
136
|
-
*/
|
|
1
|
+
export { accentsSets, type AccentsSet } from "./accentSets.js";
|
|
2
|
+
export { addOrReplaceAtIdx } from "./addOrReplaceAtIdx.js";
|
|
3
|
+
export { areEqual } from "./areEqual.js";
|
|
4
|
+
export { arrayOfAll } from "./arrayOfAll.js";
|
|
5
|
+
export { arraySum } from "./arraySum.js";
|
|
6
|
+
export { arrayToLookup } from "./arrayToLookup.js";
|
|
7
|
+
export { buildUrlQueryString } from "./buildUrlQueryString.js";
|
|
8
|
+
export { capitalize } from "./capitalize.js";
|
|
9
|
+
export { changeUrlPath } from "./changeUrlPath.js";
|
|
10
|
+
export { chunkByChunks } from "./chunkByChunks.js";
|
|
11
|
+
export { chunkBySize } from "./chunkBySize.js";
|
|
12
|
+
export { clamp } from "./clamp.js";
|
|
13
|
+
export { clsx, type ClsxClassValue } from "./clsx.js";
|
|
14
|
+
export { convertRange } from "./convertRange.js";
|
|
15
|
+
export { type CookieAttributesClient, type CookieAttributesServer, } from "./cookie.js";
|
|
16
|
+
export { createPalette } from "./createPalette.js";
|
|
17
|
+
export { debounce } from "./debounce.js";
|
|
18
|
+
export { debounceRaf } from "./debounceRaf.js";
|
|
19
|
+
export { debouncePromise, type DebounceOptions, type DebouncedFunction, } from "./debouncePromise.js";
|
|
20
|
+
export { decode } from "./decode.js";
|
|
21
|
+
export { Defer, type Deferred } from "./Defer.js";
|
|
22
|
+
export { Emitter } from "./Emitter.js";
|
|
23
|
+
export { encode } from "./encode.js";
|
|
24
|
+
export { ensureInt } from "./ensureInt.js";
|
|
25
|
+
export { errorToString } from "./errorToString.js";
|
|
26
|
+
export { findDuplicatedIndexes } from "./findDuplicatedIndexes.js";
|
|
27
|
+
export { forin } from "./forin.js";
|
|
28
|
+
export { gbToBytes } from "./gbToBytes.js";
|
|
29
|
+
export { getEmptyArray } from "./getEmptyArray.js";
|
|
30
|
+
export { getKeys } from "./getKeys.js";
|
|
31
|
+
export { getMediaQueryWidthResolvers } from "./getMediaQueryWidthResolvers.js";
|
|
32
|
+
export { getMediaQueryWidthTailwindScreens } from "./getMediaQueryWidthTailwindScreens.js";
|
|
33
|
+
export { getNonce } from "./getNonce.js";
|
|
34
|
+
export { getParamAmong } from "./getParamAmong.js";
|
|
35
|
+
export { getParamAsInt } from "./getParamAsInt.js";
|
|
36
|
+
export { getParamAsString } from "./getParamAsString.js";
|
|
37
|
+
export { type AnyClass, type AnyAsyncFunction, type AnyFunction, type PlainObject, type TypeGuard, getType, } from "./getType.js";
|
|
38
|
+
export { getUrlHashParams } from "./getUrlHashParams.js";
|
|
39
|
+
export { getUrlHashPathname } from "./getUrlHashPathname.js";
|
|
40
|
+
export { getUrlPathnameParts } from "./getUrlPathnameParts.js";
|
|
41
|
+
export { getUrlQueryParams } from "./getUrlQueryParams.js";
|
|
42
|
+
export { imgEmptyPixel } from "./imgEmptyPixel.js";
|
|
43
|
+
export { isAnyObject } from "./isAnyObject.js";
|
|
44
|
+
export { isArray } from "./isArray.js";
|
|
45
|
+
export { isBlob } from "./isBlob.js";
|
|
46
|
+
export { isBoolean } from "./isBoolean.js";
|
|
47
|
+
export { isBrowser } from "./isBrowser.js";
|
|
48
|
+
export { isBrowserNow } from "./isBrowserNow.js";
|
|
49
|
+
export { isDate } from "./isDate.js";
|
|
50
|
+
export { isEmptyArray } from "./isEmptyArray.js";
|
|
51
|
+
export { isEmptyObject } from "./isEmptyObject.js";
|
|
52
|
+
export { isEmptyString } from "./isEmptyString.js";
|
|
53
|
+
export { isError } from "./isError.js";
|
|
54
|
+
export { isExternalUrl } from "./isExternalUrl.js";
|
|
55
|
+
export { isFile } from "./isFile.js";
|
|
56
|
+
export { isFloat } from "./isFloat.js";
|
|
57
|
+
export { isFormData } from "./isFormData.js";
|
|
58
|
+
export { isFullArray } from "./isFullArray.js";
|
|
59
|
+
export { isFullObject } from "./isFullObject.js";
|
|
60
|
+
export { isFullString } from "./isFullString.js";
|
|
61
|
+
export { isFunction } from "./isFunction.js";
|
|
62
|
+
export { isInt } from "./isInt.js";
|
|
63
|
+
export { isMap } from "./isMap.js";
|
|
64
|
+
export { isNaNValue } from "./isNaNValue.js";
|
|
65
|
+
export { isNegativeNumber } from "./isNegativeNumber.js";
|
|
66
|
+
export { isNullOrUndefined } from "./isNullOrUndefined.js";
|
|
67
|
+
export { isNull } from "./isNull.js";
|
|
68
|
+
export { isNumber } from "./isNumber.js";
|
|
69
|
+
export { isObjectLike } from "./isObjectLike.js";
|
|
70
|
+
export { isObject } from "./isObject.js";
|
|
71
|
+
export { isOneOf } from "./isOneOf.js";
|
|
72
|
+
export { isPlainObject } from "./isPlainObject.js";
|
|
73
|
+
export { isPositiveNumber } from "./isPositiveNumber.js";
|
|
74
|
+
export { isPrimitive } from "./isPrimitive.js";
|
|
75
|
+
export { isPromise } from "./isPromise.js";
|
|
76
|
+
export { isRegExp } from "./isRegExp.js";
|
|
77
|
+
export { isServer } from "./isServer.js";
|
|
78
|
+
export { isServerNow } from "./isServerNow.js";
|
|
79
|
+
export { isSet } from "./isSet.js";
|
|
80
|
+
export { isString } from "./isString.js";
|
|
81
|
+
export { isSymbol } from "./isSymbol.js";
|
|
82
|
+
export { isType } from "./isType.js";
|
|
83
|
+
export { isUndefined } from "./isUndefined.js";
|
|
84
|
+
export { isWeakMap } from "./isWeakMap.js";
|
|
85
|
+
export { isWeakSet } from "./isWeakSet.js";
|
|
86
|
+
export { kbToBytes } from "./kbToBytes.js";
|
|
87
|
+
export { type AnyQueryParams } from "./location.js";
|
|
88
|
+
export { lowercase } from "./lowercase.js";
|
|
89
|
+
export { mapListBy } from "./mapListBy.js";
|
|
90
|
+
export { matchSorter } from "./matchSorter.js";
|
|
91
|
+
export { mbToBytes } from "./mbToBytes.js";
|
|
92
|
+
export { mergeObjects } from "./mergeObjects.js";
|
|
93
|
+
export { mergeUrlQueryParams } from "./mergeUrlQueryParams.js";
|
|
94
|
+
export { moveSortableArrayItemByKey } from "./moveSortableArrayItemByKey.js";
|
|
95
|
+
export { noop } from "./noop.js";
|
|
96
|
+
export { normaliseUrlPathname } from "./normaliseUrlPathname.js";
|
|
97
|
+
export { normaliseUrl } from "./normaliseUrl.js";
|
|
98
|
+
export { objectPick } from "./objectPick.js";
|
|
99
|
+
export { objectOmit } from "./objectOmit.js";
|
|
100
|
+
export { parseCookie } from "./parseCookie.js";
|
|
101
|
+
export { parseURL } from "./parseURL.js";
|
|
102
|
+
export { quaranteneProps } from "./quaranteneProps.js";
|
|
103
|
+
export { randomInt } from "./randomInt.js";
|
|
104
|
+
export { randomKey } from "./randomKey.js";
|
|
105
|
+
export { readCookie } from "./readCookie.js";
|
|
106
|
+
export { removeAccents } from "./removeAccents.js";
|
|
107
|
+
export { removeCookie } from "./removeCookie.js";
|
|
108
|
+
export { removeDuplicatesByKey } from "./removeDuplicatesByKey.js";
|
|
109
|
+
export { removeDuplicatesComparing } from "./removeDuplicatesComparing.js";
|
|
110
|
+
export { removeIndexesFromArray } from "./removeIndexesFromArray.js";
|
|
111
|
+
export { removeTralingSlash } from "./removeTrailingSlash.js";
|
|
112
|
+
export { removeUrlQueryParams } from "./removeUrlQueryParams.js";
|
|
113
|
+
export { roundTo } from "./roundTo.js";
|
|
114
|
+
export { serializeCookie } from "./serializeCookie.js";
|
|
115
|
+
export { setCookie } from "./setCookie.js";
|
|
116
|
+
export { shuffle } from "./shuffle.js";
|
|
117
|
+
export { slugify } from "./slugify.js";
|
|
118
|
+
export { swapMap } from "./swapMap.js";
|
|
119
|
+
export { throttle } from "./throttle.js";
|
|
120
|
+
export { titleCase } from "./titleCase.js";
|
|
121
|
+
export { toNumber } from "./toNumber.js";
|
|
122
|
+
export { toRgba } from "./toRgba.js";
|
|
123
|
+
export { transformToUrlPathname } from "./transformToUrlPathname.js";
|
|
124
|
+
export { truncate } from "./truncate.js";
|
|
125
|
+
export { tryUntil } from "./tryUntil.js";
|
|
126
|
+
export { uid } from "./uid.js";
|
|
127
|
+
export { updateLinkParams } from "./updateLinkParams.js";
|
|
128
|
+
export { updateUrlQueryParams } from "./updateUrlQueryParams.js";
|
|
129
|
+
export { uppercase } from "./uppercase.js";
|
|
130
|
+
export { uuid } from "./uuid.js";
|
|
131
|
+
export { uuidNumeric } from "./uuidNumeric.js";
|
|
132
|
+
export { wait } from "./wait.js";
|
|
133
|
+
export type { AnythingFalsy, KeysStartsWith, KeysTailsStartsWith, PickStartsWith, PickStartsWithTails, } from "./types.js";
|
|
137
134
|
export type { Primitive, Class, Constructor, TypedArray, Observer, ObservableLike, Except, Writable, Merge, MergeDeep, MergeExclusive, RequireAtLeastOne, RequireExactlyOne, RequireAllOrNone, PartialDeep, ReadonlyDeep, LiteralUnion, Opaque, InvariantOf, SetOptional, SetRequired, ValueOf, ConditionalKeys, ConditionalPick, ConditionalExcept, UnionToIntersection, LiteralToPrimitive, Stringified, IterableElement, Entry, Exact, Entries, SetReturnType, Simplify, Get, StringKeyOf, Schema, Jsonify, JsonPrimitive, JsonObject, JsonArray, JsonValue, Promisable, AsyncReturnType, Asyncify, Trim, Split, Includes, Join, LastArrayElement, FixedLengthArray, MultidimensionalArray, MultidimensionalReadonlyArray, PositiveInfinity, NegativeInfinity, Finite, Integer, Float, NegativeFloat, Negative, NonNegative, NegativeInteger, NonNegativeInteger, CamelCase, CamelCasedProperties, CamelCasedPropertiesDeep, KebabCase, KebabCasedProperties, KebabCasedPropertiesDeep, PascalCase, PascalCasedProperties, PascalCasedPropertiesDeep, SnakeCase, SnakeCasedProperties, SnakeCasedPropertiesDeep, ScreamingSnakeCase, DelimiterCase, DelimiterCasedProperties, DelimiterCasedPropertiesDeep, PackageJson, TsConfigJson, SetNonNullable, Spread, PartialOnUndefinedDeep, OptionalKeysOf, HasOptionalKeys, RequiredKeysOf, HasRequiredKeys, UnwrapOpaque, EmptyObject, IsEmptyObject, TupleToUnion, OmitIndexSignature, PickIndexSignature, ConditionalPickDeep, } from "type-fest";
|
package/index.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export { accentsSets } from "./accentSets.js";
|
|
2
|
+
export { addOrReplaceAtIdx } from "./addOrReplaceAtIdx.js";
|
|
3
|
+
export { areEqual } from "./areEqual.js";
|
|
4
|
+
export { arrayOfAll } from "./arrayOfAll.js";
|
|
5
|
+
export { arraySum } from "./arraySum.js";
|
|
6
|
+
export { arrayToLookup } from "./arrayToLookup.js";
|
|
7
|
+
export { buildUrlQueryString } from "./buildUrlQueryString.js";
|
|
8
|
+
export { capitalize } from "./capitalize.js";
|
|
9
|
+
export { changeUrlPath } from "./changeUrlPath.js";
|
|
10
|
+
export { chunkByChunks } from "./chunkByChunks.js";
|
|
11
|
+
export { chunkBySize } from "./chunkBySize.js";
|
|
12
|
+
export { clamp } from "./clamp.js";
|
|
13
|
+
export { clsx } from "./clsx.js";
|
|
14
|
+
export { convertRange } from "./convertRange.js";
|
|
15
|
+
export { createPalette } from "./createPalette.js";
|
|
16
|
+
export { debounce } from "./debounce.js";
|
|
17
|
+
export { debounceRaf } from "./debounceRaf.js";
|
|
18
|
+
export { debouncePromise, } from "./debouncePromise.js";
|
|
19
|
+
export { decode } from "./decode.js";
|
|
20
|
+
export { Defer } from "./Defer.js";
|
|
21
|
+
export { Emitter } from "./Emitter.js";
|
|
22
|
+
export { encode } from "./encode.js";
|
|
23
|
+
export { ensureInt } from "./ensureInt.js";
|
|
24
|
+
export { errorToString } from "./errorToString.js";
|
|
25
|
+
export { findDuplicatedIndexes } from "./findDuplicatedIndexes.js";
|
|
26
|
+
export { forin } from "./forin.js";
|
|
27
|
+
export { gbToBytes } from "./gbToBytes.js";
|
|
28
|
+
export { getEmptyArray } from "./getEmptyArray.js";
|
|
29
|
+
export { getKeys } from "./getKeys.js";
|
|
30
|
+
export { getMediaQueryWidthResolvers } from "./getMediaQueryWidthResolvers.js";
|
|
31
|
+
export { getMediaQueryWidthTailwindScreens } from "./getMediaQueryWidthTailwindScreens.js";
|
|
32
|
+
export { getNonce } from "./getNonce.js";
|
|
33
|
+
export { getParamAmong } from "./getParamAmong.js";
|
|
34
|
+
export { getParamAsInt } from "./getParamAsInt.js";
|
|
35
|
+
export { getParamAsString } from "./getParamAsString.js";
|
|
36
|
+
export { getType, } from "./getType.js";
|
|
37
|
+
export { getUrlHashParams } from "./getUrlHashParams.js";
|
|
38
|
+
export { getUrlHashPathname } from "./getUrlHashPathname.js";
|
|
39
|
+
export { getUrlPathnameParts } from "./getUrlPathnameParts.js";
|
|
40
|
+
export { getUrlQueryParams } from "./getUrlQueryParams.js";
|
|
41
|
+
export { imgEmptyPixel } from "./imgEmptyPixel.js";
|
|
42
|
+
export { isAnyObject } from "./isAnyObject.js";
|
|
43
|
+
export { isArray } from "./isArray.js";
|
|
44
|
+
export { isBlob } from "./isBlob.js";
|
|
45
|
+
export { isBoolean } from "./isBoolean.js";
|
|
46
|
+
export { isBrowser } from "./isBrowser.js";
|
|
47
|
+
export { isBrowserNow } from "./isBrowserNow.js";
|
|
48
|
+
export { isDate } from "./isDate.js";
|
|
49
|
+
export { isEmptyArray } from "./isEmptyArray.js";
|
|
50
|
+
export { isEmptyObject } from "./isEmptyObject.js";
|
|
51
|
+
export { isEmptyString } from "./isEmptyString.js";
|
|
52
|
+
export { isError } from "./isError.js";
|
|
53
|
+
export { isExternalUrl } from "./isExternalUrl.js";
|
|
54
|
+
export { isFile } from "./isFile.js";
|
|
55
|
+
export { isFloat } from "./isFloat.js";
|
|
56
|
+
export { isFormData } from "./isFormData.js";
|
|
57
|
+
export { isFullArray } from "./isFullArray.js";
|
|
58
|
+
export { isFullObject } from "./isFullObject.js";
|
|
59
|
+
export { isFullString } from "./isFullString.js";
|
|
60
|
+
export { isFunction } from "./isFunction.js";
|
|
61
|
+
export { isInt } from "./isInt.js";
|
|
62
|
+
export { isMap } from "./isMap.js";
|
|
63
|
+
export { isNaNValue } from "./isNaNValue.js";
|
|
64
|
+
export { isNegativeNumber } from "./isNegativeNumber.js";
|
|
65
|
+
export { isNullOrUndefined } from "./isNullOrUndefined.js";
|
|
66
|
+
export { isNull } from "./isNull.js";
|
|
67
|
+
export { isNumber } from "./isNumber.js";
|
|
68
|
+
export { isObjectLike } from "./isObjectLike.js";
|
|
69
|
+
export { isObject } from "./isObject.js";
|
|
70
|
+
export { isOneOf } from "./isOneOf.js";
|
|
71
|
+
export { isPlainObject } from "./isPlainObject.js";
|
|
72
|
+
export { isPositiveNumber } from "./isPositiveNumber.js";
|
|
73
|
+
export { isPrimitive } from "./isPrimitive.js";
|
|
74
|
+
export { isPromise } from "./isPromise.js";
|
|
75
|
+
export { isRegExp } from "./isRegExp.js";
|
|
76
|
+
export { isServer } from "./isServer.js";
|
|
77
|
+
export { isServerNow } from "./isServerNow.js";
|
|
78
|
+
export { isSet } from "./isSet.js";
|
|
79
|
+
export { isString } from "./isString.js";
|
|
80
|
+
export { isSymbol } from "./isSymbol.js";
|
|
81
|
+
export { isType } from "./isType.js";
|
|
82
|
+
export { isUndefined } from "./isUndefined.js";
|
|
83
|
+
export { isWeakMap } from "./isWeakMap.js";
|
|
84
|
+
export { isWeakSet } from "./isWeakSet.js";
|
|
85
|
+
export { kbToBytes } from "./kbToBytes.js";
|
|
86
|
+
export { lowercase } from "./lowercase.js";
|
|
87
|
+
export { mapListBy } from "./mapListBy.js";
|
|
88
|
+
export { matchSorter } from "./matchSorter.js";
|
|
89
|
+
export { mbToBytes } from "./mbToBytes.js";
|
|
90
|
+
export { mergeObjects } from "./mergeObjects.js";
|
|
91
|
+
export { mergeUrlQueryParams } from "./mergeUrlQueryParams.js";
|
|
92
|
+
export { moveSortableArrayItemByKey } from "./moveSortableArrayItemByKey.js";
|
|
93
|
+
export { noop } from "./noop.js";
|
|
94
|
+
export { normaliseUrlPathname } from "./normaliseUrlPathname.js";
|
|
95
|
+
export { normaliseUrl } from "./normaliseUrl.js";
|
|
96
|
+
export { objectPick } from "./objectPick.js";
|
|
97
|
+
export { objectOmit } from "./objectOmit.js";
|
|
98
|
+
export { parseCookie } from "./parseCookie.js";
|
|
99
|
+
export { parseURL } from "./parseURL.js";
|
|
100
|
+
export { quaranteneProps } from "./quaranteneProps.js";
|
|
101
|
+
export { randomInt } from "./randomInt.js";
|
|
102
|
+
export { randomKey } from "./randomKey.js";
|
|
103
|
+
export { readCookie } from "./readCookie.js";
|
|
104
|
+
export { removeAccents } from "./removeAccents.js";
|
|
105
|
+
export { removeCookie } from "./removeCookie.js";
|
|
106
|
+
export { removeDuplicatesByKey } from "./removeDuplicatesByKey.js";
|
|
107
|
+
export { removeDuplicatesComparing } from "./removeDuplicatesComparing.js";
|
|
108
|
+
export { removeIndexesFromArray } from "./removeIndexesFromArray.js";
|
|
109
|
+
export { removeTralingSlash } from "./removeTrailingSlash.js";
|
|
110
|
+
export { removeUrlQueryParams } from "./removeUrlQueryParams.js";
|
|
111
|
+
export { roundTo } from "./roundTo.js";
|
|
112
|
+
export { serializeCookie } from "./serializeCookie.js";
|
|
113
|
+
export { setCookie } from "./setCookie.js";
|
|
114
|
+
export { shuffle } from "./shuffle.js";
|
|
115
|
+
export { slugify } from "./slugify.js";
|
|
116
|
+
export { swapMap } from "./swapMap.js";
|
|
117
|
+
export { throttle } from "./throttle.js";
|
|
118
|
+
export { titleCase } from "./titleCase.js";
|
|
119
|
+
export { toNumber } from "./toNumber.js";
|
|
120
|
+
export { toRgba } from "./toRgba.js";
|
|
121
|
+
export { transformToUrlPathname } from "./transformToUrlPathname.js";
|
|
122
|
+
export { truncate } from "./truncate.js";
|
|
123
|
+
export { tryUntil } from "./tryUntil.js";
|
|
124
|
+
export { uid } from "./uid.js";
|
|
125
|
+
export { updateLinkParams } from "./updateLinkParams.js";
|
|
126
|
+
export { updateUrlQueryParams } from "./updateUrlQueryParams.js";
|
|
127
|
+
export { uppercase } from "./uppercase.js";
|
|
128
|
+
export { uuid } from "./uuid.js";
|
|
129
|
+
export { uuidNumeric } from "./uuidNumeric.js";
|
|
130
|
+
export { wait } from "./wait.js";
|
package/invariant.d.ts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FIXME: invariant calls do not get tree shaked in minified output of projects
|
|
3
|
-
* using it. Let's not use it internally and not export it from `@koine/utils`
|
|
4
|
-
* until we find a tree-shakeable way of doing this. For now just wrapping
|
|
5
|
-
* the logging code into `if (process.env["NODE_ENV"] !== "production") {}`
|
|
6
|
-
* works better despite it is more verbose.
|
|
7
|
-
*
|
|
8
|
-
* @resources
|
|
9
|
-
* - https://github.com/alexreardon/tiny-invariant
|
|
10
|
-
* - https://github.com/zertosh/invariant
|
|
11
|
-
* - https://stackoverflow.com/q/39055159/1938970
|
|
12
|
-
*
|
|
13
|
-
* @param condition The condition that, if `true` will throw the error during development
|
|
14
|
-
* @param message A string or a function that returns a string
|
|
15
|
-
* @param lib The library name to show in the error message prefix. When `lib` is also specified it outputs `[lib:prefix]: the message`, otherwise just `[lib|prefix]: the message`)
|
|
16
|
-
* @param prefix The library name to show in the error message prefix. When `lib` is also specified it outputs `[lib:prefix]: the message`, otherwise just `[lib|prefix]: the message`)
|
|
17
|
-
*/
|
|
18
1
|
export declare function invariant(condition: any, message?: string | (() => string), lib?: string, prefix?: string): asserts condition;
|
|
19
2
|
export default invariant;
|
package/invariant.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function invariant(condition, message, lib, prefix) {
|
|
2
|
+
if (process.env["NODE_ENV"] !== "production") {
|
|
3
|
+
if (condition) {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
var msgProvided = typeof message === "function" ? message() : message;
|
|
7
|
+
var msgPrefix = "";
|
|
8
|
+
if (lib && prefix) {
|
|
9
|
+
msgPrefix = "[".concat(lib, ":").concat(prefix, "] ");
|
|
10
|
+
}
|
|
11
|
+
else if (lib) {
|
|
12
|
+
msgPrefix = "[".concat(lib, "] ");
|
|
13
|
+
}
|
|
14
|
+
throw new Error(msgPrefix + msgProvided);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export default invariant;
|
package/isAnyObject.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { type PlainObject } from "./getType";
|
|
2
|
-
/**
|
|
3
|
-
* Returns whether the payload is an any kind of object (including special classes or objects with different prototypes)
|
|
4
|
-
*
|
|
5
|
-
* @category is
|
|
6
|
-
*/
|
|
1
|
+
import { type PlainObject } from "./getType.js";
|
|
7
2
|
export declare function isAnyObject(payload: any): payload is PlainObject;
|
|
8
3
|
export default isAnyObject;
|
package/isAnyObject.js
ADDED
package/isArray.d.ts
CHANGED
package/isArray.js
ADDED
package/isBlob.d.ts
CHANGED
package/isBlob.js
ADDED
package/isBoolean.d.ts
CHANGED
package/isBoolean.js
ADDED
package/isBrowser.d.ts
CHANGED
package/isBrowser.js
ADDED
package/isBrowserNow.d.ts
CHANGED
package/isBrowserNow.js
ADDED
package/isDate.d.ts
CHANGED
package/isDate.js
ADDED
package/isEmptyArray.d.ts
CHANGED
package/isEmptyArray.js
ADDED
package/isEmptyObject.d.ts
CHANGED
package/isEmptyObject.js
ADDED
package/isEmptyString.d.ts
CHANGED
package/isEmptyString.js
ADDED
package/isError.d.ts
CHANGED
package/isError.js
ADDED
package/isExternalUrl.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Is external url compared to the given current URL (if not provided it falls
|
|
3
|
-
* back to `location.href`)
|
|
4
|
-
*
|
|
5
|
-
* @category location
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
1
|
export declare function isExternalUrl(url: string, currentUrl?: string): boolean;
|
|
9
2
|
export default isExternalUrl;
|