Socket
Socket
Sign inDemoInstall

editorjs-viewer

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.3

4

index.js

@@ -26,4 +26,4 @@ const {

break;
case "link":
value += link(items.data.link)
case "linkTool":
value += link(items.data)
break;

@@ -30,0 +30,0 @@ case "Header":

const link = (param) => {
return `<a href='${param}' target='_blank'>${param}</a>`
const domain = param.link.split('/')
const selected_domain = domain[2]
return `
<a href='${param.link}' class='linkTool'>
<h4>${param.meta.title}</h4>
<p>${param.meta.description}</p>
<small>${selected_domain}</small>
</a>`
}
module.exports = link
{
"name": "editorjs-viewer",
"version": "1.0.3",
"version": "1.1.3",
"description": "easy change json data to html from editorjs",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc