ablok-components 0.3.11 → 0.3.13

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.
@@ -7,9 +7,11 @@ export declare function loadImageFromDataUrl(dataUrl: string): Promise<HTMLImage
7
7
  export declare function resizeImageElementToDataUrl(img: HTMLImageElement, width: number, height: number, mimeType?: string, quality?: number): string;
8
8
  export declare function resizeImageFileByMaxWidth(file: File, maxWidth: number, quality?: number): Promise<File>;
9
9
  /**
10
- * Simple input sanitizer for user input
11
- * Removes/escapes dangerous patterns while preserving normal text
10
+ * Basic client-side input cleanup for user-entered text.
11
+ *
12
+ * This helps reduce obvious HTML/script injection attempts in plain text fields,
13
+ * but SQL injection must be prevented on the backend with parameterized queries.
12
14
  * @param input - The user input string to sanitize
13
- * @returns Sanitized string safe for storage/display
15
+ * @returns Sanitized string for client-side usage
14
16
  */
15
17
  export declare function sanitizeInput(input: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ablok-components",
3
3
  "private": false,
4
- "version": "0.3.11",
4
+ "version": "0.3.13",
5
5
  "scripts": {
6
6
  "dev": "vite --host",
7
7
  "story:dev": "histoire dev",