@umituz/react-native-filesystem 2.1.4 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-filesystem",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "Domain-Driven Design filesystem utilities for React Native apps with build-time module loading and runtime file operations",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -27,6 +27,7 @@ export interface FileOperationResult {
27
27
  */
28
28
  export interface FileInfo {
29
29
  uri: string;
30
+ name?: string;
30
31
  size: number;
31
32
  exists: boolean;
32
33
  isDirectory: boolean;
@@ -112,7 +113,7 @@ export class FileUtils {
112
113
  */
113
114
  static isAllowedExtension(filename: string): boolean {
114
115
  const extension = this.getFileExtension(filename).toLowerCase();
115
- return FILE_CONSTANTS.ALLOWED_EXTENSIONS.includes(extension);
116
+ return (FILE_CONSTANTS.ALLOWED_EXTENSIONS as readonly string[]).includes(extension);
116
117
  }
117
118
 
118
119
  /**