string-filters 0.3.3 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * String Filters v0.3.3
2
+ * String Filters v0.3.5
3
3
  * Homepage (https://github.com/tarkhov/js-string-filters)
4
4
  * Copyright 2026 Tarkhov
5
5
  * License: MIT
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * String Filters v0.3.3
2
+ * String Filters v0.3.5
3
3
  * Homepage (https://github.com/tarkhov/js-string-filters)
4
4
  * Copyright 2026 Tarkhov
5
5
  * License: MIT
@@ -0,0 +1,4 @@
1
+ export default function _default(string: any, options?: {
2
+ numbers: boolean;
3
+ lower: boolean;
4
+ }): any;
@@ -0,0 +1 @@
1
+ export default function _default(string: any, lower?: boolean): string;
@@ -0,0 +1 @@
1
+ export default function _default(string: any, numbers?: boolean): any;
@@ -0,0 +1 @@
1
+ export default function _default(string: any, numbers?: boolean): any;
@@ -0,0 +1,11 @@
1
+ import camelCase from './camelCase';
2
+ import capitalize from './capitalize';
3
+ import flatCase from './flatCase';
4
+ import kebabCase from './kebabCase';
5
+ import pad from './pad';
6
+ import pascalCase from './pascalCase';
7
+ import snakeCase from './snakeCase';
8
+ import titleCase from './titleCase';
9
+ import trainCase from './trainCase';
10
+ import truncate from './truncate';
11
+ export { camelCase, capitalize, flatCase, kebabCase, pad, pascalCase, snakeCase, titleCase, trainCase, truncate };
@@ -0,0 +1 @@
1
+ export default function _default(string: any, length: any, chars?: string): any;
@@ -0,0 +1,4 @@
1
+ export default function _default(string: any, options?: {
2
+ numbers: boolean;
3
+ lower: boolean;
4
+ }): any;
@@ -0,0 +1 @@
1
+ export default function _default(string: any, numbers?: boolean): any;
@@ -0,0 +1 @@
1
+ export default function _default(string: any, lower?: boolean): any;
@@ -0,0 +1,4 @@
1
+ export default function _default(string: any, options?: {
2
+ numbers: boolean;
3
+ lower: boolean;
4
+ }): any;
@@ -0,0 +1 @@
1
+ export default function _default(string: any, length?: number, omission?: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "string-filters",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Fast native javascript string filters library.",
5
5
  "type": "module",
6
6
  "files": [
@@ -10,6 +10,7 @@
10
10
  "module": "./dist/string-filters.js",
11
11
  "exports": {
12
12
  ".": {
13
+ "types": "./dist/types/main.d.ts",
13
14
  "import": "./dist/string-filters.js",
14
15
  "require": "./dist/string-filters.umd.cjs"
15
16
  }
@@ -27,7 +28,8 @@
27
28
  "sanitize",
28
29
  "input-mask",
29
30
  "javascript",
30
- "js"
31
+ "js",
32
+ "typescript"
31
33
  ],
32
34
  "repository": {
33
35
  "type": "git",
@@ -41,10 +43,11 @@
41
43
  "homepage": "https://github.com/tarkhov/js-string-filters",
42
44
  "scripts": {
43
45
  "dev": "vite",
44
- "build": "vite build",
46
+ "build": "vite build && tsc",
45
47
  "preview": "vite preview"
46
48
  },
47
49
  "devDependencies": {
50
+ "typescript": "^5.9.3",
48
51
  "vite": "^7.3.1",
49
52
  "vite-plugin-banner": "^0.8.1"
50
53
  }