@zaclinley/dsh-mailharbor 0.2.1 → 0.3.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/CHANGELOG.md +15 -0
- package/README.md +38 -21
- package/README.zh.md +31 -15
- package/lib/client.js +649 -80
- package/lib/client.js.map +3 -3
- package/lib/index.js +519 -64
- package/lib/index.js.map +4 -4
- package/package.json +3 -2
- package/scripts/migrate-legacy.mjs +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zaclinley/dsh-mailharbor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "MailHarbor: a multi-account IMAP/SMTP mail workspace for DeepSeek Harness with local backup, AI search and compose, CalDAV tasks and reports.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -84,7 +84,8 @@
|
|
|
84
84
|
"changeset": "changeset",
|
|
85
85
|
"version": "changeset version && node scripts/sync-version.mjs",
|
|
86
86
|
"release": "npm run check && npm publish",
|
|
87
|
-
"release:ci": "changeset publish"
|
|
87
|
+
"release:ci": "changeset publish",
|
|
88
|
+
"seed:demo": "node scripts/seed-demo.mjs"
|
|
88
89
|
},
|
|
89
90
|
"dependencies": {
|
|
90
91
|
"imapflow": "^2.11.0",
|
|
@@ -66,10 +66,11 @@ function backupFile(file) {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
function atomicWrite(file, data) {
|
|
69
|
+
if (dryRun) return
|
|
69
70
|
mkdirSync(dirname(file), { recursive: true })
|
|
70
71
|
const temp = `${file}.${String(process.pid)}.tmp`
|
|
71
72
|
writeFileSync(temp, `${JSON.stringify(data, null, 2)}\n`, { mode: 0o600 })
|
|
72
|
-
|
|
73
|
+
renameSync(temp, file)
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
function accountId(email, taken) {
|