Socket
Socket
Sign inDemoInstall

@twurple/eventsub-base

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twurple/eventsub-base - npm Package Compare versions

Comparing version 6.1.0-pre.0 to 6.1.0-pre.1

20

lib/events/EventSubChannelSubscriptionMessageEvent.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc