mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(Item Lists Node): Refactoring (#6575)
This commit is contained in:
@@ -2,8 +2,8 @@ import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow'
|
||||
import { VersionedNodeType } from 'n8n-workflow';
|
||||
|
||||
import { ItemListsV1 } from './V1/ItemListsV1.node';
|
||||
|
||||
import { ItemListsV2 } from './V2/ItemListsV2.node';
|
||||
import { ItemListsV3 } from './V3/ItemListsV3.node';
|
||||
|
||||
export class ItemLists extends VersionedNodeType {
|
||||
constructor() {
|
||||
@@ -14,7 +14,7 @@ export class ItemLists extends VersionedNodeType {
|
||||
group: ['input'],
|
||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: 'Helper for working with lists of items and transforming arrays',
|
||||
defaultVersion: 2.2,
|
||||
defaultVersion: 3,
|
||||
};
|
||||
|
||||
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
||||
@@ -22,6 +22,7 @@ export class ItemLists extends VersionedNodeType {
|
||||
2: new ItemListsV2(baseDescription),
|
||||
2.1: new ItemListsV2(baseDescription),
|
||||
2.2: new ItemListsV2(baseDescription),
|
||||
3: new ItemListsV3(baseDescription),
|
||||
};
|
||||
|
||||
super(nodeVersions, baseDescription);
|
||||
|
||||
Reference in New Issue
Block a user