Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
mathlive-tera
Advanced tools
#@
fracLine.width = Math.max(numerBox.width, denomBox.width);
in genfrac.ts filethis.width = rows.reduce((acc, row) => Math.max(acc, row.width), 0)
in v-box.ts filemf.current!.macros = {
...mf.current!.macros,
conversion: {
args: 1,
def: '\\mathbf{#1}',
isImplicitArg: true,
argsMapping: {
value: 'newValueToDisplay'
}
},
};
executeCommand(['scroll', distance])
or executeCommand(['scrollTo', {left: 10, behavior: 'smooth'}])
focus(options: FocusOptions | undefined = {preventScroll: true})
Add scrollIntoCaret option in InsertOptions. This make sure the caret is always visible in input view npm
Add custom document event mathlive-update-separator
to notify that MathfieldElement global separator changed.
Example:
document.addEventListener("mathlive-update-separator", (event) => {
// handler
})
Ignore import warming in nextjs project
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: config => {
config.ignoreWarnings = [
{ module: /src\/app\/component\/MathLiveComponent\.tsx/ },
];
return config;
}
};
export default nextConfig;
0.100.0 2024-06-12
#2396 Pressing the arrow keys in the virtual keyboard would not move the selection in the mathfield and display a runtime error in the console.
#2395 Added a dispatchEvent
command which can be attached to a
custom keycap.
#2392 Pressing the backspace key after typing several digits would delete all the digits.
Its first argument is the name of the dispatched event, and the second
argument is an object with the detail
property, which is the data
associated with the event.
{
label: "✨",
command: "dispatchEvent('customEvent', {detail: 'some data'})"
}
To handle the event, add an event listener to the mathfield element:
mf.addEventListener('customEvent', (ev) => {
console.log(ev.detail);
});
FAQs
A web component for math input
The npm package mathlive-tera receives a total of 9,137 weekly downloads. As such, mathlive-tera popularity was classified as popular.
We found that mathlive-tera 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.