mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: export lodash and moment for plugins
This commit is contained in:
1 parent
0c81eea40a
commit
d27a1499d2
2 files changed
+7
-4
No files matched your search
@@ -623,7 +623,7 @@ export interface Model {
|
||||
blog: typeof import('./model/blog'),
|
||||
builtin: typeof import('./model/builtin'),
|
||||
contest: typeof import('./model/contest'),
|
||||
DiscussionModel: typeof import('./model/discussion'),
|
||||
discussion: typeof import('./model/discussion'),
|
||||
document: Omit<typeof import('./model/document'), 'apply'>,
|
||||
domain: typeof import('./model/domain').default,
|
||||
message: typeof import('./model/message').default,
|
||||
|
||||
@@ -1,15 +1,18 @@
|
||||
import AdmZip from 'adm-zip';
|
||||
import fs from 'fs-extra';
|
||||
import yaml from 'js-yaml';
|
||||
import _ from 'lodash';
|
||||
import moment from 'moment-timezone';
|
||||
import Schema from 'schemastery';
|
||||
import superagent from 'superagent';
|
||||
import * as db from './service/db';
|
||||
export { ObjectID, ObjectId } from 'mongodb';
|
||||
export { ObjectID, ObjectId, FilterQuery } from 'mongodb';
|
||||
export * from './utils';
|
||||
export * from './interface';
|
||||
export * from './pipelineUtils';
|
||||
export * from './error';
|
||||
export * from './settings';
|
||||
export * from './typeutils';
|
||||
export * as SystemModel from './model/system';
|
||||
export * as TrainingModel from './model/training';
|
||||
export * as OpcountModel from './model/opcount';
|
||||
@@ -40,10 +43,10 @@ export * as validator from './lib/validator';
|
||||
export { default as rank } from './lib/rank';
|
||||
export { default as paginate } from './lib/paginate';
|
||||
export * from './service/decorators';
|
||||
export { Handler, ConnectionHandler } from './service/server';
|
||||
export { Handler, ConnectionHandler, captureAllRoutes } from './service/server';
|
||||
export { UiContextBase } from './service/layers/base';
|
||||
export * as StorageService from './service/storage';
|
||||
export { EventMap } from './service/bus';
|
||||
export {
|
||||
db, Schema, yaml, fs, AdmZip, superagent,
|
||||
db, Schema, yaml, fs, AdmZip, superagent, _, moment,
|
||||
};
|
||||
Reference in new issue
Block a user