
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@jadl/embed
Advanced tools
Simple and easy to use embed renderer
const embed = new Embed()
.title('Hello world!')
To get the raw API embed object you do embed.render()
Which this embed, you can create sendbacks that allow you to use nested .send() methods
For example
const embed = new Embed((embed) => {
// embed being the created embed object
console.log(embed.render())
})
embed
.title('Hello!')
.send() // this will run back the sendback passed in the constructor
// => logs { title: 'Hello!' }
This is super useful for creating nested library functions e.g, how we do it in JADL is a .embed method that returns a new embed, and handles the .send() seamlessly to it's context
You can also create custom return types and paramater names like so:
const embed = new Embed<
Promise<APIMessage>, // sets the return type of .send
[ // options
reply?: boolean,
mention?: boolean
// etc
]
>((embed, options) => {
// options will now be typed as [boolean?, boolean?]
return API.sendMessage(embed.render()) // return your Promise<APIMessage>
})
embed
.title('Hello!')
.send(true, true) // this will be typed as your options
// the return type of this is Promise<APIMessage>
FAQs
Simple embed renderer with easy callbacks
We found that @jadl/embed 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.