@krainovsd/js-helpers 0.3.2 → 0.3.3
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/lib/cjs/index.js +7 -2040
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/lib/api/core.js +3 -3
- package/lib/esm/lib/api/middlewares/auth-middleware.js +3 -3
- package/lib/esm/lib/api/token-request.js +2 -2
- package/lib/esm/lib/browser/download-file.js +3 -3
- package/lib/esm/lib/date/date-difference.js +1 -1
- package/lib/esm/lib/date/date-format.js +1 -1
- package/lib/esm/lib/date/is-today.js +2 -2
- package/lib/esm/lib/date/is-tomorrow.js +2 -2
- package/lib/esm/lib/date/is-yesterday.js +2 -2
- package/lib/esm/lib/utils/field-view-format.js +1 -1
- package/lib/esm/lib/utils/get-by-path.js +1 -1
- package/lib/esm/lib/utils/set-by-path.js +1 -1
- package/lib/index.d.ts +215 -0
- package/package.json +13 -9
- package/lib/esm/_virtual/_commonjsHelpers.js +0 -8
- package/lib/esm/_virtual/_commonjsHelpers.js.map +0 -1
- package/lib/esm/_virtual/dayjs.min.js +0 -8
- package/lib/esm/_virtual/dayjs.min.js.map +0 -1
- package/lib/esm/_virtual/dayjs.min2.js +0 -4
- package/lib/esm/_virtual/dayjs.min2.js.map +0 -1
- package/lib/esm/_virtual/get.js +0 -8
- package/lib/esm/_virtual/get.js.map +0 -1
- package/lib/esm/_virtual/isToday.js +0 -8
- package/lib/esm/_virtual/isToday.js.map +0 -1
- package/lib/esm/_virtual/isToday2.js +0 -4
- package/lib/esm/_virtual/isToday2.js.map +0 -1
- package/lib/esm/_virtual/isTomorrow.js +0 -8
- package/lib/esm/_virtual/isTomorrow.js.map +0 -1
- package/lib/esm/_virtual/isTomorrow2.js +0 -4
- package/lib/esm/_virtual/isTomorrow2.js.map +0 -1
- package/lib/esm/_virtual/isYesterday.js +0 -8
- package/lib/esm/_virtual/isYesterday.js.map +0 -1
- package/lib/esm/_virtual/isYesterday2.js +0 -4
- package/lib/esm/_virtual/isYesterday2.js.map +0 -1
- package/lib/esm/_virtual/set.js +0 -8
- package/lib/esm/_virtual/set.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -17
- package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isToday.js +0 -17
- package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isToday.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isTomorrow.js +0 -17
- package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isTomorrow.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isYesterday.js +0 -17
- package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isYesterday.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js +0 -49
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js +0 -49
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js +0 -21
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js +0 -49
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +0 -19
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js +0 -33
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js +0 -42
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +0 -34
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js +0 -38
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js +0 -38
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +0 -43
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +0 -63
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js +0 -68
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js +0 -53
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js +0 -37
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js +0 -19
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js +0 -24
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +0 -18
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js +0 -31
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js +0 -31
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +0 -59
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js +0 -25
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js +0 -28
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js +0 -29
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js +0 -43
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js +0 -36
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js +0 -36
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js +0 -37
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js +0 -43
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js +0 -27
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js +0 -33
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +0 -25
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +0 -48
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +0 -32
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +0 -29
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +0 -39
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +0 -36
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +0 -31
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +0 -29
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +0 -29
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +0 -35
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js +0 -39
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +0 -19
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +0 -34
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +0 -22
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js +0 -40
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js +0 -34
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js +0 -38
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js +0 -49
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js +0 -46
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js +0 -38
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +0 -51
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +0 -43
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +0 -41
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +0 -43
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js +0 -86
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js +0 -48
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js.map +0 -1
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js +0 -41
- package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js.map +0 -1
- package/tmp/constants/api.d.ts +0 -4
- package/tmp/constants/colors.d.ts +0 -6
- package/tmp/constants/date.d.ts +0 -8
- package/tmp/constants/environment.d.ts +0 -6
- package/tmp/constants/fields.d.ts +0 -8
- package/tmp/constants/index.d.ts +0 -5
- package/tmp/index.d.ts +0 -3
- package/tmp/lib/api/core.d.ts +0 -19
- package/tmp/lib/api/index.d.ts +0 -1
- package/tmp/lib/api/middlewares/auth-middleware.d.ts +0 -2
- package/tmp/lib/api/middlewares/console-middleware.d.ts +0 -2
- package/tmp/lib/api/middlewares/index.d.ts +0 -2
- package/tmp/lib/api/token-request.d.ts +0 -2
- package/tmp/lib/browser/download-file.d.ts +0 -7
- package/tmp/lib/browser/download-json.d.ts +0 -1
- package/tmp/lib/browser/index.d.ts +0 -3
- package/tmp/lib/browser/read-file.d.ts +0 -1
- package/tmp/lib/colors/get-color-format.d.ts +0 -1
- package/tmp/lib/colors/index.d.ts +0 -6
- package/tmp/lib/colors/take-opacity-colors.d.ts +0 -1
- package/tmp/lib/colors/transform-hex-to-rgb.d.ts +0 -1
- package/tmp/lib/colors/transform-rgb-to-rgba.d.ts +0 -1
- package/tmp/lib/colors/transform-rgba-to-rgb.d.ts +0 -1
- package/tmp/lib/colors/transform-to-color.d.ts +0 -2
- package/tmp/lib/date/date-difference.d.ts +0 -2
- package/tmp/lib/date/date-format.d.ts +0 -1
- package/tmp/lib/date/get-date-by-rules.d.ts +0 -2
- package/tmp/lib/date/get-today.d.ts +0 -4
- package/tmp/lib/date/get-tomorrow.d.ts +0 -1
- package/tmp/lib/date/get-yesterday.d.ts +0 -1
- package/tmp/lib/date/index.d.ts +0 -9
- package/tmp/lib/date/is-today.d.ts +0 -2
- package/tmp/lib/date/is-tomorrow.d.ts +0 -2
- package/tmp/lib/date/is-yesterday.d.ts +0 -2
- package/tmp/lib/index.d.ts +0 -6
- package/tmp/lib/typings/check-type.d.ts +0 -1
- package/tmp/lib/typings/index.d.ts +0 -11
- package/tmp/lib/typings/is-array.d.ts +0 -1
- package/tmp/lib/typings/is-boolean.d.ts +0 -1
- package/tmp/lib/typings/is-date.d.ts +0 -1
- package/tmp/lib/typings/is-id.d.ts +0 -1
- package/tmp/lib/typings/is-null.d.ts +0 -1
- package/tmp/lib/typings/is-nullable.d.ts +0 -1
- package/tmp/lib/typings/is-number.d.ts +0 -1
- package/tmp/lib/typings/is-object.d.ts +0 -1
- package/tmp/lib/typings/is-string.d.ts +0 -1
- package/tmp/lib/typings/is-undefined.d.ts +0 -1
- package/tmp/lib/utils/array-to-map-by-key.d.ts +0 -1
- package/tmp/lib/utils/build-query-string.d.ts +0 -2
- package/tmp/lib/utils/create-url-with-params.d.ts +0 -7
- package/tmp/lib/utils/field-view-format.d.ts +0 -2
- package/tmp/lib/utils/get-by-path.d.ts +0 -1
- package/tmp/lib/utils/get-file-name-from-header.d.ts +0 -1
- package/tmp/lib/utils/index.d.ts +0 -16
- package/tmp/lib/utils/json-parse.d.ts +0 -1
- package/tmp/lib/utils/limit-stream-of-requests.d.ts +0 -14
- package/tmp/lib/utils/random-number.d.ts +0 -1
- package/tmp/lib/utils/random-string.d.ts +0 -1
- package/tmp/lib/utils/set-by-path.d.ts +0 -1
- package/tmp/lib/utils/sync-object-values.d.ts +0 -1
- package/tmp/lib/utils/transform-to-number.d.ts +0 -1
- package/tmp/lib/utils/trim-url.d.ts +0 -1
- package/tmp/lib/utils/wait-until.d.ts +0 -1
- package/tmp/lib/utils/wait.d.ts +0 -1
- package/tmp/libs.d.ts +0 -2
- package/tmp/types/api.d.ts +0 -33
- package/tmp/types/colors.d.ts +0 -3
- package/tmp/types/common.d.ts +0 -2
- package/tmp/types/date.d.ts +0 -7
- package/tmp/types/fields.d.ts +0 -3
- package/tmp/types/index.d.ts +0 -5
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __require as require_baseToString } from './_baseToString.js';
|
|
2
|
-
|
|
3
|
-
var toString_1;
|
|
4
|
-
var hasRequiredToString;
|
|
5
|
-
|
|
6
|
-
function requireToString () {
|
|
7
|
-
if (hasRequiredToString) return toString_1;
|
|
8
|
-
hasRequiredToString = 1;
|
|
9
|
-
var baseToString = require_baseToString();
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
13
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
14
|
-
*
|
|
15
|
-
* @static
|
|
16
|
-
* @memberOf _
|
|
17
|
-
* @since 4.0.0
|
|
18
|
-
* @category Lang
|
|
19
|
-
* @param {*} value The value to convert.
|
|
20
|
-
* @returns {string} Returns the converted string.
|
|
21
|
-
* @example
|
|
22
|
-
*
|
|
23
|
-
* _.toString(null);
|
|
24
|
-
* // => ''
|
|
25
|
-
*
|
|
26
|
-
* _.toString(-0);
|
|
27
|
-
* // => '-0'
|
|
28
|
-
*
|
|
29
|
-
* _.toString([1, 2, 3]);
|
|
30
|
-
* // => '1,2,3'
|
|
31
|
-
*/
|
|
32
|
-
function toString(value) {
|
|
33
|
-
return value == null ? '' : baseToString(value);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
toString_1 = toString;
|
|
37
|
-
return toString_1;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export { requireToString as __require };
|
|
41
|
-
//# sourceMappingURL=toString.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toString.js","sources":["../../../../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"],"sourcesContent":["var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n"],"names":["require$$0"],"mappings":";;;;;;;;CAAA,IAAI,YAAY,GAAGA,oBAA0B,EAAA;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,QAAQ,CAAC,KAAK,EAAE;GACvB,OAAO,KAAK,IAAI,IAAI,GAAG,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC;AACjD;;AAEA,CAAA,UAAc,GAAG,QAAQ;;;;;;","x_google_ignoreList":[0]}
|
package/tmp/constants/api.d.ts
DELETED
package/tmp/constants/date.d.ts
DELETED
package/tmp/constants/index.d.ts
DELETED
package/tmp/index.d.ts
DELETED
package/tmp/lib/api/core.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ActiveMiddleware, MiddlewaresOptions, RequestInterface } from "../../types";
|
|
2
|
-
type ResponseErrorOptions = {
|
|
3
|
-
message: string;
|
|
4
|
-
status: number;
|
|
5
|
-
description?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare class ResponseError extends Error {
|
|
8
|
-
status: number;
|
|
9
|
-
description?: string;
|
|
10
|
-
constructor({ message, status, description }: ResponseErrorOptions);
|
|
11
|
-
}
|
|
12
|
-
export declare function generateRequestsInstance(activeMiddlewares?: ActiveMiddleware, middlewareOptions?: MiddlewaresOptions): {
|
|
13
|
-
requestApi: <T, Incoming = unknown, Body = unknown, Outcoming = unknown>(request: RequestInterface<T, Incoming, Body, Outcoming>) => Promise<T>;
|
|
14
|
-
requestApiWithStatus: <T, Incoming = unknown, Body = unknown, Outcoming = unknown>(request: RequestInterface<T, Incoming, Body, Outcoming>) => Promise<{
|
|
15
|
-
data: T;
|
|
16
|
-
status: number;
|
|
17
|
-
}>;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
package/tmp/lib/api/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./core";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { ActiveMiddleware, MiddlewaresOptions, RequestInterface } from "../../../types";
|
|
2
|
-
export declare function generateMiddlewares(activeMiddlewares: ActiveMiddleware, middlewareOptions: MiddlewaresOptions): <T, Incoming, Body, Outcoming>(request: RequestInterface<T, Incoming, Body, Outcoming>) => Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function downloadJson(data: unknown, name: string): null | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function readFile(file: File): Promise<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getColorFormat(color: string): "HEX" | "RGB" | "RGBA" | "HSL" | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function takeOpacityColors(color: string | undefined, opacities: number[]): string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transformHEXtoRGB(hex: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transformRGBtoRGBA(rgb: string, opacity: number): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transformRGBAtoRGB(rgba: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function dateFormat(date: Date | string | number, format: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getTomorrow(): Date;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getYesterday(): Date;
|
package/tmp/lib/date/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from "./date-difference";
|
|
2
|
-
export * from "./get-date-by-rules";
|
|
3
|
-
export * from "./get-today";
|
|
4
|
-
export * from "./get-tomorrow";
|
|
5
|
-
export * from "./get-yesterday";
|
|
6
|
-
export * from "./is-today";
|
|
7
|
-
export * from "./is-tomorrow";
|
|
8
|
-
export * from "./is-yesterday";
|
|
9
|
-
export * from "./date-format";
|
package/tmp/lib/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function checkType<R>(value: unknown, condition: boolean): value is R;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from "./check-type";
|
|
2
|
-
export * from "./is-array";
|
|
3
|
-
export * from "./is-boolean";
|
|
4
|
-
export * from "./is-id";
|
|
5
|
-
export * from "./is-null";
|
|
6
|
-
export * from "./is-nullable";
|
|
7
|
-
export * from "./is-number";
|
|
8
|
-
export * from "./is-object";
|
|
9
|
-
export * from "./is-string";
|
|
10
|
-
export * from "./is-undefined";
|
|
11
|
-
export * from "./is-date";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isArray(value: unknown): value is unknown[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isBoolean(value: unknown): value is boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isDate(value: unknown): value is Date;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isId(value: unknown): value is number | string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isNull(value: unknown): value is null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isNullable(value: unknown): value is null | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isNumber(value: unknown): value is number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isObject(value: unknown): value is Record<string, unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isString(value: unknown): value is string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isUndefined(value: unknown): value is undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function arrayToMapByKey<T extends Record<string, unknown>>(array: T[], key: keyof T): Record<string, T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getByPath<T>(data: unknown, path?: string, defaultValue?: unknown): T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getFileNameFromHeader(header: string): string | null;
|
package/tmp/lib/utils/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from "./wait-until";
|
|
2
|
-
export * from "./get-by-path";
|
|
3
|
-
export * from "./field-view-format";
|
|
4
|
-
export * from "./set-by-path";
|
|
5
|
-
export * from "./json-parse";
|
|
6
|
-
export * from "./random-string";
|
|
7
|
-
export * from "./wait";
|
|
8
|
-
export * from "./transform-to-number";
|
|
9
|
-
export * from "./create-url-with-params";
|
|
10
|
-
export * from "./trim-url";
|
|
11
|
-
export * from "./array-to-map-by-key";
|
|
12
|
-
export * from "./build-query-string";
|
|
13
|
-
export * from "./sync-object-values";
|
|
14
|
-
export * from "./random-number";
|
|
15
|
-
export * from "./get-file-name-from-header";
|
|
16
|
-
export * from "./limit-stream-of-requests";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function jsonParse<T>(json: unknown): T | null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type LimitStreamOfRequestsOptions<T> = {
|
|
2
|
-
countRequests: number;
|
|
3
|
-
maxCountInParallel: number;
|
|
4
|
-
promiseGetter: (count: number) => Promise<T>;
|
|
5
|
-
refetchAfterError?: boolean;
|
|
6
|
-
maxTryCount?: number;
|
|
7
|
-
collectResult?: boolean;
|
|
8
|
-
resultCb?: (result: T) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare function limitStreamOfRequests<T>({ countRequests, maxCountInParallel, promiseGetter, refetchAfterError, resultCb, collectResult, maxTryCount, }: LimitStreamOfRequestsOptions<T>): {
|
|
11
|
-
promise: Promise<T[]>;
|
|
12
|
-
cancel: () => void;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function randomNumber(min: number, max: number): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function randomString(length?: number, allowCharacters?: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setByPath(data: Record<string, unknown> | unknown[], path: string, value: unknown): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function syncObjectValues(oldObj: Record<string, unknown>, newObj: Record<string, unknown>, exception?: string[]): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transformToNumber(value: unknown): number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function trimUrl(url: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const waitUntil: (condition: () => boolean, checkInterval?: number) => Promise<unknown>;
|
package/tmp/lib/utils/wait.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function wait(delay: number): Promise<unknown>;
|
package/tmp/libs.d.ts
DELETED
package/tmp/types/api.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type API_MIDDLEWARES } from "../constants";
|
|
2
|
-
import type { ValueOf } from "./common";
|
|
3
|
-
export type ParamValueType = string | number | boolean;
|
|
4
|
-
export type ParamsType = Record<string, ParamValueType | ParamValueType[] | null | undefined>;
|
|
5
|
-
export interface RequestInterface<T, Incoming, Body, Outcoming> {
|
|
6
|
-
path: string;
|
|
7
|
-
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
8
|
-
body?: Body | Outcoming;
|
|
9
|
-
params?: ParamsType;
|
|
10
|
-
headers?: Record<string, string | undefined>;
|
|
11
|
-
delay?: number;
|
|
12
|
-
transformOutcomingData?: (data: Body) => Outcoming;
|
|
13
|
-
transformIncomingData?: (data: Incoming) => T;
|
|
14
|
-
mock?: Incoming;
|
|
15
|
-
downloadFile?: boolean;
|
|
16
|
-
token?: string;
|
|
17
|
-
withoutResponse?: boolean;
|
|
18
|
-
signal?: AbortSignal;
|
|
19
|
-
}
|
|
20
|
-
export type Middleware = <T, Incoming, Body, Outcoming>(request: RequestInterface<T, Incoming, Body, Outcoming>) => Promise<unknown>;
|
|
21
|
-
export type MiddlewareType = ValueOf<typeof API_MIDDLEWARES>;
|
|
22
|
-
export type ActiveMiddleware = MiddlewareType[];
|
|
23
|
-
export type AuthMiddleWareOptions = {
|
|
24
|
-
authRedirectUrl: string;
|
|
25
|
-
authTokenUrl: string;
|
|
26
|
-
storageExpiresTokenName: string;
|
|
27
|
-
storageTokenName: string;
|
|
28
|
-
pathToToken: string;
|
|
29
|
-
pathToExpires: string;
|
|
30
|
-
};
|
|
31
|
-
export type MiddlewaresOptions = {
|
|
32
|
-
auth?: AuthMiddleWareOptions;
|
|
33
|
-
};
|
package/tmp/types/colors.d.ts
DELETED
package/tmp/types/common.d.ts
DELETED
package/tmp/types/date.d.ts
DELETED
package/tmp/types/fields.d.ts
DELETED