@axium/email 0.1.2 → 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.
@@ -1,8 +1 @@
1
- import en from '../../locales/en.json';
2
1
  import '../common.js';
3
- type en = typeof en;
4
- declare module '@axium/client/locales' {
5
- interface Locale extends en {
6
- }
7
- }
8
- export {};
@@ -1,10 +1,8 @@
1
- import { extendLocale, text } from '@axium/client';
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/lib/tsconfig.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "moduleResolution": "Bundler",
8
8
  "types": ["@sveltejs/kit"]
9
9
  },
10
- "include": ["**/*.svelte", "**/*.ts"],
10
+ "include": ["**/*.svelte", "**/*.ts", "../src/.*.ts", "../../client/dist/.*.ts"],
11
11
  "exclude": [],
12
12
  "references": [{ "path": ".." }]
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/email",
3
- "version": "0.1.2",
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.33.0",
42
- "@axium/core": ">=0.36.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": "^4.13.3",
52
- "postal-mime": "^2.7.5",
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",
@@ -8,6 +8,6 @@
8
8
  "rootDir": "..",
9
9
  "types": ["@sveltejs/kit"]
10
10
  },
11
- "include": ["**/*", "../lib/*"],
11
+ "include": ["**/*", "../lib/*", "../src/.*.ts", "../../client/dist/.*.ts"],
12
12
  "references": [{ "path": ".." }]
13
13
  }