@vulog/aima-notifier 1.2.37 → 1.2.39
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 +4 -4
- package/src/sendEmail.test.ts +5 -6
- package/tsconfig.json +1 -8
- package/vitest.config.ts +1 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulog/aima-notifier",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.39",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.cts",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"author": "Vulog",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vulog/aima-client": "1.2.
|
|
36
|
-
"@vulog/aima-core": "1.2.
|
|
35
|
+
"@vulog/aima-client": "1.2.39",
|
|
36
|
+
"@vulog/aima-core": "1.2.39"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"zod": "^3.
|
|
39
|
+
"zod": "^4.3.6"
|
|
40
40
|
},
|
|
41
41
|
"description": ""
|
|
42
42
|
}
|
package/src/sendEmail.test.ts
CHANGED
|
@@ -56,10 +56,10 @@ describe('sendEmail', () => {
|
|
|
56
56
|
await rejects.toSatisfy((error: any) => {
|
|
57
57
|
expect(error).toHaveProperty('cause');
|
|
58
58
|
expect(error.cause).toHaveLength(1);
|
|
59
|
-
expect(error.cause[0]).toHaveProperty('
|
|
59
|
+
expect(error.cause[0]).toHaveProperty('format');
|
|
60
60
|
expect(error.cause[0]).toHaveProperty('message');
|
|
61
|
-
expect(error.cause[0].
|
|
62
|
-
expect(error.cause[0].message).toBe('Invalid email');
|
|
61
|
+
expect(error.cause[0].format).toBe('email');
|
|
62
|
+
expect(error.cause[0].message).toBe('Invalid email address');
|
|
63
63
|
return true;
|
|
64
64
|
});
|
|
65
65
|
});
|
|
@@ -72,8 +72,8 @@ describe('sendEmail', () => {
|
|
|
72
72
|
await rejects.toSatisfy((error: any) => {
|
|
73
73
|
expect(error).toHaveProperty('cause');
|
|
74
74
|
expect(error.cause).toHaveLength(4);
|
|
75
|
-
expect(error.cause[0]).toHaveProperty('
|
|
76
|
-
expect(error.cause[0].
|
|
75
|
+
expect(error.cause[0]).toHaveProperty('code');
|
|
76
|
+
expect(error.cause[0].code).toBe('invalid_type');
|
|
77
77
|
return true;
|
|
78
78
|
});
|
|
79
79
|
});
|
|
@@ -92,7 +92,6 @@ describe('sendEmail', () => {
|
|
|
92
92
|
const cause = error.cause[0];
|
|
93
93
|
expect(cause.code).toBe('invalid_type');
|
|
94
94
|
expect(cause.expected).toBe('object');
|
|
95
|
-
expect(cause.received).toBe('null');
|
|
96
95
|
return true;
|
|
97
96
|
});
|
|
98
97
|
});
|
package/tsconfig.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
2
3
|
"include": ["src"],
|
|
3
4
|
"exclude": ["**/*.test.ts"],
|
|
4
5
|
"compilerOptions": {
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"target": "esnext",
|
|
7
|
-
"lib": ["esnext"],
|
|
8
|
-
"declaration": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"esModuleInterop": true,
|
|
13
6
|
"outDir": "dist",
|
|
14
7
|
"rootDir": "src"
|
|
15
8
|
}
|