mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
⚡ added interactive messages (buttons)
This commit is contained in:
10
packages/nodes-base/nodes/Slack/GenericFunctions.ts
Normal file
10
packages/nodes-base/nodes/Slack/GenericFunctions.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
export function validateJSON(json: string | undefined): any { // tslint:disable-line:no-any
|
||||||
|
let result;
|
||||||
|
try {
|
||||||
|
result = JSON.parse(json!);
|
||||||
|
} catch (exception) {
|
||||||
|
result = undefined;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user