@trackunit/shared-utils 1.0.1 → 1.0.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/index.cjs.js CHANGED
@@ -1097,9 +1097,7 @@ const removeLeftPadding = (id) => Number(id === null || id === void 0 ? void 0 :
1097
1097
  */
1098
1098
  const stripHiddenCharacters = (input) => {
1099
1099
  // Regular expression to match various hidden characters
1100
- const hiddenRegex = new RegExp(
1101
- // eslint-disable-next-line no-control-regex
1102
- /[\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB\u0000-\u001F\u007F-\u009F]/gu);
1100
+ const hiddenRegex = new RegExp(/[\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB\u0000-\u001F\u007F-\u009F]/gu);
1103
1101
  // Replace hidden characters with an empty string
1104
1102
  return input.replace(hiddenRegex, "");
1105
1103
  };
package/index.esm.js CHANGED
@@ -1095,9 +1095,7 @@ const removeLeftPadding = (id) => Number(id === null || id === void 0 ? void 0 :
1095
1095
  */
1096
1096
  const stripHiddenCharacters = (input) => {
1097
1097
  // Regular expression to match various hidden characters
1098
- const hiddenRegex = new RegExp(
1099
- // eslint-disable-next-line no-control-regex
1100
- /[\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB\u0000-\u001F\u007F-\u009F]/gu);
1098
+ const hiddenRegex = new RegExp(/[\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB\u0000-\u001F\u007F-\u009F]/gu);
1101
1099
  // Replace hidden characters with an empty string
1102
1100
  return input.replace(hiddenRegex, "");
1103
1101
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/shared-utils",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "engines": {
6
6
  "node": ">=20.x"
@@ -37,4 +37,5 @@ export declare const removeLeftPadding: (id: string | null | undefined) => numbe
37
37
  * @returns {string} The cleaned string with hidden characters removed.
38
38
  */
39
39
  export declare const stripHiddenCharacters: (input: string) => string;
40
- export type StringWithAutocompleteOptions<TOptions extends string> = TOptions | string;
40
+ export type StringWithAutocompleteOptions<TOptions extends string> = TOptions | ({} & string);
41
+ export type NonEmptyString<TString extends string> = "" extends TString ? never : TString;