π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Pin zip.js version to not deal with type errors
Manav Rathia21836c3b9cc
diff --git a/apps/photos/package.json b/apps/photos/package.jsonindex 30adab36df..60ee807c9e 100644--- a/apps/photos/package.json+++ b/apps/photos/package.json@@ -20,7 +20,7 @@"@tensorflow/tfjs-converter": "^4.10.0","@tensorflow/tfjs-core": "^4.10.0","@tensorflow/tfjs-tflite": "0.0.1-alpha.7",- "@zip.js/zip.js": "^2.4.2",+ "@zip.js/zip.js": "2.4.2","bip39": "^3.0.4","blazeface-back": "^0.0.9","bootstrap": "^4.5.2",diff --git a/apps/photos/src/utils/machineLearning/mldataExport.ts b/apps/photos/src/utils/machineLearning/mldataExport.tsindex 65a6c00bc1..ee9e6db503 100644--- a/apps/photos/src/utils/machineLearning/mldataExport.ts+++ b/apps/photos/src/utils/machineLearning/mldataExport.ts@@ -5,7 +5,6 @@ import { CACHES } from '@ente/shared/storage/cacheStorage/constants';import { CacheStorageService } from '@ente/shared/storage/cacheStorage';import { addLogLine } from '@ente/shared/logging';-// @ts-expect-error "TODO: Fix ML related type errors"class FileSystemWriter extends zip.Writer {writableStream: FileSystemWritableFileStream;@@ -24,7 +23,6 @@ class FileSystemWriter extends zip.Writer {}}-// @ts-expect-error "TODO: Fix ML related type errors"class FileReader extends zip.Reader {file: File;@@ -34,7 +32,6 @@ class FileReader extends zip.Reader {}public async init() {- // @ts-expect-error "TODO: Fix ML related type errors"this.size = this.file.size;// addLogLine('zipReader init, size: ', this.size);}@@ -55,7 +52,6 @@ export async function exportMlData(mlDataZipWritable: FileSystemWritableFileStream) {const zipWriter = new zip.ZipWriter(- // @ts-expect-error "TODO: Fix ML related type errors"new FileSystemWriter(mlDataZipWritable));@@ -74,7 +70,6 @@ export async function exportMlData(addLogLine('Ml Data Exported');}-// @ts-expect-error "TODO: Fix ML related type errors"async function exportMlDataToZipWriter(zipWriter: zip.ZipWriter) {const mlDbData = await mlIDbStorage.getAllMLData();const faceClusteringResults =@@ -120,7 +115,6 @@ async function exportMlDataToZipWriter(zipWriter: zip.ZipWriter) {}}export async function importMlData(mlDataZipFile: File) {- // @ts-expect-error "TODO: Fix ML related type errors"const zipReader = new zip.ZipReader(new FileReader(mlDataZipFile));try {@@ -132,7 +126,6 @@ export async function importMlData(mlDataZipFile: File) {addLogLine('ML Data Imported');}-// @ts-expect-error "TODO: Fix ML related type errors"async function importMlDataFromZipReader(zipReader: zip.ZipReader) {const zipEntries = await zipReader.getEntries();// addLogLine(zipEntries);diff --git a/yarn.lock b/yarn.lockindex 3775d355f5..00856d9a18 100644--- a/yarn.lock+++ b/yarn.lock@@ -1129,10 +1129,10 @@resolved "https://registry.yarnpkg.com/@webgpu/types/-/types-0.1.38.tgz#6fda4b410edc753d3213c648320ebcf319669020"integrity sha512-7LrhVKz2PRh+DD7+S+PVaFd5HxaWQvoMqBbsV9fNJO1pjUs1P8bM2vQVNfk+3URTqbuTI7gkXi0rfsN0IadoBA==-"@zip.js/zip.js@^2.4.2":- version "2.7.34"- resolved "https://registry.yarnpkg.com/@zip.js/zip.js/-/zip.js-2.7.34.tgz#2d5c84cffa4b6b27a94e8eb1bbb3682de6598bdf"- integrity sha512-SWAK+hLYKRHswhakNUirPYrdsflSFOxykUckfbWDcPvP8tjLuV5EWyd3GHV0hVaJLDps40jJnv8yQVDbWnQDfg==+"@zip.js/[email protected]":+ version "2.4.2"+ resolved "https://registry.yarnpkg.com/@zip.js/zip.js/-/zip.js-2.4.2.tgz#7c2d4b381c0f73dffa1d02ef630c4168ebd5cc4a"+ integrity sha512-D4xr9g7U625Q01lQASr9g1sQWEGhndyd+G3v3OvY/qH3pwaJDpbVDy+TO6yEq7c8teQdjjTiiBvlcQcVtT+itg==acorn-jsx@^5.3.2:version "5.3.2"