From dfec3731cfd05a653f20560723eb4ff2a495ecdb Mon Sep 17 00:00:00 2001 From: James Abbott Date: Thu, 28 Aug 2025 16:56:32 +0100 Subject: [PATCH 1/2] chore: update GitHub Actions workflow indentation and add .venv to .gitignore --- .github/workflows/typedoc.yml | 6 +++--- .gitignore | 2 ++ eslint.config.mjs | 2 +- src/main.ts | 4 ---- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/typedoc.yml b/.github/workflows/typedoc.yml index 17c47bd..24b830d 100644 --- a/.github/workflows/typedoc.yml +++ b/.github/workflows/typedoc.yml @@ -1,9 +1,9 @@ name: Deploy TypeDoc on GitHub pages on: - push: - branches: - main + push: + branches: + main env: diff --git a/.gitignore b/.gitignore index 7d8c104..0dd2b58 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,5 @@ build/ # Misc .DS_Store .env + +.venv diff --git a/eslint.config.mjs b/eslint.config.mjs index 68df5e6..171fd63 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -9,7 +9,7 @@ import tseslint from 'typescript-eslint'; // You should change it to your needs following the documentation. export default tseslint.config( { - ignores: ['**/build/**', '**/__tests__/**', '**/tmp/**', '**/coverage/**', 'src/athena/**'], + ignores: ['**/build/**', '.venv/**', '**/__tests__/**', '**/tmp/**', '**/coverage/**', 'src/athena/**'], }, eslint.configs.recommended, eslintConfigPrettier, diff --git a/src/main.ts b/src/main.ts index f1e5fff..b2e1662 100644 --- a/src/main.ts +++ b/src/main.ts @@ -24,7 +24,6 @@ import { } from './authenticationManager'; import { computeHashesFromStream } from './hashing'; - /** * Options for the classifyImage method. * @property affiliate Optional affiliate identifier for the request. @@ -41,7 +40,6 @@ export interface ClassifyImageOptions { format?: ClassifyRequest['inputs'][number]['format']; } - /** * Options for initializing the ClassifierSdk helper. * @property keepAliveInterval Optional interval (ms) for keep-alive pings. @@ -58,7 +56,6 @@ export interface ClassifierHelperOptions { authentication: AuthenticationOptions; } - /** * Event types emitted by the ClassifierSdk. * @property error Emitted when an error occurs. @@ -77,7 +74,6 @@ export type ClassifierEvents = { export const defaultGrpcAddress = 'csam-classification-messages.crispdev.com:443'; - /** * SDK for interacting with the Athena classification service via gRPC. * Emits events for data, errors, open, and close. From f513c6d55dfe2bfdf5a43aba4355eee6ef904cd0 Mon Sep 17 00:00:00 2001 From: James Abbott Date: Thu, 28 Aug 2025 16:58:00 +0100 Subject: [PATCH 2/2] fix: update test timeout syntax for consistency --- __tests__/unit/main.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/unit/main.test.ts b/__tests__/unit/main.test.ts index 97058cb..7f8d2a1 100644 --- a/__tests__/unit/main.test.ts +++ b/__tests__/unit/main.test.ts @@ -27,7 +27,7 @@ describe('classifierHelper', () => { } // Assert error is unset expect(error).toBeNull(); - }, { timeout: 10000 }) + }, 10000) }); describe('classifyImage function', () => { @@ -90,5 +90,5 @@ describe('classifyImage function', () => { // Accept either a successful call or a connection error (for CI/dev convenience) expect(error).toBeUndefined(); - }, { timeout: 120000 }); + }, 120000); });