mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core&framework: switch to mongodb-js/saslprep
This commit is contained in:
5 files changed
+14
-16
No files matched your search
@@ -5,13 +5,13 @@
|
||||
"main": "base.mjs",
|
||||
"repository": "https://github.com/hydro-dev/Hydro",
|
||||
"dependencies": {
|
||||
"@antfu/eslint-config": "^6.0.0",
|
||||
"@eslint-react/eslint-plugin": "^2.2.2",
|
||||
"@typescript-eslint/eslint-plugin": "^8.46.1",
|
||||
"@typescript-eslint/parser": "^8.46.1",
|
||||
"@antfu/eslint-config": "^6.1.0",
|
||||
"@eslint-react/eslint-plugin": "^2.2.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
||||
"@typescript-eslint/parser": "^8.46.2",
|
||||
"eslint-plugin-de-morgan": "^2.0.0",
|
||||
"eslint-plugin-github": "^6.0.0",
|
||||
"eslint-plugin-react-hooks": "^7.0.0",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.4.24",
|
||||
"eslint-plugin-simple-import-sort": "^12.1.1",
|
||||
"globals": "^16.4.0"
|
||||
@@ -20,6 +20,6 @@
|
||||
"eslint": ">= 9"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
}
|
||||
@@ -10,24 +10,23 @@
|
||||
"dependencies": {
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@koa/router": "^14.0.0",
|
||||
"@mongodb-js/saslprep": "^1.3.2",
|
||||
"emoji-regex": "^10.6.0",
|
||||
"fs-extra": "^11.3.2",
|
||||
"koa": "^3.0.3",
|
||||
"koa-body": "^6.0.1",
|
||||
"koa-body": "^7.0.0",
|
||||
"koa-compress": "^5.1.1",
|
||||
"path-to-regexp": "^8.3.0",
|
||||
"sanitize-filename": "^1.6.3",
|
||||
"saslprep": "^1.0.3",
|
||||
"schemastery": "^3.17.1",
|
||||
"shorty.js": "^1.0.1",
|
||||
"ws": "^8.18.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/koa": "^3.0.0",
|
||||
"@types/koa-compress": "^4.0.6",
|
||||
"@types/koa__router": "^12.0.4",
|
||||
"@types/saslprep": "^1.0.3",
|
||||
"@types/koa": "^3.0.1",
|
||||
"@types/koa-compress": "^4.0.7",
|
||||
"@types/koa__router": "^12.0.5",
|
||||
"@types/ws": "^8.18.1"
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import assert from 'assert';
|
||||
import saslprep from '@mongodb-js/saslprep';
|
||||
import emojiRegex from 'emoji-regex';
|
||||
import sanitize from 'sanitize-filename';
|
||||
import saslprep from 'saslprep';
|
||||
import Schema from 'schemastery';
|
||||
|
||||
type InputType = string | number | Record<string, any> | any[];
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"@hydrooj/common": "workspace:^",
|
||||
"@hydrooj/framework": "workspace:^",
|
||||
"@hydrooj/utils": "workspace:^",
|
||||
"@mongodb-js/saslprep": "^1.3.2",
|
||||
"@simplewebauthn/server": "13.2.2",
|
||||
"@undefined-moe/require-resolve-hook": "^1.1.0",
|
||||
"@zip.js/zip.js": "^2.8.8",
|
||||
@@ -45,7 +46,6 @@
|
||||
"notp": "^2.0.3",
|
||||
"p-queue": "^9.0.0",
|
||||
"sanitize-filename": "^1.6.3",
|
||||
"saslprep": "^1.0.3",
|
||||
"schemastery": "^3.17.1",
|
||||
"semver": "^7.7.3",
|
||||
"shorty.js": "^1.0.1",
|
||||
@@ -65,7 +65,6 @@
|
||||
"@types/mongodb-uri": "^0.9.4",
|
||||
"@types/nodemailer": "^7.0.3",
|
||||
"@types/notp": "^2.0.5",
|
||||
"@types/saslprep": "^1.0.3",
|
||||
"@types/semver": "^7.7.1",
|
||||
"@types/superagent": "^8.1.9",
|
||||
"@types/ua-parser-js": "^0.7.39",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/* eslint-disable max-len */
|
||||
/* eslint-disable no-await-in-loop */
|
||||
import fs from 'fs';
|
||||
import saslPrep from '@mongodb-js/saslprep';
|
||||
import yaml from 'js-yaml';
|
||||
import { Dictionary } from 'lodash';
|
||||
import moment from 'moment-timezone';
|
||||
import saslPrep from 'saslprep';
|
||||
import Schema from 'schemastery';
|
||||
import { LangConfig, parseLang } from '@hydrooj/common';
|
||||
import { findFileSync, randomstring, retry } from '@hydrooj/utils';
|
||||
|
||||
Reference in new issue
Block a user