textarea-markdown
Advanced tools
Comparing version 1.3.5 to 1.3.6
{ | ||
"name": "textarea-markdown", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "Make textarea a markdown editor.", | ||
@@ -18,4 +18,4 @@ "main": "lib/textarea-markdown.js", | ||
"dependencies": { | ||
"@komagata/filetype": "^1.0.0", | ||
"filesize": "^10.0.5", | ||
"magic-bytes.js": "^1.0.13", | ||
"markdown-it": "^12.3.2", | ||
@@ -22,0 +22,0 @@ "whatwg-fetch": "^2.0.3" |
import "whatwg-fetch"; | ||
import MarkdownIt from "markdown-it"; | ||
import { filetypeextension } from "magic-bytes.js"; | ||
import { detect } from "@komagata/filetype"; | ||
import { filesize } from "filesize"; | ||
@@ -105,3 +105,3 @@ | ||
const bytes = new Uint8Array(reader.result); | ||
const fileType = filetypeextension(bytes)[0]; | ||
const fileType = detect(bytes); | ||
const fileSize = filesize(file.size, { base: 10, standard: "jedec" }); | ||
@@ -108,0 +108,0 @@ const text = |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18763
+ Added@komagata/filetype@^1.0.0
+ Added@komagata/filetype@1.0.1(transitive)
- Removedmagic-bytes.js@^1.0.13