
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@spencerlepine/connect-chat-frontend-components
Advanced tools
This package houses the shared frontend components, used across the Amazon Connect messaging products.
This package houses the shared frontend components, used across the Amazon Connect messaging products.
Exports CommonJS bundle file, with React 16 components.
npm install @spencer/amazon-connect-chat-frontend-components@^1.0.0
<RichTextEditor />
import { RichTextEditor } from '@spencer/amazon-connect-chat-frontend-components';
export default function ChatComposer(props) {
function sendMarkdownMessage(markdownMessage) {
if (markdownMessage.trim()) {
addMessage(contactId, {
text: markdownMessage,
type: ContentType.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN
});
}
}
return (
<ChatComposerWrapper>
<RichTextEditor
allowedFileContentTypes={ATTACHMENT_ACCEPT_CONTENT_TYPES}
attachmentsEnabled={composerConfig && composerConfig.attachmentsEnabled}
sendMessage={sendMarkdownMessage}
sendAttachment={sendAttachmentGivenFile}
placeholder={placeholder}
onTyping={throttledOnTyping}
></RichTextEditor>
</ChatComposerWrapper>
);
}
<RichMessageRenderer />
import { RichMessageRenderer } from '@spencer/amazon-connect-chat-frontend-components';
export class ParticipantMessage extends PureComponent {
renderContent(textContent, contentType) {
// ...
if (contentType === ContentType.MESSAGE_CONTENT_TYPE.TEXT_MARKDOWN) {
return <RichMessageRenderer content={textContent} />;
}
return <PlainTextMessage content={textContent} />;
}
render() {
return (
<div data-testid="main-message">
{this.renderContent('**bold message**', 'text/markdown')}
</div>
);
}
}
FAQs
This package houses the shared frontend components, used across the Amazon Connect messaging products.
We found that @spencerlepine/connect-chat-frontend-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.