dep: fix import

This commit is contained in:
undefined committed 2020-12-05 23:48:49 +08:00
1 parent b0aa983e6f
commit 9645c6a11f
4 files changed
+8 -7

No files matched your search

+2 -1
View File
@@ -11,7 +11,8 @@ import { LocalProblemConfig } from 'hydrooj';
import { import {
Route, Handler, param, Types, Route, Handler, param, Types,
} from 'hydrooj/dist/service/server'; } from 'hydrooj/dist/service/server';
import { buildContent, streamToBuffer } from 'hydrooj/dist/utils'; import { streamToBuffer } from 'hydrooj/dist/utils';
import { buildContent } from 'hydrooj/dist/lib/content';
import { ProblemAdd } from 'hydrooj/dist/lib/ui'; import { ProblemAdd } from 'hydrooj/dist/lib/ui';
import * as file from 'hydrooj/dist/model/file'; import * as file from 'hydrooj/dist/model/file';
import * as solution from 'hydrooj/dist/model/solution'; import * as solution from 'hydrooj/dist/model/solution';
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/fps-importer", "name": "@hydrooj/fps-importer",
"version": "1.1.2", "version": "1.1.3",
"description": "Import FPS problems", "description": "Import FPS problems",
"main": "package.json", "main": "package.json",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
@@ -17,7 +17,7 @@
"bson": "^4.1.0" "bson": "^4.1.0"
}, },
"peerDependencies": { "peerDependencies": {
"hydrooj": "^2.13.0" "hydrooj": "^2.14.0"
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/migrate-hustoj", "name": "@hydrooj/migrate-hustoj",
"version": "0.0.1", "version": "0.0.2",
"main": "package.json", "main": "package.json",
"repository": "git@github.com:hydro-dev/Hydro.git", "repository": "git@github.com:hydro-dev/Hydro.git",
"author": "undefined <masnn0@outlook.com>", "author": "undefined <masnn0@outlook.com>",
@@ -13,9 +13,9 @@
"@types/mysql": "^2.15.15" "@types/mysql": "^2.15.15"
}, },
"peerDependencies": { "peerDependencies": {
"hydrooj": "^2.13.5" "hydrooj": "^2.14.0"
}, },
"dependencies": { "dependencies": {
"mysql": "^2.18.1" "mysql": "^2.18.1"
} }
} }
+1 -1
View File
@@ -2,7 +2,7 @@
/* eslint-disable no-await-in-loop */ /* eslint-disable no-await-in-loop */
import mysql from 'mysql'; import mysql from 'mysql';
import 'hydrooj'; import 'hydrooj';
import { buildContent } from 'hydrooj/dist/utils'; import { buildContent } from 'hydrooj/dist/lib/content';
const { const {
user, problem, builtin: { PRIV }, user, problem, builtin: { PRIV },