@koine/utils 2.0.0-beta.2 → 2.0.0-beta.21
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 +2 -21
- package/Emitter.d.ts +0 -18
- package/Emitter.js +2 -24
- package/accentSets.d.ts +0 -13
- package/accentSets.js +2 -13
- package/addOrReplaceAtIdx.d.ts +0 -3
- package/addOrReplaceAtIdx.js +4 -11
- package/areEqual.d.ts +0 -15
- package/areEqual.js +24 -39
- package/arrayOfAll.d.ts +0 -26
- package/arrayOfAll.js +2 -32
- package/arraySum.d.ts +0 -5
- package/arraySum.js +2 -11
- package/arrayToLookup.d.ts +0 -5
- package/arrayToLookup.js +2 -11
- package/arrayUniqueByProperties.d.ts +2 -0
- package/arrayUniqueByProperties.js +8 -0
- package/buildUrlQueryString.d.ts +1 -10
- package/buildUrlQueryString.js +7 -22
- package/capitalize.d.ts +0 -6
- package/capitalize.js +2 -12
- package/changeUrlPath.d.ts +0 -8
- package/changeUrlPath.js +6 -19
- package/chunkByChunks.d.ts +0 -5
- package/chunkByChunks.js +2 -11
- package/chunkBySize.d.ts +0 -4
- package/chunkBySize.js +2 -10
- package/cjs/Defer.d.ts +6 -0
- package/cjs/Defer.js +15 -0
- package/cjs/Emitter.d.ts +7 -0
- package/{Emitter.mjs → cjs/Emitter.js} +6 -20
- package/cjs/accentSets.d.ts +3 -0
- package/{accentSets.mjs → cjs/accentSets.js} +5 -10
- package/cjs/addOrReplaceAtIdx.d.ts +2 -0
- package/cjs/addOrReplaceAtIdx.js +20 -0
- package/cjs/areEqual.d.ts +4 -0
- package/cjs/areEqual.js +70 -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/arrayUniqueByProperties.d.ts +2 -0
- package/cjs/arrayUniqueByProperties.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/{chunkByChunks.mjs → cjs/chunkByChunks.js} +6 -7
- 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/{clsx.mjs → cjs/clsx.js} +6 -11
- 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/{debounce.mjs → cjs/debounce.js} +6 -9
- 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/{getMediaQueryWidthResolvers.mjs → cjs/getMediaQueryWidthResolvers.js} +8 -32
- package/cjs/getMediaQueryWidthTailwindScreens.d.ts +5 -0
- package/{getMediaQueryWidthTailwindScreens.mjs → cjs/getMediaQueryWidthTailwindScreens.js} +8 -6
- 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} +15 -8
- package/cjs/index.js +275 -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/{matchSorter.mjs → cjs/matchSorter.js} +13 -124
- 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/objectFlip.d.ts +2 -0
- package/cjs/objectFlip.js +15 -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/objectToArray.d.ts +2 -0
- package/cjs/objectToArray.js +8 -0
- package/cjs/package.json +6 -0
- package/cjs/parseCookie.d.ts +3 -0
- package/{parseCookie.mjs → cjs/parseCookie.js} +6 -16
- package/cjs/parseURL.d.ts +11 -0
- package/{parseURL.mjs → cjs/parseURL.js} +6 -8
- 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/{readCookie.mjs → cjs/readCookie.js} +8 -4
- package/cjs/removeAccents.d.ts +3 -0
- package/cjs/removeAccents.js +17 -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/{removeDuplicatesByKey.mjs → cjs/removeDuplicatesByKey.js} +6 -8
- 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/{render.mjs → cjs/render.js} +8 -50
- package/cjs/round.d.ts +3 -0
- package/cjs/round.js +10 -0
- package/cjs/roundTo.d.ts +2 -0
- package/cjs/roundTo.js +16 -0
- package/cjs/serializeCookie.d.ts +3 -0
- package/{serializeCookie.mjs → cjs/serializeCookie.js} +11 -41
- package/cjs/setCookie.d.ts +3 -0
- package/{setCookie.mjs → cjs/setCookie.js} +15 -26
- 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 +6 -0
- package/cjs/swapMap.d.ts +2 -0
- package/cjs/swapMap.js +13 -0
- package/cjs/throttle.d.ts +2 -0
- package/{throttle.mjs → cjs/throttle.js} +8 -10
- 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/{uuid.mjs → cjs/uuid.js} +6 -8
- 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 +2 -12
- package/clsx.d.ts +4 -7
- package/clsx.js +2 -15
- package/convertRange.d.ts +0 -12
- package/convertRange.js +2 -18
- package/cookie.d.ts +0 -36
- package/cookie.js +1 -13
- package/createPalette.d.ts +0 -10
- package/createPalette.js +2 -16
- package/debounce.d.ts +0 -6
- package/debounce.js +2 -13
- package/debouncePromise.d.ts +10 -10
- package/debouncePromise.js +65 -12
- package/debounceRaf.d.ts +0 -7
- package/debounceRaf.js +2 -16
- package/decode.d.ts +0 -4
- package/decode.js +2 -10
- package/encode.d.ts +0 -4
- package/encode.js +2 -10
- package/ensureInt.d.ts +0 -5
- package/ensureInt.js +2 -11
- package/env.d.ts +0 -0
- package/env.js +0 -2
- package/errorToString.d.ts +0 -5
- package/errorToString.js +4 -14
- package/findDuplicatedIndexes.d.ts +0 -3
- package/findDuplicatedIndexes.js +2 -9
- package/forin.d.ts +0 -5
- package/forin.js +2 -11
- package/gbToBytes.d.ts +0 -5
- package/gbToBytes.js +2 -11
- package/getEmptyArray.d.ts +0 -7
- package/getEmptyArray.js +4 -16
- package/getKeys.d.ts +0 -7
- package/getKeys.js +2 -12
- package/getMediaQueryWidthResolvers.d.ts +0 -0
- package/getMediaQueryWidthResolvers.js +4 -36
- package/getMediaQueryWidthTailwindScreens.d.ts +1 -1
- package/getMediaQueryWidthTailwindScreens.js +4 -10
- package/getNonce.d.ts +0 -4
- package/getNonce.js +4 -12
- package/getParamAmong.d.ts +0 -10
- package/getParamAmong.js +4 -19
- package/getParamAsInt.d.ts +0 -10
- package/getParamAsInt.js +4 -19
- package/getParamAsString.d.ts +0 -9
- package/getParamAsString.js +4 -18
- package/getType.d.ts +0 -15
- package/getType.js +2 -21
- package/getUrlHashParams.d.ts +1 -7
- package/getUrlHashParams.js +2 -12
- package/getUrlHashPathname.d.ts +0 -7
- package/getUrlHashPathname.js +2 -13
- package/getUrlPathnameParts.d.ts +0 -10
- package/getUrlPathnameParts.js +4 -19
- package/getUrlQueryParams.d.ts +1 -12
- package/getUrlQueryParams.js +4 -22
- package/imgEmptyPixel.d.ts +0 -5
- package/imgEmptyPixel.js +2 -10
- package/index.d.ts +139 -134
- package/index.js +135 -267
- package/invariant.d.ts +0 -17
- package/invariant.js +3 -24
- package/isAnyObject.d.ts +1 -6
- package/isAnyObject.js +4 -14
- package/isArray.d.ts +0 -5
- package/isArray.js +4 -14
- package/isBlob.d.ts +0 -5
- package/isBlob.js +4 -14
- package/isBoolean.d.ts +0 -5
- package/isBoolean.js +4 -14
- package/isBrowser.d.ts +0 -4
- package/isBrowser.js +2 -9
- package/isBrowserNow.d.ts +0 -4
- package/isBrowserNow.js +3 -12
- package/isDate.d.ts +0 -5
- package/isDate.js +4 -14
- package/isEmptyArray.d.ts +0 -5
- package/isEmptyArray.js +4 -14
- package/isEmptyObject.d.ts +0 -5
- package/isEmptyObject.js +4 -14
- package/isEmptyString.d.ts +0 -5
- package/isEmptyString.js +2 -11
- package/isError.d.ts +0 -5
- package/isError.js +4 -14
- package/isExternalUrl.d.ts +0 -7
- package/isExternalUrl.js +4 -18
- package/isFile.d.ts +0 -5
- package/isFile.js +4 -14
- package/isFloat.d.ts +0 -5
- package/isFloat.js +4 -14
- package/isFormData.d.ts +0 -5
- package/isFormData.js +4 -14
- package/isFullArray.d.ts +0 -5
- package/isFullArray.js +4 -14
- package/isFullObject.d.ts +1 -6
- package/isFullObject.js +4 -14
- package/isFullString.d.ts +0 -5
- package/isFullString.js +4 -14
- package/isFunction.d.ts +1 -6
- package/isFunction.js +2 -11
- package/isInt.d.ts +0 -5
- package/isInt.js +4 -14
- package/isMap.d.ts +0 -5
- package/isMap.js +4 -14
- package/isNaNValue.d.ts +0 -5
- package/isNaNValue.js +4 -14
- package/isNegativeNumber.d.ts +0 -5
- package/isNegativeNumber.js +4 -14
- package/isNull.d.ts +0 -5
- package/isNull.js +4 -14
- package/isNullOrUndefined.d.ts +0 -5
- package/isNullOrUndefined.js +5 -14
- package/isNumber.d.ts +0 -7
- package/isNumber.js +4 -16
- package/isObject.d.ts +1 -6
- package/isObject.js +4 -14
- package/isObjectLike.d.ts +1 -8
- package/isObjectLike.js +4 -16
- package/isOneOf.d.ts +1 -4
- package/isOneOf.js +2 -6
- package/isPlainObject.d.ts +1 -6
- package/isPlainObject.js +4 -14
- package/isPositiveNumber.d.ts +0 -5
- package/isPositiveNumber.js +4 -14
- package/isPrimitive.d.ts +0 -5
- package/isPrimitive.js +14 -24
- package/isPromise.d.ts +0 -5
- package/isPromise.js +4 -14
- package/isRegExp.d.ts +0 -5
- package/isRegExp.js +4 -14
- package/isServer.d.ts +0 -4
- package/isServer.js +3 -12
- package/isServerNow.d.ts +0 -4
- package/isServerNow.js +3 -12
- package/isSet.d.ts +0 -5
- package/isSet.js +4 -14
- package/isString.d.ts +0 -5
- package/isString.js +4 -14
- package/isSymbol.d.ts +0 -5
- package/isSymbol.js +4 -14
- package/isType.d.ts +1 -9
- package/isType.js +4 -18
- package/isUndefined.d.ts +0 -5
- package/isUndefined.js +4 -14
- package/isWeakMap.d.ts +0 -5
- package/isWeakMap.js +4 -14
- package/isWeakSet.d.ts +0 -5
- package/isWeakSet.js +4 -14
- package/kbToBytes.d.ts +0 -5
- package/kbToBytes.js +2 -11
- package/location.d.ts +0 -3
- package/location.js +1 -2
- package/lowercase.d.ts +0 -5
- package/lowercase.js +2 -11
- package/mapListBy.d.ts +0 -5
- package/mapListBy.js +2 -11
- package/matchSorter.d.ts +0 -7
- package/matchSorter.js +9 -128
- package/mbToBytes.d.ts +0 -5
- package/mbToBytes.js +2 -11
- package/mergeObjects.d.ts +1 -7
- package/mergeObjects.js +11 -19
- package/mergeUrlQueryParams.d.ts +1 -7
- package/mergeUrlQueryParams.js +4 -15
- package/moveSortableArrayItemByKey.d.ts +0 -7
- package/moveSortableArrayItemByKey.js +5 -16
- package/noop.d.ts +0 -5
- package/noop.js +2 -11
- package/normaliseUrl.d.ts +0 -9
- package/normaliseUrl.js +4 -18
- package/normaliseUrlPathname.d.ts +0 -8
- package/normaliseUrlPathname.js +4 -17
- package/objectFlip.d.ts +2 -0
- package/objectFlip.js +11 -0
- package/objectOmit.d.ts +0 -9
- package/objectOmit.js +2 -15
- package/objectPick.d.ts +0 -6
- package/objectPick.js +2 -12
- package/objectToArray.d.ts +2 -0
- package/objectToArray.js +4 -0
- package/package.json +583 -11
- package/parseCookie.d.ts +1 -9
- package/parseCookie.js +2 -20
- package/parseURL.d.ts +0 -6
- package/parseURL.js +2 -12
- package/quaranteneProps.d.ts +0 -15
- package/quaranteneProps.js +2 -23
- package/randomInt.d.ts +0 -5
- package/randomInt.js +2 -11
- package/randomKey.d.ts +0 -6
- package/randomKey.js +2 -12
- package/readCookie.d.ts +0 -0
- package/readCookie.js +4 -8
- package/removeAccents.d.ts +1 -4
- package/removeAccents.js +6 -12
- package/removeCookie.d.ts +1 -8
- package/removeCookie.js +6 -17
- package/removeDuplicates.d.ts +0 -0
- package/removeDuplicates.js +0 -12
- package/removeDuplicatesByKey.d.ts +0 -6
- package/removeDuplicatesByKey.js +2 -12
- package/removeDuplicatesComparing.d.ts +0 -3
- package/removeDuplicatesComparing.js +6 -13
- package/removeIndexesFromArray.d.ts +0 -3
- package/removeIndexesFromArray.js +2 -10
- package/removeTrailingSlash.d.ts +0 -5
- package/removeTrailingSlash.js +2 -11
- package/removeUrlQueryParams.d.ts +0 -6
- package/removeUrlQueryParams.js +6 -17
- package/render.d.ts +0 -39
- package/render.js +4 -54
- package/round.d.ts +3 -0
- package/round.js +6 -0
- package/roundTo.d.ts +0 -6
- package/roundTo.js +3 -29
- package/serializeCookie.d.ts +1 -25
- package/serializeCookie.js +7 -45
- package/setCookie.d.ts +1 -8
- package/setCookie.js +11 -30
- package/shuffle.d.ts +0 -14
- package/shuffle.js +4 -22
- package/slugify.d.ts +0 -9
- package/slugify.js +11 -24
- package/split.d.ts +1 -1
- package/split.js +2 -8
- package/swapMap.d.ts +0 -5
- package/swapMap.js +2 -11
- package/throttle.d.ts +0 -6
- package/throttle.js +4 -14
- package/titleCase.d.ts +0 -5
- package/titleCase.js +2 -11
- package/toNumber.d.ts +0 -3
- package/toNumber.js +4 -11
- package/toRgba.d.ts +0 -3
- package/toRgba.js +2 -13
- package/transformToUrlPathname.d.ts +0 -9
- package/transformToUrlPathname.js +4 -18
- package/truncate.d.ts +0 -5
- package/truncate.js +2 -11
- package/tryUntil.d.ts +0 -6
- package/tryUntil.js +2 -18
- package/types.d.ts +0 -18
- package/types.js +1 -2
- package/typings.d.ts +1 -6
- package/uid.d.ts +0 -5
- package/uid.js +2 -11
- package/updateLinkParams.d.ts +1 -8
- package/updateLinkParams.js +4 -16
- package/updateUrlQueryParams.d.ts +1 -7
- package/updateUrlQueryParams.js +7 -18
- package/uppercase.d.ts +0 -5
- package/uppercase.js +2 -11
- package/uuid.d.ts +0 -6
- package/uuid.js +2 -12
- package/uuidNumeric.d.ts +0 -4
- package/uuidNumeric.js +2 -10
- package/wait.d.ts +0 -5
- package/wait.js +2 -11
- package/without.d.ts +0 -0
- package/without.js +0 -55
- package/Defer.mjs +0 -26
- package/README.md +0 -42
- package/addOrReplaceAtIdx.mjs +0 -19
- package/areEqual.mjs +0 -77
- package/arrayOfAll.mjs +0 -32
- package/arraySum.mjs +0 -9
- package/arrayToLookup.mjs +0 -13
- package/buildUrlQueryString.mjs +0 -31
- package/capitalize.mjs +0 -12
- package/changeUrlPath.mjs +0 -18
- package/chunkBySize.mjs +0 -12
- package/clamp.mjs +0 -10
- package/convertRange.mjs +0 -16
- package/cookie.mjs +0 -10
- package/createPalette.mjs +0 -22
- package/debouncePromise.mjs +0 -9
- package/debounceRaf.mjs +0 -27
- package/decode.mjs +0 -10
- package/encode.mjs +0 -10
- package/ensureInt.mjs +0 -9
- package/env.mjs +0 -3
- package/errorToString.mjs +0 -10
- package/findDuplicatedIndexes.mjs +0 -14
- package/forin.mjs +0 -11
- package/gbToBytes.mjs +0 -7
- package/getEmptyArray.mjs +0 -15
- package/getKeys.mjs +0 -9
- package/getNonce.mjs +0 -9
- package/getParamAmong.mjs +0 -17
- package/getParamAsInt.mjs +0 -20
- package/getParamAsString.mjs +0 -14
- package/getType.mjs +0 -19
- package/getUrlHashParams.mjs +0 -16
- package/getUrlHashPathname.mjs +0 -13
- package/getUrlPathnameParts.mjs +0 -20
- package/getUrlQueryParams.mjs +0 -38
- package/imgEmptyPixel.mjs +0 -7
- package/invariant.mjs +0 -34
- package/isAnyObject.mjs +0 -10
- package/isArray.mjs +0 -10
- package/isBlob.mjs +0 -10
- package/isBoolean.mjs +0 -10
- package/isBrowser.mjs +0 -6
- package/isBrowserNow.mjs +0 -7
- package/isDate.mjs +0 -10
- package/isEmptyArray.mjs +0 -10
- package/isEmptyObject.mjs +0 -10
- package/isEmptyString.mjs +0 -9
- package/isError.mjs +0 -10
- package/isExternalUrl.mjs +0 -21
- package/isFile.mjs +0 -10
- package/isFloat.mjs +0 -10
- package/isFormData.mjs +0 -10
- package/isFullArray.mjs +0 -10
- package/isFullObject.mjs +0 -10
- package/isFullString.mjs +0 -10
- package/isFunction.mjs +0 -9
- package/isInt.mjs +0 -10
- package/isMap.mjs +0 -10
- package/isNaNValue.mjs +0 -10
- package/isNegativeNumber.mjs +0 -10
- package/isNull.mjs +0 -10
- package/isNullOrUndefined.mjs +0 -10
- package/isNumber.mjs +0 -12
- package/isObject.mjs +0 -10
- package/isObjectLike.mjs +0 -12
- package/isOneOf.mjs +0 -10
- package/isPlainObject.mjs +0 -13
- package/isPositiveNumber.mjs +0 -10
- package/isPrimitive.mjs +0 -20
- package/isPromise.mjs +0 -10
- package/isRegExp.mjs +0 -10
- package/isServer.mjs +0 -8
- package/isServerNow.mjs +0 -7
- package/isSet.mjs +0 -10
- package/isString.mjs +0 -10
- package/isSymbol.mjs +0 -10
- package/isType.mjs +0 -22
- package/isUndefined.mjs +0 -10
- package/isWeakMap.mjs +0 -10
- package/isWeakSet.mjs +0 -10
- package/kbToBytes.mjs +0 -7
- package/location.mjs +0 -1
- package/lowercase.mjs +0 -9
- package/mapListBy.mjs +0 -14
- package/mbToBytes.mjs +0 -7
- package/mergeObjects.mjs +0 -37
- package/mergeUrlQueryParams.mjs +0 -22
- package/moveSortableArrayItemByKey.mjs +0 -17
- package/noop.mjs +0 -7
- package/normaliseUrl.mjs +0 -15
- package/normaliseUrlPathname.mjs +0 -14
- package/objectOmit.mjs +0 -19
- package/objectPick.mjs +0 -15
- package/quaranteneProps.mjs +0 -33
- package/randomInt.mjs +0 -9
- package/randomKey.mjs +0 -11
- package/removeAccents.mjs +0 -15
- package/removeCookie.mjs +0 -15
- package/removeDuplicates.mjs +0 -13
- package/removeDuplicatesComparing.mjs +0 -10
- package/removeIndexesFromArray.mjs +0 -14
- package/removeTrailingSlash.mjs +0 -10
- package/removeUrlQueryParams.mjs +0 -21
- package/roundTo.mjs +0 -34
- package/shuffle.mjs +0 -32
- package/slugify.mjs +0 -23
- package/split.mjs +0 -4
- package/swapMap.mjs +0 -14
- package/titleCase.mjs +0 -11
- package/toNumber.mjs +0 -8
- package/toRgba.mjs +0 -16
- package/transformToUrlPathname.mjs +0 -16
- package/truncate.mjs +0 -13
- package/tryUntil.mjs +0 -27
- package/types.mjs +0 -1
- package/uid.mjs +0 -12
- package/updateLinkParams.mjs +0 -14
- package/updateUrlQueryParams.mjs +0 -18
- package/uppercase.mjs +0 -9
- package/uuidNumeric.mjs +0 -6
- package/wait.mjs +0 -9
- package/without.mjs +0 -56
package/index.js
CHANGED
|
@@ -1,267 +1,135 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Object.defineProperty(exports, "isNullOrUndefined", { enumerable: true, get: function () { return isNullOrUndefined_1.isNullOrUndefined; } });
|
|
137
|
-
var isNull_1 = require("./isNull");
|
|
138
|
-
Object.defineProperty(exports, "isNull", { enumerable: true, get: function () { return isNull_1.isNull; } });
|
|
139
|
-
var isNumber_1 = require("./isNumber");
|
|
140
|
-
Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return isNumber_1.isNumber; } });
|
|
141
|
-
var isObjectLike_1 = require("./isObjectLike");
|
|
142
|
-
Object.defineProperty(exports, "isObjectLike", { enumerable: true, get: function () { return isObjectLike_1.isObjectLike; } });
|
|
143
|
-
var isObject_1 = require("./isObject");
|
|
144
|
-
Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return isObject_1.isObject; } });
|
|
145
|
-
var isOneOf_1 = require("./isOneOf");
|
|
146
|
-
Object.defineProperty(exports, "isOneOf", { enumerable: true, get: function () { return isOneOf_1.isOneOf; } });
|
|
147
|
-
var isPlainObject_1 = require("./isPlainObject");
|
|
148
|
-
Object.defineProperty(exports, "isPlainObject", { enumerable: true, get: function () { return isPlainObject_1.isPlainObject; } });
|
|
149
|
-
var isPositiveNumber_1 = require("./isPositiveNumber");
|
|
150
|
-
Object.defineProperty(exports, "isPositiveNumber", { enumerable: true, get: function () { return isPositiveNumber_1.isPositiveNumber; } });
|
|
151
|
-
var isPrimitive_1 = require("./isPrimitive");
|
|
152
|
-
Object.defineProperty(exports, "isPrimitive", { enumerable: true, get: function () { return isPrimitive_1.isPrimitive; } });
|
|
153
|
-
var isPromise_1 = require("./isPromise");
|
|
154
|
-
Object.defineProperty(exports, "isPromise", { enumerable: true, get: function () { return isPromise_1.isPromise; } });
|
|
155
|
-
var isRegExp_1 = require("./isRegExp");
|
|
156
|
-
Object.defineProperty(exports, "isRegExp", { enumerable: true, get: function () { return isRegExp_1.isRegExp; } });
|
|
157
|
-
var isServer_1 = require("./isServer");
|
|
158
|
-
Object.defineProperty(exports, "isServer", { enumerable: true, get: function () { return isServer_1.isServer; } });
|
|
159
|
-
var isServerNow_1 = require("./isServerNow");
|
|
160
|
-
Object.defineProperty(exports, "isServerNow", { enumerable: true, get: function () { return isServerNow_1.isServerNow; } });
|
|
161
|
-
var isSet_1 = require("./isSet");
|
|
162
|
-
Object.defineProperty(exports, "isSet", { enumerable: true, get: function () { return isSet_1.isSet; } });
|
|
163
|
-
var isString_1 = require("./isString");
|
|
164
|
-
Object.defineProperty(exports, "isString", { enumerable: true, get: function () { return isString_1.isString; } });
|
|
165
|
-
var isSymbol_1 = require("./isSymbol");
|
|
166
|
-
Object.defineProperty(exports, "isSymbol", { enumerable: true, get: function () { return isSymbol_1.isSymbol; } });
|
|
167
|
-
var isType_1 = require("./isType");
|
|
168
|
-
Object.defineProperty(exports, "isType", { enumerable: true, get: function () { return isType_1.isType; } });
|
|
169
|
-
var isUndefined_1 = require("./isUndefined");
|
|
170
|
-
Object.defineProperty(exports, "isUndefined", { enumerable: true, get: function () { return isUndefined_1.isUndefined; } });
|
|
171
|
-
var isWeakMap_1 = require("./isWeakMap");
|
|
172
|
-
Object.defineProperty(exports, "isWeakMap", { enumerable: true, get: function () { return isWeakMap_1.isWeakMap; } });
|
|
173
|
-
var isWeakSet_1 = require("./isWeakSet");
|
|
174
|
-
Object.defineProperty(exports, "isWeakSet", { enumerable: true, get: function () { return isWeakSet_1.isWeakSet; } });
|
|
175
|
-
var kbToBytes_1 = require("./kbToBytes");
|
|
176
|
-
Object.defineProperty(exports, "kbToBytes", { enumerable: true, get: function () { return kbToBytes_1.kbToBytes; } });
|
|
177
|
-
var lowercase_1 = require("./lowercase");
|
|
178
|
-
Object.defineProperty(exports, "lowercase", { enumerable: true, get: function () { return lowercase_1.lowercase; } });
|
|
179
|
-
var mapListBy_1 = require("./mapListBy");
|
|
180
|
-
Object.defineProperty(exports, "mapListBy", { enumerable: true, get: function () { return mapListBy_1.mapListBy; } });
|
|
181
|
-
var matchSorter_1 = require("./matchSorter");
|
|
182
|
-
Object.defineProperty(exports, "matchSorter", { enumerable: true, get: function () { return matchSorter_1.matchSorter; } });
|
|
183
|
-
var mbToBytes_1 = require("./mbToBytes");
|
|
184
|
-
Object.defineProperty(exports, "mbToBytes", { enumerable: true, get: function () { return mbToBytes_1.mbToBytes; } });
|
|
185
|
-
var mergeObjects_1 = require("./mergeObjects");
|
|
186
|
-
Object.defineProperty(exports, "mergeObjects", { enumerable: true, get: function () { return mergeObjects_1.mergeObjects; } });
|
|
187
|
-
var mergeUrlQueryParams_1 = require("./mergeUrlQueryParams");
|
|
188
|
-
Object.defineProperty(exports, "mergeUrlQueryParams", { enumerable: true, get: function () { return mergeUrlQueryParams_1.mergeUrlQueryParams; } });
|
|
189
|
-
var moveSortableArrayItemByKey_1 = require("./moveSortableArrayItemByKey");
|
|
190
|
-
Object.defineProperty(exports, "moveSortableArrayItemByKey", { enumerable: true, get: function () { return moveSortableArrayItemByKey_1.moveSortableArrayItemByKey; } });
|
|
191
|
-
var noop_1 = require("./noop");
|
|
192
|
-
Object.defineProperty(exports, "noop", { enumerable: true, get: function () { return noop_1.noop; } });
|
|
193
|
-
var normaliseUrlPathname_1 = require("./normaliseUrlPathname");
|
|
194
|
-
Object.defineProperty(exports, "normaliseUrlPathname", { enumerable: true, get: function () { return normaliseUrlPathname_1.normaliseUrlPathname; } });
|
|
195
|
-
var normaliseUrl_1 = require("./normaliseUrl");
|
|
196
|
-
Object.defineProperty(exports, "normaliseUrl", { enumerable: true, get: function () { return normaliseUrl_1.normaliseUrl; } });
|
|
197
|
-
var objectPick_1 = require("./objectPick");
|
|
198
|
-
Object.defineProperty(exports, "objectPick", { enumerable: true, get: function () { return objectPick_1.objectPick; } });
|
|
199
|
-
var objectOmit_1 = require("./objectOmit");
|
|
200
|
-
Object.defineProperty(exports, "objectOmit", { enumerable: true, get: function () { return objectOmit_1.objectOmit; } });
|
|
201
|
-
var parseCookie_1 = require("./parseCookie");
|
|
202
|
-
Object.defineProperty(exports, "parseCookie", { enumerable: true, get: function () { return parseCookie_1.parseCookie; } });
|
|
203
|
-
var parseURL_1 = require("./parseURL");
|
|
204
|
-
Object.defineProperty(exports, "parseURL", { enumerable: true, get: function () { return parseURL_1.parseURL; } });
|
|
205
|
-
var quaranteneProps_1 = require("./quaranteneProps");
|
|
206
|
-
Object.defineProperty(exports, "quaranteneProps", { enumerable: true, get: function () { return quaranteneProps_1.quaranteneProps; } });
|
|
207
|
-
var randomInt_1 = require("./randomInt");
|
|
208
|
-
Object.defineProperty(exports, "randomInt", { enumerable: true, get: function () { return randomInt_1.randomInt; } });
|
|
209
|
-
var randomKey_1 = require("./randomKey");
|
|
210
|
-
Object.defineProperty(exports, "randomKey", { enumerable: true, get: function () { return randomKey_1.randomKey; } });
|
|
211
|
-
var readCookie_1 = require("./readCookie");
|
|
212
|
-
Object.defineProperty(exports, "readCookie", { enumerable: true, get: function () { return readCookie_1.readCookie; } });
|
|
213
|
-
var removeAccents_1 = require("./removeAccents");
|
|
214
|
-
Object.defineProperty(exports, "removeAccents", { enumerable: true, get: function () { return removeAccents_1.removeAccents; } });
|
|
215
|
-
var removeCookie_1 = require("./removeCookie");
|
|
216
|
-
Object.defineProperty(exports, "removeCookie", { enumerable: true, get: function () { return removeCookie_1.removeCookie; } });
|
|
217
|
-
// export {} from "./removeDuplicates";
|
|
218
|
-
var removeDuplicatesByKey_1 = require("./removeDuplicatesByKey");
|
|
219
|
-
Object.defineProperty(exports, "removeDuplicatesByKey", { enumerable: true, get: function () { return removeDuplicatesByKey_1.removeDuplicatesByKey; } });
|
|
220
|
-
var removeDuplicatesComparing_1 = require("./removeDuplicatesComparing");
|
|
221
|
-
Object.defineProperty(exports, "removeDuplicatesComparing", { enumerable: true, get: function () { return removeDuplicatesComparing_1.removeDuplicatesComparing; } });
|
|
222
|
-
var removeIndexesFromArray_1 = require("./removeIndexesFromArray");
|
|
223
|
-
Object.defineProperty(exports, "removeIndexesFromArray", { enumerable: true, get: function () { return removeIndexesFromArray_1.removeIndexesFromArray; } });
|
|
224
|
-
var removeTrailingSlash_1 = require("./removeTrailingSlash");
|
|
225
|
-
Object.defineProperty(exports, "removeTralingSlash", { enumerable: true, get: function () { return removeTrailingSlash_1.removeTralingSlash; } });
|
|
226
|
-
var removeUrlQueryParams_1 = require("./removeUrlQueryParams");
|
|
227
|
-
Object.defineProperty(exports, "removeUrlQueryParams", { enumerable: true, get: function () { return removeUrlQueryParams_1.removeUrlQueryParams; } });
|
|
228
|
-
var roundTo_1 = require("./roundTo");
|
|
229
|
-
Object.defineProperty(exports, "roundTo", { enumerable: true, get: function () { return roundTo_1.roundTo; } });
|
|
230
|
-
var serializeCookie_1 = require("./serializeCookie");
|
|
231
|
-
Object.defineProperty(exports, "serializeCookie", { enumerable: true, get: function () { return serializeCookie_1.serializeCookie; } });
|
|
232
|
-
var setCookie_1 = require("./setCookie");
|
|
233
|
-
Object.defineProperty(exports, "setCookie", { enumerable: true, get: function () { return setCookie_1.setCookie; } });
|
|
234
|
-
var shuffle_1 = require("./shuffle");
|
|
235
|
-
Object.defineProperty(exports, "shuffle", { enumerable: true, get: function () { return shuffle_1.shuffle; } });
|
|
236
|
-
var slugify_1 = require("./slugify");
|
|
237
|
-
Object.defineProperty(exports, "slugify", { enumerable: true, get: function () { return slugify_1.slugify; } });
|
|
238
|
-
var swapMap_1 = require("./swapMap");
|
|
239
|
-
Object.defineProperty(exports, "swapMap", { enumerable: true, get: function () { return swapMap_1.swapMap; } });
|
|
240
|
-
var throttle_1 = require("./throttle");
|
|
241
|
-
Object.defineProperty(exports, "throttle", { enumerable: true, get: function () { return throttle_1.throttle; } });
|
|
242
|
-
var titleCase_1 = require("./titleCase");
|
|
243
|
-
Object.defineProperty(exports, "titleCase", { enumerable: true, get: function () { return titleCase_1.titleCase; } });
|
|
244
|
-
var toNumber_1 = require("./toNumber");
|
|
245
|
-
Object.defineProperty(exports, "toNumber", { enumerable: true, get: function () { return toNumber_1.toNumber; } });
|
|
246
|
-
var toRgba_1 = require("./toRgba");
|
|
247
|
-
Object.defineProperty(exports, "toRgba", { enumerable: true, get: function () { return toRgba_1.toRgba; } });
|
|
248
|
-
var transformToUrlPathname_1 = require("./transformToUrlPathname");
|
|
249
|
-
Object.defineProperty(exports, "transformToUrlPathname", { enumerable: true, get: function () { return transformToUrlPathname_1.transformToUrlPathname; } });
|
|
250
|
-
var truncate_1 = require("./truncate");
|
|
251
|
-
Object.defineProperty(exports, "truncate", { enumerable: true, get: function () { return truncate_1.truncate; } });
|
|
252
|
-
var tryUntil_1 = require("./tryUntil");
|
|
253
|
-
Object.defineProperty(exports, "tryUntil", { enumerable: true, get: function () { return tryUntil_1.tryUntil; } });
|
|
254
|
-
var uid_1 = require("./uid");
|
|
255
|
-
Object.defineProperty(exports, "uid", { enumerable: true, get: function () { return uid_1.uid; } });
|
|
256
|
-
var updateLinkParams_1 = require("./updateLinkParams");
|
|
257
|
-
Object.defineProperty(exports, "updateLinkParams", { enumerable: true, get: function () { return updateLinkParams_1.updateLinkParams; } });
|
|
258
|
-
var updateUrlQueryParams_1 = require("./updateUrlQueryParams");
|
|
259
|
-
Object.defineProperty(exports, "updateUrlQueryParams", { enumerable: true, get: function () { return updateUrlQueryParams_1.updateUrlQueryParams; } });
|
|
260
|
-
var uppercase_1 = require("./uppercase");
|
|
261
|
-
Object.defineProperty(exports, "uppercase", { enumerable: true, get: function () { return uppercase_1.uppercase; } });
|
|
262
|
-
var uuid_1 = require("./uuid");
|
|
263
|
-
Object.defineProperty(exports, "uuid", { enumerable: true, get: function () { return uuid_1.uuid; } });
|
|
264
|
-
var uuidNumeric_1 = require("./uuidNumeric");
|
|
265
|
-
Object.defineProperty(exports, "uuidNumeric", { enumerable: true, get: function () { return uuidNumeric_1.uuidNumeric; } });
|
|
266
|
-
var wait_1 = require("./wait");
|
|
267
|
-
Object.defineProperty(exports, "wait", { enumerable: true, get: function () { return wait_1.wait; } });
|
|
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 { arrayUniqueByProperties } from "./arrayUniqueByProperties.js";
|
|
8
|
+
export { buildUrlQueryString } from "./buildUrlQueryString.js";
|
|
9
|
+
export { capitalize } from "./capitalize.js";
|
|
10
|
+
export { changeUrlPath } from "./changeUrlPath.js";
|
|
11
|
+
export { chunkByChunks } from "./chunkByChunks.js";
|
|
12
|
+
export { chunkBySize } from "./chunkBySize.js";
|
|
13
|
+
export { clamp } from "./clamp.js";
|
|
14
|
+
export { clsx } from "./clsx.js";
|
|
15
|
+
export { convertRange } from "./convertRange.js";
|
|
16
|
+
export { createPalette } from "./createPalette.js";
|
|
17
|
+
export { debounce } from "./debounce.js";
|
|
18
|
+
export { debounceRaf } from "./debounceRaf.js";
|
|
19
|
+
export { debouncePromise, } from "./debouncePromise.js";
|
|
20
|
+
export { decode } from "./decode.js";
|
|
21
|
+
export { Defer } 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 { 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 { lowercase } from "./lowercase.js";
|
|
88
|
+
export { mapListBy } from "./mapListBy.js";
|
|
89
|
+
export { matchSorter } from "./matchSorter.js";
|
|
90
|
+
export { mbToBytes } from "./mbToBytes.js";
|
|
91
|
+
export { mergeObjects } from "./mergeObjects.js";
|
|
92
|
+
export { mergeUrlQueryParams } from "./mergeUrlQueryParams.js";
|
|
93
|
+
export { moveSortableArrayItemByKey } from "./moveSortableArrayItemByKey.js";
|
|
94
|
+
export { noop } from "./noop.js";
|
|
95
|
+
export { normaliseUrlPathname } from "./normaliseUrlPathname.js";
|
|
96
|
+
export { normaliseUrl } from "./normaliseUrl.js";
|
|
97
|
+
export { objectFlip } from "./objectFlip.js";
|
|
98
|
+
export { objectPick } from "./objectPick.js";
|
|
99
|
+
export { objectOmit } from "./objectOmit.js";
|
|
100
|
+
export { objectToArray } from "./objectToArray.js";
|
|
101
|
+
export { parseCookie } from "./parseCookie.js";
|
|
102
|
+
export { parseURL } from "./parseURL.js";
|
|
103
|
+
export { quaranteneProps } from "./quaranteneProps.js";
|
|
104
|
+
export { randomInt } from "./randomInt.js";
|
|
105
|
+
export { randomKey } from "./randomKey.js";
|
|
106
|
+
export { readCookie } from "./readCookie.js";
|
|
107
|
+
export { removeAccents } from "./removeAccents.js";
|
|
108
|
+
export { removeCookie } from "./removeCookie.js";
|
|
109
|
+
export { removeDuplicatesByKey } from "./removeDuplicatesByKey.js";
|
|
110
|
+
export { removeDuplicatesComparing } from "./removeDuplicatesComparing.js";
|
|
111
|
+
export { removeIndexesFromArray } from "./removeIndexesFromArray.js";
|
|
112
|
+
export { removeTralingSlash } from "./removeTrailingSlash.js";
|
|
113
|
+
export { removeUrlQueryParams } from "./removeUrlQueryParams.js";
|
|
114
|
+
export { round } from "./round.js";
|
|
115
|
+
export { roundTo } from "./roundTo.js";
|
|
116
|
+
export { serializeCookie } from "./serializeCookie.js";
|
|
117
|
+
export { setCookie } from "./setCookie.js";
|
|
118
|
+
export { shuffle } from "./shuffle.js";
|
|
119
|
+
export { slugify } from "./slugify.js";
|
|
120
|
+
export { split } from "./split.js";
|
|
121
|
+
export { swapMap } from "./swapMap.js";
|
|
122
|
+
export { throttle } from "./throttle.js";
|
|
123
|
+
export { titleCase } from "./titleCase.js";
|
|
124
|
+
export { toNumber } from "./toNumber.js";
|
|
125
|
+
export { toRgba } from "./toRgba.js";
|
|
126
|
+
export { transformToUrlPathname } from "./transformToUrlPathname.js";
|
|
127
|
+
export { truncate } from "./truncate.js";
|
|
128
|
+
export { tryUntil } from "./tryUntil.js";
|
|
129
|
+
export { uid } from "./uid.js";
|
|
130
|
+
export { updateLinkParams } from "./updateLinkParams.js";
|
|
131
|
+
export { updateUrlQueryParams } from "./updateUrlQueryParams.js";
|
|
132
|
+
export { uppercase } from "./uppercase.js";
|
|
133
|
+
export { uuid } from "./uuid.js";
|
|
134
|
+
export { uuidNumeric } from "./uuidNumeric.js";
|
|
135
|
+
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
CHANGED
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.invariant = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* FIXME: invariant calls do not get tree shaked in minified output of projects
|
|
6
|
-
* using it. Let's not use it internally and not export it from `@koine/utils`
|
|
7
|
-
* until we find a tree-shakeable way of doing this. For now just wrapping
|
|
8
|
-
* the logging code into `if (process.env["NODE_ENV"] !== "production") {}`
|
|
9
|
-
* works better despite it is more verbose.
|
|
10
|
-
*
|
|
11
|
-
* @resources
|
|
12
|
-
* - https://github.com/alexreardon/tiny-invariant
|
|
13
|
-
* - https://github.com/zertosh/invariant
|
|
14
|
-
* - https://stackoverflow.com/q/39055159/1938970
|
|
15
|
-
*
|
|
16
|
-
* @param condition The condition that, if `true` will throw the error during development
|
|
17
|
-
* @param message A string or a function that returns a string
|
|
18
|
-
* @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`)
|
|
19
|
-
* @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`)
|
|
20
|
-
*/
|
|
21
|
-
function invariant(condition, message, lib, prefix) {
|
|
22
|
-
if (process.env["NODE_ENV"] !== "production") {
|
|
1
|
+
export function invariant(condition, message, lib, prefix) {
|
|
2
|
+
if (process.env["NODE_ENV"] === "development") {
|
|
23
3
|
if (condition) {
|
|
24
4
|
return;
|
|
25
5
|
}
|
|
@@ -34,5 +14,4 @@ function invariant(condition, message, lib, prefix) {
|
|
|
34
14
|
throw new Error(msgPrefix + msgProvided);
|
|
35
15
|
}
|
|
36
16
|
}
|
|
37
|
-
|
|
38
|
-
exports.default = invariant;
|
|
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
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var getType_1 = tslib_1.__importDefault(require("./getType"));
|
|
6
|
-
/**
|
|
7
|
-
* Returns whether the payload is an any kind of object (including special classes or objects with different prototypes)
|
|
8
|
-
*
|
|
9
|
-
* @category is
|
|
10
|
-
*/
|
|
11
|
-
function isAnyObject(payload) {
|
|
12
|
-
return (0, getType_1.default)(payload) === "Object";
|
|
1
|
+
import getType from "./getType.js";
|
|
2
|
+
export function isAnyObject(payload) {
|
|
3
|
+
return getType(payload) === "Object";
|
|
13
4
|
}
|
|
14
|
-
|
|
15
|
-
exports.default = isAnyObject;
|
|
5
|
+
export default isAnyObject;
|
package/isArray.d.ts
CHANGED
package/isArray.js
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var getType_1 = tslib_1.__importDefault(require("./getType"));
|
|
6
|
-
/**
|
|
7
|
-
* Returns whether the payload is an array
|
|
8
|
-
*
|
|
9
|
-
* @category is
|
|
10
|
-
*/
|
|
11
|
-
function isArray(payload) {
|
|
12
|
-
return (0, getType_1.default)(payload) === "Array";
|
|
1
|
+
import getType from "./getType.js";
|
|
2
|
+
export function isArray(payload) {
|
|
3
|
+
return getType(payload) === "Array";
|
|
13
4
|
}
|
|
14
|
-
|
|
15
|
-
exports.default = isArray;
|
|
5
|
+
export default isArray;
|
package/isBlob.d.ts
CHANGED
package/isBlob.js
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var getType_1 = tslib_1.__importDefault(require("./getType"));
|
|
6
|
-
/**
|
|
7
|
-
* Returns whether the payload is a Blob
|
|
8
|
-
*
|
|
9
|
-
* @category is
|
|
10
|
-
*/
|
|
11
|
-
function isBlob(payload) {
|
|
12
|
-
return (0, getType_1.default)(payload) === "Blob";
|
|
1
|
+
import getType from "./getType.js";
|
|
2
|
+
export function isBlob(payload) {
|
|
3
|
+
return getType(payload) === "Blob";
|
|
13
4
|
}
|
|
14
|
-
|
|
15
|
-
exports.default = isBlob;
|
|
5
|
+
export default isBlob;
|