👕 Fix lint issue

This commit is contained in:
Jan Oberhauser 2022-07-13 10:38:12 +02:00
parent b67ec19c8d
commit 0ad089ffb6
12 changed files with 17 additions and 11 deletions

View file

@ -60,8 +60,8 @@ export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | I
return JSON.parse(await this.helpers.request!(options)); return JSON.parse(await this.helpers.request!(options));
} catch (error) { } catch (error) {
const errorMessage = const errorMessage =
(error.response && error.response.body && error.response.body.message) || (error.response && error.response.body && error.response.body.message) ||
(error.response && error.response.body && error.response.body.Message) || (error.response && error.response.body && error.response.body.Message) ||
error.message; error.message;
if (error.statusCode === 403) { if (error.statusCode === 403) {
if (errorMessage === 'The security token included in the request is invalid.') { if (errorMessage === 'The security token included in the request is invalid.') {

View file

@ -20,11 +20,13 @@ export const searchOperations: INodeProperties[] = [
name: 'Query', name: 'Query',
value: 'query', value: 'query',
description: 'Search for records by entering search queries of your choice', description: 'Search for records by entering search queries of your choice',
action: 'Query a search',
}, },
{ {
name: 'Lookup', name: 'Lookup',
value: 'lookup', value: 'lookup',
description: 'Search for the name or email address of records', description: 'Search for the name or email address of records',
action: 'Lookup a search',
}, },
], ],
default: 'query', default: 'query',

View file

@ -1750,7 +1750,7 @@ export class Github implements INodeType {
throw new NodeOperationError( throw new NodeOperationError(
this.getNode(), this.getNode(),
`No binary data property "${binaryPropertyName}" does not exists on item!`, `No binary data property "${binaryPropertyName}" does not exists on item!`,
{ itemIndex: i } { itemIndex: i },
); );
} }

View file

@ -66,6 +66,7 @@ export const campaignOperations: INodeProperties[] = [
], ],
}, },
}, },
action: 'Get all campaigns',
}, },
{ {
name: 'Get', name: 'Get',
@ -114,6 +115,7 @@ export const campaignOperations: INodeProperties[] = [
], ],
}, },
}, },
action: 'Get a campaign',
}, },
], ],
default: 'getAll', default: 'getAll',

View file

@ -330,7 +330,7 @@ export class GoogleCalendar implements INodeType {
additionalFields.repeatUntil additionalFields.repeatUntil
) { ) {
throw new NodeOperationError(this.getNode(), throw new NodeOperationError(this.getNode(),
`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, { itemIndex: i } `You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, { itemIndex: i },
); );
} }
if (additionalFields.repeatFrecuency) { if (additionalFields.repeatFrecuency) {
@ -577,7 +577,7 @@ export class GoogleCalendar implements INodeType {
} else { } else {
if (updateFields.repeatHowManyTimes && updateFields.repeatUntil) { if (updateFields.repeatHowManyTimes && updateFields.repeatUntil) {
throw new NodeOperationError(this.getNode(), throw new NodeOperationError(this.getNode(),
`You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, { itemIndex: i } `You can set either 'Repeat How Many Times' or 'Repeat Until' but not both`, { itemIndex: i },
); );
} }
if (updateFields.repeatFrecuency) { if (updateFields.repeatFrecuency) {

View file

@ -241,7 +241,7 @@ export class GooglePerspective implements INodeType {
if (!attributes.length) { if (!attributes.length) {
throw new NodeOperationError( throw new NodeOperationError(
this.getNode(), this.getNode(),
'Please enter at least one attribute to analyze.', { itemIndex: i } 'Please enter at least one attribute to analyze.', { itemIndex: i },
); );
} }

View file

@ -2200,7 +2200,7 @@ export class Hubspot implements INodeType {
if (!Object.keys(metadata).length) { if (!Object.keys(metadata).length) {
throw new NodeOperationError( throw new NodeOperationError(
this.getNode(), this.getNode(),
`At least one metadata field needs to set`, { itemIndex: i } `At least one metadata field needs to set`, { itemIndex: i },
); );
} }

View file

@ -194,7 +194,7 @@ export class Iterable implements INodeType {
if (this.continueOnFail() === false) { if (this.continueOnFail() === false) {
if (responseData.code !== 'Success') { if (responseData.code !== 'Success') {
throw new NodeOperationError(this.getNode(), throw new NodeOperationError(this.getNode(),
`Iterable error response [400]: ${responseData.msg}`, { itemIndex: i } `Iterable error response [400]: ${responseData.msg}`, { itemIndex: i },
); );
} }
} }

View file

@ -140,7 +140,7 @@ export class Marketstack implements INodeType {
if (!dateFrom || !dateTo) { if (!dateFrom || !dateTo) {
throw new NodeOperationError( throw new NodeOperationError(
this.getNode(), this.getNode(),
'Please enter a start and end date to filter by timeframe.', { itemIndex: i } 'Please enter a start and end date to filter by timeframe.', { itemIndex: i },
); );
} }
endpoint = '/eod'; endpoint = '/eod';

View file

@ -204,7 +204,7 @@ export class Raindrop implements INodeType {
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject; const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
if (isEmpty(updateFields)) { if (isEmpty(updateFields)) {
throw new NodeOperationError(this.getNode(), `Please enter at least one field to update for the ${resource}.`), { itemIndex: i }; throw new NodeOperationError(this.getNode(), `Please enter at least one field to update for the ${resource}.`, { itemIndex: i });
} }
Object.assign(body, updateFields); Object.assign(body, updateFields);

View file

@ -73,6 +73,7 @@ export class Redis implements INodeType {
name: 'Pop', name: 'Pop',
value: 'pop', value: 'pop',
description: 'Pop data from a redis list', description: 'Pop data from a redis list',
action: 'Pop data from a redis list',
}, },
{ {
name: 'Publish', name: 'Publish',
@ -84,6 +85,7 @@ export class Redis implements INodeType {
name: 'Push', name: 'Push',
value: 'push', value: 'push',
description: 'Push data to a redis list', description: 'Push data to a redis list',
action: 'Push data to a redis list',
}, },
{ {
name: 'Set', name: 'Set',

View file

@ -144,7 +144,7 @@ export class UrlScanIo implements INodeType {
if (tags.length > 10) { if (tags.length > 10) {
throw new NodeOperationError( throw new NodeOperationError(
this.getNode(), this.getNode(),
'Please enter at most 10 tags', { itemIndex: i } 'Please enter at most 10 tags', { itemIndex: i },
); );
} }