From 9649ae591d7cd652b97d7961d7c90aba41c3e78b Mon Sep 17 00:00:00 2001 From: Allan Zheng Date: Tue, 12 May 2020 11:51:04 -0700 Subject: [PATCH 1/2] fix formating issue --- .../codegen/integration/HttpBindingProtocolGenerator.java | 2 +- .../codegen/integration/HttpProtocolGeneratorUtils.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpBindingProtocolGenerator.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpBindingProtocolGenerator.java index ddc2ccb4d09..c09ad20477e 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpBindingProtocolGenerator.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpBindingProtocolGenerator.java @@ -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()); diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java index 6fc314479b1..fb4b7fe11b1 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpProtocolGeneratorUtils.java @@ -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 => " + - "collectBody(streamBody, context).then(body => context.utf8Encoder(body))"); + writer.write("const collectBodyString = (streamBody: any, context: __SerdeContext): Promise => " + + "collectBody(streamBody, context).then(body => context.utf8Encoder(body))"); writer.write(""); } From 4e8f51db415113acf80e05ac0e3337a4f67284b2 Mon Sep 17 00:00:00 2001 From: Allan Zheng Date: Tue, 12 May 2020 16:27:44 -0700 Subject: [PATCH 2/2] remove smoke-test script --- .../software/amazon/smithy/typescript/codegen/base-package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json index fe344a2da4b..912ddad1dae 100644 --- a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json +++ b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json @@ -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" },