diff --git a/transcript-orchestration/functions/audio-transcoder/tests/unit/app.test.ts b/transcript-orchestration/functions/audio-transcoder/tests/unit/app.test.ts index ac8bb61..2faa57a 100644 --- a/transcript-orchestration/functions/audio-transcoder/tests/unit/app.test.ts +++ b/transcript-orchestration/functions/audio-transcoder/tests/unit/app.test.ts @@ -3,7 +3,7 @@ import { writeFile } from 'node:fs/promises' import { resolve } from 'node:path' import { mockClient } from 'aws-sdk-client-mock' -import { sdkStreamMixin } from '@aws-sdk/util-stream-node' +import { sdkStreamMixin } from '@smithy/util-stream' import { S3Client, PutObjectCommand, GetObjectCommand } from '@aws-sdk/client-s3' import { mockedContext } from '../../../mock-utils/lambda-context' import { test, expect, vi } from 'vitest' diff --git a/transcript-orchestration/functions/transcript-processor/tests/unit/app.test.ts b/transcript-orchestration/functions/transcript-processor/tests/unit/app.test.ts index 8cf8a5c..384fcb8 100644 --- a/transcript-orchestration/functions/transcript-processor/tests/unit/app.test.ts +++ b/transcript-orchestration/functions/transcript-processor/tests/unit/app.test.ts @@ -3,7 +3,7 @@ import { Readable } from 'node:stream' import { resolve } from 'node:path' import { mockClient } from 'aws-sdk-client-mock' -import { sdkStreamMixin } from '@aws-sdk/util-stream-node' +import { sdkStreamMixin } from '@smithy/util-stream' import { S3Client, PutObjectCommand, GetObjectCommand } from '@aws-sdk/client-s3' import { test, assert } from 'vitest' diff --git a/transcript-orchestration/package-lock.json b/transcript-orchestration/package-lock.json index d49405b..1cfeea9 100644 --- a/transcript-orchestration/package-lock.json +++ b/transcript-orchestration/package-lock.json @@ -9,26 +9,26 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@aws-lambda-powertools/logger": "^1.5.0", - "@aws-lambda-powertools/metrics": "^1.5.0", - "@aws-lambda-powertools/tracer": "^1.5.0", - "@aws-sdk/client-s3": "^3.245.0", - "@aws-sdk/client-ssm": "^3.245.0", - "@aws-sdk/lib-storage": "^3.245.0", + "@aws-lambda-powertools/logger": "^1.14.0", + "@aws-lambda-powertools/metrics": "^1.14.0", + "@aws-lambda-powertools/tracer": "^1.14.0", + "@aws-sdk/client-s3": "^3.436.0", + "@aws-sdk/lib-storage": "^3.436.0", "@middy/core": "^3.6.2", "ffmpeg": "^0.0.4", "readable-stream": "^4.3.0", "undici": "^5.14.0" }, "devDependencies": { - "@aws-sdk/types": "^3.226.0", - "@types/aws-lambda": "^8.10.109", + "@aws-sdk/types": "^3.433.0", + "@smithy/util-stream": "^2.0.17", + "@types/aws-lambda": "^8.10.125", "@types/ffmpeg": "^1.0.4", "@types/readable-stream": "^2.3.15", "@typescript-eslint/eslint-plugin": "^5.48.1", "@typescript-eslint/parser": "^5.48.1", "@vitest/coverage-c8": "^0.29.2", - "aws-sdk-client-mock": "^2.0.1", + "aws-sdk-client-mock": "^3.0.0", "eslint": "^8.31.0", "eslint-config-standard": "^17.0.0", "eslint-config-standard-with-typescript": "^26.0.0", @@ -295,56 +295,6 @@ "node": ">=14.0.0" } }, - "node_modules/@aws-sdk/client-ssm": { - "version": "3.436.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.436.0.tgz", - "integrity": "sha512-eoJMJjxyen/VxwEe3VY7Jy2Zb5YlDsgoVpUCg6aeYu3fYmdEXb35EPDtm1DE74OvQ5NK6fBjDVwfutgjlKaulg==", - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.436.0", - "@aws-sdk/core": "3.436.0", - "@aws-sdk/credential-provider-node": "3.436.0", - "@aws-sdk/middleware-host-header": "3.433.0", - "@aws-sdk/middleware-logger": "3.433.0", - "@aws-sdk/middleware-recursion-detection": "3.433.0", - "@aws-sdk/middleware-signing": "3.433.0", - "@aws-sdk/middleware-user-agent": "3.433.0", - "@aws-sdk/region-config-resolver": "3.433.0", - "@aws-sdk/types": "3.433.0", - "@aws-sdk/util-endpoints": "3.433.0", - "@aws-sdk/util-user-agent-browser": "3.433.0", - "@aws-sdk/util-user-agent-node": "3.433.0", - "@smithy/config-resolver": "^2.0.16", - "@smithy/fetch-http-handler": "^2.2.4", - "@smithy/hash-node": "^2.0.12", - "@smithy/invalid-dependency": "^2.0.12", - "@smithy/middleware-content-length": "^2.0.14", - "@smithy/middleware-endpoint": "^2.1.3", - "@smithy/middleware-retry": "^2.0.18", - "@smithy/middleware-serde": "^2.0.12", - "@smithy/middleware-stack": "^2.0.6", - "@smithy/node-config-provider": "^2.1.3", - "@smithy/node-http-handler": "^2.1.8", - "@smithy/protocol-http": "^3.0.8", - "@smithy/smithy-client": "^2.1.12", - "@smithy/types": "^2.4.0", - "@smithy/url-parser": "^2.0.12", - "@smithy/util-base64": "^2.0.0", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.16", - "@smithy/util-defaults-mode-node": "^2.0.21", - "@smithy/util-retry": "^2.0.5", - "@smithy/util-utf8": "^2.0.0", - "@smithy/util-waiter": "^2.0.12", - "tslib": "^2.5.0", - "uuid": "^8.3.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/@aws-sdk/client-sso": { "version": "3.436.0", "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.436.0.tgz", @@ -2780,9 +2730,9 @@ } }, "node_modules/aws-sdk-client-mock": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/aws-sdk-client-mock/-/aws-sdk-client-mock-2.2.0.tgz", - "integrity": "sha512-Kq2N+6gHRDedbrgTA0NMMfyN1XDWEA5Kbpm9/M/cenSxoNjfvQBOtBawI1lQe5h4UziLl///E7u17K9PBoHEKA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/aws-sdk-client-mock/-/aws-sdk-client-mock-3.0.0.tgz", + "integrity": "sha512-4mBiWhuLYLZe1+K/iB8eYy5SAZyW2se+Keyh5u9QouMt6/qJ5SRZhss68xvUX5g3ApzROJ06QPRziYHP6buuvQ==", "dev": true, "dependencies": { "@types/sinon": "^10.0.10", diff --git a/transcript-orchestration/package.json b/transcript-orchestration/package.json index 98c0dfd..1cbd8cb 100644 --- a/transcript-orchestration/package.json +++ b/transcript-orchestration/package.json @@ -11,26 +11,26 @@ "author": "fourTheorem Ltd.", "license": "MIT", "dependencies": { - "@aws-lambda-powertools/logger": "^1.5.0", - "@aws-lambda-powertools/metrics": "^1.5.0", - "@aws-lambda-powertools/tracer": "^1.5.0", - "@aws-sdk/client-ssm": "^3.245.0", - "@aws-sdk/lib-storage": "^3.245.0", - "@aws-sdk/client-s3": "^3.245.0", + "@aws-lambda-powertools/logger": "^1.14.0", + "@aws-lambda-powertools/metrics": "^1.14.0", + "@aws-lambda-powertools/tracer": "^1.14.0", + "@aws-sdk/client-s3": "^3.436.0", + "@aws-sdk/lib-storage": "^3.436.0", "@middy/core": "^3.6.2", "ffmpeg": "^0.0.4", "readable-stream": "^4.3.0", "undici": "^5.14.0" }, "devDependencies": { - "@aws-sdk/types": "^3.226.0", - "@types/aws-lambda": "^8.10.109", + "@aws-sdk/types": "^3.433.0", + "@smithy/util-stream": "^2.0.17", + "@types/aws-lambda": "^8.10.125", "@types/ffmpeg": "^1.0.4", "@types/readable-stream": "^2.3.15", "@typescript-eslint/eslint-plugin": "^5.48.1", "@typescript-eslint/parser": "^5.48.1", "@vitest/coverage-c8": "^0.29.2", - "aws-sdk-client-mock": "^2.0.1", + "aws-sdk-client-mock": "^3.0.0", "eslint": "^8.31.0", "eslint-config-standard": "^17.0.0", "eslint-config-standard-with-typescript": "^26.0.0",