n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,17 +1,8 @@
import {
IExecuteFunctions,
IHookFunctions,
} from 'n8n-core';
import { IExecuteFunctions, IHookFunctions } from 'n8n-core';
import {
IDataObject,
NodeApiError,
NodeOperationError,
} from 'n8n-workflow';
import { IDataObject, NodeApiError, NodeOperationError } from 'n8n-workflow';
import {
OptionsWithUri,
} from 'request';
import { OptionsWithUri } from 'request';
/**
* Make an API request to Sms77
@@ -22,7 +13,14 @@ import {
* @param {object | undefined} data
* @returns {Promise<any>}
*/
export async function sms77ApiRequest(this: IHookFunctions | IExecuteFunctions, method: string, endpoint: string, body: IDataObject, qs: IDataObject = {}): Promise<any> { // tslint:disable-line:no-any
export async function sms77ApiRequest(
this: IHookFunctions | IExecuteFunctions,
method: string,
endpoint: string,
body: IDataObject,
qs: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> {
const options: OptionsWithUri = {
headers: {
SentWith: 'n8n',
@@ -41,7 +39,9 @@ export async function sms77ApiRequest(this: IHookFunctions | IExecuteFunctions,
const response = await this.helpers.requestWithAuthentication.call(this, 'sms77Api', options);
if (response.success !== '100') {
throw new NodeApiError(this.getNode(), response, { message: 'Invalid sms77 credentials or API error!' });
throw new NodeApiError(this.getNode(), response, {
message: 'Invalid sms77 credentials or API error!',
});
}
return response;