diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/HttpProtocolTestGenerator.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/HttpProtocolTestGenerator.java index 7c860921f8e..f4d9cbe2f7e 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/HttpProtocolTestGenerator.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/HttpProtocolTestGenerator.java @@ -540,7 +540,7 @@ private void writeHttpBodyAssertions(String body, String mediaType, boolean isCl if (isClientTest) { writer.write("const utf8Encoder = client.config.utf8Encoder;"); } else { - writer.addImport("toUtf8", "__utf8Encoder", "@aws-sdk/util-utf8-node"); + writer.addImport("toUtf8", "__utf8Encoder", "@aws-sdk/util-utf8"); writer.write("const utf8Encoder = __utf8Encoder;"); } diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/ServerGenerator.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/ServerGenerator.java index aa59d3ad5e0..147e5cf5d7b 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/ServerGenerator.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/ServerGenerator.java @@ -276,8 +276,8 @@ private static void writeSerdeContextBase(TypeScriptWriter writer) { writer.addImport("streamCollector", null, "@aws-sdk/node-http-handler"); writer.addImport("fromBase64", null, TypeScriptDependency.AWS_SDK_UTIL_BASE64.packageName); writer.addImport("toBase64", null, TypeScriptDependency.AWS_SDK_UTIL_BASE64.packageName); - writer.addImport("fromUtf8", null, "@aws-sdk/util-utf8-node"); - writer.addImport("toUtf8", null, "@aws-sdk/util-utf8-node"); + writer.addImport("fromUtf8", null, "@aws-sdk/util-utf8"); + writer.addImport("toUtf8", null, "@aws-sdk/util-utf8"); writer.openBlock("const serdeContextBase = {", "};", () -> { writer.write("base64Encoder: toBase64,");