From 86097a7d79bf673215c12caefc19e08db8a10b84 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 16:07:53 +0000 Subject: [PATCH 1/3] deps: bump the all-dependencies group across 1 directory with 10 updates Bumps the all-dependencies group with 10 updates in the / directory: | Package | From | To | | --- | --- | --- | | [axios](https://github.com/axios/axios) | `1.18.0` | `1.18.1` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `25.9.3` | `26.1.0` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.61.0` | `8.62.1` | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.61.0` | `8.62.1` | | [eslint](https://github.com/eslint/eslint) | `9.39.2` | `10.6.0` | | [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli) | `0.48.0` | `0.49.0` | | [npm-package-json-lint](https://github.com/tclindner/npm-package-json-lint) | `10.4.0` | `10.4.1` | | [prettier](https://github.com/prettier/prettier) | `3.8.4` | `3.9.4` | | [tsx](https://github.com/privatenumber/tsx) | `4.22.4` | `4.23.0` | | [typescript](https://github.com/microsoft/TypeScript) | `5.9.3` | `6.0.3` | Updates `axios` from 1.18.0 to 1.18.1 - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v1.18.0...v1.18.1) Updates `@types/node` from 25.9.3 to 26.1.0 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `@typescript-eslint/eslint-plugin` from 8.61.0 to 8.62.1 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.62.1/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 8.61.0 to 8.62.1 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.62.1/packages/parser) Updates `eslint` from 9.39.2 to 10.6.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](https://github.com/eslint/eslint/compare/v9.39.2...v10.6.0) Updates `markdownlint-cli` from 0.48.0 to 0.49.0 - [Release notes](https://github.com/igorshubovych/markdownlint-cli/releases) - [Commits](https://github.com/igorshubovych/markdownlint-cli/compare/v0.48.0...v0.49.0) Updates `npm-package-json-lint` from 10.4.0 to 10.4.1 - [Release notes](https://github.com/tclindner/npm-package-json-lint/releases) - [Changelog](https://github.com/tclindner/npm-package-json-lint/blob/master/CHANGELOG.md) - [Commits](https://github.com/tclindner/npm-package-json-lint/compare/v10.4.0...v10.4.1) Updates `prettier` from 3.8.4 to 3.9.4 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.8.4...3.9.4) Updates `tsx` from 4.22.4 to 4.23.0 - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](https://github.com/privatenumber/tsx/compare/v4.22.4...v4.23.0) Updates `typescript` from 5.9.3 to 6.0.3 - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v6.0.3) --- updated-dependencies: - dependency-name: axios dependency-version: 1.18.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: "@types/node" dependency-version: 26.1.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: all-dependencies - dependency-name: "@typescript-eslint/eslint-plugin" dependency-version: 8.62.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all-dependencies - dependency-name: "@typescript-eslint/parser" dependency-version: 8.62.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all-dependencies - dependency-name: eslint dependency-version: 10.6.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: all-dependencies - dependency-name: markdownlint-cli dependency-version: 0.49.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all-dependencies - dependency-name: npm-package-json-lint dependency-version: 10.4.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all-dependencies - dependency-name: prettier dependency-version: 3.9.4 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all-dependencies - dependency-name: tsx dependency-version: 4.23.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all-dependencies - dependency-name: typescript dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-major dependency-group: all-dependencies ... Signed-off-by: dependabot[bot] --- package.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index d2f134e7..564aeb29 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@hardlydifficult/rest-client": "1.0.65", "@hardlydifficult/websocket": "1.0.73", "@stellar/stellar-base": "15.0.0", - "axios": "1.18.0", + "axios": "1.18.1", "dotenv": "17.4.2", "glob": "13.0.6", "openapi-fetch": "0.17.0", @@ -82,26 +82,26 @@ }, "devDependencies": { "@types/jest": "30.0.0", - "@types/node": "25.9.3", + "@types/node": "26.1.0", "@types/ws": "8.18.1", - "@typescript-eslint/eslint-plugin": "8.61.0", - "@typescript-eslint/parser": "8.61.0", - "eslint": "9.39.2", + "@typescript-eslint/eslint-plugin": "8.62.1", + "@typescript-eslint/parser": "8.62.1", + "eslint": "10.6.0", "eslint-config-prettier": "10.1.8", "eslint-import-resolver-typescript": "4.4.5", "eslint-plugin-import": "2.32.0", "eslint-plugin-markdown": "5.1.0", "eslint-plugin-unused-imports": "4.4.1", "jest": "30.4.2", - "markdownlint-cli": "0.48.0", - "npm-package-json-lint": "10.4.0", - "prettier": "3.8.4", + "markdownlint-cli": "0.49.0", + "npm-package-json-lint": "10.4.1", + "prettier": "3.9.4", "prettier-plugin-jsdoc": "1.8.1", "prettier-plugin-organize-imports": "4.3.0", "prettier-plugin-packagejson": "3.0.2", "ts-jest": "29.4.11", - "tsx": "4.22.4", - "typescript": "5.9.3", + "tsx": "4.23.0", + "typescript": "6.0.3", "typescript-7": "npm:typescript@7.0.2" }, "engines": { From 8f7a9be904a80686568a39f2a6047f380c3557c3 Mon Sep 17 00:00:00 2001 From: HardlyDifficult Date: Mon, 13 Jul 2026 17:55:08 -0400 Subject: [PATCH 2/3] fix(deps): keep grouped updates compatible --- package.json | 8 ++++---- src/core/logging/ConsoleLogger.ts | 2 +- .../ledger-api/paid-traffic-cost.test.ts | 9 +++------ .../localnet/ledger-api/parties.test.ts | 3 +-- .../scan-registry-metadata.typecheck.ts | 16 ++++++++-------- 5 files changed, 17 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 564aeb29..a45385e1 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,8 @@ "lint:fix": "eslint . --fix", "lint:npm": "npmPkgJsonLint . --fix", "lint:npm:check": "npmPkgJsonLint .", - "localnet:quickstart": "bash ./bin/canton-localnet setup", "localnet:logs": "bash ./bin/canton-localnet logs", + "localnet:quickstart": "bash ./bin/canton-localnet setup", "localnet:setup": "bash ./bin/canton-localnet setup", "localnet:smoke": "bash ./bin/canton-localnet smoke", "localnet:start": "bash ./bin/canton-localnet start", @@ -86,7 +86,7 @@ "@types/ws": "8.18.1", "@typescript-eslint/eslint-plugin": "8.62.1", "@typescript-eslint/parser": "8.62.1", - "eslint": "10.6.0", + "eslint": "9.39.2", "eslint-config-prettier": "10.1.8", "eslint-import-resolver-typescript": "4.4.5", "eslint-plugin-import": "2.32.0", @@ -95,13 +95,13 @@ "jest": "30.4.2", "markdownlint-cli": "0.49.0", "npm-package-json-lint": "10.4.1", - "prettier": "3.9.4", + "prettier": "3.8.4", "prettier-plugin-jsdoc": "1.8.1", "prettier-plugin-organize-imports": "4.3.0", "prettier-plugin-packagejson": "3.0.2", "ts-jest": "29.4.11", "tsx": "4.23.0", - "typescript": "6.0.3", + "typescript": "5.9.3", "typescript-7": "npm:typescript@7.0.2" }, "engines": { diff --git a/src/core/logging/ConsoleLogger.ts b/src/core/logging/ConsoleLogger.ts index 9beac7f9..519f10f6 100644 --- a/src/core/logging/ConsoleLogger.ts +++ b/src/core/logging/ConsoleLogger.ts @@ -51,7 +51,7 @@ export class ConsoleLogger implements Logger { console.log(`${prefix} ${methodLabel} ${urlLabel}`); - if (sanitizedRequest && Object.keys(sanitizedRequest as object).length > 0) { + if (sanitizedRequest && Object.keys(sanitizedRequest).length > 0) { console.log(`${this.colorize(' Request:', 'gray')} ${this.formatJson(sanitizedRequest)}`); } diff --git a/test/integration/localnet/ledger-api/paid-traffic-cost.test.ts b/test/integration/localnet/ledger-api/paid-traffic-cost.test.ts index 88f8f713..58033e60 100644 --- a/test/integration/localnet/ledger-api/paid-traffic-cost.test.ts +++ b/test/integration/localnet/ledger-api/paid-traffic-cost.test.ts @@ -6,9 +6,9 @@ import { CantonRuntime, ValidatorApiClient } from '../../../../src'; import { waitForCompletionWithMetadata } from '../../../../src/clients/ledger-json-api'; +import { CompletionStreamResponseSchema } from '../../../../src/clients/ledger-json-api/schemas/api/completions'; import { EnvLoader } from '../../../../src/core/config/EnvLoader'; import { ConfigurationError } from '../../../../src/core/errors'; -import { CompletionStreamResponseSchema } from '../../../../src/clients/ledger-json-api/schemas/api/completions'; import { getPaidTrafficCostFromCompletion } from '../../../../src/utils/traffic/paid-traffic-cost'; import { buildIntegrationTestClientConfig } from '../../../utils/testConfig'; import { getClient } from './setup'; @@ -53,10 +53,7 @@ async function resolveWalletAppInstallContext( * Participant user id for completions. Falls back to validator `user_name` (same as `scripts/grant-user-rights.ts`) * when the ledger authenticated-user endpoint is unavailable. */ -async function resolveLedgerUserId( - client: ReturnType, - validatorUserName: string -): Promise { +async function resolveLedgerUserId(client: ReturnType, validatorUserName: string): Promise { const configured = client.getUserId(); if (configured) { return configured; @@ -170,7 +167,7 @@ describe('LedgerJsonApiClient / paidTrafficCost on completions', () => { limit: 50, }); - const row = findCompletionForSubmission(blocking as unknown[], submissionId); + const row = findCompletionForSubmission(blocking, submissionId); if (!row) { throw new Error( `Blocking completions did not include submissionId=${submissionId} (check limit=${50} or timing)` diff --git a/test/integration/localnet/ledger-api/parties.test.ts b/test/integration/localnet/ledger-api/parties.test.ts index c17e471f..7a3136c8 100644 --- a/test/integration/localnet/ledger-api/parties.test.ts +++ b/test/integration/localnet/ledger-api/parties.test.ts @@ -13,8 +13,7 @@ describe('LedgerJsonApiClient / Parties', () => { test('getParticipantId returns participant identifier', async () => { const client = getClient(); - // Cast to handle void parameter type - const response = await (client.getParticipantId as () => Promise<{ participantId: string }>)(); + const response = await client.getParticipantId(); expect(response).toBeDefined(); expect(typeof response.participantId).toBe('string'); diff --git a/test/typecheck/scan-registry-metadata.typecheck.ts b/test/typecheck/scan-registry-metadata.typecheck.ts index 626901df..c2146681 100644 --- a/test/typecheck/scan-registry-metadata.typecheck.ts +++ b/test/typecheck/scan-registry-metadata.typecheck.ts @@ -1,15 +1,15 @@ -import { z } from 'zod'; +import type { z } from 'zod'; import type { ScanApiClient } from '../../src/clients/scan-api'; -import { +import type { + GetInstrumentParams, GetInstrumentParamsSchema, - type GetInstrumentParams, - type GetInstrumentResponse, + GetInstrumentResponse, } from '../../src/clients/scan-api/operations/v0/registry/metadata/v1/get-instrument'; -import { type GetRegistryInfoResponse } from '../../src/clients/scan-api/operations/v0/registry/metadata/v1/get-registry-info'; -import { +import type { GetRegistryInfoResponse } from '../../src/clients/scan-api/operations/v0/registry/metadata/v1/get-registry-info'; +import type { + ListInstrumentsParams, ListInstrumentsParamsSchema, - type ListInstrumentsParams, - type ListInstrumentsResponse, + ListInstrumentsResponse, } from '../../src/clients/scan-api/operations/v0/registry/metadata/v1/list-instruments'; import type { paths } from '../../src/generated/token-standard/splice-api-token-metadata-v1/openapi/token-metadata-v1'; From 74d43bd38500deabb5da23909b49b73b54775297 Mon Sep 17 00:00:00 2001 From: HardlyDifficult Date: Mon, 13 Jul 2026 18:25:43 -0400 Subject: [PATCH 3/3] fix(logging): narrow sanitized requests before key inspection --- src/core/logging/ConsoleLogger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/logging/ConsoleLogger.ts b/src/core/logging/ConsoleLogger.ts index 519f10f6..471e3a08 100644 --- a/src/core/logging/ConsoleLogger.ts +++ b/src/core/logging/ConsoleLogger.ts @@ -51,7 +51,7 @@ export class ConsoleLogger implements Logger { console.log(`${prefix} ${methodLabel} ${urlLabel}`); - if (sanitizedRequest && Object.keys(sanitizedRequest).length > 0) { + if (sanitizedRequest !== null && typeof sanitizedRequest === 'object' && Object.keys(sanitizedRequest).length > 0) { console.log(`${this.colorize(' Request:', 'gray')} ${this.formatJson(sanitizedRequest)}`); }