@customerhero/js 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -3
- package/dist/index.js +1 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1089,9 +1089,7 @@ function stripSuggestions(message) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
function stripActionConfirmationBlocks(message) {
|
|
1091
1091
|
if (!message.blocks?.length) return message;
|
|
1092
|
-
const blocks = message.blocks.filter(
|
|
1093
|
-
(b) => b.type !== "action_confirmation"
|
|
1094
|
-
);
|
|
1092
|
+
const blocks = message.blocks.filter((b) => b.type !== "action_confirmation");
|
|
1095
1093
|
if (blocks.length === message.blocks.length) return message;
|
|
1096
1094
|
if (blocks.length === 0) {
|
|
1097
1095
|
const { blocks: _b, ...rest } = message;
|
package/dist/index.js
CHANGED
|
@@ -1053,9 +1053,7 @@ function stripSuggestions(message) {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
function stripActionConfirmationBlocks(message) {
|
|
1055
1055
|
if (!message.blocks?.length) return message;
|
|
1056
|
-
const blocks = message.blocks.filter(
|
|
1057
|
-
(b) => b.type !== "action_confirmation"
|
|
1058
|
-
);
|
|
1056
|
+
const blocks = message.blocks.filter((b) => b.type !== "action_confirmation");
|
|
1059
1057
|
if (blocks.length === message.blocks.length) return message;
|
|
1060
1058
|
if (blocks.length === 0) {
|
|
1061
1059
|
const { blocks: _b, ...rest } = message;
|