mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor(core): Update rule typescript-eslint/no-unused-vars to not error when variable starts with _ (#4523)
* ⚡ rule and fixes * ⚡ clean up
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
import { URL } from 'url';
|
||||
|
||||
import { Request, sign } from 'aws4';
|
||||
|
||||
import { get } from 'lodash';
|
||||
|
||||
import { OptionsWithUri } from 'request';
|
||||
|
||||
import { parseString } from 'xml2js';
|
||||
|
||||
import {
|
||||
@@ -15,7 +9,7 @@ import {
|
||||
IWebhookFunctions,
|
||||
} from 'n8n-core';
|
||||
|
||||
import { IDataObject, IHttpRequestOptions, NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
import { IDataObject, IHttpRequestOptions, NodeApiError } from 'n8n-workflow';
|
||||
|
||||
import { pascalCase } from 'change-case';
|
||||
|
||||
@@ -25,10 +19,10 @@ export async function awsApiRequest(
|
||||
method: string,
|
||||
path: string,
|
||||
body?: string | Buffer | IDataObject,
|
||||
query: IDataObject = {},
|
||||
_query: IDataObject = {},
|
||||
headers?: object,
|
||||
option: IDataObject = {},
|
||||
region?: string,
|
||||
_region?: string,
|
||||
// tslint:disable-next-line:no-any
|
||||
): Promise<any> {
|
||||
const credentials = await this.getCredentials('aws');
|
||||
@@ -177,12 +171,6 @@ export async function awsApiRequestSOAPAllItems(
|
||||
return returnData;
|
||||
}
|
||||
|
||||
function queryToString(params: IDataObject) {
|
||||
return Object.keys(params)
|
||||
.map((key) => key + '=' + params[key])
|
||||
.join('&');
|
||||
}
|
||||
|
||||
export function keysTPascalCase(object: IDataObject) {
|
||||
const data: IDataObject = {};
|
||||
for (const key of Object.keys(object)) {
|
||||
|
||||
Reference in New Issue
Block a user