mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
👕 Fix lint issue
This commit is contained in:
parent
eff97e8d67
commit
b666116a9c
|
@ -65,11 +65,11 @@ const XML_CHAR_MAP: { [key: string]: string } = {
|
||||||
'>': '>',
|
'>': '>',
|
||||||
'&': '&',
|
'&': '&',
|
||||||
'"': '"',
|
'"': '"',
|
||||||
"'": '''
|
'\'': ''',
|
||||||
};
|
};
|
||||||
|
|
||||||
export function escapeXml(str: string) {
|
export function escapeXml(str: string) {
|
||||||
return str.replace(/[<>&"']/g, function (ch: string) {
|
return str.replace(/[<>&"']/g, (ch: string) => {
|
||||||
return XML_CHAR_MAP[ch];
|
return XML_CHAR_MAP[ch];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,8 +10,8 @@ import {
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
twilioApiRequest,
|
|
||||||
escapeXml,
|
escapeXml,
|
||||||
|
twilioApiRequest,
|
||||||
} from './GenericFunctions';
|
} from './GenericFunctions';
|
||||||
|
|
||||||
export class Twilio implements INodeType {
|
export class Twilio implements INodeType {
|
||||||
|
@ -42,14 +42,13 @@ export class Twilio implements INodeType {
|
||||||
noDataExpression: true,
|
noDataExpression: true,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'SMS',
|
|
||||||
value: 'sms',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
// eslint-disable-next-line n8n-nodes-base/node-param-resource-with-plural-option
|
|
||||||
name: 'Call',
|
name: 'Call',
|
||||||
value: 'call',
|
value: 'call',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'SMS',
|
||||||
|
value: 'sms',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
default: 'sms',
|
default: 'sms',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue