@visulima/string 1.4.1 → 1.5.1
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 +13 -0
- package/LICENSE.md +62 -0
- package/dist/case/camel-case.cjs +1 -1
- package/dist/case/camel-case.d.cts +2 -2
- package/dist/case/camel-case.d.mts +2 -2
- package/dist/case/camel-case.d.ts +2 -2
- package/dist/case/camel-case.mjs +1 -1
- package/dist/case/capital-case.cjs +1 -1
- package/dist/case/capital-case.d.cts +2 -2
- package/dist/case/capital-case.d.mts +2 -2
- package/dist/case/capital-case.d.ts +2 -2
- package/dist/case/capital-case.mjs +1 -1
- package/dist/case/constant-case.d.cts +2 -2
- package/dist/case/constant-case.d.mts +2 -2
- package/dist/case/constant-case.d.ts +2 -2
- package/dist/case/dot-case.d.cts +2 -2
- package/dist/case/dot-case.d.mts +2 -2
- package/dist/case/dot-case.d.ts +2 -2
- package/dist/case/flat-case.d.cts +2 -2
- package/dist/case/flat-case.d.mts +2 -2
- package/dist/case/flat-case.d.ts +2 -2
- package/dist/case/flip-case.cjs +1 -1
- package/dist/case/flip-case.d.cts +2 -2
- package/dist/case/flip-case.d.mts +2 -2
- package/dist/case/flip-case.d.ts +2 -2
- package/dist/case/flip-case.mjs +1 -1
- package/dist/case/identify-case.d.cts +2 -2
- package/dist/case/identify-case.d.mts +2 -2
- package/dist/case/identify-case.d.ts +2 -2
- package/dist/case/index.cjs +1 -1
- package/dist/case/index.d.cts +2 -2
- package/dist/case/index.d.mts +2 -2
- package/dist/case/index.d.ts +2 -2
- package/dist/case/index.mjs +1 -1
- package/dist/case/kebab-case.cjs +1 -1
- package/dist/case/kebab-case.d.cts +2 -2
- package/dist/case/kebab-case.d.mts +2 -2
- package/dist/case/kebab-case.d.ts +2 -2
- package/dist/case/kebab-case.mjs +1 -1
- package/dist/case/lower-first.d.cts +2 -2
- package/dist/case/lower-first.d.mts +2 -2
- package/dist/case/lower-first.d.ts +2 -2
- package/dist/case/no-case.d.cts +2 -2
- package/dist/case/no-case.d.mts +2 -2
- package/dist/case/no-case.d.ts +2 -2
- package/dist/case/pascal-case.cjs +1 -1
- package/dist/case/pascal-case.d.cts +2 -2
- package/dist/case/pascal-case.d.mts +2 -2
- package/dist/case/pascal-case.d.ts +2 -2
- package/dist/case/pascal-case.mjs +1 -1
- package/dist/case/pascal-snake-case.d.cts +2 -2
- package/dist/case/pascal-snake-case.d.mts +2 -2
- package/dist/case/pascal-snake-case.d.ts +2 -2
- package/dist/case/path-case.d.cts +2 -2
- package/dist/case/path-case.d.mts +2 -2
- package/dist/case/path-case.d.ts +2 -2
- package/dist/case/sentence-case.cjs +1 -1
- package/dist/case/sentence-case.d.cts +2 -2
- package/dist/case/sentence-case.d.mts +2 -2
- package/dist/case/sentence-case.d.ts +2 -2
- package/dist/case/sentence-case.mjs +1 -1
- package/dist/case/snake-case.d.cts +2 -2
- package/dist/case/snake-case.d.mts +2 -2
- package/dist/case/snake-case.d.ts +2 -2
- package/dist/case/split-by-case.cjs +1 -1
- package/dist/case/split-by-case.d.cts +2 -2
- package/dist/case/split-by-case.d.mts +2 -2
- package/dist/case/split-by-case.d.ts +2 -2
- package/dist/case/split-by-case.mjs +1 -1
- package/dist/case/title-case.d.cts +2 -2
- package/dist/case/title-case.d.mts +2 -2
- package/dist/case/title-case.d.ts +2 -2
- package/dist/case/train-case.cjs +1 -1
- package/dist/case/train-case.d.cts +2 -2
- package/dist/case/train-case.d.mts +2 -2
- package/dist/case/train-case.d.ts +2 -2
- package/dist/case/train-case.mjs +1 -1
- package/dist/case/upper-first.d.cts +2 -2
- package/dist/case/upper-first.d.mts +2 -2
- package/dist/case/upper-first.d.ts +2 -2
- package/dist/closest-string.cjs +1 -0
- package/dist/closest-string.d.cts +8 -0
- package/dist/closest-string.d.mts +8 -0
- package/dist/closest-string.d.ts +8 -0
- package/dist/closest-string.mjs +1 -0
- package/dist/compare-similarity.cjs +1 -0
- package/dist/compare-similarity.d.cts +8 -0
- package/dist/compare-similarity.d.mts +8 -0
- package/dist/compare-similarity.d.ts +8 -0
- package/dist/compare-similarity.mjs +1 -0
- package/dist/get-string-truncated-width.cjs +1 -1
- package/dist/get-string-truncated-width.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -6
- package/dist/index.d.mts +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.mjs +1 -1
- package/dist/native-string-types.d.cts +1 -1
- package/dist/native-string-types.d.mts +1 -1
- package/dist/native-string-types.d.ts +1 -1
- package/dist/outdent.cjs +1 -1
- package/dist/outdent.mjs +1 -1
- package/dist/packem_shared/closest-DGumBGH9.cjs +1 -0
- package/dist/packem_shared/closest-uarbVSbs.mjs +1 -0
- package/dist/packem_shared/closestN-D4wF4I-I.mjs +1 -0
- package/dist/packem_shared/closestN-DqYIV5u3.cjs +1 -0
- package/dist/packem_shared/{constants-Cd17VNEv.mjs → constants-CDcaCZKC.mjs} +1 -1
- package/dist/packem_shared/{constants-D3K8u3G8.cjs → constants-DEcMFLn8.cjs} +1 -1
- package/dist/packem_shared/{joinSegments-H7QJ7rwJ.mjs → joinSegments-BNRq9dVI.mjs} +1 -1
- package/dist/packem_shared/{joinSegments-CDHNMXsF.cjs → joinSegments-Cs5mfgdt.cjs} +1 -1
- package/dist/packem_shared/replaceString-9jUkfJB5.cjs +1 -0
- package/dist/packem_shared/replaceString-DwIZyvoL.mjs +1 -0
- package/dist/packem_shared/{transliterate-BXaP38Sh.mjs → transliterate-DNh-jM0e.mjs} +2 -2
- package/dist/packem_shared/{transliterate-CToQ-aeM.cjs → transliterate-wQMEsr3l.cjs} +2 -2
- package/dist/packem_shared/{types-mlwFVBiS.d.mts → types-CNJfNczL.d.mts} +1 -1
- package/dist/packem_shared/{types-BfGNLD2K.d.ts → types-CfPsw9ix.d.ts} +1 -1
- package/dist/packem_shared/{types-DrtiqNkK.d.cts → types-Cnu8OB9S.d.cts} +1 -1
- package/dist/packem_shared/{types-BSdIWVzn.d.cts → types-Daae0hGf.d.cts} +1 -1
- package/dist/packem_shared/{types-BSdIWVzn.d.mts → types-Daae0hGf.d.mts} +1 -1
- package/dist/packem_shared/{types-BSdIWVzn.d.ts → types-Daae0hGf.d.ts} +1 -1
- package/dist/slice.cjs +1 -1
- package/dist/slice.mjs +1 -1
- package/dist/slugify.cjs +1 -0
- package/dist/slugify.d.cts +5 -0
- package/dist/slugify.d.mts +5 -0
- package/dist/slugify.d.ts +5 -0
- package/dist/slugify.mjs +1 -0
- package/dist/test/utils.cjs +2 -2
- package/dist/test/utils.mjs +1 -1
- package/dist/truncate.cjs +1 -1
- package/dist/truncate.mjs +1 -1
- package/dist/utilities.cjs +1 -0
- package/dist/{utils.d.cts → utilities.d.cts} +1 -1
- package/dist/{utils.d.mts → utilities.d.mts} +1 -1
- package/dist/{utils.d.ts → utilities.d.ts} +1 -1
- package/dist/utilities.mjs +1 -0
- package/dist/word-similarity-sort.cjs +1 -0
- package/dist/word-similarity-sort.d.cts +8 -0
- package/dist/word-similarity-sort.d.mts +8 -0
- package/dist/word-similarity-sort.d.ts +8 -0
- package/dist/word-similarity-sort.mjs +1 -0
- package/dist/word-wrap.cjs +3 -3
- package/dist/word-wrap.d.cts +1 -1
- package/dist/word-wrap.d.mts +1 -1
- package/dist/word-wrap.d.ts +1 -1
- package/dist/word-wrap.mjs +6 -6
- package/package.json +58 -6
- package/dist/packem_shared/replaceString-Ce8TI_-L.cjs +0 -1
- package/dist/packem_shared/replaceString-D7R-5VFX.mjs +0 -1
- package/dist/packem_shared/slugify-B1vlQQO1.mjs +0 -1
- package/dist/packem_shared/slugify-CH3GI7E5.cjs +0 -1
- package/dist/utils.cjs +0 -1
- package/dist/utils.mjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## @visulima/string [1.5.1](https://github.com/visulima/visulima/compare/@visulima/string@1.5.0...@visulima/string@1.5.1) (2025-06-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Dependencies
|
|
5
|
+
|
|
6
|
+
* **@visulima/colorize:** upgraded to 1.4.23
|
|
7
|
+
|
|
8
|
+
## @visulima/string [1.5.0](https://github.com/visulima/visulima/compare/@visulima/string@1.4.1...@visulima/string@1.5.0) (2025-06-03)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **string:** added new functions closestString, compareSimilarity and wordSimilaritySort, added new exports to the package.json ([4f01ec4](https://github.com/visulima/visulima/commit/4f01ec4b0cc8863c6bbb591ac14c895c143e65d2))
|
|
13
|
+
|
|
1
14
|
## @visulima/string [1.4.1](https://github.com/visulima/visulima/compare/@visulima/string@1.4.0...@visulima/string@1.4.1) (2025-05-31)
|
|
2
15
|
|
|
3
16
|
### Bug Fixes
|
package/LICENSE.md
CHANGED
|
@@ -56,6 +56,35 @@ Repository: git+https://github.com/slevithan/emoji-regex-xs.git
|
|
|
56
56
|
|
|
57
57
|
---------------------------------------
|
|
58
58
|
|
|
59
|
+
## fastest-levenshtein
|
|
60
|
+
License: MIT
|
|
61
|
+
By: Kasper U. Weihe
|
|
62
|
+
Repository: git+https://github.com/ka-weihe/fastest-levenshtein.git
|
|
63
|
+
|
|
64
|
+
> MIT License
|
|
65
|
+
>
|
|
66
|
+
> Copyright (c) 2020 Kasper Unn Weihe
|
|
67
|
+
>
|
|
68
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
69
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
70
|
+
> in the Software without restriction, including without limitation the rights
|
|
71
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
72
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
73
|
+
> furnished to do so, subject to the following conditions:
|
|
74
|
+
>
|
|
75
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
76
|
+
> copies or substantial portions of the Software.
|
|
77
|
+
>
|
|
78
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
79
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
80
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
81
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
82
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
83
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
84
|
+
> SOFTWARE.
|
|
85
|
+
|
|
86
|
+
---------------------------------------
|
|
87
|
+
|
|
59
88
|
## get-east-asian-width
|
|
60
89
|
License: MIT
|
|
61
90
|
By: Sindre Sorhus
|
|
@@ -74,4 +103,37 @@ Repository: sindresorhus/get-east-asian-width
|
|
|
74
103
|
<!-- /DEPENDENCIES -->
|
|
75
104
|
|
|
76
105
|
<!-- TYPE_DEPENDENCIES -->
|
|
106
|
+
|
|
107
|
+
# Licenses of bundled types
|
|
108
|
+
The published @visulima/string artifact additionally contains code with the following licenses:
|
|
109
|
+
MIT
|
|
110
|
+
|
|
111
|
+
# Bundled types:
|
|
112
|
+
## fastest-levenshtein
|
|
113
|
+
License: MIT
|
|
114
|
+
By: Kasper U. Weihe
|
|
115
|
+
Repository: git+https://github.com/ka-weihe/fastest-levenshtein.git
|
|
116
|
+
|
|
117
|
+
> MIT License
|
|
118
|
+
>
|
|
119
|
+
> Copyright (c) 2020 Kasper Unn Weihe
|
|
120
|
+
>
|
|
121
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
122
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
123
|
+
> in the Software without restriction, including without limitation the rights
|
|
124
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
125
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
126
|
+
> furnished to do so, subject to the following conditions:
|
|
127
|
+
>
|
|
128
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
129
|
+
> copies or substantial portions of the Software.
|
|
130
|
+
>
|
|
131
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
132
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
133
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
134
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
135
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
136
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
137
|
+
> SOFTWARE.
|
|
138
|
+
|
|
77
139
|
<!-- /TYPE_DEPENDENCIES -->
|
package/dist/case/camel-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var l=(a,e)=>c(a,"name",{value:e,configurable:!0});const u=require("../packem_shared/constants-
|
|
1
|
+
"use strict";var c=Object.defineProperty;var l=(a,e)=>c(a,"name",{value:e,configurable:!0});const u=require("../packem_shared/constants-DEcMFLn8.cjs"),m=require("../packem_shared/LRUCache-TYqfUYE5.cjs"),p=require("./lower-first.cjs"),h=require("./split-by-case.cjs"),d=require("./upper-first.cjs"),q=require("../packem_shared/generate-cache-key-BZf0GiMs.cjs"),y=require("../packem_shared/joinSegments-Cs5mfgdt.cjs"),f=require("../packem_shared/normalize-german-eszett-Bop4wOp9.cjs");var A=Object.defineProperty,C=l((a,e)=>A(a,"name",{value:e,configurable:!0}),"l");const j=new m(1e3),w=C((a,e)=>{if(typeof a!="string"||!a)return"";const t=e?.cache??!1,i=e?.cacheStore??j;let r;if(t&&(r=q.a(a,e)),t&&r&&i.has(r))return i.get(r);let n=!0;const o=y(h.splitByCase(a,{handleAnsi:e?.handleAnsi,handleEmoji:e?.handleEmoji,knownAcronyms:e?.knownAcronyms,locale:e?.locale,normalize:e?.normalize,separators:void 0,stripAnsi:e?.stripAnsi,stripEmoji:e?.stripEmoji}).map(s=>e?.handleAnsi&&u.R.test(s)?s:(s=e?.locale?.startsWith("de")?f.l(s):s,s=e?.locale?s.toLocaleLowerCase(e.locale):s.toLowerCase(),n?(n=!1,p(s,e)):d(s,e))),"");return t&&r&&i.set(r,o),o},"camelCase");module.exports=w;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, a as CamelCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, a as CamelCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const camelCase: <T extends string = string>(value?: T, options?: CaseOptions) => CamelCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, a as CamelCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, a as CamelCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const camelCase: <T extends string = string>(value?: T, options?: CaseOptions) => CamelCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, a as CamelCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, a as CamelCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const camelCase: <T extends string = string>(value?: T, options?: CaseOptions) => CamelCase<T>;
|
package/dist/case/camel-case.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var n=(t,o)=>m(t,"name",{value:o,configurable:!0});import{R as c}from"../packem_shared/constants-
|
|
1
|
+
var m=Object.defineProperty;var n=(t,o)=>m(t,"name",{value:o,configurable:!0});import{R as c}from"../packem_shared/constants-CDcaCZKC.mjs";import p from"../packem_shared/LRUCache-Bjo6gsbC.mjs";import f from"./lower-first.mjs";import{splitByCase as d}from"./split-by-case.mjs";import h from"./upper-first.mjs";import{a as A}from"../packem_shared/generate-cache-key-DPByFaMH.mjs";import u from"../packem_shared/joinSegments-BNRq9dVI.mjs";import{l as y}from"../packem_shared/normalize-german-eszett-4k1qRtEP.mjs";var j=Object.defineProperty,w=n((t,o)=>j(t,"name",{value:o,configurable:!0}),"l");const E=new p(1e3),R=w((t,o)=>{if(typeof t!="string"||!t)return"";const e=o?.cache??!1,s=o?.cacheStore??E;let r;if(e&&(r=A(t,o)),e&&r&&s.has(r))return s.get(r);let i=!0;const l=u(d(t,{handleAnsi:o?.handleAnsi,handleEmoji:o?.handleEmoji,knownAcronyms:o?.knownAcronyms,locale:o?.locale,normalize:o?.normalize,separators:void 0,stripAnsi:o?.stripAnsi,stripEmoji:o?.stripEmoji}).map(a=>o?.handleAnsi&&c.test(a)?a:(a=o?.locale?.startsWith("de")?y(a):a,a=o?.locale?a.toLocaleLowerCase(o.locale):a.toLowerCase(),i?(i=!1,f(a,o)):h(a,o))),"");return e&&r&&s.set(r,l),l},"camelCase");export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var c=(r,e)=>u(r,"name",{value:e,configurable:!0});const m=require("../packem_shared/constants-
|
|
1
|
+
"use strict";var u=Object.defineProperty;var c=(r,e)=>u(r,"name",{value:e,configurable:!0});const m=require("../packem_shared/constants-DEcMFLn8.cjs"),p=require("../packem_shared/LRUCache-TYqfUYE5.cjs"),h=require("./split-by-case.cjs"),y=require("./upper-first.cjs"),d=require("../packem_shared/generate-cache-key-BZf0GiMs.cjs"),f=require("../packem_shared/joinSegments-Cs5mfgdt.cjs"),q=require("../packem_shared/normalize-german-eszett-Bop4wOp9.cjs");var A=Object.defineProperty,C=c((r,e)=>A(r,"name",{value:e,configurable:!0}),"l");const j=new p(1e3),g=C((r,e)=>{if(typeof r!="string")return"";const t=e?.cache??!1,n=e?.cacheStore??j;let a;if(t&&(a=d.a(r,e)),t&&a&&n.has(a))return n.get(a);const l=h.splitByCase(r,{handleAnsi:e?.handleAnsi,handleEmoji:e?.handleEmoji,knownAcronyms:e?.knownAcronyms,locale:e?.locale,normalize:e?.normalize,separators:void 0,stripAnsi:e?.stripAnsi,stripEmoji:e?.stripEmoji}).map(s=>{if(m.R.test(s))return s;const o=e?.locale?.startsWith("de")?q.l(s):s;return y(e?.locale?o.toLocaleLowerCase(e.locale):o.toLocaleLowerCase(),e)}),i=f(l," ");return t&&a&&n.set(a,i),i},"capitalCase");module.exports=g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, b as CapitalCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, b as CapitalCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const capitalCase: <T extends string = string>(value?: T, options?: CaseOptions) => CapitalCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, b as CapitalCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, b as CapitalCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const capitalCase: <T extends string = string>(value?: T, options?: CaseOptions) => CapitalCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, b as CapitalCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, b as CapitalCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const capitalCase: <T extends string = string>(value?: T, options?: CaseOptions) => CapitalCase<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var l=(r,o)=>c(r,"name",{value:o,configurable:!0});import{R as p}from"../packem_shared/constants-
|
|
1
|
+
var c=Object.defineProperty;var l=(r,o)=>c(r,"name",{value:o,configurable:!0});import{R as p}from"../packem_shared/constants-CDcaCZKC.mjs";import f from"../packem_shared/LRUCache-Bjo6gsbC.mjs";import{splitByCase as u}from"./split-by-case.mjs";import A from"./upper-first.mjs";import{a as d}from"../packem_shared/generate-cache-key-DPByFaMH.mjs";import h from"../packem_shared/joinSegments-BNRq9dVI.mjs";import{l as y}from"../packem_shared/normalize-german-eszett-4k1qRtEP.mjs";var j=Object.defineProperty,w=l((r,o)=>j(r,"name",{value:o,configurable:!0}),"l");const E=new f(1e3),z=w((r,o)=>{if(typeof r!="string")return"";const e=o?.cache??!1,s=o?.cacheStore??E;let a;if(e&&(a=d(r,o)),e&&a&&s.has(a))return s.get(a);const m=u(r,{handleAnsi:o?.handleAnsi,handleEmoji:o?.handleEmoji,knownAcronyms:o?.knownAcronyms,locale:o?.locale,normalize:o?.normalize,separators:void 0,stripAnsi:o?.stripAnsi,stripEmoji:o?.stripEmoji}).map(t=>{if(p.test(t))return t;const n=o?.locale?.startsWith("de")?y(t):t;return A(o?.locale?n.toLocaleLowerCase(o.locale):n.toLocaleLowerCase(),o)}),i=h(m," ");return e&&a&&s.set(a,i),i},"capitalCase");export{z as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, c as ConstantCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, c as ConstantCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const constantCase: <T extends string = string>(value?: T, options?: CaseOptions) => ConstantCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, c as ConstantCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, c as ConstantCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const constantCase: <T extends string = string>(value?: T, options?: CaseOptions) => ConstantCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, c as ConstantCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, c as ConstantCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const constantCase: <T extends string = string>(value?: T, options?: CaseOptions) => ConstantCase<T>;
|
package/dist/case/dot-case.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, D as DotCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, D as DotCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const dotCase: <T extends string = string>(value?: T, options?: CaseOptions) => DotCase<T>;
|
package/dist/case/dot-case.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, D as DotCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, D as DotCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const dotCase: <T extends string = string>(value?: T, options?: CaseOptions) => DotCase<T>;
|
package/dist/case/dot-case.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, D as DotCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, D as DotCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const dotCase: <T extends string = string>(value?: T, options?: CaseOptions) => DotCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, F as FlatCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, F as FlatCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const flatCase: <T extends string = string>(value?: T, options?: CaseOptions) => FlatCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, F as FlatCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, F as FlatCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const flatCase: <T extends string = string>(value?: T, options?: CaseOptions) => FlatCase<T>;
|
package/dist/case/flat-case.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, F as FlatCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, F as FlatCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const flatCase: <T extends string = string>(value?: T, options?: CaseOptions) => FlatCase<T>;
|
package/dist/case/flip-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var p=Object.defineProperty;var f=(a,e)=>p(a,"name",{value:e,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("node:util"),C=require("../packem_shared/constants-
|
|
1
|
+
"use strict";var p=Object.defineProperty;var f=(a,e)=>p(a,"name",{value:e,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("node:util"),C=require("../packem_shared/constants-DEcMFLn8.cjs"),g=require("../packem_shared/LRUCache-TYqfUYE5.cjs"),d=require("../packem_shared/generate-cache-key-BZf0GiMs.cjs");var v=Object.defineProperty,L=f((a,e)=>v(a,"name",{value:e,configurable:!0}),"p");const b=new g(1e3),m=L((a,e)=>{if(typeof a!="string"||a.length===0)return"";const i=e?.cache??!1,s=e?.cacheStore??b;let l;if(i&&(l=d.a(a,e)),i&&l&&s.has(l))return s.get(l);let t=a;e?.stripEmoji&&(t=C.s(t)),e?.stripAnsi&&(t=h.stripVTControlCharacters(t));let n="",o=0;for(;o<t.length;){if(e?.handleAnsi&&t[o]==="\x1B"){let c=t[o];for(o+=1;o<t.length&&t[o]!=="m";)c+=t[o],o+=1;o<t.length&&(c+=t[o],n+=c),o+=1;continue}const r=t[o],u=e?.locale?r.toLocaleLowerCase(e.locale):r.toLowerCase();n+=r===u?e?.locale?r.toLocaleUpperCase(e.locale):r.toUpperCase():u,o+=1}return i&&l&&s.set(l,n),n},"flipCase");exports.flipCase=m;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, d as FlipCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, d as FlipCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
type FlipOptions = Omit<CaseOptions, "handleEmoji">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, d as FlipCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, d as FlipCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
type FlipOptions = Omit<CaseOptions, "handleEmoji">;
|
package/dist/case/flip-case.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, d as FlipCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, d as FlipCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
type FlipOptions = Omit<CaseOptions, "handleEmoji">;
|
package/dist/case/flip-case.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var f=(a,e)=>m(a,"name",{value:e,configurable:!0});import{stripVTControlCharacters as h}from"node:util";import{s as u}from"../packem_shared/constants-
|
|
1
|
+
var m=Object.defineProperty;var f=(a,e)=>m(a,"name",{value:e,configurable:!0});import{stripVTControlCharacters as h}from"node:util";import{s as u}from"../packem_shared/constants-CDcaCZKC.mjs";import C from"../packem_shared/LRUCache-Bjo6gsbC.mjs";import{a as g}from"../packem_shared/generate-cache-key-DPByFaMH.mjs";var L=Object.defineProperty,j=f((a,e)=>L(a,"name",{value:e,configurable:!0}),"p");const v=new C(1e3),A=j((a,e)=>{if(typeof a!="string"||a.length===0)return"";const i=e?.cache??!1,s=e?.cacheStore??v;let r;if(i&&(r=g(a,e)),i&&r&&s.has(r))return s.get(r);let t=a;e?.stripEmoji&&(t=u(t)),e?.stripAnsi&&(t=h(t));let n="",o=0;for(;o<t.length;){if(e?.handleAnsi&&t[o]==="\x1B"){let c=t[o];for(o+=1;o<t.length&&t[o]!=="m";)c+=t[o],o+=1;o<t.length&&(c+=t[o],n+=c),o+=1;continue}const l=t[o],p=e?.locale?l.toLocaleLowerCase(e.locale):l.toLowerCase();n+=l===p?e?.locale?l.toLocaleUpperCase(e.locale):l.toUpperCase():p,o+=1}return i&&r&&s.set(r,n),n},"flipCase");export{A as flipCase};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IdentifyCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { I as IdentifyCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const identifyCase: <T extends string = string>(value?: T) => IdentifyCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IdentifyCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { I as IdentifyCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const identifyCase: <T extends string = string>(value?: T) => IdentifyCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IdentifyCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { I as IdentifyCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const identifyCase: <T extends string = string>(value?: T) => IdentifyCase<T>;
|
package/dist/case/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./camel-case.cjs"),a=require("./capital-case.cjs"),s=require("./constant-case.cjs"),r=require("./dot-case.cjs"),i=require("./flat-case.cjs"),t=require("./flip-case.cjs"),C=require("./identify-case.cjs"),c=require("./kebab-case.cjs"),u=require("./lower-first.cjs"),l=require("./no-case.cjs"),n=require("./pascal-case.cjs"),_=require("./pascal-snake-case.cjs"),q=require("./path-case.cjs"),p=require("./sentence-case.cjs"),o=require("./snake-case.cjs"),b=require("./split-by-case.cjs"),f=require("./title-case.cjs"),d=require("./train-case.cjs"),k=require("./upper-first.cjs"),y=require("../packem_shared/joinSegments-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./camel-case.cjs"),a=require("./capital-case.cjs"),s=require("./constant-case.cjs"),r=require("./dot-case.cjs"),i=require("./flat-case.cjs"),t=require("./flip-case.cjs"),C=require("./identify-case.cjs"),c=require("./kebab-case.cjs"),u=require("./lower-first.cjs"),l=require("./no-case.cjs"),n=require("./pascal-case.cjs"),_=require("./pascal-snake-case.cjs"),q=require("./path-case.cjs"),p=require("./sentence-case.cjs"),o=require("./snake-case.cjs"),b=require("./split-by-case.cjs"),f=require("./title-case.cjs"),d=require("./train-case.cjs"),k=require("./upper-first.cjs"),y=require("../packem_shared/joinSegments-Cs5mfgdt.cjs");exports.camelCase=e;exports.capitalCase=a;exports.constantCase=s;exports.dotCase=r;exports.flatCase=i;exports.flipCase=t.flipCase;exports.identifyCase=C;exports.kebabCase=c.kebabCase;exports.lowerFirst=u;exports.noCase=l;exports.pascalCase=n;exports.pascalSnakeCase=_;exports.pathCase=q;exports.sentenceCase=p;exports.snakeCase=o;exports.splitByCase=b.splitByCase;exports.titleCase=f;exports.trainCase=d;exports.upperFirst=k;exports.joinSegments=y;
|
package/dist/case/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeLocale } from '../packem_shared/types-
|
|
1
|
+
export { N as NodeLocale } from '../packem_shared/types-Daae0hGf.cjs';
|
|
2
2
|
export { default as camelCase } from './camel-case.cjs';
|
|
3
3
|
export { default as capitalCase } from './capital-case.cjs';
|
|
4
4
|
export { default as constantCase } from './constant-case.cjs';
|
|
@@ -17,7 +17,7 @@ export { default as snakeCase } from './snake-case.cjs';
|
|
|
17
17
|
export { SplitOptions, splitByCase } from './split-by-case.cjs';
|
|
18
18
|
export { default as titleCase } from './title-case.cjs';
|
|
19
19
|
export { default as trainCase } from './train-case.cjs';
|
|
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-
|
|
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-Cnu8OB9S.cjs';
|
|
21
21
|
export { default as upperFirst } from './upper-first.cjs';
|
|
22
22
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
23
23
|
|
package/dist/case/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeLocale } from '../packem_shared/types-
|
|
1
|
+
export { N as NodeLocale } from '../packem_shared/types-Daae0hGf.mjs';
|
|
2
2
|
export { default as camelCase } from './camel-case.mjs';
|
|
3
3
|
export { default as capitalCase } from './capital-case.mjs';
|
|
4
4
|
export { default as constantCase } from './constant-case.mjs';
|
|
@@ -17,7 +17,7 @@ export { default as snakeCase } from './snake-case.mjs';
|
|
|
17
17
|
export { SplitOptions, splitByCase } from './split-by-case.mjs';
|
|
18
18
|
export { default as titleCase } from './title-case.mjs';
|
|
19
19
|
export { default as trainCase } from './train-case.mjs';
|
|
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-
|
|
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-CNJfNczL.mjs';
|
|
21
21
|
export { default as upperFirst } from './upper-first.mjs';
|
|
22
22
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
23
23
|
|
package/dist/case/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as NodeLocale } from '../packem_shared/types-
|
|
1
|
+
export { N as NodeLocale } from '../packem_shared/types-Daae0hGf.js';
|
|
2
2
|
export { default as camelCase } from './camel-case.js';
|
|
3
3
|
export { default as capitalCase } from './capital-case.js';
|
|
4
4
|
export { default as constantCase } from './constant-case.js';
|
|
@@ -17,7 +17,7 @@ export { default as snakeCase } from './snake-case.js';
|
|
|
17
17
|
export { SplitOptions, splitByCase } from './split-by-case.js';
|
|
18
18
|
export { default as titleCase } from './title-case.js';
|
|
19
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-
|
|
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-CfPsw9ix.js';
|
|
21
21
|
export { default as upperFirst } from './upper-first.js';
|
|
22
22
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
23
23
|
|
package/dist/case/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as t}from"./camel-case.mjs";import{default as r}from"./capital-case.mjs";import{default as f}from"./constant-case.mjs";import{default as l}from"./dot-case.mjs";import{default as x}from"./flat-case.mjs";import{flipCase as u}from"./flip-case.mjs";import{default as n}from"./identify-case.mjs";import{kebabCase as c}from"./kebab-case.mjs";import{default as b}from"./lower-first.mjs";import{default as F}from"./no-case.mjs";import{default as g}from"./pascal-case.mjs";import{default as j}from"./pascal-snake-case.mjs";import{default as B}from"./path-case.mjs";import{default as v}from"./sentence-case.mjs";import{default as A}from"./snake-case.mjs";import{splitByCase as E}from"./split-by-case.mjs";import{default as H}from"./title-case.mjs";import{default as J}from"./train-case.mjs";import{default as L}from"./upper-first.mjs";import{default as N}from"../packem_shared/joinSegments-
|
|
1
|
+
import{default as t}from"./camel-case.mjs";import{default as r}from"./capital-case.mjs";import{default as f}from"./constant-case.mjs";import{default as l}from"./dot-case.mjs";import{default as x}from"./flat-case.mjs";import{flipCase as u}from"./flip-case.mjs";import{default as n}from"./identify-case.mjs";import{kebabCase as c}from"./kebab-case.mjs";import{default as b}from"./lower-first.mjs";import{default as F}from"./no-case.mjs";import{default as g}from"./pascal-case.mjs";import{default as j}from"./pascal-snake-case.mjs";import{default as B}from"./path-case.mjs";import{default as v}from"./sentence-case.mjs";import{default as A}from"./snake-case.mjs";import{splitByCase as E}from"./split-by-case.mjs";import{default as H}from"./title-case.mjs";import{default as J}from"./train-case.mjs";import{default as L}from"./upper-first.mjs";import{default as N}from"../packem_shared/joinSegments-BNRq9dVI.mjs";export{t as camelCase,r as capitalCase,f as constantCase,l as dotCase,x as flatCase,u as flipCase,n as identifyCase,N as joinSegments,c as kebabCase,b as lowerFirst,F as noCase,g as pascalCase,j as pascalSnakeCase,B as pathCase,v as sentenceCase,A as snakeCase,E as splitByCase,H as titleCase,J as trainCase,L as upperFirst};
|
package/dist/case/kebab-case.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var l=(r,e)=>u(r,"name",{value:e,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("../packem_shared/constants-
|
|
1
|
+
"use strict";var u=Object.defineProperty;var l=(r,e)=>u(r,"name",{value:e,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("../packem_shared/constants-DEcMFLn8.cjs"),m=require("../packem_shared/LRUCache-TYqfUYE5.cjs"),C=require("./split-by-case.cjs"),d=require("../packem_shared/generate-cache-key-BZf0GiMs.cjs"),h=require("../packem_shared/joinSegments-Cs5mfgdt.cjs"),b=require("../packem_shared/normalize-german-eszett-Bop4wOp9.cjs");var f=Object.defineProperty,j=l((r,e)=>f(r,"name",{value:e,configurable:!0}),"o");const y=new m(1e3),g=j((r,e)=>{if(typeof r!="string")return"";const o=e?.cache??!1,s=e?.cacheStore??y;let t;if(o&&(t=d.a(r,e)),o&&t&&s.has(t))return s.get(t);const c=C.splitByCase(r,{handleAnsi:e?.handleAnsi,handleEmoji:e?.handleEmoji,knownAcronyms:e?.knownAcronyms,locale:e?.locale,normalize:e?.normalize,separators:void 0,stripAnsi:e?.stripAnsi,stripEmoji:e?.stripEmoji}).map(a=>{if(e?.handleAnsi&&p.R.test(a))return a;if(e?.toUpperCase)return e.locale?a.toLocaleUpperCase(e.locale):a.toUpperCase();const i=e?.locale?.startsWith("de")?b.l(a):a;return e?.locale?i.toLocaleLowerCase(e.locale):i.toLowerCase()}),n=h(c,e?.joiner??"-");return o&&t&&s.set(t,n),n},"kebabCase");exports.kebabCase=g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
interface KebabCaseOptions extends CaseOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
interface KebabCaseOptions extends CaseOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, K as KebabCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
interface KebabCaseOptions extends CaseOptions {
|
package/dist/case/kebab-case.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var l=(r,o)=>m(r,"name",{value:o,configurable:!0});import{R as p}from"../packem_shared/constants-
|
|
1
|
+
var m=Object.defineProperty;var l=(r,o)=>m(r,"name",{value:o,configurable:!0});import{R as p}from"../packem_shared/constants-CDcaCZKC.mjs";import f from"../packem_shared/LRUCache-Bjo6gsbC.mjs";import{splitByCase as u}from"./split-by-case.mjs";import{a as h}from"../packem_shared/generate-cache-key-DPByFaMH.mjs";import A from"../packem_shared/joinSegments-BNRq9dVI.mjs";import{l as d}from"../packem_shared/normalize-german-eszett-4k1qRtEP.mjs";var C=Object.defineProperty,b=l((r,o)=>C(r,"name",{value:o,configurable:!0}),"o");const j=new f(1e3),S=b((r,o)=>{if(typeof r!="string")return"";const a=o?.cache??!1,s=o?.cacheStore??j;let e;if(a&&(e=h(r,o)),a&&e&&s.has(e))return s.get(e);const c=u(r,{handleAnsi:o?.handleAnsi,handleEmoji:o?.handleEmoji,knownAcronyms:o?.knownAcronyms,locale:o?.locale,normalize:o?.normalize,separators:void 0,stripAnsi:o?.stripAnsi,stripEmoji:o?.stripEmoji}).map(t=>{if(o?.handleAnsi&&p.test(t))return t;if(o?.toUpperCase)return o.locale?t.toLocaleUpperCase(o.locale):t.toUpperCase();const i=o?.locale?.startsWith("de")?d(t):t;return o?.locale?i.toLocaleLowerCase(o.locale):i.toLowerCase()}),n=A(c,o?.joiner??"-");return a&&e&&s.set(e,n),n},"kebabCase");export{S as kebabCase};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const lowerFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => LowerFirst<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const lowerFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => LowerFirst<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { L as LocaleOptions, e as LowerFirst } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const lowerFirst: <T extends string = string>(value?: T, options?: LocaleOptions) => LowerFirst<T>;
|
package/dist/case/no-case.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, N as NoCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, N as NoCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const noCase: <T extends string = string>(value?: T, options?: CaseOptions) => NoCase<T>;
|
package/dist/case/no-case.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, N as NoCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, N as NoCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const noCase: <T extends string = string>(value?: T, options?: CaseOptions) => NoCase<T>;
|
package/dist/case/no-case.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, N as NoCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, N as NoCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const noCase: <T extends string = string>(value?: T, options?: CaseOptions) => NoCase<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var l=(r,e)=>c(r,"name",{value:e,configurable:!0});const u=require("../packem_shared/constants-
|
|
1
|
+
"use strict";var c=Object.defineProperty;var l=(r,e)=>c(r,"name",{value:e,configurable:!0});const u=require("../packem_shared/constants-DEcMFLn8.cjs"),m=require("../packem_shared/LRUCache-TYqfUYE5.cjs"),p=require("./split-by-case.cjs"),h=require("./upper-first.cjs"),d=require("../packem_shared/generate-cache-key-BZf0GiMs.cjs"),A=require("../packem_shared/joinSegments-Cs5mfgdt.cjs"),f=require("../packem_shared/normalize-german-eszett-Bop4wOp9.cjs");var q=Object.defineProperty,y=l((r,e)=>q(r,"name",{value:e,configurable:!0}),"i");const C=new m(1e3),j=y((r,e)=>{if(typeof r!="string"||!r)return"";const n=e?.cache??!1,s=e?.cacheStore??C;let t;if(n&&(t=d.a(r,e)),n&&t&&s.has(t))return s.get(t);const i=A(p.splitByCase(r,{handleAnsi:e?.handleAnsi,handleEmoji:e?.handleEmoji,knownAcronyms:e?.knownAcronyms,locale:e?.locale,normalize:e?.normalize,separators:void 0,stripAnsi:e?.stripAnsi,stripEmoji:e?.stripEmoji}).map(a=>{if(e?.handleAnsi&&u.R.test(a))return a;const o=e?.locale?.startsWith("de")?f.l(a):a;return h(e?.locale?o.toLocaleLowerCase(e.locale):o.toLowerCase(),{locale:e?.locale})}),"");return n&&t&&s.set(t,i),i},"pascalCase");module.exports=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const pascalCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const pascalCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, P as PascalCase } from '../packem_shared/types-CfPsw9ix.js';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.js';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.js';
|
|
4
4
|
|
|
5
5
|
declare const pascalCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalCase<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var s=(r,o)=>m(r,"name",{value:o,configurable:!0});import{R as c}from"../packem_shared/constants-
|
|
1
|
+
var m=Object.defineProperty;var s=(r,o)=>m(r,"name",{value:o,configurable:!0});import{R as c}from"../packem_shared/constants-CDcaCZKC.mjs";import p from"../packem_shared/LRUCache-Bjo6gsbC.mjs";import{splitByCase as f}from"./split-by-case.mjs";import u from"./upper-first.mjs";import{a as A}from"../packem_shared/generate-cache-key-DPByFaMH.mjs";import d from"../packem_shared/joinSegments-BNRq9dVI.mjs";import{l as h}from"../packem_shared/normalize-german-eszett-4k1qRtEP.mjs";var j=Object.defineProperty,w=s((r,o)=>j(r,"name",{value:o,configurable:!0}),"i");const y=new p(1e3),z=w((r,o)=>{if(typeof r!="string"||!r)return"";const e=o?.cache??!1,n=o?.cacheStore??y;let t;if(e&&(t=A(r,o)),e&&t&&n.has(t))return n.get(t);const i=d(f(r,{handleAnsi:o?.handleAnsi,handleEmoji:o?.handleEmoji,knownAcronyms:o?.knownAcronyms,locale:o?.locale,normalize:o?.normalize,separators:void 0,stripAnsi:o?.stripAnsi,stripEmoji:o?.stripEmoji}).map(a=>{if(o?.handleAnsi&&c.test(a))return a;const l=o?.locale?.startsWith("de")?h(a):a;return u(o?.locale?l.toLocaleLowerCase(o.locale):l.toLowerCase(),{locale:o?.locale})}),"");return e&&t&&n.set(t,i),i},"pascalCase");export{z as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, f as PascalSnakeCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, f as PascalSnakeCase } from '../packem_shared/types-Cnu8OB9S.cjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.cjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.cjs';
|
|
4
4
|
|
|
5
5
|
declare const pascalSnakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalSnakeCase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CaseOptions, f as PascalSnakeCase } from '../packem_shared/types-
|
|
2
|
-
import '../packem_shared/types-
|
|
1
|
+
import { C as CaseOptions, f as PascalSnakeCase } from '../packem_shared/types-CNJfNczL.mjs';
|
|
2
|
+
import '../packem_shared/types-Daae0hGf.mjs';
|
|
3
3
|
import '../packem_shared/lru-cache-B_t27XwI.mjs';
|
|
4
4
|
|
|
5
5
|
declare const pascalSnakeCase: <T extends string = string>(value?: T, options?: CaseOptions) => PascalSnakeCase<T>;
|