fix(core): update
This commit is contained in:
parent
97dc286fb5
commit
3cd188be28
2883
package-lock.json
generated
2883
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -14,15 +14,15 @@
|
||||
"buildDocs": "(tsdoc)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.25",
|
||||
"@gitzone/tsbundle": "^2.0.5",
|
||||
"@gitzone/tsbuild": "^2.1.65",
|
||||
"@gitzone/tsbundle": "^2.0.7",
|
||||
"@gitzone/tsdoc": "^1.1.10",
|
||||
"@gitzone/tstest": "^1.0.44",
|
||||
"@gitzone/tstest": "^1.0.73",
|
||||
"@pushrocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^18.6.3"
|
||||
"@types/node": "^18.6.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartclickhouse": "^2.0.11",
|
||||
"@pushrocks/smartclickhouse": "^2.0.14",
|
||||
"@pushrocks/smartlog-interfaces": "^2.0.23"
|
||||
},
|
||||
"browserslist": [
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartlog-destination-clickhouse',
|
||||
version: '1.0.10',
|
||||
version: '1.0.11',
|
||||
description: 'a smartlog destination pushing logs to clickhouse'
|
||||
}
|
||||
|
10
ts/index.ts
10
ts/index.ts
@ -2,7 +2,9 @@ import * as plugins from './slclick.plugins.js';
|
||||
|
||||
export class SmartlogDestinationClickhouse implements plugins.smartlogInterfaces.ILogDestination {
|
||||
// STATIC
|
||||
public static async createAndStart(optionsArg: plugins.smartclickhouse.IClickhouseConstructorOptions) {
|
||||
public static async createAndStart(
|
||||
optionsArg: plugins.smartclickhouse.IClickhouseConstructorOptions
|
||||
) {
|
||||
const destinationClickhouse = new SmartlogDestinationClickhouse(optionsArg);
|
||||
await destinationClickhouse.start();
|
||||
return destinationClickhouse;
|
||||
@ -20,7 +22,9 @@ export class SmartlogDestinationClickhouse implements plugins.smartlogInterfaces
|
||||
this.logTable = await this.smartclickhouseDb.getTable('logs');
|
||||
}
|
||||
|
||||
public async handleLog(logPackage: plugins.smartlogInterfaces.ILogPackage<unknown>): Promise<void> {
|
||||
public async handleLog(
|
||||
logPackage: plugins.smartlogInterfaces.ILogPackage<unknown>
|
||||
): Promise<void> {
|
||||
await this.logTable.addData(logPackage);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,4 @@
|
||||
import * as smartlogInterfaces from '@pushrocks/smartlog-interfaces';
|
||||
import * as smartclickhouse from '@pushrocks/smartclickhouse';
|
||||
|
||||
export {
|
||||
smartlogInterfaces,
|
||||
smartclickhouse
|
||||
}
|
||||
export { smartlogInterfaces, smartclickhouse };
|
||||
|
Loading…
x
Reference in New Issue
Block a user