@coreviz/sdk 1.0.15 → 1.0.17
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/dist/resize.native.js +1 -4
- package/package.json +1 -1
package/dist/resize.native.js
CHANGED
|
@@ -74,11 +74,8 @@ async function getImageSize(uri) {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
async function ensureLocalFileUri(input) {
|
|
77
|
-
const FileSystem = await Promise.resolve().then(() => __importStar(require('expo-file-system')));
|
|
77
|
+
const FileSystem = await Promise.resolve().then(() => __importStar(require('expo-file-system/legacy')));
|
|
78
78
|
const cacheDir = FileSystem.cacheDirectory;
|
|
79
|
-
if (!cacheDir) {
|
|
80
|
-
throw new Error("expo-file-system cacheDirectory is unavailable. Ensure you're running in an Expo environment with expo-file-system installed.");
|
|
81
|
-
}
|
|
82
79
|
// data URL -> write to cache
|
|
83
80
|
if (isDataUrl(input)) {
|
|
84
81
|
const format = getExtFromDataUrl(input);
|