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.
sveditorjs can be embed into any svelte or sveltekit project,the editor is wraped around editorjs ,for block editing that outputs clean json document.json can be consumed by any app.
on version we added support for sveltekit and added a utility helper that generates html
see the docs and example here sveditorjs:
npm install --save sveditorjs
<script>
import Editor ,{genHtml} from "$lib/index.js";
let modes = {
'js': 'JavaScript',
'py': 'Python',
'go': 'Go',
'cpp': 'C++',
'cs': 'C#',
'md': 'Markdown',
}
let data = {}; //correct editorjs json data
let urls = {} //this object should be
//{
upload:"",
load:"",
}
async function handleChange(ev){
console.log(ev.detail)
let editor = ev.detail.editor;
editor.save().then(async (savedData)=>{
// do something with data
console.log(window.current_sveditor);
// use helper to gen html
let html = await genHtml(savedData);
console.log(html);
}).catch((err)=>{console.log(err)})
}
</script>
<Editor data={data} urls={urls} modes={modes} top="true" aside="true" on:editor_ready={(ev)=>{console.log("ready",ev.detail)}} on:editor_change ={(ev)=>{handleChange(ev)}} >
<svelte:fragment slot="top" >
top
</svelte:fragment>
<svelte:fragment slot="aside" >
aside
</svelte:fragment>
<svelte:fragment slot="extra" >
extra unstyled
</svelte:fragment>
</Editor>
FAQs
a editorjs wrapper for svelte and sveltekit
We found that sveditorjs demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.