Skip to content

Commit 657c881

Browse files
authored
chore: prettify files which were missed (#753)
1 parent ce75a1c commit 657c881

File tree

7 files changed

+26
-28
lines changed

7 files changed

+26
-28
lines changed

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
**/*/CHANGELOG.md
1+
**/*/CHANGELOG.md
2+
models/*
3+
.github/*

codegen/sdk-codegen/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ By running `./gradlew :sdk-codegen:build`, this package will:
1414
- The `typescript-codegen` plugin is applied. The `package` value is set
1515
to `@aws-sdk/client-` + the first dot (.) segment of the filename
1616
converted to lowercase (this segment is also the AWS SDK service ID).
17+
1718
3. Runs the `software.amazon.smithy.gradle.tasks.SmithyBuild` Gradle task
1819
to generate artifacts for each service model. Artifacts for each model
1920
are written to `codegen/sdk-codegen/build/smithyprojections/sdk-codegen/{filename}/typescript-codegen`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@
6666
"git add"
6767
]
6868
}
69-
}
69+
}

packages/middleware-stack/src/MiddlewareStack.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,9 @@ describe("MiddlewareStack", () => {
211211

212212
it("should allow combining stacks", async () => {
213213
const stack = new MiddlewareStack<input, output>();
214-
stack.add(getConcatMiddleware("first") as InitializeMiddleware<
215-
input,
216-
output
217-
>);
214+
stack.add(
215+
getConcatMiddleware("first") as InitializeMiddleware<input, output>
216+
);
218217
stack.add(
219218
getConcatMiddleware("second") as InitializeMiddleware<input, output>,
220219
{

packages/middleware-stack/src/MiddlewareStack.ts

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,10 @@ export class MiddlewareStack<Input extends object, Output extends object> {
279279
private normalizeRelativeEntries(): NormalizingEntryResult<Input, Output> {
280280
const absoluteMiddlewareNamesMap = this.absoluteEntries
281281
.filter(entry => entry.name)
282-
.reduce(
283-
(accumulator, entry) => {
284-
accumulator[entry.name!] = entry;
285-
return accumulator;
286-
},
287-
{} as NamedMiddlewareEntriesMap<Input, Output>
288-
);
282+
.reduce((accumulator, entry) => {
283+
accumulator[entry.name!] = entry;
284+
return accumulator;
285+
}, {} as NamedMiddlewareEntriesMap<Input, Output>);
289286
const normalized = this.relativeEntries.map(
290287
entry =>
291288
({
@@ -297,13 +294,10 @@ export class MiddlewareStack<Input extends object, Output extends object> {
297294
);
298295
const relativeMiddlewareNamesMap = normalized
299296
.filter(entry => entry.name)
300-
.reduce(
301-
(accumulator, entry) => {
302-
accumulator[entry.name!] = entry;
303-
return accumulator;
304-
},
305-
{} as NamedRelativeEntriesMap<Input, Output>
306-
);
297+
.reduce((accumulator, entry) => {
298+
accumulator[entry.name!] = entry;
299+
return accumulator;
300+
}, {} as NamedRelativeEntriesMap<Input, Output>);
307301

308302
const anchors: RelativeMiddlewareAnchor<Input, Output> = {};
309303
for (let i = 0; i < this.relativeEntries.length; i++) {
@@ -354,12 +348,14 @@ export class MiddlewareStack<Input extends object, Output extends object> {
354348
}
355349
// get the head of the relative middleware linked list that have
356350
// no transitive relation to absolute middleware.
357-
const orphanedRelativeEntries: Array<
358-
NormalizedRelativeEntry<Input, Output>
359-
> = [];
360-
const visited: WeakSet<
361-
NormalizedRelativeEntry<Input, Output>
362-
> = new WeakSet();
351+
const orphanedRelativeEntries: Array<NormalizedRelativeEntry<
352+
Input,
353+
Output
354+
>> = [];
355+
const visited: WeakSet<NormalizedRelativeEntry<
356+
Input,
357+
Output
358+
>> = new WeakSet();
363359
for (const anchorName of Object.keys(anchors)) {
364360
let { prev, next } = anchors[anchorName];
365361
while (prev) {

packages/smithy-client/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class Client<
7373
const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined;
7474
const callback =
7575
typeof optionsOrCb === "function"
76-
? (optionsOrCb as ((err: any, data?: OutputType) => void))
76+
? (optionsOrCb as (err: any, data?: OutputType) => void)
7777
: cb;
7878
const handler = command.resolveMiddleware(
7979
this.middlewareStack as any,

packages/xml-builder/src/XmlNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class XmlNode {
1010
constructor(
1111
private name: string,
1212
public readonly children: Stringable[] = []
13-
) { }
13+
) {}
1414

1515
withName(name: string): XmlNode {
1616
this.name = name;

0 commit comments

Comments
 (0)