From 5ceb808c6f91a76e16e30b4c7b9efbac5f3b6931 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 2 Apr 2018 18:59:48 +0900 Subject: [PATCH] :v: --- package.json | 1 + src/client/docs/api/gulpfile.ts | 2 +- src/client/docs/vars.ts | 4 ++-- src/index.ts | 3 +++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 07b30e16b..802074365 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "@types/is-root": "1.0.0", "@types/is-url": "1.2.28", "@types/js-yaml": "3.11.1", + "@types/kue": "^0.11.8", "@types/license-checker": "15.0.0", "@types/mkdirp": "0.5.2", "@types/mocha": "5.0.0", diff --git a/src/client/docs/api/gulpfile.ts b/src/client/docs/api/gulpfile.ts index c986e0353..9980ede23 100644 --- a/src/client/docs/api/gulpfile.ts +++ b/src/client/docs/api/gulpfile.ts @@ -151,7 +151,7 @@ gulp.task('doc:api:entities', async () => { return; } files.forEach(file => { - const entity = yaml.safeLoad(fs.readFileSync(file, 'utf-8')); + const entity = yaml.safeLoad(fs.readFileSync(file, 'utf-8')) as any; const vars = { name: entity.name, desc: entity.desc, diff --git a/src/client/docs/vars.ts b/src/client/docs/vars.ts index dbdc88061..32b961aaa 100644 --- a/src/client/docs/vars.ts +++ b/src/client/docs/vars.ts @@ -15,13 +15,13 @@ export default async function(): Promise<{ [key: string]: any }> { const endpoints = glob.sync('./src/client/docs/api/endpoints/**/*.yaml'); vars['endpoints'] = endpoints.map(ep => { - const _ep = yaml.safeLoad(fs.readFileSync(ep, 'utf-8')); + const _ep = yaml.safeLoad(fs.readFileSync(ep, 'utf-8')) as any; return _ep.endpoint; }); const entities = glob.sync('./src/client/docs/api/entities/**/*.yaml'); vars['entities'] = entities.map(x => { - const _x = yaml.safeLoad(fs.readFileSync(x, 'utf-8')); + const _x = yaml.safeLoad(fs.readFileSync(x, 'utf-8')) as any; return _x.name; }); diff --git a/src/index.ts b/src/index.ts index b43e15285..29c4f3431 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,6 +30,9 @@ const ev = new Xev(); process.title = 'Misskey'; +// https://github.com/Automattic/kue/issues/822 +require('events').EventEmitter.prototype._maxListeners = 256; + // Start app main();