mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -08:00
ci: Fix linting issues (no-changelog)
This commit is contained in:
parent
926676e0eb
commit
8002213538
2
packages/cli/src/commands/Interfaces.d.ts
vendored
2
packages/cli/src/commands/Interfaces.d.ts
vendored
|
@ -21,7 +21,7 @@ interface IExecutionResult {
|
|||
finished: boolean;
|
||||
executionStatus: ExecutionStatus;
|
||||
error?: string;
|
||||
changes?: string;
|
||||
changes?: object;
|
||||
coveredNodes: {
|
||||
[nodeType: string]: number;
|
||||
};
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
import fs from 'fs';
|
||||
import os from 'os';
|
||||
import { flags } from '@oclif/command';
|
||||
import type { ITaskData } from 'n8n-workflow';
|
||||
import { sleep } from 'n8n-workflow';
|
||||
import type { IRun, ITaskData } from 'n8n-workflow';
|
||||
import { jsonParse, sleep } from 'n8n-workflow';
|
||||
import { sep } from 'path';
|
||||
import { diff } from 'json-diff';
|
||||
import pick from 'lodash/pick';
|
||||
|
@ -778,9 +778,9 @@ export class ExecuteBatch extends BaseCommand {
|
|||
}${workflowData.id}-snapshot.json`;
|
||||
if (fs.existsSync(fileName)) {
|
||||
const contents = fs.readFileSync(fileName, { encoding: 'utf-8' });
|
||||
const expected = JSON.parse(contents);
|
||||
const recieved = JSON.parse(serializedData);
|
||||
const changes = diff(expected, recieved, { keysOnly: true });
|
||||
const expected = jsonParse<IRun>(contents);
|
||||
const received = jsonParse<IRun>(serializedData);
|
||||
const changes = diff(expected, received, { keysOnly: true }) as object;
|
||||
|
||||
if (changes !== undefined) {
|
||||
// If we had only additions with no removals
|
||||
|
|
|
@ -102,7 +102,7 @@ export class Sendy implements INodeType {
|
|||
};
|
||||
|
||||
if (brandId) {
|
||||
body.brand_id = brandId as string;
|
||||
body.brand_id = brandId;
|
||||
}
|
||||
|
||||
if (additionalFields.plainText) {
|
||||
|
|
|
@ -234,10 +234,11 @@ export const activityFields: INodeProperties[] = [
|
|||
'Identifier for the gear associated with the activity. ‘none’ clears gear from activity.',
|
||||
},
|
||||
{
|
||||
displayName: 'Mute activity',
|
||||
displayName: 'Mute Activity',
|
||||
name: 'hide_from_home',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
|
||||
description: 'Do not publish to Home or Club feeds',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ export const defaultWebhookDescription: IWebhookDescription = {
|
|||
};
|
||||
|
||||
export const credentialsProperty = (
|
||||
propertyName: string = 'authentication',
|
||||
propertyName = 'authentication',
|
||||
): INodeTypeDescription['credentials'] => [
|
||||
{
|
||||
name: 'httpBasicAuth',
|
||||
|
@ -38,9 +38,7 @@ export const credentialsProperty = (
|
|||
},
|
||||
];
|
||||
|
||||
export const authenticationProperty = (
|
||||
propertyName: string = 'authentication',
|
||||
): INodeProperties => ({
|
||||
export const authenticationProperty = (propertyName = 'authentication'): INodeProperties => ({
|
||||
displayName: 'Authentication',
|
||||
name: propertyName,
|
||||
type: 'options',
|
||||
|
|
Loading…
Reference in a new issue