mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user