mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-24 05:39:21 -05:00
Merge pull request #1829 from TriliumNext/monorepo/express-partial-content
Integrate express-partial-content into monorepo
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
"@anthropic-ai/sdk": "0.40.1",
|
||||
"@braintree/sanitize-url": "7.1.1",
|
||||
"@triliumnext/commons": "workspace:*",
|
||||
"@triliumnext/express-partial-content": "1.0.1",
|
||||
"@triliumnext/express-partial-content": "workspace:*",
|
||||
"@triliumnext/turndown-plugin-gfm": "workspace:*",
|
||||
"archiver": "7.0.1",
|
||||
"async-mutex": "0.5.0",
|
||||
|
||||
@@ -45,6 +45,11 @@ describe("#getMime", () => {
|
||||
["test.zip"], "application/zip"
|
||||
],
|
||||
|
||||
[
|
||||
"MP4 videos are supported",
|
||||
["video.mp4"], "video/mp4"
|
||||
],
|
||||
|
||||
[
|
||||
"unknown MIME type not recognized by mimeTypes.lookup",
|
||||
["test.fake"], false
|
||||
|
||||
@@ -71,7 +71,8 @@ const EXTENSION_TO_MIME = new Map<string, string>([
|
||||
[".ts", "text/x-typescript"],
|
||||
[".excalidraw", "application/json"],
|
||||
[".mermaid", "text/vnd.mermaid"],
|
||||
[".mmd", "text/vnd.mermaid"]
|
||||
[".mmd", "text/vnd.mermaid"],
|
||||
[".mp4", "video/mp4"] // https://github.com/jshttp/mime-types/issues/138
|
||||
]);
|
||||
|
||||
/** @returns false if MIME is not detected */
|
||||
|
||||
@@ -36,6 +36,9 @@
|
||||
{
|
||||
"path": "../../packages/turndown-plugin-gfm/tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/express-partial-content/tsconfig.lib.json"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/commons/tsconfig.lib.json"
|
||||
}
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
{
|
||||
"path": "../../packages/turndown-plugin-gfm"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/express-partial-content"
|
||||
},
|
||||
{
|
||||
"path": "../../packages/commons"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user