editorjs-viewer
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -17,4 +17,12 @@ "use strict"; | ||
return `<h2>${value.data.text}</h2>`; | ||
case 3: | ||
return `<h3>${value.data.text}</h3>`; | ||
case 4: | ||
return `<h4>${value.data.text}</h4>`; | ||
case 5: | ||
return `<h5>${value.data.text}</h5>`; | ||
case 6: | ||
return `<h6>${value.data.text}</h6>`; | ||
default: | ||
return ''; | ||
return `<h1>${value.data.text}</h1>`; | ||
} | ||
@@ -21,0 +29,0 @@ }, |
{ | ||
"name": "editorjs-viewer", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Extremly easy turn JSON data to HTML from editor.js dynamicly", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build" : "tsc" | ||
"build" : "tsc && tsc index.ts" | ||
}, | ||
@@ -11,0 +11,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
35390
20
462
0