n8n-nodes-mailveri 1.0.0 → 1.0.1
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/README.md +2 -2
- package/dist/nodes/MailVeri/MailVeri.node.js +30 -15
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Official [MailVeri](https://mailveri.com) community node for [n8n](https://n8n.i
|
|
|
12
12
|
|
|
13
13
|
## Installation (Self-Hosted n8n)
|
|
14
14
|
|
|
15
|
-
Requires
|
|
15
|
+
Requires **n8n v1.46+** on Node.js 18.17+ (themed icon support; using MailVeri as an AI Agent tool requires n8n v1.50+ with `N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true` on self-hosted n8n).
|
|
16
16
|
|
|
17
17
|
1. Open your n8n instance and go to **Settings → Community Nodes**.
|
|
18
18
|
2. Click **Install**.
|
|
@@ -43,7 +43,7 @@ N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
|
|
|
43
43
|
| `quality_score` | number | Deliverability score (`0–100`) |
|
|
44
44
|
| `is_forwarding` | boolean | Whether the domain is a forwarding relay |
|
|
45
45
|
| `credits_used` | number | Credits deducted (`1` on billed statuses, `0` on `UNKNOWN`) |
|
|
46
|
-
| `balance` | number | Remaining account credits after the check |
|
|
46
|
+
| `balance` | number or null | Remaining account credits after the check |
|
|
47
47
|
| `message` | string | Human-readable verification summary |
|
|
48
48
|
|
|
49
49
|
### Recommended Workflow Routing
|
|
@@ -7,7 +7,7 @@ const DEFAULT_TIMEOUT_MS = 25000;
|
|
|
7
7
|
const MIN_RETRY_AFTER_MS = 1000;
|
|
8
8
|
const MAX_RETRY_AFTER_MS = 5000;
|
|
9
9
|
const DEFAULT_RETRY_AFTER_MS = 2000;
|
|
10
|
-
const USER_AGENT = 'n8n-nodes-mailveri/1.0.
|
|
10
|
+
const USER_AGENT = 'n8n-nodes-mailveri/1.0.1';
|
|
11
11
|
const MAIN_CONNECTION = n8n_workflow_1.NodeConnectionTypes?.Main ??
|
|
12
12
|
'main';
|
|
13
13
|
function normalizeBaseUrl(rawBaseUrl, node, itemIndex) {
|
|
@@ -64,7 +64,10 @@ async function requestWithRetry(context, options, itemIndex, sleepFn) {
|
|
|
64
64
|
}
|
|
65
65
|
catch (error) {
|
|
66
66
|
if (error instanceof n8n_workflow_1.NodeOperationError) {
|
|
67
|
-
throw error
|
|
67
|
+
throw new n8n_workflow_1.NodeOperationError(context.getNode(), error, {
|
|
68
|
+
itemIndex,
|
|
69
|
+
message: error.message,
|
|
70
|
+
});
|
|
68
71
|
}
|
|
69
72
|
if (attempt === 0 && isRetryableRateLimit(error)) {
|
|
70
73
|
await sleepFn(parseRetryAfterMs(error));
|
|
@@ -153,7 +156,7 @@ class MailVeri {
|
|
|
153
156
|
this.description = {
|
|
154
157
|
displayName: 'MailVeri',
|
|
155
158
|
name: 'mailVeri',
|
|
156
|
-
icon: 'file:mailveri.svg',
|
|
159
|
+
icon: { light: 'file:mailveri.svg', dark: 'file:mailveri.svg' },
|
|
157
160
|
group: ['transform'],
|
|
158
161
|
version: 1,
|
|
159
162
|
subtitle: '={{$parameter["resource"] + ": " + $parameter["operation"]}}',
|
|
@@ -177,14 +180,14 @@ class MailVeri {
|
|
|
177
180
|
type: 'options',
|
|
178
181
|
noDataExpression: true,
|
|
179
182
|
options: [
|
|
180
|
-
{
|
|
181
|
-
name: 'Email',
|
|
182
|
-
value: 'email',
|
|
183
|
-
},
|
|
184
183
|
{
|
|
185
184
|
name: 'Account',
|
|
186
185
|
value: 'account',
|
|
187
186
|
},
|
|
187
|
+
{
|
|
188
|
+
name: 'Email',
|
|
189
|
+
value: 'email',
|
|
190
|
+
},
|
|
188
191
|
],
|
|
189
192
|
default: 'email',
|
|
190
193
|
},
|
|
@@ -251,8 +254,8 @@ class MailVeri {
|
|
|
251
254
|
default: {},
|
|
252
255
|
options: [
|
|
253
256
|
{
|
|
254
|
-
displayName: '
|
|
255
|
-
name: '
|
|
257
|
+
displayName: 'Fail on Invalid Syntax',
|
|
258
|
+
name: 'failOnInvalidSyntax',
|
|
256
259
|
type: 'boolean',
|
|
257
260
|
default: false,
|
|
258
261
|
displayOptions: {
|
|
@@ -261,11 +264,11 @@ class MailVeri {
|
|
|
261
264
|
'/operation': ['verify'],
|
|
262
265
|
},
|
|
263
266
|
},
|
|
264
|
-
description: 'Whether to
|
|
267
|
+
description: 'Whether to throw an error when an email fails syntax validation instead of returning status INVALID',
|
|
265
268
|
},
|
|
266
269
|
{
|
|
267
|
-
displayName: '
|
|
268
|
-
name: '
|
|
270
|
+
displayName: 'Include Input Fields',
|
|
271
|
+
name: 'includeInputFields',
|
|
269
272
|
type: 'boolean',
|
|
270
273
|
default: false,
|
|
271
274
|
displayOptions: {
|
|
@@ -274,10 +277,10 @@ class MailVeri {
|
|
|
274
277
|
'/operation': ['verify'],
|
|
275
278
|
},
|
|
276
279
|
},
|
|
277
|
-
description: 'Whether to
|
|
280
|
+
description: 'Whether to merge incoming item fields into the output JSON alongside MailVeri verification fields',
|
|
278
281
|
},
|
|
279
282
|
{
|
|
280
|
-
displayName: 'Timeout (
|
|
283
|
+
displayName: 'Timeout (Milliseconds)',
|
|
281
284
|
name: 'timeout',
|
|
282
285
|
type: 'number',
|
|
283
286
|
default: DEFAULT_TIMEOUT_MS,
|
|
@@ -386,7 +389,19 @@ class MailVeri {
|
|
|
386
389
|
}
|
|
387
390
|
continue;
|
|
388
391
|
}
|
|
389
|
-
|
|
392
|
+
if (error instanceof n8n_workflow_1.NodeApiError) {
|
|
393
|
+
throw new n8n_workflow_1.NodeApiError(node, error, {
|
|
394
|
+
itemIndex: i,
|
|
395
|
+
message: error.message,
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
if (error instanceof n8n_workflow_1.NodeOperationError) {
|
|
399
|
+
throw new n8n_workflow_1.NodeOperationError(node, error, {
|
|
400
|
+
itemIndex: i,
|
|
401
|
+
message: error.message,
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
throw new n8n_workflow_1.NodeOperationError(node, error, { itemIndex: i });
|
|
390
405
|
}
|
|
391
406
|
}
|
|
392
407
|
return [returnData];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-mailveri",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Official MailVeri community node for n8n — real-time email verification and credit balance checks ($59/100K, non-expiring credits).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"homepage": "https://mailveri.com/integrations/n8n",
|
|
17
17
|
"bugs": {
|
|
18
|
-
"url": "https://
|
|
18
|
+
"url": "https://github.com/mailveri/n8n-nodes-mailveri/issues"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/mailveri/n8n-nodes-mailveri.git"
|
|
19
23
|
},
|
|
20
24
|
"author": {
|
|
21
25
|
"name": "MailVeri",
|
|
@@ -48,7 +52,7 @@
|
|
|
48
52
|
"prepublishOnly": "npm test"
|
|
49
53
|
},
|
|
50
54
|
"peerDependencies": {
|
|
51
|
-
"n8n-workflow": "
|
|
55
|
+
"n8n-workflow": "*"
|
|
52
56
|
},
|
|
53
57
|
"devDependencies": {
|
|
54
58
|
"@types/node": "^22.0.0",
|