Browse Source

consistent @types/* and deps versions

pull/1/head
Coin de Gamma 6 years ago
parent
commit
b7dcac1099
  1. 14
      server/package.json
  2. 4
      server/src/services/analytics_service.ts

14
server/package.json

@ -21,13 +21,13 @@
"homepage": "https://github.com/hastic/hastic-server#readme",
"dependencies": {},
"devDependencies": {
"@types/es6-promisify": "^6.0.0",
"@types/jest": "^23.1.1",
"@types/koa": "^2.0.45",
"@types/koa": "^2.0.46",
"@types/koa-bodyparser": "^4.2.0",
"@types/koa-router": "^7.0.28",
"@types/koa-router": "^7.0.31",
"@types/lodash": "^4.14.116",
"@types/nedb": "^1.8.0",
"@types/zeromq": "^4.6.0",
"axios": "^0.18.0",
"babel-core": "^6.26.3",
"babel-jest": "^23.4.2",
@ -39,15 +39,15 @@
"event-stream": "^3.3.4",
"file-loader": "^1.1.11",
"jest": "^23.1.1",
"koa": "^2.5.1",
"koa-bodyparser": "^4.2.1",
"koa-router": "^7.4.0",
"koa": "^2.0.46",
"koa-bodyparser": "^4.2.0",
"koa-router": "^7.0.31",
"lodash": "^4.17.10",
"nedb": "^1.8.0",
"node-loader": "^0.6.0",
"nodemon": "^1.17.5",
"ts-loader": "^4.4.1",
"ts-jest": "^23.1.1",
"ts-loader": "^4.4.1",
"typescript": "^2.8.3",
"webpack": "^4.12.0",
"webpack-cli": "^3.0.8",

4
server/src/services/analytics_service.ts

@ -2,7 +2,7 @@ import { AnalyticsTask } from '../models/analytics_task_model';
import { AnalyticsMessageMethod, AnalyticsMessage } from '../models/analytics_message_model';
import * as config from '../config';
const zmq = require('zeromq');
import * as zmq from 'zeromq';
import * as childProcess from 'child_process'
import * as fs from 'fs';
@ -208,7 +208,7 @@ export class AnalyticsService {
}
private static async createIPCAddress(): Promise<{ address: string, file: string }> {
let filename = `${process.pid}.ipc`
let filename = `${process.pid}.ipc`;
let p = path.join(config.ZMQ_IPC_PATH, filename);
fs.writeFileSync(p, '');
return Promise.resolve({ address: 'ipc://' + p, file: p });

Loading…
Cancel
Save