@twurple/eventsub-base
Advanced tools
Comparing version 6.1.0-pre.0 to 6.1.0-pre.1
@@ -99,17 +99,7 @@ "use strict"; | ||
const messageText = this[common_1.rawDataSymbol].message.text; | ||
const emoteParts = this[common_1.rawDataSymbol].message.emotes.map(({ begin, end, id }) => { | ||
const name = (0, shared_utils_1.utf8Substring)(messageText, begin, end + 1); | ||
return { | ||
type: 'emote', | ||
position: begin, | ||
length: end - begin + 1, | ||
id, | ||
name, | ||
displayInfo: new common_1.ChatEmote({ | ||
code: name, | ||
id | ||
}) | ||
}; | ||
}); | ||
return (0, common_1.fillTextPositions)(messageText, emoteParts); | ||
const emoteOffsets = new Map(Object.entries((0, shared_utils_1.groupBy)(this[common_1.rawDataSymbol].message.emotes, 'id')).map(([id, ranges]) => [ | ||
id, | ||
ranges.map(({ begin, end }) => `${begin}-${end}`) | ||
])); | ||
return (0, common_1.parseChatMessage)(messageText, emoteOffsets); | ||
} | ||
@@ -116,0 +106,0 @@ }; |
{ | ||
"name": "@twurple/eventsub-base", | ||
"version": "6.1.0-pre.0", | ||
"version": "6.1.0-pre.1", | ||
"publishConfig": { | ||
@@ -38,5 +38,5 @@ "access": "public" | ||
"@d-fischer/typed-event-emitter": "^3.3.0", | ||
"@twurple/api": "6.1.0-pre.0", | ||
"@twurple/auth": "6.1.0-pre.0", | ||
"@twurple/common": "6.1.0-pre.0", | ||
"@twurple/api": "6.1.0-pre.1", | ||
"@twurple/auth": "6.1.0-pre.1", | ||
"@twurple/common": "6.1.0-pre.1", | ||
"tslib": "^2.0.3" | ||
@@ -43,0 +43,0 @@ }, |
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
722719
18105
+ Added@twurple/api@6.1.0-pre.1(transitive)
+ Added@twurple/api-call@6.1.0-pre.1(transitive)
+ Added@twurple/auth@6.1.0-pre.1(transitive)
+ Added@twurple/common@6.1.0-pre.1(transitive)
- Removed@twurple/api@6.1.0-pre.0(transitive)
- Removed@twurple/api-call@6.1.0-pre.0(transitive)
- Removed@twurple/auth@6.1.0-pre.0(transitive)
- Removed@twurple/common@6.1.0-pre.0(transitive)
Updated@twurple/api@6.1.0-pre.1
Updated@twurple/auth@6.1.0-pre.1
Updated@twurple/common@6.1.0-pre.1