ci: Upgrade eslint, prettier, typescript, and some other dev tooling (no-changelog) (#8895)
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
committed by
GitHub
parent
117b57ccc5
commit
372d5c7d01
@@ -1,12 +1,10 @@
|
||||
import type { INodeTypes } from 'n8n-workflow';
|
||||
import nock from 'nock';
|
||||
import * as transport from '../../../../v2/transport';
|
||||
import { getResultNodeData, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
import type { WorkflowTestData } from '@test/nodes/types';
|
||||
import { executeWorkflow } from '@test/nodes/ExecuteWorkflow';
|
||||
|
||||
import nock from 'nock';
|
||||
|
||||
import * as transport from '../../../../v2/transport';
|
||||
|
||||
const microsoftApiRequestSpy = jest.spyOn(transport, 'microsoftApiRequest');
|
||||
|
||||
microsoftApiRequestSpy.mockImplementation(async (method: string) => {
|
||||
|
||||
@@ -10,6 +10,7 @@ import type {
|
||||
INodeTypeBaseDescription,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { oldVersionNotice } from '../../../../utils/descriptions';
|
||||
import {
|
||||
microsoftApiRequest,
|
||||
microsoftApiRequestAllItems,
|
||||
@@ -23,7 +24,6 @@ import { channelMessageFields, channelMessageOperations } from './ChannelMessage
|
||||
import { chatMessageFields, chatMessageOperations } from './ChatMessageDescription';
|
||||
|
||||
import { taskFields, taskOperations } from './TaskDescription';
|
||||
import { oldVersionNotice } from '../../../../utils/descriptions';
|
||||
|
||||
const versionDescription: INodeTypeDescription = {
|
||||
displayName: 'Microsoft Teams',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { INodeProperties, IExecuteFunctions, IDataObject } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { teamRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
teamRLC,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type INodeProperties, type IExecuteFunctions, NodeOperationError } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { channelRLC, teamRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [teamRLC, channelRLC];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type INodeProperties, type IExecuteFunctions, NodeOperationError } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { channelRLC, teamRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [teamRLC, channelRLC];
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { INodeProperties, IExecuteFunctions } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { returnAllOrLimit } from '@utils/descriptions';
|
||||
import { microsoftApiRequestAllItems } from '../../transport';
|
||||
import { teamRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { returnAllOrLimit } from '@utils/descriptions';
|
||||
|
||||
const properties: INodeProperties[] = [teamRLC, ...returnAllOrLimit];
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { INodeProperties, IExecuteFunctions, IDataObject } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { channelRLC, teamRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
teamRLC,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { INodeProperties, IExecuteFunctions, IDataObject } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { prepareMessage } from '../../helpers/utils';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { channelRLC, teamRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
teamRLC,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { INodeProperties, IExecuteFunctions } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { returnAllOrLimit } from '@utils/descriptions';
|
||||
import { microsoftApiRequestAllItems } from '../../transport';
|
||||
import { channelRLC, teamRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { returnAllOrLimit } from '@utils/descriptions';
|
||||
|
||||
const properties: INodeProperties[] = [teamRLC, channelRLC, ...returnAllOrLimit];
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { INodeProperties, IExecuteFunctions, IDataObject } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { prepareMessage } from '../../helpers/utils';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { chatRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
chatRLC,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type INodeProperties, type IExecuteFunctions, NodeOperationError } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { chatRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
chatRLC,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { INodeProperties, IExecuteFunctions } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { returnAllOrLimit } from '@utils/descriptions';
|
||||
import { microsoftApiRequestAllItems } from '../../transport';
|
||||
import { chatRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { returnAllOrLimit } from '@utils/descriptions';
|
||||
|
||||
const properties: INodeProperties[] = [chatRLC, ...returnAllOrLimit];
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { INodeProperties, IExecuteFunctions, IDataObject } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { DateTime } from 'luxon';
|
||||
import { bucketRLC, groupRLC, memberRLC, planRLC } from '../../descriptions';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { DateTime } from 'luxon';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
groupRLC,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { INodeProperties, IExecuteFunctions } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { INodeProperties, IExecuteFunctions } from 'n8n-workflow';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { INodeProperties, IExecuteFunctions, IDataObject } from 'n8n-workflow';
|
||||
import { DateTime } from 'luxon';
|
||||
import { bucketRLC, groupRLC, memberRLC, planRLC } from '../../descriptions';
|
||||
import { microsoftApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ export async function microsoftApiRequest(
|
||||
return await this.helpers.requestOAuth2.call(this, 'microsoftTeamsOAuth2Api', options);
|
||||
} catch (error) {
|
||||
const errorOptions: IDataObject = {};
|
||||
if (error.error && error.error.error) {
|
||||
if (error.error?.error) {
|
||||
const httpCode = error.statusCode;
|
||||
error = error.error.error;
|
||||
error.statusCode = httpCode;
|
||||
|
||||
Reference in New Issue
Block a user