Skip to content

Commit d5e0d4b

Browse files
fix: required community node verification changes
1 parent 97ede37 commit d5e0d4b

File tree

3 files changed

+0
-45
lines changed

3 files changed

+0
-45
lines changed

nodes/ZeroBounce/ZeroBounce.node.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,13 @@ export class ZeroBounce implements INodeType {
3333
inputs: [NodeConnectionTypes.Main],
3434
outputs: [NodeConnectionTypes.Main],
3535
usableAsTool: true,
36-
codex: {
37-
categories: ['Data Validation', 'Email Verification'],
38-
subcategories: { 'Data Validation': ['Email'] },
39-
},
4036
documentationUrl: 'https://www.zerobounce.net/docs/',
4137
credentials: [
4238
{
4339
name: Credentials.ZeroBounceApi,
4440
required: true,
4541
},
4642
],
47-
requestDefaults: {
48-
headers: {
49-
Accept: 'application/json',
50-
'Content-Type': 'application/json',
51-
},
52-
},
5343
properties: [
5444
// eslint-disable-next-line n8n-nodes-base/node-param-default-missing
5545
{

nodes/ZeroBounce/utils/request.utils.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,6 @@ export interface IRequestBody {
1717
api_key?: string;
1818
}
1919

20-
/**
21-
* Converts a FormData or URLSearchParams instance into a plain object suitable for safe logging.
22-
* File values are replaced with metadata (name, type, size).
23-
*/
24-
function extractFormDataSummary(formData: FormData | URLSearchParams): IDataObject {
25-
const values: IDataObject = {};
26-
for (const [key, value] of formData.entries()) {
27-
if (value instanceof File) {
28-
values[key] = {
29-
filename: value.name,
30-
type: value.type,
31-
size: value.size,
32-
};
33-
} else {
34-
values[key] = value;
35-
}
36-
}
37-
return values;
38-
}
39-
4020
/**
4121
* Sends an authenticated request to the ZeroBounce API with standardized logging.
4222
* Handles both JSON and FormData payloads.
@@ -54,11 +34,9 @@ export async function zbRequest(
5434
requestOptions.returnFullResponse = true;
5535

5636
const method = (requestOptions.method ?? 'GET').toUpperCase();
57-
const logMessage = `ZeroBounce Request: ${requestOptions.method} ${requestOptions.baseURL}${requestOptions.url}`;
5837

5938
switch (method) {
6039
case 'GET':
61-
context.logger.debug(`${logMessage} queryParams='${JSON.stringify(requestOptions.qs ?? {})}'`);
6240
break;
6341

6442
case 'POST':
@@ -68,16 +46,6 @@ export async function zbRequest(
6846
'Either a body or formData must be provided for a POST request.',
6947
);
7048
}
71-
72-
if (requestOptions.body instanceof FormData) {
73-
const formData = extractFormDataSummary(requestOptions.body);
74-
context.logger.debug(`${logMessage} formData='${JSON.stringify(formData)}'`);
75-
} else if (requestOptions.body instanceof URLSearchParams) {
76-
const urlSearchParams = extractFormDataSummary(requestOptions.body);
77-
context.logger.debug(`${logMessage} urlSearchParams='${JSON.stringify(urlSearchParams)}'`);
78-
} else {
79-
context.logger.debug(`${logMessage} body='${JSON.stringify(requestOptions.body ?? {})}'`);
80-
}
8149
break;
8250

8351
default:

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,5 @@
5555
},
5656
"peerDependencies": {
5757
"n8n-workflow": "*"
58-
},
59-
"overrides": {
60-
"form-data": "4.0.4"
6158
}
6259
}

0 commit comments

Comments
 (0)