@tutao/node-mimimi 336.260317.0 → 338.260317.0
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": "@tutao/node-mimimi",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "338.260317.0",
|
|
4
4
|
"main": "./dist/binding.js",
|
|
5
5
|
"types": "./dist/binding.d.ts",
|
|
6
6
|
"napi": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@tutao/otest": "
|
|
16
|
+
"@tutao/otest": "338.260317.0",
|
|
17
17
|
"@napi-rs/cli": "3.0.0-alpha.68",
|
|
18
18
|
"typescript": "5.8.3",
|
|
19
19
|
"zx": "8.6.1"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"version": "napi version"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@tutao/node-mimimi-win32-x64-msvc": "
|
|
34
|
-
"@tutao/node-mimimi-linux-x64-gnu": "
|
|
35
|
-
"@tutao/node-mimimi-darwin-universal": "
|
|
33
|
+
"@tutao/node-mimimi-win32-x64-msvc": "338.260317.0",
|
|
34
|
+
"@tutao/node-mimimi-linux-x64-gnu": "338.260317.0",
|
|
35
|
+
"@tutao/node-mimimi-darwin-universal": "338.260317.0"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -2,10 +2,10 @@ use crate::importer::importable_mail::KeyedImportableMailAttachment;
|
|
|
2
2
|
use crate::importer::messages::MailImportErrorMessage;
|
|
3
3
|
use crate::importer::ImportEssential;
|
|
4
4
|
use crate::reduce_to_chunks::{KeyedImportMailData, MailUploadDataWithAttachment};
|
|
5
|
+
use crypto_primitives::aes;
|
|
6
|
+
use crypto_primitives::key::GenericAesKey;
|
|
5
7
|
use crypto_primitives::randomizer_facade::RandomizerFacade;
|
|
6
8
|
use tutasdk::blobs::blob_facade::FileData;
|
|
7
|
-
use tutasdk::crypto::aes;
|
|
8
|
-
use tutasdk::crypto::key::GenericAesKey;
|
|
9
9
|
use tutasdk::entities::generated::sys::BlobReferenceTokenWrapper;
|
|
10
10
|
use tutasdk::entities::generated::tutanota::ImportAttachment;
|
|
11
11
|
use tutasdk::tutanota_constants::ArchiveDataType;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
use crate::importer::ImportEssential;
|
|
2
|
+
use crypto_primitives::aes;
|
|
3
|
+
use crypto_primitives::key::GenericAesKey;
|
|
2
4
|
use extend_mail_parser::MakeString;
|
|
3
5
|
use mail_parser::decoders::base64::base64_decode;
|
|
4
6
|
use mail_parser::decoders::quoted_printable::quoted_printable_decode;
|
|
@@ -8,8 +10,6 @@ use std::borrow::Cow;
|
|
|
8
10
|
use std::collections::HashSet;
|
|
9
11
|
use std::path::PathBuf;
|
|
10
12
|
use tutasdk::blobs::blob_facade::FileData;
|
|
11
|
-
use tutasdk::crypto::aes;
|
|
12
|
-
use tutasdk::crypto::key::GenericAesKey;
|
|
13
13
|
use tutasdk::date::DateTime;
|
|
14
14
|
use tutasdk::entities::generated::sys::BlobReferenceTokenWrapper;
|
|
15
15
|
use tutasdk::entities::generated::tutanota::{
|
package/src/importer.rs
CHANGED
|
@@ -2,6 +2,9 @@ use crate::importer::importable_mail::ImportableMailWithPath;
|
|
|
2
2
|
use crate::reduce_to_chunks::{KeyedImportMailData, MailUploadDataWithAttachment};
|
|
3
3
|
use base64::prelude::BASE64_URL_SAFE_NO_PAD;
|
|
4
4
|
use base64::Engine;
|
|
5
|
+
use crypto_primitives::aes;
|
|
6
|
+
use crypto_primitives::aes::Iv;
|
|
7
|
+
use crypto_primitives::key::GenericAesKey;
|
|
5
8
|
use crypto_primitives::randomizer_facade::RandomizerFacade;
|
|
6
9
|
use file_reader::FileImport;
|
|
7
10
|
use std::ffi::OsStr;
|
|
@@ -9,9 +12,7 @@ use std::fs;
|
|
|
9
12
|
use std::fs::DirEntry;
|
|
10
13
|
use std::path::{Path, PathBuf};
|
|
11
14
|
use std::sync::Arc;
|
|
12
|
-
use tutasdk::crypto::
|
|
13
|
-
use tutasdk::crypto::aes::Iv;
|
|
14
|
-
use tutasdk::crypto::key::{GenericAesKey, VersionedAesKey};
|
|
15
|
+
use tutasdk::crypto::key::VersionedAesKey;
|
|
15
16
|
use tutasdk::entities::generated::sys::StringWrapper;
|
|
16
17
|
|
|
17
18
|
use crate::importer::attachment_importer::PerChunkAttachmentImporter;
|
package/src/reduce_to_chunks.rs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
use crate::importer::importable_mail::{ImportableMailAttachment, ImportableMailWithPath};
|
|
2
|
+
use crypto_primitives::aes;
|
|
3
|
+
use crypto_primitives::key::GenericAesKey;
|
|
2
4
|
use crypto_primitives::randomizer_facade::RandomizerFacade;
|
|
3
5
|
use std::iter::Peekable;
|
|
4
6
|
use std::path::PathBuf;
|
|
5
|
-
use tutasdk::crypto::
|
|
6
|
-
|
|
7
|
+
use tutasdk::crypto::key::VersionedAesKey;
|
|
8
|
+
|
|
7
9
|
use tutasdk::entities::generated::tutanota::ImportMailData;
|
|
8
10
|
|
|
9
11
|
pub struct MailUploadDataWithAttachment {
|