@umituz/react-native-filesystem 2.1.5 → 2.1.6

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.5",
3
+ "version": "2.1.6",
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",
@@ -113,7 +113,7 @@ export class FileUtils {
113
113
  */
114
114
  static isAllowedExtension(filename: string): boolean {
115
115
  const extension = this.getFileExtension(filename).toLowerCase();
116
- return (FILE_CONSTANTS.ALLOWED_EXTENSIONS as readonly string[]).includes(extension);
116
+ return FILE_CONSTANTS.ALLOWED_EXTENSIONS.includes(extension as typeof FILE_CONSTANTS.ALLOWED_EXTENSIONS[number]);
117
117
  }
118
118
 
119
119
  /**
@@ -21,7 +21,6 @@ export async function getFileInfo(uri: string): Promise<FileInfo | null> {
21
21
 
22
22
  return {
23
23
  uri,
24
- name: file.name,
25
24
  size: file.size || 0,
26
25
  exists: file.exists,
27
26
  isDirectory: false,