@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.
|
|
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
|
|
116
|
+
return FILE_CONSTANTS.ALLOWED_EXTENSIONS.includes(extension as typeof FILE_CONSTANTS.ALLOWED_EXTENSIONS[number]);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
/**
|