@ls-stack/utils 3.68.0 → 3.69.0
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/dist/arrayUtils.mjs +1 -1
- package/dist/{assertions-CsE3pD8P.mjs → assertions-B9119Soz.mjs} +1 -1
- package/dist/assertions.mjs +1 -1
- package/dist/asyncQueue.mjs +1 -1
- package/dist/cache.mjs +2 -2
- package/dist/castValues.mjs +1 -1
- package/dist/concurrentCalls.mjs +3 -3
- package/dist/conversions.mjs +1 -1
- package/dist/createThrottleController.mjs +1 -1
- package/dist/deepEqual.mjs +1 -1
- package/dist/deepReplaceValues.mjs +1 -1
- package/dist/enhancedMap.mjs +1 -1
- package/dist/filterObjectOrArrayKeys.mjs +1 -1
- package/dist/fuzzySearch.d.mts +0 -12
- package/dist/fuzzySearch.mjs +0 -12
- package/dist/getCompositeKey.mjs +1 -1
- package/dist/interpolate.mjs +2 -2
- package/dist/keepPrevIfUnchanged.mjs +1 -1
- package/dist/mathUtils.mjs +1 -1
- package/dist/mockList.d.mts +15 -0
- package/dist/mockList.mjs +41 -0
- package/dist/mutationUtils.mjs +1 -1
- package/dist/objUtils.mjs +1 -1
- package/dist/parallelAsyncCalls.mjs +1 -1
- package/dist/partialEqual.mjs +1 -1
- package/dist/saferTyping.d.mts +6 -1
- package/dist/saferTyping.mjs +8 -1
- package/dist/serializeXML.mjs +1 -1
- package/dist/stringUtils.mjs +1 -1
- package/dist/testUtils.mjs +5 -5
- package/dist/{time-CJSFU8a1.mjs → time-BJXm2Xv6.mjs} +2 -2
- package/dist/time.mjs +1 -1
- package/dist/tsResult.mjs +1 -1
- package/dist/typeGuards.mjs +1 -1
- package/dist/typingFnUtils.mjs +1 -1
- package/dist/yamlStringify.mjs +3 -3
- package/package.json +4 -2
- /package/dist/{castValues-QQmtZf_x.mjs → castValues-BPls1LFT.mjs} +0 -0
- /package/dist/{conversions-CWGUTE04.mjs → conversions-DAWknpNd.mjs} +0 -0
- /package/dist/{deepEqual-2xhh-diQ.mjs → deepEqual-CJIwfxEt.mjs} +0 -0
- /package/dist/{mathUtils-DuqyAkNL.mjs → mathUtils-Cl8qZbfS.mjs} +0 -0
- /package/dist/{stringUtils-DEEj_Z1p.mjs → stringUtils-e-95_mNH.mjs} +0 -0
- /package/dist/{typeGuards-CMQqixVr.mjs → typeGuards-CSaHQdO9.mjs} +0 -0
- /package/dist/{typingFnUtils-BLxmDUp5.mjs → typingFnUtils-OK4g7kki.mjs} +0 -0
package/dist/arrayUtils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isPlainObject$1, i as isObject$1, n as isFunction$1, o as isPromise$1 } from "./typeGuards-
|
|
1
|
+
import { a as isPlainObject$1, i as isObject$1, n as isFunction$1, o as isPromise$1 } from "./typeGuards-CSaHQdO9.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/assertions.ts
|
|
4
4
|
const undefErrMsg = "not undefined assertion failed";
|
package/dist/assertions.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as isFunction, c as isPromise, i as invariant, l as notNullish, n as assertIsNotUndefined, o as isObject, r as exhaustiveCheck, s as isPlainObject, t as assertIsNotNullish, u as notUndefined } from "./assertions-
|
|
1
|
+
import { a as isFunction, c as isPromise, i as invariant, l as notNullish, n as assertIsNotUndefined, o as isObject, r as exhaustiveCheck, s as isPlainObject, t as assertIsNotNullish, u as notUndefined } from "./assertions-B9119Soz.mjs";
|
|
2
2
|
|
|
3
3
|
export { assertIsNotNullish, assertIsNotUndefined, exhaustiveCheck, invariant, isFunction, isObject, isPlainObject, isPromise, notNullish, notUndefined };
|
package/dist/asyncQueue.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defer } from "./promiseUtils.mjs";
|
|
2
|
-
import { p as durationObjToMs } from "./time-
|
|
2
|
+
import { p as durationObjToMs } from "./time-BJXm2Xv6.mjs";
|
|
3
3
|
import { evtmitter } from "evtmitter";
|
|
4
4
|
import { Result, isResult, resultify, unknownToError } from "t-result";
|
|
5
5
|
|
package/dist/cache.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as isPromise } from "./assertions-
|
|
2
|
-
import { p as durationObjToMs } from "./time-
|
|
1
|
+
import { c as isPromise } from "./assertions-B9119Soz.mjs";
|
|
2
|
+
import { p as durationObjToMs } from "./time-BJXm2Xv6.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/cache.ts
|
|
5
5
|
/**
|
package/dist/castValues.mjs
CHANGED
package/dist/concurrentCalls.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as isObject, o as isPromise } from "./typeGuards-
|
|
2
|
-
import { i as invariant } from "./assertions-
|
|
1
|
+
import { i as isObject, o as isPromise } from "./typeGuards-CSaHQdO9.mjs";
|
|
2
|
+
import { i as invariant } from "./assertions-B9119Soz.mjs";
|
|
3
3
|
import { truncateArray } from "./arrayUtils.mjs";
|
|
4
4
|
import { safeJsonStringify } from "./safeJson.mjs";
|
|
5
5
|
import { sleep } from "./sleep.mjs";
|
|
6
|
-
import { C as truncateString } from "./stringUtils-
|
|
6
|
+
import { C as truncateString } from "./stringUtils-e-95_mNH.mjs";
|
|
7
7
|
import { Result, resultify, unknownToError } from "t-result";
|
|
8
8
|
|
|
9
9
|
//#region src/concurrentCalls.ts
|
package/dist/conversions.mjs
CHANGED
package/dist/deepEqual.mjs
CHANGED
package/dist/enhancedMap.mjs
CHANGED
package/dist/fuzzySearch.d.mts
CHANGED
|
@@ -17,18 +17,6 @@ type SearchOptions<T> = {
|
|
|
17
17
|
* Uses uFuzzy for efficient fuzzy matching with Latin character normalization.
|
|
18
18
|
* Falls back to simple string inclusion matching if an error occurs.
|
|
19
19
|
*
|
|
20
|
-
* @param options - Configuration options for the fuzzy search
|
|
21
|
-
* @param options.items - Array of items to search through
|
|
22
|
-
* @param options.getStringToMatch - Function that extracts the string to match
|
|
23
|
-
* from each item
|
|
24
|
-
* @param options.searchQuery - The search query string (null or empty string
|
|
25
|
-
* returns all items)
|
|
26
|
-
* @param options.uFuzzy - Configured uFuzzy instance (use `getUFuzzyInstance`
|
|
27
|
-
* to create one)
|
|
28
|
-
* @param options.ignoreBestMatch - If true, skips calculating the best match
|
|
29
|
-
* score for performance
|
|
30
|
-
* @param options.throwOnError - If true, throws errors instead of falling back
|
|
31
|
-
* to simple string matching
|
|
32
20
|
* @returns Object containing filtered/sorted items and the best match score
|
|
33
21
|
* (higher is better)
|
|
34
22
|
*/
|
package/dist/fuzzySearch.mjs
CHANGED
|
@@ -8,18 +8,6 @@ import uFuzzy from "@leeoniya/ufuzzy";
|
|
|
8
8
|
* Uses uFuzzy for efficient fuzzy matching with Latin character normalization.
|
|
9
9
|
* Falls back to simple string inclusion matching if an error occurs.
|
|
10
10
|
*
|
|
11
|
-
* @param options - Configuration options for the fuzzy search
|
|
12
|
-
* @param options.items - Array of items to search through
|
|
13
|
-
* @param options.getStringToMatch - Function that extracts the string to match
|
|
14
|
-
* from each item
|
|
15
|
-
* @param options.searchQuery - The search query string (null or empty string
|
|
16
|
-
* returns all items)
|
|
17
|
-
* @param options.uFuzzy - Configured uFuzzy instance (use `getUFuzzyInstance`
|
|
18
|
-
* to create one)
|
|
19
|
-
* @param options.ignoreBestMatch - If true, skips calculating the best match
|
|
20
|
-
* score for performance
|
|
21
|
-
* @param options.throwOnError - If true, throws errors instead of falling back
|
|
22
|
-
* to simple string matching
|
|
23
11
|
* @returns Object containing filtered/sorted items and the best match score
|
|
24
12
|
* (higher is better)
|
|
25
13
|
*/
|
package/dist/getCompositeKey.mjs
CHANGED
package/dist/interpolate.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as invariant } from "./assertions-
|
|
2
|
-
import { a as clampRange, i as clampMin, r as clampMax } from "./mathUtils-
|
|
1
|
+
import { i as invariant } from "./assertions-B9119Soz.mjs";
|
|
2
|
+
import { a as clampRange, i as clampMin, r as clampMax } from "./mathUtils-Cl8qZbfS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/interpolate.ts
|
|
5
5
|
function mod(n, m) {
|
package/dist/mathUtils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as clampRange, c as round, i as clampMin, l as roundToStep, n as clamp, o as fixFloatingPointNumber, r as clampMax, s as floorToStep, t as ceilToStep } from "./mathUtils-
|
|
1
|
+
import { a as clampRange, c as round, i as clampMin, l as roundToStep, n as clamp, o as fixFloatingPointNumber, r as clampMax, s as floorToStep, t as ceilToStep } from "./mathUtils-Cl8qZbfS.mjs";
|
|
2
2
|
|
|
3
3
|
export { ceilToStep, clamp, clampMax, clampMin, clampRange, fixFloatingPointNumber, floorToStep, round, roundToStep };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/mockList.d.ts
|
|
2
|
+
type ItemProps = {
|
|
3
|
+
index: number;
|
|
4
|
+
id: number;
|
|
5
|
+
onEvery: <T, O = undefined>(index: number, value: T, otherwise?: O) => T | O;
|
|
6
|
+
onEven: <T, O = undefined>(value: T, otherwise?: O) => T | O;
|
|
7
|
+
atIndex: <T, O = undefined>(index: number, value: T, otherwise?: O) => T | O;
|
|
8
|
+
atId: <T, O = undefined>(id: number, value: T, otherwise?: O) => T | O;
|
|
9
|
+
cycle: <V, T = V>(valuesToCycle: V[], getValue?: (v: V) => T) => T;
|
|
10
|
+
afterOrEqualIndex: <T>(index: number, value: T, otherwise?: T) => T | undefined;
|
|
11
|
+
afterOrEqualId: <T, O = undefined>(id: number, value: T, otherwise?: O) => T | O;
|
|
12
|
+
};
|
|
13
|
+
declare function mockList<T>(size: number, getItems: (itemProps: ItemProps) => T): T[];
|
|
14
|
+
//#endregion
|
|
15
|
+
export { mockList };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { i as invariant } from "./assertions-B9119Soz.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/mockList.ts
|
|
4
|
+
function mockList(size, getItems) {
|
|
5
|
+
return Array.from({ length: size }, (_, index) => getItems({
|
|
6
|
+
index,
|
|
7
|
+
id: index + 1,
|
|
8
|
+
onEvery: (everyIndex, value, otherwise) => {
|
|
9
|
+
if (index % everyIndex === 0) return value;
|
|
10
|
+
return otherwise;
|
|
11
|
+
},
|
|
12
|
+
onEven: (value, otherwise) => {
|
|
13
|
+
if (index % 2 === 0) return value;
|
|
14
|
+
return otherwise;
|
|
15
|
+
},
|
|
16
|
+
atIndex: (i, value, otherwise) => {
|
|
17
|
+
if (i === index) return value;
|
|
18
|
+
return otherwise;
|
|
19
|
+
},
|
|
20
|
+
cycle: (valuesToCycle, getValue) => {
|
|
21
|
+
const cycleValue = valuesToCycle[index % valuesToCycle.length];
|
|
22
|
+
invariant(cycleValue !== void 0);
|
|
23
|
+
return getValue ? getValue(cycleValue) : cycleValue;
|
|
24
|
+
},
|
|
25
|
+
afterOrEqualIndex: (i, value, otherwise) => {
|
|
26
|
+
if (index >= i) return value;
|
|
27
|
+
return otherwise;
|
|
28
|
+
},
|
|
29
|
+
afterOrEqualId: (id, value, otherwise) => {
|
|
30
|
+
if (index + 1 >= id) return value;
|
|
31
|
+
return otherwise;
|
|
32
|
+
},
|
|
33
|
+
atId: (id, value, otherwise) => {
|
|
34
|
+
if (index + 1 === id) return value;
|
|
35
|
+
return otherwise;
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { mockList };
|
package/dist/mutationUtils.mjs
CHANGED
package/dist/objUtils.mjs
CHANGED
package/dist/partialEqual.mjs
CHANGED
package/dist/saferTyping.d.mts
CHANGED
|
@@ -44,5 +44,10 @@ declare function __FIX_THIS_TYPING__(value: unknown): __LEGIT_ANY__;
|
|
|
44
44
|
* symbol, bigint, ...) Equivalent to `object` type
|
|
45
45
|
*/
|
|
46
46
|
type AnyNonPrimitiveValue = object;
|
|
47
|
+
/**
|
|
48
|
+
* Cast any value to a string. Use this when you have legit usage of string
|
|
49
|
+
* casting.
|
|
50
|
+
*/
|
|
51
|
+
declare function __UNSAFE_TO_STRING__(value: unknown): string;
|
|
47
52
|
//#endregion
|
|
48
|
-
export { AnyNonPrimitiveValue, EmptyObject, __FIX_THIS_CASTING__, __FIX_THIS_TYPING__, __LEGIT_ANY_CAST__, __LEGIT_ANY_FUNCTION__, __LEGIT_ANY__, __LEGIT_CAST__, __REFINE_CAST__ };
|
|
53
|
+
export { AnyNonPrimitiveValue, EmptyObject, __FIX_THIS_CASTING__, __FIX_THIS_TYPING__, __LEGIT_ANY_CAST__, __LEGIT_ANY_FUNCTION__, __LEGIT_ANY__, __LEGIT_CAST__, __REFINE_CAST__, __UNSAFE_TO_STRING__ };
|
package/dist/saferTyping.mjs
CHANGED
|
@@ -40,6 +40,13 @@ function __FIX_THIS_CASTING__(value) {
|
|
|
40
40
|
function __FIX_THIS_TYPING__(value) {
|
|
41
41
|
return value;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Cast any value to a string. Use this when you have legit usage of string
|
|
45
|
+
* casting.
|
|
46
|
+
*/
|
|
47
|
+
function __UNSAFE_TO_STRING__(value) {
|
|
48
|
+
return String(value);
|
|
49
|
+
}
|
|
43
50
|
|
|
44
51
|
//#endregion
|
|
45
|
-
export { __FIX_THIS_CASTING__, __FIX_THIS_TYPING__, __LEGIT_ANY_CAST__, __LEGIT_CAST__, __REFINE_CAST__ };
|
|
52
|
+
export { __FIX_THIS_CASTING__, __FIX_THIS_TYPING__, __LEGIT_ANY_CAST__, __LEGIT_CAST__, __REFINE_CAST__, __UNSAFE_TO_STRING__ };
|
package/dist/serializeXML.mjs
CHANGED
package/dist/stringUtils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as truncateString, S as removeANSIColors, _ as isPathCase, a as convertToKebabCase, b as isTitleCase, c as convertToSentenceCase, d as formatNum, f as isCamelCase, g as isPascalCase, h as isKebabCase, i as convertToDotCase, l as convertToSnakeCase, m as isDotCase, n as convertToCamelCase, o as convertToPascalCase, p as isConstantCase, r as convertToConstantCase, s as convertToPathCase, t as concatStrings, u as convertToTitleCase, v as isSentenceCase, x as joinStrings, y as isSnakeCase } from "./stringUtils-
|
|
1
|
+
import { C as truncateString, S as removeANSIColors, _ as isPathCase, a as convertToKebabCase, b as isTitleCase, c as convertToSentenceCase, d as formatNum, f as isCamelCase, g as isPascalCase, h as isKebabCase, i as convertToDotCase, l as convertToSnakeCase, m as isDotCase, n as convertToCamelCase, o as convertToPascalCase, p as isConstantCase, r as convertToConstantCase, s as convertToPathCase, t as concatStrings, u as convertToTitleCase, v as isSentenceCase, x as joinStrings, y as isSnakeCase } from "./stringUtils-e-95_mNH.mjs";
|
|
2
2
|
|
|
3
3
|
export { concatStrings, convertToCamelCase, convertToConstantCase, convertToDotCase, convertToKebabCase, convertToPascalCase, convertToPathCase, convertToSentenceCase, convertToSnakeCase, convertToTitleCase, formatNum, isCamelCase, isConstantCase, isDotCase, isKebabCase, isPascalCase, isPathCase, isSentenceCase, isSnakeCase, isTitleCase, joinStrings, removeANSIColors, truncateString };
|
package/dist/testUtils.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as isPlainObject } from "./typeGuards-
|
|
2
|
-
import { o as isObject } from "./assertions-
|
|
1
|
+
import { a as isPlainObject } from "./typeGuards-CSaHQdO9.mjs";
|
|
2
|
+
import { o as isObject } from "./assertions-B9119Soz.mjs";
|
|
3
3
|
import { arrayWithPrevAndIndex, filterAndMap } from "./arrayUtils.mjs";
|
|
4
4
|
import { defer } from "./promiseUtils.mjs";
|
|
5
|
-
import { i as clampMin } from "./mathUtils-
|
|
6
|
-
import { t as deepEqual } from "./deepEqual-
|
|
5
|
+
import { i as clampMin } from "./mathUtils-Cl8qZbfS.mjs";
|
|
6
|
+
import { t as deepEqual } from "./deepEqual-CJIwfxEt.mjs";
|
|
7
7
|
import { deepReplaceValues } from "./deepReplaceValues.mjs";
|
|
8
8
|
import { filterObjectOrArrayKeys } from "./filterObjectOrArrayKeys.mjs";
|
|
9
9
|
import { omit, pick } from "./objUtils.mjs";
|
|
@@ -241,7 +241,7 @@ function waitController() {
|
|
|
241
241
|
*/
|
|
242
242
|
function compactSnapshot(value, { collapseObjects = true, maxLineLength = 100, showUndefined = false, showBooleansAs = true, replaceValues, rejectKeys, filterKeys, sortKeys, sortPatterns, ...options } = {}) {
|
|
243
243
|
let processedValue = value;
|
|
244
|
-
if (rejectKeys || filterKeys) {
|
|
244
|
+
if (rejectKeys || filterKeys || sortKeys || sortPatterns) {
|
|
245
245
|
if (isPlainObject(processedValue) || Array.isArray(processedValue)) processedValue = filterObjectOrArrayKeys(processedValue, {
|
|
246
246
|
rejectKeys,
|
|
247
247
|
filterKeys,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as castToNumber } from "./castValues-
|
|
2
|
-
import { r as clampMax } from "./mathUtils-
|
|
1
|
+
import { t as castToNumber } from "./castValues-BPls1LFT.mjs";
|
|
2
|
+
import { r as clampMax } from "./mathUtils-Cl8qZbfS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/time.ts
|
|
5
5
|
const MINUTE_AS_MS = 60 * 1e3;
|
package/dist/time.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as MINUTE_AS_MS, c as WEEK_AS_MS, d as YEAR_AS_SECS, f as dateStringOrNullToUnixMs, g as parseTimeStringToMs, h as msToTimeString, i as HOUR_AS_SECS, l as WEEK_AS_SECS, m as getUnixSeconds, n as DAY_AS_SECS, o as MONTH_AS_MS, p as durationObjToMs, r as HOUR_AS_MS, s as MONTH_AS_SECS, t as DAY_AS_MS, u as YEAR_AS_MS } from "./time-
|
|
1
|
+
import { a as MINUTE_AS_MS, c as WEEK_AS_MS, d as YEAR_AS_SECS, f as dateStringOrNullToUnixMs, g as parseTimeStringToMs, h as msToTimeString, i as HOUR_AS_SECS, l as WEEK_AS_SECS, m as getUnixSeconds, n as DAY_AS_SECS, o as MONTH_AS_MS, p as durationObjToMs, r as HOUR_AS_MS, s as MONTH_AS_SECS, t as DAY_AS_MS, u as YEAR_AS_MS } from "./time-BJXm2Xv6.mjs";
|
|
2
2
|
|
|
3
3
|
export { DAY_AS_MS, DAY_AS_SECS, HOUR_AS_MS, HOUR_AS_SECS, MINUTE_AS_MS, MONTH_AS_MS, MONTH_AS_SECS, WEEK_AS_MS, WEEK_AS_SECS, YEAR_AS_MS, YEAR_AS_SECS, dateStringOrNullToUnixMs, durationObjToMs, getUnixSeconds, msToTimeString, parseTimeStringToMs };
|
package/dist/tsResult.mjs
CHANGED
package/dist/typeGuards.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as isPlainObject, i as isObject, n as isFunction, o as isPromise, r as isNonEmptyArray, s as isTruthy, t as arrayHasAtLeastXItems } from "./typeGuards-
|
|
1
|
+
import { a as isPlainObject, i as isObject, n as isFunction, o as isPromise, r as isNonEmptyArray, s as isTruthy, t as arrayHasAtLeastXItems } from "./typeGuards-CSaHQdO9.mjs";
|
|
2
2
|
|
|
3
3
|
export { arrayHasAtLeastXItems, isFunction, isNonEmptyArray, isObject, isPlainObject, isPromise, isTruthy };
|
package/dist/typingFnUtils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as isObjKey, c as objectHasKey, d as typedObjectEntries, f as typedObjectKeys, i as isNonEmptyArray, l as strictTypedObjectEntries, n as asPartialUndefinedValues, o as isSubTypeOf, p as unionsAreTheSame, r as asType, s as narrowStringToUnion, t as asNonPartial, u as typeOnRightExtendsLeftType } from "./typingFnUtils-
|
|
1
|
+
import { a as isObjKey, c as objectHasKey, d as typedObjectEntries, f as typedObjectKeys, i as isNonEmptyArray, l as strictTypedObjectEntries, n as asPartialUndefinedValues, o as isSubTypeOf, p as unionsAreTheSame, r as asType, s as narrowStringToUnion, t as asNonPartial, u as typeOnRightExtendsLeftType } from "./typingFnUtils-OK4g7kki.mjs";
|
|
2
2
|
|
|
3
3
|
export { asNonPartial, asPartialUndefinedValues, asType, isNonEmptyArray, isObjKey, isSubTypeOf, narrowStringToUnion, objectHasKey, strictTypedObjectEntries, typeOnRightExtendsLeftType, typedObjectEntries, typedObjectKeys, unionsAreTheSame };
|
package/dist/yamlStringify.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as isPlainObject, i as isObject } from "./typeGuards-
|
|
2
|
-
import { C as truncateString } from "./stringUtils-
|
|
3
|
-
import { t as bytesToHumanReadable } from "./conversions-
|
|
1
|
+
import { a as isPlainObject, i as isObject } from "./typeGuards-CSaHQdO9.mjs";
|
|
2
|
+
import { C as truncateString } from "./stringUtils-e-95_mNH.mjs";
|
|
3
|
+
import { t as bytesToHumanReadable } from "./conversions-DAWknpNd.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/yamlStringify.ts
|
|
6
6
|
function yamlStringify(obj, { maxLineLength = 100, showUndefined, maxDepth = 50, collapseObjects = false, addRootObjSpaces = "beforeAndAfter" } = {}) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ls-stack/utils",
|
|
3
3
|
"description": "Universal TypeScript utilities for browser and Node.js",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.69.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"./levenshtein": "./dist/levenshtein.mjs",
|
|
49
49
|
"./matchPath": "./dist/matchPath.mjs",
|
|
50
50
|
"./mathUtils": "./dist/mathUtils.mjs",
|
|
51
|
+
"./mockList": "./dist/mockList.mjs",
|
|
51
52
|
"./mutationUtils": "./dist/mutationUtils.mjs",
|
|
52
53
|
"./objUtils": "./dist/objUtils.mjs",
|
|
53
54
|
"./parallelAsyncCalls": "./dist/parallelAsyncCalls.mjs",
|
|
@@ -122,6 +123,7 @@
|
|
|
122
123
|
"build": "tsdown",
|
|
123
124
|
"bench:deepEqual": "tsm --no-warnings benchmarks/deepEqual.ts",
|
|
124
125
|
"docs": "typedoc",
|
|
125
|
-
"docs:watch": "typedoc --watch"
|
|
126
|
+
"docs:watch": "typedoc --watch",
|
|
127
|
+
"update-exports": "node ../../scripts/updatePackageExports.ts"
|
|
126
128
|
}
|
|
127
129
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|