@acala-network/chopsticks 1.2.5 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -158,7 +158,9 @@ const createServer = async (handler, port, host)=>{
158
158
  continue;
159
159
  }
160
160
  const preferPort = port ? port + i : undefined;
161
- wsLogger.debug('Try starting on port %d', preferPort);
161
+ wsLogger.debug({
162
+ port: preferPort
163
+ }, 'Try starting on port');
162
164
  await new Promise((resolve, reject)=>{
163
165
  const onError = (e)=>{
164
166
  server.close();
@@ -234,7 +236,9 @@ const createServer = async (handler, port, host)=>{
234
236
  result: resp ?? null
235
237
  };
236
238
  } catch (e) {
237
- wsLogger.error('Error handling request: %o', e.stack);
239
+ wsLogger.error({
240
+ err: e
241
+ }, 'Error handling request');
238
242
  return {
239
243
  id: req.id,
240
244
  jsonrpc: '2.0',
@@ -1,6 +1,6 @@
1
1
  import { ApiPromise } from '@polkadot/api';
2
2
  import type { HexString } from '@polkadot/util/types';
3
- export declare const logger: import("pino").default.Logger<never, boolean>;
3
+ export declare const logger: import("pino").Logger<never, boolean>;
4
4
  type FetchStorageConfigItem = HexString | string | Record<string, string | Record<string, any[]> | Record<string, any>[] | (string | any)[]>;
5
5
  export type FetchStorageConfig = FetchStorageConfigItem[];
6
6
  /**
@@ -143,7 +143,9 @@ export const createServer = async (handler, port, host)=>{
143
143
  continue;
144
144
  }
145
145
  const preferPort = port ? port + i : undefined;
146
- wsLogger.debug('Try starting on port %d', preferPort);
146
+ wsLogger.debug({
147
+ port: preferPort
148
+ }, 'Try starting on port');
147
149
  await new Promise((resolve, reject)=>{
148
150
  const onError = (e)=>{
149
151
  server.close();
@@ -219,7 +221,9 @@ export const createServer = async (handler, port, host)=>{
219
221
  result: resp ?? null
220
222
  };
221
223
  } catch (e) {
222
- wsLogger.error('Error handling request: %o', e.stack);
224
+ wsLogger.error({
225
+ err: e
226
+ }, 'Error handling request');
223
227
  return {
224
228
  id: req.id,
225
229
  jsonrpc: '2.0',
@@ -1,6 +1,6 @@
1
1
  import { ApiPromise } from '@polkadot/api';
2
2
  import type { HexString } from '@polkadot/util/types';
3
- export declare const logger: import("pino").default.Logger<never, boolean>;
3
+ export declare const logger: import("pino").Logger<never, boolean>;
4
4
  type FetchStorageConfigItem = HexString | string | Record<string, string | Record<string, any[]> | Record<string, any>[] | (string | any)[]>;
5
5
  export type FetchStorageConfig = FetchStorageConfigItem[];
6
6
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks",
3
- "version": "1.2.5",
3
+ "version": "1.2.8",
4
4
  "author": "Acala Developers <hello@acala.network>",
5
5
  "license": "Apache-2.0",
6
6
  "bin": "./chopsticks.cjs",
@@ -15,17 +15,17 @@
15
15
  "depcheck": "npx depcheck --ignore-patterns='*.test.ts'"
16
16
  },
17
17
  "dependencies": {
18
- "@acala-network/chopsticks-core": "1.2.5",
19
- "@acala-network/chopsticks-db": "1.2.5",
18
+ "@acala-network/chopsticks-core": "1.2.8",
19
+ "@acala-network/chopsticks-db": "1.2.8",
20
20
  "@dmsnell/diff-match-patch": "^1.1.0",
21
21
  "@pnpm/npm-conf": "^3.0.0",
22
22
  "@polkadot/api": "^16.4.1",
23
23
  "@polkadot/api-augment": "^16.4.1",
24
24
  "@polkadot/rpc-provider": "^16.4.1",
25
25
  "@polkadot/types": "^16.4.1",
26
- "@polkadot/util": "^13.5.3",
27
- "@polkadot/util-crypto": "^13.5.3",
28
- "axios": "^1.12.0",
26
+ "@polkadot/util": "^14.0.1",
27
+ "@polkadot/util-crypto": "^14.0.1",
28
+ "axios": "^1.13.5",
29
29
  "comlink": "^4.4.2",
30
30
  "dotenv": "^16.6.1",
31
31
  "global-agent": "^3.0.0",
@@ -37,7 +37,7 @@
37
37
  "zod": "^3.25.76"
38
38
  },
39
39
  "devDependencies": {
40
- "@swc/cli": "0.7.8",
40
+ "@swc/cli": "0.7.10",
41
41
  "@swc/core": "^1.12.14",
42
42
  "@types/global-agent": "^3.0.0",
43
43
  "@types/js-yaml": "^4.0.9",