supercompat 2.30.0 → 2.30.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 +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3877,7 +3877,19 @@ var serializeMessage4 = function(param) {
|
|
|
3877
3877
|
var messageContentBlocks = function(param) {
|
|
3878
3878
|
var content = param.content;
|
|
3879
3879
|
if ((0, import_radash7.isArray)(content)) {
|
|
3880
|
-
return content
|
|
3880
|
+
return content.map(function(item) {
|
|
3881
|
+
if (item.type === "text") {
|
|
3882
|
+
var _item_text;
|
|
3883
|
+
return {
|
|
3884
|
+
type: "text",
|
|
3885
|
+
text: {
|
|
3886
|
+
value: (_item_text = item.text) !== null && _item_text !== void 0 ? _item_text : "",
|
|
3887
|
+
annotations: []
|
|
3888
|
+
}
|
|
3889
|
+
};
|
|
3890
|
+
}
|
|
3891
|
+
return item;
|
|
3892
|
+
});
|
|
3881
3893
|
}
|
|
3882
3894
|
return [
|
|
3883
3895
|
{
|