From 34e9bd14075a0c0e946ce53bdf9c2619e695022d Mon Sep 17 00:00:00 2001 From: VladBrok Date: Fri, 1 Sep 2023 20:56:17 +0300 Subject: [PATCH] rename onSync to onReceive --- base-server/index.d.ts | 4 ++-- base-server/index.js | 2 +- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- server-client/index.js | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/base-server/index.d.ts b/base-server/index.d.ts index 2c94f041..5d73ee7b 100644 --- a/base-server/index.d.ts +++ b/base-server/index.d.ts @@ -10,8 +10,8 @@ import type { Log, LogStore, Meta, + ReceiveCallback, ServerConnection, - SyncCallback, TestTime } from '@logux/core' import type { @@ -737,7 +737,7 @@ export class BaseServer< */ nodeIds: Map - onSync: SyncCallback + onReceive: ReceiveCallback /** * Server options. diff --git a/base-server/index.js b/base-server/index.js index dbea20d3..3b004438 100644 --- a/base-server/index.js +++ b/base-server/index.js @@ -689,7 +689,7 @@ export class BaseServer { } } - onSync(processAction, action, meta) { + onReceive(processAction, action, meta) { if (this.actionToQueue.has(meta.id)) { return } diff --git a/package.json b/package.json index d285297b..b06d7330 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ }, "dependencies": { "@logux/actions": "^0.3.1", - "@logux/core": "VladBrok/core#feat/54", "JSONStream": "^1.3.5", + "@logux/core": "VladBrok/core#feat/54", "cookie": "^0.5.0", "dotenv": "^16.3.1", "fast-glob": "^3.3.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4417ec5a..105513f5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ dependencies: version: 0.3.1(@logux/core@0.8.4) '@logux/core': specifier: VladBrok/core#feat/54 - version: github.com/VladBrok/core/2137a4a499822be2c502941d6e88e4244ffd4a6f + version: github.com/VladBrok/core/bf66502c715ff0e2dc72e894cbdc960d85408cc8 JSONStream: specifier: ^1.3.5 version: 1.3.5 @@ -463,7 +463,7 @@ packages: peerDependencies: '@logux/core': ^0.8.0 dependencies: - '@logux/core': github.com/VladBrok/core/2137a4a499822be2c502941d6e88e4244ffd4a6f + '@logux/core': github.com/VladBrok/core/bf66502c715ff0e2dc72e894cbdc960d85408cc8 dev: false /@logux/eslint-config@51.0.1(eslint-config-standard@17.1.0)(eslint-plugin-import@2.28.0)(eslint-plugin-n@16.0.1)(eslint-plugin-perfectionist@1.5.1)(eslint-plugin-prefer-let@3.0.1)(eslint-plugin-promise@6.1.1)(eslint@8.46.0): @@ -3148,8 +3148,8 @@ packages: resolution: {integrity: sha512-xHhOFKT1Y29Jc4/6To1hmIUswKhCKplPSbkCyIabAAZ5q/9GmZvlN3WNcafcq3zze3CzYU66XNeSBLCD8Oickw==} dev: false - github.com/VladBrok/core/2137a4a499822be2c502941d6e88e4244ffd4a6f: - resolution: {tarball: https://codeload.github.com/VladBrok/core/tar.gz/2137a4a499822be2c502941d6e88e4244ffd4a6f} + github.com/VladBrok/core/bf66502c715ff0e2dc72e894cbdc960d85408cc8: + resolution: {tarball: https://codeload.github.com/VladBrok/core/tar.gz/bf66502c715ff0e2dc72e894cbdc960d85408cc8} name: '@logux/core' version: 0.8.4 engines: {node: ^14.0.0 || ^16.0.0 || >=18.0.0} diff --git a/server-client/index.js b/server-client/index.js index 80ddc97c..9c847c8a 100644 --- a/server-client/index.js +++ b/server-client/index.js @@ -35,7 +35,7 @@ export class ServerClient { auth: this.auth.bind(this), inFilter: this.filter.bind(this), inMap: this.inMap.bind(this), - onSync: app.onSync.bind(app), + onReceive: app.onReceive.bind(app), outMap: this.outMap.bind(this), ping: app.options.ping, subprotocol: app.options.subprotocol,