mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
⚡ Fix titleCase -> capitalCase
This commit is contained in:
@@ -95,8 +95,8 @@ import {
|
|||||||
} from './CompanyInterface';
|
} from './CompanyInterface';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
capitalCase,
|
||||||
pascalCase,
|
pascalCase,
|
||||||
titleCase,
|
|
||||||
} from 'change-case';
|
} from 'change-case';
|
||||||
|
|
||||||
import * as moment from 'moment-timezone';
|
import * as moment from 'moment-timezone';
|
||||||
@@ -749,7 +749,7 @@ export class Keap implements INodeType {
|
|||||||
qs.permission = (qs.permission as string).toUpperCase();
|
qs.permission = (qs.permission as string).toUpperCase();
|
||||||
}
|
}
|
||||||
if (qs.type) {
|
if (qs.type) {
|
||||||
qs.type = titleCase(qs.type as string);
|
qs.type = capitalCase(qs.type as string);
|
||||||
}
|
}
|
||||||
if (qs.viewable) {
|
if (qs.viewable) {
|
||||||
qs.viewable = (qs.viewable as string).toUpperCase();
|
qs.viewable = (qs.viewable as string).toUpperCase();
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import {
|
|||||||
} from './GenericFunctions';
|
} from './GenericFunctions';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
titleCase,
|
capitalCase,
|
||||||
} from 'change-case';
|
} from 'change-case';
|
||||||
|
|
||||||
export class KeapTrigger implements INodeType {
|
export class KeapTrigger implements INodeType {
|
||||||
@@ -81,7 +81,7 @@ export class KeapTrigger implements INodeType {
|
|||||||
const hookName = hook;
|
const hookName = hook;
|
||||||
const hookId = hook;
|
const hookId = hook;
|
||||||
returnData.push({
|
returnData.push({
|
||||||
name: titleCase((hookName as string).replace('.', ' ')),
|
name: capitalCase((hookName as string).replace('.', ' ')),
|
||||||
value: hookId as string,
|
value: hookId as string,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user