Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@sendbird/uikit-message-template
Advanced tools
This package provides utilities to parse Message Template
strings.
Message Template is born as a part of an initiative in Sendbird to implement Notfication Channels. Using Message Templates, customers can define a template for a notification message and use it to send notifications to targetted users which should be rendered in the same way on all the client platforms & devices
Read more: https://sendbird.atlassian.net/wiki/spaces/UK/pages/1929610099/UIKit+Message+template
npm i @sendbird/uikit-message-template
import {
createParser,
createRenderer,
createMessageTemplate,
} from ' @sendbird/uikit-message-template';
const parser = createParser({
mapBoxProps(props) {
const styles = generateStylesFromProps(props);
return styles;
},
mapTextProps(props) { .. },
mapImageProps(props) { .. },
mapTextButtonProps(props) { .. },
mapImageButtonProps(props) { .. },
});
export const renderer = createRenderer({
views: {
box(props) {
// render your component for given type
return (<div>{props.text}</div>);
},
text(props) { ... },
image(props) { ... },
textButton(props) { ... },
imageButton(props) { ... },
},
});
const { MessageTemplate } = createMessageTemplate({
renderer,
parser,
Container: ({ children }) => {
return (
<div className="sb-message-template__parent">
{children}
</div>
);
},
});
FAQs
Unknown package
The npm package @sendbird/uikit-message-template receives a total of 13,490 weekly downloads. As such, @sendbird/uikit-message-template popularity was classified as popular.
We found that @sendbird/uikit-message-template demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.