@axium/email 0.1.1 → 0.1.3
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/client/web_hook.d.ts +0 -7
- package/dist/client/web_hook.js +1 -3
- package/dist/server/cli.js +2 -1
- package/lib/tsconfig.json +1 -1
- package/package.json +6 -5
- package/routes/tsconfig.json +1 -1
package/dist/client/web_hook.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { text } from '@axium/client';
|
|
2
2
|
import { addListener, connect } from '@axium/client/socket';
|
|
3
3
|
import { toast } from '@axium/client/toast';
|
|
4
|
-
import en from '../../locales/en.json' with { type: 'json' };
|
|
5
4
|
import '../common.js';
|
|
6
5
|
await connect().catch(() => null);
|
|
7
|
-
extendLocale('en', en);
|
|
8
6
|
addListener('email.received', email => {
|
|
9
7
|
if (email.folder != 'spam')
|
|
10
8
|
void toast('info', text('email.toast_received', { name: email.from.name || email.from.address }));
|
package/dist/server/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { config, hostname } from '@axium/server/config';
|
|
2
|
-
import { database } from '@axium/server/database';
|
|
2
|
+
import { connect, database } from '@axium/server/database';
|
|
3
3
|
import { program } from 'commander';
|
|
4
4
|
import * as io from 'ioium/node';
|
|
5
5
|
import { createPrivateKey, createPublicKey } from 'node:crypto';
|
|
@@ -41,6 +41,7 @@ cli.command('queue')
|
|
|
41
41
|
.option('-a, --all', 'Include delivered and failed messages', false)
|
|
42
42
|
.option('--retry', 'Retry failed messages now', false)
|
|
43
43
|
.action(async (opt) => {
|
|
44
|
+
connect();
|
|
44
45
|
if (opt.retry) {
|
|
45
46
|
const retried = await database
|
|
46
47
|
.updateTable('email_outbound')
|
package/lib/tsconfig.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/email",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"description": "Email for Axium",
|
|
6
6
|
"funding": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"build": "tsc"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@axium/client": ">=0.
|
|
42
|
-
"@axium/core": ">=0.
|
|
41
|
+
"@axium/client": ">=0.37.0",
|
|
42
|
+
"@axium/core": ">=0.39.0",
|
|
43
43
|
"@axium/server": ">=0.51.0",
|
|
44
44
|
"@sveltejs/kit": "^2.27.3",
|
|
45
45
|
"commander": "^15.0.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"utilium": "^3.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"mailauth": "^
|
|
52
|
-
"postal-mime": "^
|
|
51
|
+
"mailauth": "^5.0.2",
|
|
52
|
+
"postal-mime": "^3.0.0",
|
|
53
53
|
"smtp-server": "^3.19.2",
|
|
54
54
|
"zod": "^4.0.5"
|
|
55
55
|
},
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@types/smtp-server": "^3.5.13"
|
|
58
58
|
},
|
|
59
59
|
"axium": {
|
|
60
|
+
"locales": "locales",
|
|
60
61
|
"server": {
|
|
61
62
|
"routes": "routes",
|
|
62
63
|
"hooks": "./dist/server/hooks.js",
|