@visulima/string 3.0.0-alpha.4 → 3.0.0-alpha.6

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE.md +1 -1
  3. package/dist/align-text.d.ts +7 -10
  4. package/dist/case/camel-case.d.ts +3 -5
  5. package/dist/case/camel-case.js +2 -2
  6. package/dist/case/capital-case.d.ts +3 -5
  7. package/dist/case/capital-case.js +2 -2
  8. package/dist/case/constant-case.d.ts +3 -5
  9. package/dist/case/dot-case.d.ts +3 -5
  10. package/dist/case/flat-case.d.ts +3 -5
  11. package/dist/case/flip-case.d.ts +4 -7
  12. package/dist/case/flip-case.js +1 -1
  13. package/dist/case/identify-case.d.ts +3 -5
  14. package/dist/case/index.d.ts +22 -24
  15. package/dist/case/index.js +1 -1
  16. package/dist/case/kebab-case.d.ts +6 -9
  17. package/dist/case/kebab-case.js +2 -2
  18. package/dist/case/lower-first.d.ts +3 -5
  19. package/dist/case/no-case.d.ts +3 -5
  20. package/dist/case/pascal-case.d.ts +3 -5
  21. package/dist/case/pascal-case.js +2 -2
  22. package/dist/case/pascal-snake-case.d.ts +3 -5
  23. package/dist/case/path-case.d.ts +3 -5
  24. package/dist/case/sentence-case.d.ts +3 -5
  25. package/dist/case/sentence-case.js +2 -2
  26. package/dist/case/snake-case.d.ts +3 -5
  27. package/dist/case/split-by-case.d.ts +11 -14
  28. package/dist/case/split-by-case.js +1 -1
  29. package/dist/case/title-case.d.ts +3 -5
  30. package/dist/case/train-case.d.ts +3 -5
  31. package/dist/case/train-case.js +1 -1
  32. package/dist/case/upper-first.d.ts +3 -5
  33. package/dist/closest-string.d.ts +3 -5
  34. package/dist/compare-similarity.d.ts +3 -5
  35. package/dist/get-string-truncated-width.d.ts +18 -20
  36. package/dist/get-string-truncated-width.js +96 -15
  37. package/dist/get-string-width.d.ts +2 -5
  38. package/dist/index.d.ts +39 -49
  39. package/dist/index.js +3 -3
  40. package/dist/native-string-types.d.ts +129 -128
  41. package/dist/outdent.d.ts +9 -11
  42. package/dist/outdent.js +1 -1
  43. package/dist/packem_shared/{constants-CnXdp6qx.js → constants-D5qaproB.js} +1 -1
  44. package/dist/packem_shared/{excerpt-GvmR4ESb.js → excerpt-BUidaKYe.js} +37 -37
  45. package/dist/packem_shared/{joinSegments-B4H6oZ9b.js → joinSegments-BStLas0c.js} +1 -1
  46. package/dist/packem_shared/lru-cache.d-BsP6kbVJ.d.ts +13 -0
  47. package/dist/packem_shared/{transliterate-a6LLM_Ei.js → transliterate-DGlx-woj.js} +1 -1
  48. package/dist/packem_shared/{types-D2ydhHCv.d.ts → types.d-BVNv675q.d.ts} +17 -20
  49. package/dist/packem_shared/{types-CHpmpy8C.d.ts → types.d-DfgbcNKh.d.ts} +19 -21
  50. package/dist/slice.d.ts +5 -8
  51. package/dist/slice.js +1 -1
  52. package/dist/slugify.d.ts +1 -3
  53. package/dist/slugify.js +1 -1
  54. package/dist/test/utils.d.ts +20 -22
  55. package/dist/test/utils.js +2 -2
  56. package/dist/test/vitest.d.ts +3 -6
  57. package/dist/truncate.d.ts +7 -10
  58. package/dist/utilities.d.ts +2 -4
  59. package/dist/word-similarity-sort.d.ts +3 -5
  60. package/dist/word-wrap.d.ts +9 -11
  61. package/dist/word-wrap.js +1 -1
  62. package/package.json +1 -1
  63. package/dist/packem_shared/lru-cache-B_t27XwI.d.ts +0 -14
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ ## @visulima/string [3.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/string@3.0.0-alpha.5...@visulima/string@3.0.0-alpha.6) (2026-03-06)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **string:** update packem to 2.0.0-alpha.54 ([f144f53](https://github.com/visulima/visulima/commit/f144f53ffeddc9baf9dad5624f400ff4c90418a8))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * **data-manipulation:** update dependencies ([49458ab](https://github.com/visulima/visulima/commit/49458ab8f8e17d875840b1b4fe8b5efe12ff3513))
10
+ * **string:** update dependencies ([6282b31](https://github.com/visulima/visulima/commit/6282b310839ce1154133fe56468e9d52fc2feb91))
11
+ * **string:** update dependencies ([6ff101d](https://github.com/visulima/visulima/commit/6ff101df82e17d1673e47f1195e662b8eff4e04a))
12
+ * update lock file maintenance ([d83e716](https://github.com/visulima/visulima/commit/d83e71697b75d24704185b66bb521a934d2db02d))
13
+ * year update ([47f4105](https://github.com/visulima/visulima/commit/47f410596ce7190cfea36a073db32e0cec50bbcd))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.5
19
+
20
+ ## @visulima/string [3.0.0-alpha.5](https://github.com/visulima/visulima/compare/@visulima/string@3.0.0-alpha.4...@visulima/string@3.0.0-alpha.5) (2025-12-27)
21
+
22
+ ### Bug Fixes
23
+
24
+ * **string:** update package files ([ca22f2e](https://github.com/visulima/visulima/commit/ca22f2efdd044ae20d421f729d185e1e93747cd8))
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.4
30
+
1
31
  ## @visulima/string [3.0.0-alpha.4](https://github.com/visulima/visulima/compare/@visulima/string@3.0.0-alpha.3...@visulima/string@3.0.0-alpha.4) (2025-12-13)
2
32
 
3
33
  ### Features
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 visulima
3
+ Copyright (c) 2026 visulima
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,13 +1,10 @@
1
- import { StringWidthOptions } from './get-string-width.js';
2
- import './get-string-truncated-width.js';
3
-
1
+ import { StringWidthOptions } from "./get-string-width.js";
2
+ import "./get-string-truncated-width.js";
4
3
  type AlignTextOptions = {
5
- align?: "center" | "left" | "right";
6
- pad?: string;
7
- split?: string;
8
- stringWidthOptions?: StringWidthOptions;
4
+ align?: "center" | "left" | "right";
5
+ pad?: string;
6
+ split?: string;
7
+ stringWidthOptions?: StringWidthOptions;
9
8
  };
10
9
  declare const alignText: (text: string[] | string, options?: AlignTextOptions) => string[] | string;
11
-
12
- export { alignText };
13
- export type { AlignTextOptions };
10
+ export { AlignTextOptions, alignText };
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, a as CamelCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, a as CamelCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const camelCase: <T extends string = string>(value?: T, options?: CaseOptions) => CamelCase<T>;
6
-
7
5
  export { camelCase as default };
@@ -1,10 +1,10 @@
1
- import { R as RE_FAST_ANSI } from '../packem_shared/constants-CnXdp6qx.js';
1
+ import { R as RE_FAST_ANSI } from '../packem_shared/constants-D5qaproB.js';
2
2
  import LRUCache from '../packem_shared/LRUCache-3r3SovvR.js';
3
3
  import lowerFirst from './lower-first.js';
4
4
  import { splitByCase } from './split-by-case.js';
5
5
  import upperFirst from './upper-first.js';
6
6
  import { g as generateCacheKey } from '../packem_shared/generate-cache-key-DdayDfjV.js';
7
- import joinSegments from '../packem_shared/joinSegments-B4H6oZ9b.js';
7
+ import joinSegments from '../packem_shared/joinSegments-BStLas0c.js';
8
8
  import { n as normalizeGermanEszett } from '../packem_shared/normalize-german-eszett-DEB8-ZPT.js';
9
9
 
10
10
  const defaultCacheStore = new LRUCache(1e3);
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, b as CapitalCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, b as CapitalCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const capitalCase: <T extends string = string>(value?: T, options?: CaseOptions) => CapitalCase<T>;
6
-
7
5
  export { capitalCase as default };
@@ -1,9 +1,9 @@
1
- import { R as RE_FAST_ANSI } from '../packem_shared/constants-CnXdp6qx.js';
1
+ import { R as RE_FAST_ANSI } from '../packem_shared/constants-D5qaproB.js';
2
2
  import LRUCache from '../packem_shared/LRUCache-3r3SovvR.js';
3
3
  import { splitByCase } from './split-by-case.js';
4
4
  import upperFirst from './upper-first.js';
5
5
  import { g as generateCacheKey } from '../packem_shared/generate-cache-key-DdayDfjV.js';
6
- import joinSegments from '../packem_shared/joinSegments-B4H6oZ9b.js';
6
+ import joinSegments from '../packem_shared/joinSegments-BStLas0c.js';
7
7
  import { n as normalizeGermanEszett } from '../packem_shared/normalize-german-eszett-DEB8-ZPT.js';
8
8
 
9
9
  const defaultCacheStore = new LRUCache(1e3);
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, c as ConstantCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, c as ConstantCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const constantCase: <T extends string = string>(value?: T, options?: CaseOptions) => ConstantCase<T>;
6
-
7
5
  export { constantCase as default };
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, D as DotCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, D as DotCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const dotCase: <T extends string = string>(value?: T, options?: CaseOptions) => DotCase<T>;
6
-
7
5
  export { dotCase as default };
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, F as FlatCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, F as FlatCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const flatCase: <T extends string = string>(value?: T, options?: CaseOptions) => FlatCase<T>;
6
-
7
5
  export { flatCase as default };
@@ -1,9 +1,6 @@
1
- import { C as CaseOptions, d as FlipCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, d as FlipCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  type FlipOptions = Omit<CaseOptions, "handleEmoji">;
6
5
  declare const flipCase: <T extends string = string>(value?: T, options?: FlipOptions) => FlipCase<T>;
7
-
8
- export { flipCase };
9
- export type { FlipOptions };
6
+ export { FlipOptions, flipCase };
@@ -20,7 +20,7 @@ const __cjs_getBuiltinModule = (module) => {
20
20
  const {
21
21
  stripVTControlCharacters
22
22
  } = __cjs_getBuiltinModule("node:util");
23
- import { s as stripEmoji } from '../packem_shared/constants-CnXdp6qx.js';
23
+ import { s as stripEmoji } from '../packem_shared/constants-D5qaproB.js';
24
24
  import LRUCache from '../packem_shared/LRUCache-3r3SovvR.js';
25
25
  import { g as generateCacheKey } from '../packem_shared/generate-cache-key-DdayDfjV.js';
26
26
 
@@ -1,7 +1,5 @@
1
- import { I as IdentifyCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { I as IdentifyCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const identifyCase: <T extends string = string>(value?: T) => IdentifyCase<T>;
6
-
7
5
  export { identifyCase as default };
@@ -1,26 +1,24 @@
1
- export { N as NodeLocale } from '../packem_shared/types-D2ydhHCv.js';
2
- export { default as camelCase } from './camel-case.js';
3
- export { default as capitalCase } from './capital-case.js';
4
- export { default as constantCase } from './constant-case.js';
5
- export { default as dotCase } from './dot-case.js';
6
- export { default as flatCase } from './flat-case.js';
7
- export { FlipOptions, flipCase } from './flip-case.js';
8
- export { default as identifyCase } from './identify-case.js';
9
- export { KebabCaseOptions, kebabCase } from './kebab-case.js';
10
- export { default as lowerFirst } from './lower-first.js';
11
- export { default as noCase } from './no-case.js';
12
- export { default as pascalCase } from './pascal-case.js';
13
- export { default as pascalSnakeCase } from './pascal-snake-case.js';
14
- export { default as pathCase } from './path-case.js';
15
- export { default as sentenceCase } from './sentence-case.js';
16
- export { default as snakeCase } from './snake-case.js';
17
- export { SplitOptions, splitByCase } from './split-by-case.js';
18
- export { default as titleCase } from './title-case.js';
19
- export { default as trainCase } from './train-case.js';
20
- export { a as CamelCase, b as CapitalCase, C as CaseOptions, c as ConstantCase, D as DotCase, F as FlatCase, d as FlipCase, I as IdentifyCase, K as KebabCase, L as LocaleOptions, e as LowerFirst, N as NoCase, P as PascalCase, f as PascalSnakeCase, g as PathCase, S as SentenceCase, h as SnakeCase, i as SplitByCase, T as TitleCase, j as TrainCase, U as UpperFirst } from '../packem_shared/types-CHpmpy8C.js';
21
- export { default as upperFirst } from './upper-first.js';
22
- import '../packem_shared/lru-cache-B_t27XwI.js';
23
-
1
+ export { type N as NodeLocale } from "../packem_shared/types.d-BVNv675q.js";
2
+ export { default as camelCase } from "./camel-case.js";
3
+ export { default as capitalCase } from "./capital-case.js";
4
+ export { default as constantCase } from "./constant-case.js";
5
+ export { default as dotCase } from "./dot-case.js";
6
+ export { default as flatCase } from "./flat-case.js";
7
+ export { type FlipOptions, flipCase } from "./flip-case.js";
8
+ export { default as identifyCase } from "./identify-case.js";
9
+ export { type KebabCaseOptions, kebabCase } from "./kebab-case.js";
10
+ export { default as lowerFirst } from "./lower-first.js";
11
+ export { default as noCase } from "./no-case.js";
12
+ export { default as pascalCase } from "./pascal-case.js";
13
+ export { default as pascalSnakeCase } from "./pascal-snake-case.js";
14
+ export { default as pathCase } from "./path-case.js";
15
+ export { default as sentenceCase } from "./sentence-case.js";
16
+ export { default as snakeCase } from "./snake-case.js";
17
+ export { type SplitOptions, splitByCase } from "./split-by-case.js";
18
+ export { default as titleCase } from "./title-case.js";
19
+ export { default as trainCase } from "./train-case.js";
20
+ export { type a as CamelCase, type b as CapitalCase, type C as CaseOptions, type c as ConstantCase, type D as DotCase, type F as FlatCase, type d as FlipCase, type I as IdentifyCase, type K as KebabCase, type L as LocaleOptions, type e as LowerFirst, type N as NoCase, type P as PascalCase, type f as PascalSnakeCase, type g as PathCase, type S as SentenceCase, type h as SnakeCase, type i as SplitByCase, type T as TitleCase, type j as TrainCase, type U as UpperFirst } from "../packem_shared/types.d-DfgbcNKh.js";
21
+ export { default as upperFirst } from "./upper-first.js";
22
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
24
23
  declare const joinSegments: <T extends string = string>(segments: string[], joiner: string) => T;
25
-
26
24
  export { joinSegments };
@@ -17,4 +17,4 @@ export { splitByCase } from './split-by-case.js';
17
17
  export { default as titleCase } from './title-case.js';
18
18
  export { default as trainCase } from './train-case.js';
19
19
  export { default as upperFirst } from './upper-first.js';
20
- export { default as joinSegments } from '../packem_shared/joinSegments-B4H6oZ9b.js';
20
+ export { default as joinSegments } from '../packem_shared/joinSegments-BStLas0c.js';
@@ -1,12 +1,9 @@
1
- import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, K as KebabCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  interface KebabCaseOptions extends CaseOptions {
6
- joiner?: string;
7
- toUpperCase?: boolean;
5
+ joiner?: string;
6
+ toUpperCase?: boolean;
8
7
  }
9
8
  declare const kebabCase: <T extends string = string>(value?: T, options?: KebabCaseOptions) => KebabCase<T>;
10
-
11
- export { kebabCase };
12
- export type { KebabCaseOptions };
9
+ export { KebabCaseOptions, kebabCase };
@@ -1,8 +1,8 @@
1
- import { R as RE_FAST_ANSI } from '../packem_shared/constants-CnXdp6qx.js';
1
+ import { R as RE_FAST_ANSI } from '../packem_shared/constants-D5qaproB.js';
2
2
  import LRUCache from '../packem_shared/LRUCache-3r3SovvR.js';
3
3
  import { splitByCase } from './split-by-case.js';
4
4
  import { g as generateCacheKey } from '../packem_shared/generate-cache-key-DdayDfjV.js';
5
- import joinSegments from '../packem_shared/joinSegments-B4H6oZ9b.js';
5
+ import joinSegments from '../packem_shared/joinSegments-BStLas0c.js';
6
6
  import { n as normalizeGermanEszett } from '../packem_shared/normalize-german-eszett-DEB8-ZPT.js';
7
7
 
8
8
  const defaultCacheStore = new LRUCache(1e3);
@@ -1,7 +1,5 @@
1
- import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { L as LocaleOptions, e as LowerFirst } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const lowerFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => LowerFirst<T>;
6
-
7
5
  export { lowerFirst as default };
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, N as NoCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, N as NoCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const noCase: <T extends string = string>(value?: T, options?: CaseOptions) => NoCase<T>;
6
-
7
5
  export { noCase as default };
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, P as PascalCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const pascalCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalCase<T>;
6
-
7
5
  export { pascalCase as default };
@@ -1,9 +1,9 @@
1
- import { R as RE_FAST_ANSI } from '../packem_shared/constants-CnXdp6qx.js';
1
+ import { R as RE_FAST_ANSI } from '../packem_shared/constants-D5qaproB.js';
2
2
  import LRUCache from '../packem_shared/LRUCache-3r3SovvR.js';
3
3
  import { splitByCase } from './split-by-case.js';
4
4
  import upperFirst from './upper-first.js';
5
5
  import { g as generateCacheKey } from '../packem_shared/generate-cache-key-DdayDfjV.js';
6
- import joinSegments from '../packem_shared/joinSegments-B4H6oZ9b.js';
6
+ import joinSegments from '../packem_shared/joinSegments-BStLas0c.js';
7
7
  import { n as normalizeGermanEszett } from '../packem_shared/normalize-german-eszett-DEB8-ZPT.js';
8
8
 
9
9
  const defaultCacheStore = new LRUCache(1e3);
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, f as PascalSnakeCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, f as PascalSnakeCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const pascalSnakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalSnakeCase<T>;
6
-
7
5
  export { pascalSnakeCase as default };
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, g as PathCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, g as PathCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const pathCase: <T extends string = string>(value?: T, options?: CaseOptions) => PathCase<T>;
6
-
7
5
  export { pathCase as default };
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, S as SentenceCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, S as SentenceCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const sentenceCase: <T extends string = string>(value?: T, options?: CaseOptions) => SentenceCase<T>;
6
-
7
5
  export { sentenceCase as default };
@@ -1,9 +1,9 @@
1
- import { R as RE_FAST_ANSI } from '../packem_shared/constants-CnXdp6qx.js';
1
+ import { R as RE_FAST_ANSI } from '../packem_shared/constants-D5qaproB.js';
2
2
  import LRUCache from '../packem_shared/LRUCache-3r3SovvR.js';
3
3
  import { splitByCase } from './split-by-case.js';
4
4
  import upperFirst from './upper-first.js';
5
5
  import { g as generateCacheKey } from '../packem_shared/generate-cache-key-DdayDfjV.js';
6
- import joinSegments from '../packem_shared/joinSegments-B4H6oZ9b.js';
6
+ import joinSegments from '../packem_shared/joinSegments-BStLas0c.js';
7
7
  import { n as normalizeGermanEszett } from '../packem_shared/normalize-german-eszett-DEB8-ZPT.js';
8
8
 
9
9
  const defaultCacheStore = new LRUCache(1e3);
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, h as SnakeCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, h as SnakeCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const snakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => SnakeCase<T>;
6
-
7
5
  export { snakeCase as default };
@@ -1,17 +1,14 @@
1
- import { L as LocaleOptions, i as SplitByCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { L as LocaleOptions, i as SplitByCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  interface SplitOptions extends LocaleOptions {
6
- handleAnsi?: boolean;
7
- handleEmoji?: boolean;
8
- knownAcronyms?: ReadonlyArray<string>;
9
- normalize?: boolean;
10
- separators?: ReadonlyArray<string> | RegExp;
11
- stripAnsi?: boolean;
12
- stripEmoji?: boolean;
5
+ handleAnsi?: boolean;
6
+ handleEmoji?: boolean;
7
+ knownAcronyms?: ReadonlyArray<string>;
8
+ normalize?: boolean;
9
+ separators?: ReadonlyArray<string> | RegExp;
10
+ stripAnsi?: boolean;
11
+ stripEmoji?: boolean;
13
12
  }
14
13
  declare const splitByCase: <T extends string = string>(input: T, options?: SplitOptions) => SplitByCase<T>;
15
-
16
- export { splitByCase };
17
- export type { SplitOptions };
14
+ export { SplitOptions, splitByCase };
@@ -20,7 +20,7 @@ const __cjs_getBuiltinModule = (module) => {
20
20
  const {
21
21
  stripVTControlCharacters
22
22
  } = __cjs_getBuiltinModule("node:util");
23
- import { j as RE_EMOJI, s as stripEmoji, R as RE_FAST_ANSI, k as RE_CYRILLIC, l as RE_LATIN, m as RE_GREEK, n as RE_GREEK_LATIN_SPLIT, o as RE_UZBEK_LATIN_MODIFIER, p as RE_KATAKANA, q as RE_KANJI, r as RE_HIRAGANA, t as RE_HANGUL, u as RE_HEBREW, v as RE_ARABIC, w as RE_DEVANAGARI, x as RE_BENGALI, y as RE_GUJARATI, z as RE_GURMUKHI, A as RE_KANNADA, B as RE_TAMIL, C as RE_TELUGU, D as RE_MALAYALAM, E as RE_SINHALA, F as RE_THAI, G as RE_LAO, H as RE_TIBETAN, I as RE_MYANMAR, J as RE_ETHIOPIC, K as RE_KHMER, L as RE_ORIYA, M as RE_SEPARATORS } from '../packem_shared/constants-CnXdp6qx.js';
23
+ import { j as RE_EMOJI, s as stripEmoji, R as RE_FAST_ANSI, k as RE_CYRILLIC, l as RE_LATIN, m as RE_GREEK, n as RE_GREEK_LATIN_SPLIT, o as RE_UZBEK_LATIN_MODIFIER, p as RE_KATAKANA, q as RE_KANJI, r as RE_HIRAGANA, t as RE_HANGUL, u as RE_HEBREW, v as RE_ARABIC, w as RE_SEPARATORS, x as RE_DEVANAGARI, y as RE_BENGALI, z as RE_GUJARATI, A as RE_GURMUKHI, B as RE_KANNADA, C as RE_TAMIL, D as RE_TELUGU, E as RE_MALAYALAM, F as RE_SINHALA, G as RE_THAI, H as RE_LAO, I as RE_TIBETAN, J as RE_MYANMAR, K as RE_ETHIOPIC, L as RE_KHMER, M as RE_ORIYA } from '../packem_shared/constants-D5qaproB.js';
24
24
  import LRUCache from '../packem_shared/LRUCache-3r3SovvR.js';
25
25
 
26
26
  const regexCache = new LRUCache(1e3);
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, T as TitleCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, T as TitleCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare function titleCase<T extends string = string>(value?: T, options?: CaseOptions): TitleCase<T>;
6
-
7
5
  export { titleCase as default };
@@ -1,7 +1,5 @@
1
- import { C as CaseOptions, j as TrainCase } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { C as CaseOptions, j as TrainCase } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const trainCase: <T extends string = string>(value?: T, options?: CaseOptions) => TrainCase<T>;
6
-
7
5
  export { trainCase as default };
@@ -2,7 +2,7 @@ import LRUCache from '../packem_shared/LRUCache-3r3SovvR.js';
2
2
  import { splitByCase } from './split-by-case.js';
3
3
  import upperFirst from './upper-first.js';
4
4
  import { g as generateCacheKey } from '../packem_shared/generate-cache-key-DdayDfjV.js';
5
- import joinSegments from '../packem_shared/joinSegments-B4H6oZ9b.js';
5
+ import joinSegments from '../packem_shared/joinSegments-BStLas0c.js';
6
6
 
7
7
  const defaultCacheStore = new LRUCache(1e3);
8
8
  const trainCase = (value, options) => {
@@ -1,7 +1,5 @@
1
- import { L as LocaleOptions, U as UpperFirst } from '../packem_shared/types-CHpmpy8C.js';
2
- import '../packem_shared/types-D2ydhHCv.js';
3
- import '../packem_shared/lru-cache-B_t27XwI.js';
4
-
1
+ import { L as LocaleOptions, U as UpperFirst } from "../packem_shared/types.d-DfgbcNKh.js";
2
+ import "../packem_shared/types.d-BVNv675q.js";
3
+ import "../packem_shared/lru-cache.d-BsP6kbVJ.js";
5
4
  declare const upperFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => UpperFirst<T>;
6
-
7
5
  export { upperFirst as default };
@@ -1,8 +1,6 @@
1
1
  interface ClosestStringOptions {
2
- caseSensitive?: boolean;
3
- compareFn?: (a: string, b: string) => number;
2
+ caseSensitive?: boolean;
3
+ compareFn?: (a: string, b: string) => number;
4
4
  }
5
5
  declare const closestString: (givenWord: string, possibleWords: ReadonlyArray<string>, options?: ClosestStringOptions) => string | undefined;
6
-
7
- export { closestString };
8
- export type { ClosestStringOptions };
6
+ export { ClosestStringOptions, closestString };
@@ -1,8 +1,6 @@
1
1
  interface CompareSimilarityOptions {
2
- caseSensitive?: boolean;
3
- compareFn?: (a: string, b: string) => number;
2
+ caseSensitive?: boolean;
3
+ compareFn?: (a: string, b: string) => number;
4
4
  }
5
5
  declare const compareSimilarity: (givenWord: string, options?: CompareSimilarityOptions) => (a: string, b: string) => number;
6
-
7
- export { compareSimilarity };
8
- export type { CompareSimilarityOptions };
6
+ export { CompareSimilarityOptions, compareSimilarity };
@@ -1,25 +1,23 @@
1
1
  interface StringTruncatedWidthOptions {
2
- ambiguousIsNarrow?: boolean;
3
- ansiWidth?: number;
4
- controlWidth?: number;
5
- countAnsiEscapeCodes?: boolean;
6
- ellipsis?: string;
7
- ellipsisWidth?: number;
8
- emojiWidth?: number;
9
- fullWidth?: number;
10
- halfWidth?: number;
11
- limit?: number;
12
- regularWidth?: number;
13
- tabWidth?: number;
14
- wideWidth?: number;
2
+ ambiguousIsNarrow?: boolean;
3
+ ansiWidth?: number;
4
+ controlWidth?: number;
5
+ countAnsiEscapeCodes?: boolean;
6
+ ellipsis?: string;
7
+ ellipsisWidth?: number;
8
+ emojiWidth?: number;
9
+ fullWidth?: number;
10
+ halfWidth?: number;
11
+ limit?: number;
12
+ regularWidth?: number;
13
+ tabWidth?: number;
14
+ wideWidth?: number;
15
15
  }
16
16
  interface StringTruncatedWidthResult {
17
- ellipsed: boolean;
18
- index: number;
19
- truncated: boolean;
20
- width: number;
17
+ ellipsed: boolean;
18
+ index: number;
19
+ truncated: boolean;
20
+ width: number;
21
21
  }
22
22
  declare const getStringTruncatedWidth: (input: string, options?: StringTruncatedWidthOptions) => StringTruncatedWidthResult;
23
-
24
- export { getStringTruncatedWidth };
25
- export type { StringTruncatedWidthOptions, StringTruncatedWidthResult };
23
+ export { StringTruncatedWidthOptions, StringTruncatedWidthResult, getStringTruncatedWidth };