Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ private void writeHeaders(
writer.write("...isSerializableHeaderValue($L) && { $S: $L },",
memberLocation, binding.getLocationName(), headerValue);
}

// Handle assembling prefix headers.
for (HttpBinding binding : bindingIndex.getRequestBindings(operation, Location.PREFIX_HEADERS)) {
String memberLocation = "input." + symbolProvider.toMemberName(binding.getMember());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ static void generateCollectBodyString(GenerationContext context) {

writer.addImport("SerdeContext", "__SerdeContext", "@aws-sdk/types");
writer.write("// Encode Uint8Array data into string with utf-8.");
writer.write("const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> => " +
"collectBody(streamBody, context).then(body => context.utf8Encoder(body))");
writer.write("const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> => "
+ "collectBody(streamBody, context).then(body => context.utf8Encoder(body))");
writer.write("");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./models/*.js && rimraf ./protocols/*.js",
"remove-maps": "rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./models/*.js.map && rimraf ./protocols/*.js.map",
"test": "yarn build && jest --coverage --passWithNoTests",
"smoke-test": "npm run pretest && node ./test/smoke/index.spec.js",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn pretest && yarn build:es"
},
Expand Down