Skip to content

Commit

Permalink
Import from util-utf8 on server and tests (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
srchase authored Jan 26, 2023
1 parent ebd9965 commit f053ed4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,");
Expand Down

0 comments on commit f053ed4

Please sign in to comment.