mirror of
https://github.com/paricafe/misskey.git
synced 2025-03-20 11:19:22 -05: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',
|
name: 'tinyld',
|
||||||
match: /^tinyld$/,
|
match: /^tinyld$/,
|
||||||
path(): string {
|
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",
|
"three": "0.169.0",
|
||||||
"throttle-debounce": "5.0.2",
|
"throttle-debounce": "5.0.2",
|
||||||
"tinycolor2": "1.6.0",
|
"tinycolor2": "1.6.0",
|
||||||
"tinyld": "^1.3.4",
|
"tinyld/heavy": "^1.3.4",
|
||||||
"tsc-alias": "1.8.10",
|
"tsc-alias": "1.8.10",
|
||||||
"tsconfig-paths": "4.2.0",
|
"tsconfig-paths": "4.2.0",
|
||||||
"typescript": "5.6.2",
|
"typescript": "5.6.2",
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { detect } from 'tinyld';
|
import { detect } from 'tinyld/heavy';
|
||||||
import * as mfm from 'mfm-js';
|
import * as mfm from 'mfm-js';
|
||||||
|
|
||||||
export default function detectLanguage(text: string): string {
|
export default function detectLanguage(text: string): string {
|
||||||
|
|
|
@ -31,7 +31,7 @@ const externalPackages = [
|
||||||
name: 'tinyld',
|
name: 'tinyld',
|
||||||
match: /^tinyld$/,
|
match: /^tinyld$/,
|
||||||
path(): string {
|
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…
Add table
Reference in a new issue