@atomist/slack-messages
Advanced tools
Comparing version 1.2.0-master.20200806083522 to 1.2.0-master.20200806083959
@@ -129,3 +129,9 @@ "use strict"; | ||
} | ||
return JSON.stringify(message, undefined, pretty ? 4 : 0); | ||
if (message.blocks && message.blocks.length > 0) { | ||
if (!message.text) { | ||
message.text = "fallback"; | ||
} | ||
message.blocks = JSON.stringify(message.blocks); | ||
} | ||
return JSON.stringify(message, undefined, pretty ? 2 : 0); | ||
} | ||
@@ -132,0 +138,0 @@ exports.render = render; |
{ | ||
"name": "@atomist/slack-messages", | ||
"version": "1.2.0-master.20200806083522", | ||
"version": "1.2.0-master.20200806083959", | ||
"description": "Atomist utilities for creating formatted Slack messages", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68577
813