mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 02:36:43 -06:00
use tinyld heavy
This commit is contained in:
parent
b786a698c7
commit
e9e08b2ec2
4 changed files with 4 additions and 4 deletions
|
@ -29,7 +29,7 @@ const externalPackages = [
|
|||
name: 'tinyld',
|
||||
match: /^tinyld$/,
|
||||
path(): string {
|
||||
return `https://cdn.jsdelivr.net/npm/tinyld@${packageInfo.dependencies.tinyld}/dist/tinyld.normal.node.mjs`
|
||||
return `https://cdn.jsdelivr.net/npm/tinyld@${packageInfo.dependencies.tinyld}/dist/tinyld.heavy.node.mjs`
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
"three": "0.169.0",
|
||||
"throttle-debounce": "5.0.2",
|
||||
"tinycolor2": "1.6.0",
|
||||
"tinyld": "^1.3.4",
|
||||
"tinyld/heavy": "^1.3.4",
|
||||
"tsc-alias": "1.8.10",
|
||||
"tsconfig-paths": "4.2.0",
|
||||
"typescript": "5.6.2",
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { detect } from 'tinyld';
|
||||
import { detect } from 'tinyld/heavy';
|
||||
import * as mfm from 'mfm-js';
|
||||
|
||||
export default function detectLanguage(text: string): string {
|
||||
|
|
|
@ -31,7 +31,7 @@ const externalPackages = [
|
|||
name: 'tinyld',
|
||||
match: /^tinyld$/,
|
||||
path(): string {
|
||||
return `https://cdn.jsdelivr.net/npm/tinyld@${packageInfo.dependencies.tinyld}/dist/tinyld.normal.node.mjs`
|
||||
return `https://cdn.jsdelivr.net/npm/tinyld@${packageInfo.dependencies.tinyld}/dist/tinyld.heavy.node.mjs`
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue