From 0559eadb7da1fb3e098b20b743f11e4a4411e493 Mon Sep 17 00:00:00 2001 From: sid <48153483+siddsriv@users.noreply.github.com> Date: Tue, 19 Mar 2024 20:09:19 -0400 Subject: [PATCH] chore(ec2-metadata-service): set @smithy/protocol-http dependency (#5922) --- packages/ec2-metadata-service/package.json | 2 +- packages/ec2-metadata-service/src/MetadataService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ec2-metadata-service/package.json b/packages/ec2-metadata-service/package.json index 988001c713a05..3b4f4cf398e85 100644 --- a/packages/ec2-metadata-service/package.json +++ b/packages/ec2-metadata-service/package.json @@ -21,7 +21,7 @@ "module": "./dist-es/index.js", "types": "./dist-types/index.d.ts", "dependencies": { - "@aws-sdk/protocol-http": "*", + "@smithy/protocol-http": "^3.3.0", "@aws-sdk/types": "*", "@smithy/node-config-provider": "^2.3.0", "@smithy/node-http-handler": "^2.5.0", diff --git a/packages/ec2-metadata-service/src/MetadataService.ts b/packages/ec2-metadata-service/src/MetadataService.ts index 5bb2035cdad8f..8a7b657c35dad 100644 --- a/packages/ec2-metadata-service/src/MetadataService.ts +++ b/packages/ec2-metadata-service/src/MetadataService.ts @@ -1,7 +1,7 @@ -import { HttpRequest } from "@aws-sdk/protocol-http"; import { HttpHandlerOptions } from "@aws-sdk/types"; import { loadConfig } from "@smithy/node-config-provider"; import { NodeHttpHandler } from "@smithy/node-http-handler"; +import { HttpRequest } from "@smithy/protocol-http"; import { sdkStreamMixin } from "@smithy/util-stream"; import { ENDPOINT_SELECTORS, IMDSv1_DISABLED_SELECTORS } from "./ConfigLoaders";