@splendidlabz/utils 1.11.2 → 1.11.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/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/src/lib/objects/omit-empty.js +1 -1
- package/src/lib/strings/markdown.spec.js +73 -0
- package/src/node/context.js +0 -0
- package/src/node/file-cache.js +1 -1
- package/src/node/pkce.js +1 -1
- package/tsup.config.mjs +19 -1
- package/dist/cjs/dom/accessibility.cjs +0 -51
- package/dist/cjs/dom/actions/index.cjs +0 -25
- package/dist/cjs/dom/actions/masonry.cjs +0 -61
- package/dist/cjs/dom/actions/prefer-horizontal-scroll.cjs +0 -113
- package/dist/cjs/dom/actions/sticky.cjs +0 -93
- package/dist/cjs/dom/bounding-box.cjs +0 -68
- package/dist/cjs/dom/clipboard.cjs +0 -35
- package/dist/cjs/dom/cookie.cjs +0 -55
- package/dist/cjs/dom/css-vars.cjs +0 -47
- package/dist/cjs/dom/events.cjs +0 -57
- package/dist/cjs/dom/focusable.cjs +0 -141
- package/dist/cjs/dom/font-size.cjs +0 -68
- package/dist/cjs/dom/get-element.cjs +0 -96
- package/dist/cjs/dom/hash.cjs +0 -33
- package/dist/cjs/dom/index.cjs +0 -65
- package/dist/cjs/dom/keyboard.cjs +0 -49
- package/dist/cjs/dom/local-store.cjs +0 -77
- package/dist/cjs/dom/media.cjs +0 -57
- package/dist/cjs/dom/observers/index.cjs +0 -27
- package/dist/cjs/dom/observers/intersection-observer.cjs +0 -59
- package/dist/cjs/dom/observers/mutation-observer.cjs +0 -63
- package/dist/cjs/dom/observers/observer.cjs +0 -38
- package/dist/cjs/dom/observers/resize-observer.cjs +0 -52
- package/dist/cjs/dom/observers/scroll-observer.cjs +0 -118
- package/dist/cjs/dom/pkce.cjs +0 -43
- package/dist/cjs/dom/query-params.cjs +0 -36
- package/dist/cjs/dom/random-string.cjs +0 -36
- package/dist/cjs/dom/sanitize.cjs +0 -41
- package/dist/cjs/dom/session-store.cjs +0 -47
- package/dist/cjs/dom/spam-prevention.cjs +0 -48
- package/dist/cjs/dom/trap-focus.cjs +0 -75
- package/dist/cjs/dom/ui/aria-current.cjs +0 -41
- package/dist/cjs/dom/ui/inconsistent-button-fix.cjs +0 -33
- package/dist/cjs/dom/ui/index.cjs +0 -27
- package/dist/cjs/dom/ui/scroll-container.cjs +0 -45
- package/dist/cjs/dom/ui/traverse-and-scramble.cjs +0 -48
- package/dist/cjs/lib/arrays/index.cjs +0 -31
- package/dist/cjs/lib/arrays/item-position.cjs +0 -40
- package/dist/cjs/lib/arrays/join.cjs +0 -35
- package/dist/cjs/lib/arrays/shuffle.cjs +0 -40
- package/dist/cjs/lib/arrays/sort.cjs +0 -59
- package/dist/cjs/lib/arrays/split-array.cjs +0 -39
- package/dist/cjs/lib/arrays/unique.cjs +0 -29
- package/dist/cjs/lib/auth/index.cjs +0 -21
- package/dist/cjs/lib/auth/route-manager.cjs +0 -49
- package/dist/cjs/lib/checks.cjs +0 -61
- package/dist/cjs/lib/date/days.cjs +0 -35
- package/dist/cjs/lib/date/index.cjs +0 -25
- package/dist/cjs/lib/date/months.cjs +0 -100
- package/dist/cjs/lib/date/time.cjs +0 -105
- package/dist/cjs/lib/form/form-data.cjs +0 -81
- package/dist/cjs/lib/form/index.cjs +0 -23
- package/dist/cjs/lib/form/sanitize.cjs +0 -59
- package/dist/cjs/lib/functions/callback.cjs +0 -29
- package/dist/cjs/lib/functions/debounce.cjs +0 -41
- package/dist/cjs/lib/functions/env.cjs +0 -30
- package/dist/cjs/lib/functions/functional.cjs +0 -80
- package/dist/cjs/lib/functions/index.cjs +0 -29
- package/dist/cjs/lib/functions/throttle.cjs +0 -36
- package/dist/cjs/lib/functions/timeout.cjs +0 -39
- package/dist/cjs/lib/hash.cjs +0 -41
- package/dist/cjs/lib/index.cjs +0 -47
- package/dist/cjs/lib/numbers/index.cjs +0 -36
- package/dist/cjs/lib/numbers/math.cjs +0 -34
- package/dist/cjs/lib/objects/camelcase-keys.cjs +0 -39
- package/dist/cjs/lib/objects/empty.cjs +0 -37
- package/dist/cjs/lib/objects/equal.cjs +0 -45
- package/dist/cjs/lib/objects/extend.cjs +0 -36
- package/dist/cjs/lib/objects/flatten.cjs +0 -40
- package/dist/cjs/lib/objects/index.cjs +0 -45
- package/dist/cjs/lib/objects/json.cjs +0 -33
- package/dist/cjs/lib/objects/loop.cjs +0 -38
- package/dist/cjs/lib/objects/mix/mix.cjs +0 -113
- package/dist/cjs/lib/objects/nested-property.cjs +0 -43
- package/dist/cjs/lib/objects/normalize-object.cjs +0 -32
- package/dist/cjs/lib/objects/omit-empty.cjs +0 -38
- package/dist/cjs/lib/objects/size.cjs +0 -61
- package/dist/cjs/lib/objects/split.cjs +0 -37
- package/dist/cjs/lib/promises/index.cjs +0 -21
- package/dist/cjs/lib/promises/reject.cjs +0 -50
- package/dist/cjs/lib/sse.cjs +0 -74
- package/dist/cjs/lib/strings/convert-case/convert-case.cjs +0 -94
- package/dist/cjs/lib/strings/index.cjs +0 -29
- package/dist/cjs/lib/strings/markdown.cjs +0 -74
- package/dist/cjs/lib/strings/name.cjs +0 -44
- package/dist/cjs/lib/strings/pluralize.cjs +0 -38
- package/dist/cjs/lib/strings/query-string.cjs +0 -41
- package/dist/cjs/lib/style/index.cjs +0 -35
- package/dist/cjs/lib/symbols/index.cjs +0 -21
- package/dist/cjs/lib/symbols/symbols.cjs +0 -36
- package/dist/cjs/node/dirname.cjs +0 -47
- package/dist/cjs/node/file-cache.cjs +0 -158
- package/dist/cjs/node/file.cjs +0 -48
- package/dist/cjs/node/hash.cjs +0 -40
- package/dist/cjs/node/index.cjs +0 -33
- package/dist/cjs/node/pkce.cjs +0 -52
- package/dist/cjs/node/random-string.cjs +0 -41
- package/dist/cjs/node/sanitize.cjs +0 -41
- package/dist/cjs/node/uuid.cjs +0 -40
- package/dist/esm/dom/accessibility.js +0 -26
- package/dist/esm/dom/actions/index.js +0 -3
- package/dist/esm/dom/actions/masonry.js +0 -38
- package/dist/esm/dom/actions/prefer-horizontal-scroll.js +0 -90
- package/dist/esm/dom/actions/sticky.js +0 -70
- package/dist/esm/dom/bounding-box.js +0 -44
- package/dist/esm/dom/clipboard.js +0 -12
- package/dist/esm/dom/cookie.js +0 -31
- package/dist/esm/dom/css-vars.js +0 -21
- package/dist/esm/dom/events.js +0 -31
- package/dist/esm/dom/focusable.js +0 -117
- package/dist/esm/dom/font-size.js +0 -40
- package/dist/esm/dom/get-element.js +0 -66
- package/dist/esm/dom/hash.js +0 -10
- package/dist/esm/dom/index.js +0 -23
- package/dist/esm/dom/keyboard.js +0 -22
- package/dist/esm/dom/local-store.js +0 -54
- package/dist/esm/dom/media.js +0 -32
- package/dist/esm/dom/observers/index.js +0 -4
- package/dist/esm/dom/observers/intersection-observer.js +0 -36
- package/dist/esm/dom/observers/mutation-observer.js +0 -40
- package/dist/esm/dom/observers/observer.js +0 -15
- package/dist/esm/dom/observers/resize-observer.js +0 -29
- package/dist/esm/dom/observers/scroll-observer.js +0 -95
- package/dist/esm/dom/pkce.js +0 -20
- package/dist/esm/dom/query-params.js +0 -13
- package/dist/esm/dom/random-string.js +0 -12
- package/dist/esm/dom/sanitize.js +0 -8
- package/dist/esm/dom/session-store.js +0 -24
- package/dist/esm/dom/spam-prevention.js +0 -25
- package/dist/esm/dom/trap-focus.js +0 -51
- package/dist/esm/dom/ui/aria-current.js +0 -17
- package/dist/esm/dom/ui/inconsistent-button-fix.js +0 -10
- package/dist/esm/dom/ui/index.js +0 -4
- package/dist/esm/dom/ui/scroll-container.js +0 -22
- package/dist/esm/dom/ui/traverse-and-scramble.js +0 -25
- package/dist/esm/lib/arrays/index.js +0 -6
- package/dist/esm/lib/arrays/item-position.js +0 -15
- package/dist/esm/lib/arrays/join.js +0 -12
- package/dist/esm/lib/arrays/shuffle.js +0 -17
- package/dist/esm/lib/arrays/sort.js +0 -36
- package/dist/esm/lib/arrays/split-array.js +0 -16
- package/dist/esm/lib/arrays/unique.js +0 -6
- package/dist/esm/lib/auth/index.js +0 -1
- package/dist/esm/lib/auth/route-manager.js +0 -25
- package/dist/esm/lib/checks.js +0 -34
- package/dist/esm/lib/date/days.js +0 -12
- package/dist/esm/lib/date/index.js +0 -3
- package/dist/esm/lib/date/months.js +0 -77
- package/dist/esm/lib/date/time.js +0 -75
- package/dist/esm/lib/form/form-data.js +0 -57
- package/dist/esm/lib/form/index.js +0 -2
- package/dist/esm/lib/form/sanitize.js +0 -34
- package/dist/esm/lib/functions/callback.js +0 -6
- package/dist/esm/lib/functions/debounce.js +0 -18
- package/dist/esm/lib/functions/env.js +0 -7
- package/dist/esm/lib/functions/functional.js +0 -52
- package/dist/esm/lib/functions/index.js +0 -5
- package/dist/esm/lib/functions/throttle.js +0 -13
- package/dist/esm/lib/functions/timeout.js +0 -14
- package/dist/esm/lib/hash.js +0 -18
- package/dist/esm/lib/index.js +0 -14
- package/dist/esm/lib/numbers/index.js +0 -11
- package/dist/esm/lib/numbers/math.js +0 -10
- package/dist/esm/lib/objects/camelcase-keys.js +0 -16
- package/dist/esm/lib/objects/empty.js +0 -13
- package/dist/esm/lib/objects/equal.js +0 -11
- package/dist/esm/lib/objects/extend.js +0 -13
- package/dist/esm/lib/objects/flatten.js +0 -17
- package/dist/esm/lib/objects/index.js +0 -13
- package/dist/esm/lib/objects/json.js +0 -10
- package/dist/esm/lib/objects/loop.js +0 -14
- package/dist/esm/lib/objects/mix/mix.js +0 -88
- package/dist/esm/lib/objects/nested-property.js +0 -18
- package/dist/esm/lib/objects/normalize-object.js +0 -9
- package/dist/esm/lib/objects/omit-empty.js +0 -15
- package/dist/esm/lib/objects/size.js +0 -38
- package/dist/esm/lib/objects/split.js +0 -14
- package/dist/esm/lib/promises/index.js +0 -1
- package/dist/esm/lib/promises/reject.js +0 -17
- package/dist/esm/lib/sse.js +0 -50
- package/dist/esm/lib/strings/convert-case/convert-case.js +0 -64
- package/dist/esm/lib/strings/index.js +0 -5
- package/dist/esm/lib/strings/markdown.js +0 -40
- package/dist/esm/lib/strings/name.js +0 -21
- package/dist/esm/lib/strings/pluralize.js +0 -5
- package/dist/esm/lib/strings/query-string.js +0 -16
- package/dist/esm/lib/style/index.js +0 -12
- package/dist/esm/lib/symbols/index.js +0 -1
- package/dist/esm/lib/symbols/symbols.js +0 -12
- package/dist/esm/node/dirname.js +0 -13
- package/dist/esm/node/file-cache.js +0 -121
- package/dist/esm/node/file.js +0 -14
- package/dist/esm/node/hash.js +0 -7
- package/dist/esm/node/index.js +0 -7
- package/dist/esm/node/pkce.js +0 -19
- package/dist/esm/node/random-string.js +0 -8
- package/dist/esm/node/sanitize.js +0 -8
- package/dist/esm/node/uuid.js +0 -7
- package/dist/types/dom/accessibility.d.cts +0 -30
- package/dist/types/dom/actions/index.d.cts +0 -3
- package/dist/types/dom/actions/masonry.d.cts +0 -5
- package/dist/types/dom/actions/prefer-horizontal-scroll.d.cts +0 -5
- package/dist/types/dom/actions/sticky.d.cts +0 -5
- package/dist/types/dom/bounding-box.d.cts +0 -41
- package/dist/types/dom/clipboard.d.cts +0 -7
- package/dist/types/dom/cookie.d.cts +0 -7
- package/dist/types/dom/css-vars.d.cts +0 -6
- package/dist/types/dom/events.d.cts +0 -92
- package/dist/types/dom/focusable.d.cts +0 -78
- package/dist/types/dom/font-size.d.cts +0 -8
- package/dist/types/dom/get-element.d.cts +0 -102
- package/dist/types/dom/hash.d.cts +0 -3
- package/dist/types/dom/index.d.cts +0 -31
- package/dist/types/dom/keyboard.d.cts +0 -32
- package/dist/types/dom/local-store.d.cts +0 -31
- package/dist/types/dom/media.d.cts +0 -5
- package/dist/types/dom/observers/index.d.cts +0 -4
- package/dist/types/dom/observers/intersection-observer.d.cts +0 -10
- package/dist/types/dom/observers/mutation-observer.d.cts +0 -9
- package/dist/types/dom/observers/observer.d.cts +0 -3
- package/dist/types/dom/observers/resize-observer.d.cts +0 -40
- package/dist/types/dom/observers/scroll-observer.d.cts +0 -40
- package/dist/types/dom/pkce.d.cts +0 -8
- package/dist/types/dom/query-params.d.cts +0 -6
- package/dist/types/dom/random-string.d.cts +0 -9
- package/dist/types/dom/sanitize.d.cts +0 -10
- package/dist/types/dom/session-store.d.cts +0 -7
- package/dist/types/dom/spam-prevention.d.cts +0 -14
- package/dist/types/dom/trap-focus.d.cts +0 -32
- package/dist/types/dom/ui/aria-current.d.cts +0 -7
- package/dist/types/dom/ui/inconsistent-button-fix.d.cts +0 -14
- package/dist/types/dom/ui/index.d.cts +0 -4
- package/dist/types/dom/ui/scroll-container.d.cts +0 -3
- package/dist/types/dom/ui/traverse-and-scramble.d.cts +0 -21
- package/dist/types/lib/arrays/index.d.cts +0 -6
- package/dist/types/lib/arrays/item-position.d.cts +0 -16
- package/dist/types/lib/arrays/join.d.cts +0 -15
- package/dist/types/lib/arrays/shuffle.d.cts +0 -3
- package/dist/types/lib/arrays/sort.d.cts +0 -32
- package/dist/types/lib/arrays/split-array.d.cts +0 -6
- package/dist/types/lib/arrays/unique.d.cts +0 -3
- package/dist/types/lib/auth/index.d.cts +0 -1
- package/dist/types/lib/auth/route-manager.d.cts +0 -28
- package/dist/types/lib/checks.d.cts +0 -33
- package/dist/types/lib/date/days.d.cts +0 -7
- package/dist/types/lib/date/index.d.cts +0 -3
- package/dist/types/lib/date/months.d.cts +0 -11
- package/dist/types/lib/date/time.d.cts +0 -21
- package/dist/types/lib/form/form-data.d.cts +0 -9
- package/dist/types/lib/form/index.d.cts +0 -2
- package/dist/types/lib/form/sanitize.d.cts +0 -60
- package/dist/types/lib/functions/callback.d.cts +0 -8
- package/dist/types/lib/functions/debounce.d.cts +0 -3
- package/dist/types/lib/functions/env.d.cts +0 -3
- package/dist/types/lib/functions/functional.d.cts +0 -72
- package/dist/types/lib/functions/index.d.cts +0 -5
- package/dist/types/lib/functions/throttle.d.cts +0 -3
- package/dist/types/lib/functions/timeout.d.cts +0 -5
- package/dist/types/lib/hash.d.cts +0 -3
- package/dist/types/lib/index.d.cts +0 -43
- package/dist/types/lib/numbers/index.d.cts +0 -5
- package/dist/types/lib/numbers/math.d.cts +0 -4
- package/dist/types/lib/objects/camelcase-keys.d.cts +0 -3
- package/dist/types/lib/objects/empty.d.cts +0 -4
- package/dist/types/lib/objects/equal.d.cts +0 -4
- package/dist/types/lib/objects/extend.d.cts +0 -6
- package/dist/types/lib/objects/flatten.d.cts +0 -6
- package/dist/types/lib/objects/index.d.cts +0 -13
- package/dist/types/lib/objects/json.d.cts +0 -3
- package/dist/types/lib/objects/loop.d.cts +0 -4
- package/dist/types/lib/objects/mix/mix.d.cts +0 -44
- package/dist/types/lib/objects/nested-property.d.cts +0 -24
- package/dist/types/lib/objects/normalize-object.d.cts +0 -3
- package/dist/types/lib/objects/omit-empty.d.cts +0 -3
- package/dist/types/lib/objects/size.d.cts +0 -3
- package/dist/types/lib/objects/split.d.cts +0 -14
- package/dist/types/lib/promises/index.d.cts +0 -1
- package/dist/types/lib/promises/reject.d.cts +0 -5
- package/dist/types/lib/sse.d.cts +0 -18
- package/dist/types/lib/strings/convert-case/convert-case.d.cts +0 -10
- package/dist/types/lib/strings/index.d.cts +0 -5
- package/dist/types/lib/strings/markdown.d.cts +0 -25
- package/dist/types/lib/strings/name.d.cts +0 -7
- package/dist/types/lib/strings/pluralize.d.cts +0 -3
- package/dist/types/lib/strings/query-string.d.cts +0 -10
- package/dist/types/lib/style/index.d.cts +0 -3
- package/dist/types/lib/symbols/index.d.cts +0 -1
- package/dist/types/lib/symbols/symbols.d.cts +0 -4
- package/dist/types/node/dirname.d.cts +0 -9
- package/dist/types/node/file-cache.d.cts +0 -56
- package/dist/types/node/file.d.cts +0 -4
- package/dist/types/node/hash.d.cts +0 -3
- package/dist/types/node/index.d.cts +0 -7
- package/dist/types/node/pkce.d.cts +0 -8
- package/dist/types/node/random-string.d.cts +0 -3
- package/dist/types/node/sanitize.d.cts +0 -10
- package/dist/types/node/uuid.d.cts +0 -3
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { camelCaseKeys } from './camelcase-keys.cjs';
|
|
2
|
-
export { isEmpty, notEmpty } from './empty.cjs';
|
|
3
|
-
export { isEqual, notEqual } from './equal.cjs';
|
|
4
|
-
export { extendObject } from './extend.cjs';
|
|
5
|
-
export { flattenObject } from './flatten.cjs';
|
|
6
|
-
export { parseJSON } from './json.cjs';
|
|
7
|
-
export { objectForEach, objectMap } from './loop.cjs';
|
|
8
|
-
export { concatMix, createMix, mix } from './mix/mix.cjs';
|
|
9
|
-
export { getNestedProperty, getNestedProperty2, getNestedValue } from './nested-property.cjs';
|
|
10
|
-
export { normalizeObject } from './normalize-object.cjs';
|
|
11
|
-
export { omitEmpty } from './omit-empty.cjs';
|
|
12
|
-
export { sizeOf } from './size.cjs';
|
|
13
|
-
export { splitObject } from './split.cjs';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a customized mix function with specific options for array handling.
|
|
3
|
-
*
|
|
4
|
-
* @param {Object} [userOptions={}] - Configuration options for the mix function.
|
|
5
|
-
* @param {('replace'|'concat')} [userOptions.array='replace'] - How to handle array merging:
|
|
6
|
-
* - 'replace': Arrays from later sources completely replace arrays from earlier sources
|
|
7
|
-
* - 'concat': Arrays are concatenated together
|
|
8
|
-
* @return {Function} A mix function configured with the provided options.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* // Create mix function that concatenates arrays
|
|
12
|
-
* const concatMix = createMix({ array: 'concat' })
|
|
13
|
-
* const obj1 = { items: [1, 2] }
|
|
14
|
-
* const obj2 = { items: [3, 4] }
|
|
15
|
-
* const result = concatMix(obj1, obj2)
|
|
16
|
-
* // Returns: { items: [1, 2, 3, 4] }
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* // Create mix function that replaces arrays (default behavior)
|
|
20
|
-
* const replaceMix = createMix({ array: 'replace' })
|
|
21
|
-
* const obj1 = { items: [1, 2] }
|
|
22
|
-
* const obj2 = { items: [3, 4] }
|
|
23
|
-
* const result = replaceMix(obj1, obj2)
|
|
24
|
-
* // Returns: { items: [3, 4] }
|
|
25
|
-
*/
|
|
26
|
-
declare function createMix(userOptions?: {
|
|
27
|
-
array?: ("replace" | "concat");
|
|
28
|
-
}): Function;
|
|
29
|
-
/**
|
|
30
|
-
* Deep merges multiple objects into a new object with intelligent handling of arrays and nested objects.
|
|
31
|
-
*
|
|
32
|
-
* @param {...Object} sources - Objects to merge. Null and undefined values are skipped.
|
|
33
|
-
* @return {Object} A new object containing the merged properties from all sources.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* const obj1 = { a: 1, b: { x: 10 } }
|
|
37
|
-
* const obj2 = { b: { y: 20 }, c: 3 }
|
|
38
|
-
* const result = mix(obj1, obj2)
|
|
39
|
-
* // Returns: { a: 1, b: { x: 10, y: 20 }, c: 3 }
|
|
40
|
-
*/
|
|
41
|
-
declare const mix: Function;
|
|
42
|
-
declare const concatMix: Function;
|
|
43
|
-
|
|
44
|
-
export { concatMix, createMix, mix };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the value at the given path in the object.
|
|
3
|
-
* If the path does not exist, it returns undefined.
|
|
4
|
-
*
|
|
5
|
-
* @param {Object} object - The object to get the nested property from.
|
|
6
|
-
* @param {Array} pathArr - The array representing the path to the property.
|
|
7
|
-
* @return {*} The value at the given path in the object or undefined if the path does not exist.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* let object = {
|
|
11
|
-
* one: {
|
|
12
|
-
* two: {
|
|
13
|
-
* three: "value"
|
|
14
|
-
* }
|
|
15
|
-
* }
|
|
16
|
-
* };
|
|
17
|
-
* let path = ['one', 'two', 'three'];
|
|
18
|
-
* console.log(getNestedProperty(object, path)); // Outputs: "value"
|
|
19
|
-
*/
|
|
20
|
-
declare function getNestedProperty(object: any, pathArr: any[]): any;
|
|
21
|
-
declare function getNestedProperty2(object: any, path: any): any;
|
|
22
|
-
declare function getNestedValue(object: any, path: any): any;
|
|
23
|
-
|
|
24
|
-
export { getNestedProperty, getNestedProperty2, getNestedValue };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Split on object up based on the keys provided.
|
|
3
|
-
* @param {Object} obj
|
|
4
|
-
* @param {Array} keys
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
declare function splitObject(obj: any, keys: any[]): {
|
|
8
|
-
picked: {};
|
|
9
|
-
omitted: any;
|
|
10
|
-
p: {};
|
|
11
|
-
o: any;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { splitObject };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { reject } from './reject.cjs';
|
package/dist/types/lib/sse.d.cts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare function createSSE({ event, data, id, retry }: {
|
|
2
|
-
event: any;
|
|
3
|
-
data: any;
|
|
4
|
-
id: any;
|
|
5
|
-
retry: any;
|
|
6
|
-
}): string;
|
|
7
|
-
/**
|
|
8
|
-
* Parses a single SSE message into a structured object
|
|
9
|
-
* @param {string} message - The raw SSE message
|
|
10
|
-
* @returns {Object|null} The parsed message or null if invalid
|
|
11
|
-
* @property {string} [event] - The event type if specified
|
|
12
|
-
* @property {string|Object} data - The message data (parsed as JSON if possible)
|
|
13
|
-
* @property {string} [id] - The message ID if specified
|
|
14
|
-
* @property {number} [retry] - The retry interval if specified
|
|
15
|
-
*/
|
|
16
|
-
declare function parseSSE(message: string): any | null;
|
|
17
|
-
|
|
18
|
-
export { createSSE, parseSSE };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare function toKebab(string: any): any;
|
|
2
|
-
declare function toCamel(string: any): any;
|
|
3
|
-
declare function toPascal(string: any): any;
|
|
4
|
-
declare function toTitle(string: any): any;
|
|
5
|
-
declare function toSlug(string: any): any;
|
|
6
|
-
declare function toSentence(string: any): any;
|
|
7
|
-
declare function toUpper(string: any): any;
|
|
8
|
-
declare function toLower(string: any): any;
|
|
9
|
-
|
|
10
|
-
export { toCamel, toKebab, toLower, toPascal, toSentence, toSlug, toTitle, toUpper };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { toCamel, toKebab, toLower, toPascal, toSentence, toSlug, toTitle, toUpper } from './convert-case/convert-case.cjs';
|
|
2
|
-
export { markdown, treatMarkdownWhitespace } from './markdown.cjs';
|
|
3
|
-
export { parseFullName } from './name.cjs';
|
|
4
|
-
export { pluralize } from './pluralize.cjs';
|
|
5
|
-
export { plural, stripNumbers, toQueryString } from './query-string.cjs';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts markdown content to HTML with whitespace handling
|
|
3
|
-
* @param {string} content - Markdown content to convert
|
|
4
|
-
* @param {Object} [options={}] - Conversion options
|
|
5
|
-
* @param {boolean} [options.inline=false] - Whether content should be treated as inline markdown
|
|
6
|
-
* @returns {string} Converted HTML string
|
|
7
|
-
*/
|
|
8
|
-
declare function markdown(content: string, options?: {
|
|
9
|
-
inline?: boolean;
|
|
10
|
-
}): string;
|
|
11
|
-
/**
|
|
12
|
-
* Handles whitespace in markdown content to ensure proper rendering
|
|
13
|
-
* @param {string} content - Markdown content to process
|
|
14
|
-
* @param {Object} [options={}] - Processing options
|
|
15
|
-
* @param {boolean} [options.inline=false] - Whether content is inline markdown
|
|
16
|
-
* @returns {{ content: string, inline: boolean }} Processed content and inline status
|
|
17
|
-
*/
|
|
18
|
-
declare function treatMarkdownWhitespace(content: string, { inline }?: {
|
|
19
|
-
inline?: boolean;
|
|
20
|
-
}): {
|
|
21
|
-
content: string;
|
|
22
|
-
inline: boolean;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { markdown, treatMarkdownWhitespace };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts object into a query string
|
|
3
|
-
* @param {Object} object
|
|
4
|
-
* @returns
|
|
5
|
-
*/
|
|
6
|
-
declare function toQueryString(object: any): string;
|
|
7
|
-
declare function plural(count: any, noun: any, suffix?: string): string;
|
|
8
|
-
declare function stripNumbers(string: any): any;
|
|
9
|
-
|
|
10
|
-
export { plural, stripNumbers, toQueryString };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getSymbol, getSymbolValue } from './symbols.cjs';
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a file cache instance for managing cached files in a directory
|
|
3
|
-
* @param {string} dir - Absolute or relative path to cache directory
|
|
4
|
-
* @returns {Promise<object>} Cache instance
|
|
5
|
-
* @property {function(string): Promise<number>} cacheAt - Returns the cached file's modified timestamp, or directory's last modified time if no file specified
|
|
6
|
-
* @property {function(string): string} getAbsPath - Returns absolute path for a file in cache
|
|
7
|
-
* @property {function(string): Promise<boolean>} hasFile - Checks if a file exists in cache
|
|
8
|
-
* @property {function(string): Promise<Buffer|undefined>} loadFile - Loads file contents from cache
|
|
9
|
-
* @property {function(string, string|Buffer): Promise<void>} saveFile - Saves data to cache file
|
|
10
|
-
* @property {function(string): Promise<object>} loadJSON - Loads and parses JSON from cache file
|
|
11
|
-
* @property {function(string, object): Promise<void>} saveJSON - Saves object as JSON to cache file
|
|
12
|
-
*/
|
|
13
|
-
declare function createCache(dir: string): Promise<object>;
|
|
14
|
-
/**
|
|
15
|
-
* Legacy file cache API for managing a single cached file
|
|
16
|
-
* @param {Object} options
|
|
17
|
-
* @param {string} options.dir - Absolute or relative path to cache directory
|
|
18
|
-
* @param {string} options.file - Filename to cache
|
|
19
|
-
* @returns {Promise<{
|
|
20
|
-
* modifiedAt: number,
|
|
21
|
-
* load: () => Promise<Buffer>,
|
|
22
|
-
* save: (data: string|Buffer) => Promise<void>,
|
|
23
|
-
* loadJSON: () => Promise<object>,
|
|
24
|
-
* saveJSON: (data: object) => Promise<void>
|
|
25
|
-
* }>}
|
|
26
|
-
*/
|
|
27
|
-
declare function fileCache({ dir, file }: {
|
|
28
|
-
dir: string;
|
|
29
|
-
file: string;
|
|
30
|
-
}): Promise<{
|
|
31
|
-
modifiedAt: number;
|
|
32
|
-
load: () => Promise<Buffer>;
|
|
33
|
-
save: (data: string | Buffer) => Promise<void>;
|
|
34
|
-
loadJSON: () => Promise<object>;
|
|
35
|
-
saveJSON: (data: object) => Promise<void>;
|
|
36
|
-
}>;
|
|
37
|
-
/**
|
|
38
|
-
* Gets the most recent modification time of files matching the glob pattern
|
|
39
|
-
* @param {string|string[]} globPath - Glob pattern(s) to match files
|
|
40
|
-
* @returns {Promise<number>} Timestamp of most recently modified file, or 0 if no files found
|
|
41
|
-
*/
|
|
42
|
-
declare function getLastModifiedTime(globPath: string | string[]): Promise<number>;
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Use getLastModifiedTime instead
|
|
45
|
-
* @param {string|string[]} globPath - Glob pattern(s) to match files
|
|
46
|
-
* @returns {Promise<number>} Timestamp of most recently modified file, or 0 if no files found
|
|
47
|
-
*/
|
|
48
|
-
declare function getLatestModifiedTime(globPath: string | string[]): Promise<number>;
|
|
49
|
-
/**
|
|
50
|
-
* Removes leading slash from a path string
|
|
51
|
-
* @param {string} x - Path string to process
|
|
52
|
-
* @returns {string} Path without leading slash
|
|
53
|
-
*/
|
|
54
|
-
declare function removeFirstSlash(x: string): string;
|
|
55
|
-
|
|
56
|
-
export { createCache, fileCache, getLastModifiedTime, getLatestModifiedTime, removeFirstSlash };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { __dirname, dirname } from './dirname.cjs';
|
|
2
|
-
export { createCache, fileCache, getLastModifiedTime, getLatestModifiedTime, removeFirstSlash } from './file-cache.cjs';
|
|
3
|
-
export { sha256Hash } from './hash.cjs';
|
|
4
|
-
export { PKCE } from './pkce.cjs';
|
|
5
|
-
export { randomString } from './random-string.cjs';
|
|
6
|
-
export { sanitize } from './sanitize.cjs';
|
|
7
|
-
export { uuid } from './uuid.cjs';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sanitizes values using sanitize-html
|
|
3
|
-
* @param {*} value - Value to sanitize (string, array, or object)
|
|
4
|
-
* @param {Object} [options={}] - sanitize-html options
|
|
5
|
-
* @returns {*} Sanitized value
|
|
6
|
-
* @throws {Error} If input is a string but sanitize-html fails
|
|
7
|
-
*/
|
|
8
|
-
declare function sanitize(value: any, options?: any): any;
|
|
9
|
-
|
|
10
|
-
export { sanitize };
|