@visulima/string 2.0.4 → 2.0.5
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 +16 -0
- package/dist/index.js +1 -1
- package/dist/native-string-types.d.ts +3 -1
- package/dist/outdent.js +3 -4
- package/dist/packem_shared/{transliterate-CUF6Ggy_.js → transliterate-CYnKKT8f.js} +355 -373
- package/dist/slice.js +1 -1
- package/dist/slugify.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## @visulima/string [2.0.5](https://github.com/visulima/visulima/compare/@visulima/string@2.0.4...@visulima/string@2.0.5) (2025-11-12)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* update package configurations and TypeScript definitions ([b59aa59](https://github.com/visulima/visulima/commit/b59aa59dac1508216b944f4b917fb4a7ab1f70a4))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* Add jsr file to all packages for release ([#565](https://github.com/visulima/visulima/issues/565)) ([ec91652](https://github.com/visulima/visulima/commit/ec91652b4e4112adf14ba152c1239a7703ba425a))
|
|
10
|
+
* update license files and clean up TypeScript definitions ([fe668cc](https://github.com/visulima/visulima/commit/fe668cc26de23591d4df54a0954455ebbe31b22d))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
* **@visulima/colorize:** upgraded to 1.4.28
|
|
16
|
+
|
|
1
17
|
## @visulima/string [2.0.4](https://github.com/visulima/visulima/compare/@visulima/string@2.0.3...@visulima/string@2.0.4) (2025-11-07)
|
|
2
18
|
|
|
3
19
|
### Bug Fixes
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ export { outdent } from './outdent.js';
|
|
|
28
28
|
export { default as replaceString } from './packem_shared/replaceString-vYvRBMfC.js';
|
|
29
29
|
export { slice } from './slice.js';
|
|
30
30
|
export { default as slugify } from './slugify.js';
|
|
31
|
-
export { default as transliterate } from './packem_shared/transliterate-
|
|
31
|
+
export { default as transliterate } from './packem_shared/transliterate-CYnKKT8f.js';
|
|
32
32
|
export { truncate } from './truncate.js';
|
|
33
33
|
export { escapeRegExp, findStringOccurrences, hasChinese, hasPunctuationOrSpace, inRange } from './utilities.js';
|
|
34
34
|
export { wordSimilaritySort } from './word-similarity-sort.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { C as CharAt, a as Concat, E as EndsWith, I as Includes, L as Length, P as PadEnd, b as PadStart, R as Replace, c as ReplaceAll, S as Slice, d as Split, e as StartsWith, T as ToLowerCase, f as ToUpperCase, g as Trim, h as TrimEnd, i as TrimStart } from './packem_shared/types-Daae0hGf.js';
|
|
2
2
|
|
|
3
|
+
/* eslint-disable @typescript-eslint/method-signature-style */
|
|
4
|
+
|
|
3
5
|
declare global {
|
|
4
6
|
interface String {
|
|
5
7
|
/**
|
|
@@ -32,7 +34,7 @@ declare global {
|
|
|
32
34
|
* Returns true if searchString appears as a substring of the result of converting this
|
|
33
35
|
* object to a String, at one or more positions that are greater than or equal to
|
|
34
36
|
* position; otherwise, returns false.
|
|
35
|
-
* @param searchString
|
|
37
|
+
* @param searchString
|
|
36
38
|
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
|
|
37
39
|
*/
|
|
38
40
|
includes<T extends string = string, S extends string = string, P extends number = 0>(this: T, searchString: S, position?: P): Includes<T, S, P>;
|
package/dist/outdent.js
CHANGED
|
@@ -3,10 +3,8 @@ import { d as RE_LEADING_NEWLINE, e as RE_TRAILING_NEWLINE, f as RE_ONLY_WHITESP
|
|
|
3
3
|
const hop = Object.prototype.hasOwnProperty;
|
|
4
4
|
const has = (object, property) => hop.call(object, property);
|
|
5
5
|
const extend = (target, source) => {
|
|
6
|
-
for (const property
|
|
7
|
-
|
|
8
|
-
target[property] = source[property];
|
|
9
|
-
}
|
|
6
|
+
for (const property of Object.keys(source)) {
|
|
7
|
+
target[property] = source[property];
|
|
10
8
|
}
|
|
11
9
|
return target;
|
|
12
10
|
};
|
|
@@ -109,6 +107,7 @@ const createInstance = (options) => {
|
|
|
109
107
|
const defaultOutdent = createInstance({
|
|
110
108
|
cache: true,
|
|
111
109
|
// Enable caching by default
|
|
110
|
+
// eslint-disable-next-line unicorn/no-null
|
|
112
111
|
newline: null,
|
|
113
112
|
trimLeadingNewline: true,
|
|
114
113
|
trimTrailingNewline: true
|