refactor: Format nodes-base package (A-F) (#3800)

* 🔨 prettier formated nodes - A

* 🔨 prettier formated nodes - B

*  prettier formated nodes - C

*  prettier formated nodes - D

*  prettier formated nodes - E-F

* 🎨 Adjust nodes-base formatting command (#3805)

* Format additional files in nodes A-F (#3811)

*  fixes

* 🎨 Add Mindee to ignored dirs

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
Michael Kret
2022-08-01 23:47:55 +03:00
committed by GitHub
parent 2c17e6f3ca
commit 0ecbb4a19d
411 changed files with 12906 additions and 20148 deletions

View File

@@ -1,10 +1,6 @@
import {
createHash,
} from 'crypto';
import { createHash } from 'crypto';
import {
OptionsWithUri,
} from 'request';
import { OptionsWithUri } from 'request';
import {
IExecuteFunctions,
@@ -14,16 +10,9 @@ import {
IWebhookFunctions,
} from 'n8n-core';
import {
ICredentialDataDecryptedObject,
IDataObject,
NodeApiError,
} from 'n8n-workflow';
import { ICredentialDataDecryptedObject, IDataObject, NodeApiError } from 'n8n-workflow';
import {
flow,
omit,
} from 'lodash';
import { flow, omit } from 'lodash';
import {
AddressFixedCollection,
@@ -36,7 +25,12 @@ import {
* Make an authenticated API request to Copper.
*/
export async function copperApiRequest(
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions | IWebhookFunctions,
this:
| IHookFunctions
| IExecuteFunctions
| IExecuteSingleFunctions
| ILoadOptionsFunctions
| IWebhookFunctions,
method: string,
resource: string,
body: IDataObject = {},
@@ -44,7 +38,7 @@ export async function copperApiRequest(
uri = '',
option: IDataObject = {},
) {
const credentials = await this.getCredentials('copperApi') as { apiKey: string, email: string };
const credentials = (await this.getCredentials('copperApi')) as { apiKey: string; email: string };
let options: OptionsWithUri = {
headers: {
@@ -77,7 +71,6 @@ export async function copperApiRequest(
}
}
/**
* Creates a secret from the credentials
*