Skip to content

Commit 6bfdb02

Browse files
chore: fix formatting with prettier (#4087)
Co-authored-by: Eduardo Rodrigues <[email protected]>
1 parent 8d26e15 commit 6bfdb02

File tree

11 files changed

+33
-33
lines changed

11 files changed

+33
-33
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,24 @@ or [Smithy TypeScript generator][smithy typescript repo], you should include
133133
the generated code change to your PR. Here's how to generate clients:
134134

135135
1. Clone and checkout smithy-typescript repo
136-
```
137-
git clone https://github.com/awslabs/smithy-typescript.git && cd smithy-typescript
138-
git checkout [working_branch]
139-
```
136+
137+
```
138+
git clone https://github.com/awslabs/smithy-typescript.git && cd smithy-typescript
139+
git checkout [working_branch]
140+
```
140141

141142
1. Build the local branch and publish locally:
142-
```
143-
./gradlew clean build publishToMavenLocal
144-
```
143+
144+
```
145+
./gradlew clean build publishToMavenLocal
146+
```
145147

146148
1. Generate service clients in JavaScript SDK repo:
147-
```
148-
yarn generate-clients
149-
```
150-
`generate-clients` is a util script to facilitate the code generation. For more
151-
information, please refer [codegen](./codegen/README.md)
149+
```
150+
yarn generate-clients
151+
```
152+
`generate-clients` is a util script to facilitate the code generation. For more
153+
information, please refer [codegen](./codegen/README.md)
152154

153155
[issues]: https://github.com/aws/aws-sdk-js-v3/issues
154156
[pr]: https://github.com/aws/aws-sdk-js-v3/pulls

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,17 @@ Lastly we have higher level libraries in `/lib`. These are javascript specific l
286286

287287
Certain command outputs include streams, which have different implementations in
288288
Node.js and browsers. For convenience, a set of stream handling methods will be
289-
merged (`Object.assign`) to the output stream object, as defined in
289+
merged (`Object.assign`) to the output stream object, as defined in
290290
[SdkStreamMixin](serde-code-url).
291291

292292
Output types having this feature will be indicated by the `WithSdkStreamMixin<T, StreamKey>`
293293
[wrapper type](serde-code-url), where `T` is the original output type
294-
and `StreamKey` is the output property key having a stream type specific to
294+
and `StreamKey` is the output property key having a stream type specific to
295295
the runtime environment.
296296

297297
[serde-code-url]: https://github.com/aws/aws-sdk-js-v3/blob/main/packages/types/src/serde.ts
298298

299-
Here is an example using `S3::GetObject`.
299+
Here is an example using `S3::GetObject`.
300300

301301
```js
302302
import { S3 } from "@aws-sdk/client-s3";
@@ -309,7 +309,7 @@ const getObjectResult = await client.getObject({
309309
});
310310

311311
// env-specific stream with added mixin methods.
312-
const bodyStream = getObjectResult.Body;
312+
const bodyStream = getObjectResult.Body;
313313

314314
// one-time transform.
315315
const bodyAsString = await bodyStream.transformToString();

codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/sdk-default-configuration.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"override": 3100
1717
}
1818
},
19-
"in-region": {
20-
},
19+
"in-region": {},
2120
"cross-region": {
2221
"connectTimeoutInMillis": {
2322
"override": 3100
@@ -52,4 +51,4 @@
5251
"tlsNegotiationTimeoutInMillis": "<p>The maximum amount of time that a TLS handshake is allowed to take from the time the CLIENT HELLO message is sent to ethe time the client and server have fully negotiated ciphers and exchanged keys</p>"
5352
}
5453
}
55-
}
54+
}

packages/config-resolver/src/endpointsConfig/resolveEndpointsConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getEndpointFromRegion } from "./utils/getEndpointFromRegion";
55

66
export interface EndpointsInputConfig {
77
/**
8-
* The fully qualified endpoint of the webservice. This is only required when using
8+
* The fully qualified endpoint of the webservice. This is only required when using
99
* a custom endpoint (for example, when using a local version of S3).
1010
*/
1111
endpoint?: string | Endpoint | Provider<Endpoint>;

packages/middleware-endpoint-discovery/src/updateDiscoveredEndpointInCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ export const updateDiscoveredEndpointInCache = async (
5454
resolve();
5555
})
5656
.catch((error: any) => {
57-
// The cache entry must be deleted
57+
// The cache entry must be deleted
5858
// because a subsequent blocking request will be stuck
5959
// in a waiting state if it sees the cache entry
60-
// but we have already flushed the request queue.
60+
// but we have already flushed the request queue.
6161
endpointCache.delete(cacheKey);
6262

6363
const errorToThrow = Object.assign(

packages/middleware-endpoint/src/endpointMiddleware.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { getEndpointFromInstructions } from "./adaptors/getEndpointFromInstructi
1414
import { EndpointResolvedConfig } from "./resolveEndpointConfig";
1515
import { EndpointParameterInstructions } from "./types";
1616

17-
1817
/**
1918
* @private
2019
*/

packages/url-parser/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { parseQueryString } from "@aws-sdk/querystring-parser";
22
import { Endpoint, QueryParameterBag, UrlParser } from "@aws-sdk/types";
33

44
export const parseUrl: UrlParser = (url: string | URL): Endpoint => {
5-
if (typeof url === 'string') {
6-
return parseUrl(new URL(url))
5+
if (typeof url === "string") {
6+
return parseUrl(new URL(url));
77
}
88
const { hostname, pathname, port, protocol, search } = url as URL;
99

packages/xhr-http-handler/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ handler.on(XhrHttpHandler.EVENTS.PROGRESS, (progress, request) => {
8282
if (progress.lengthComputable) {
8383
console.log(
8484
progress.loaded, // bytes
85-
progress.total, // bytes
85+
progress.total // bytes
8686
);
8787
console.log(
8888
request // contains the request information to differentiate
89-
// requests from the same handler.
90-
)
89+
// requests from the same handler.
90+
);
9191
}
9292
});
9393

@@ -127,5 +127,5 @@ await client.send(new GetObjectCommand(/*...*/));
127127
```
128128

129129
You can check the source `.ts` file or published `.d.ts` file
130-
for the full list of events, or inspect the `XhrHttpHandler.EVENTS`
130+
for the full list of events, or inspect the `XhrHttpHandler.EVENTS`
131131
object at runtime.

packages/xhr-http-handler/src/xhr-http-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type XhrHttpHandlerEvents = {
2626
* differentiation of multiple concurrent request events.
2727
*/
2828
readonly PROGRESS: "xhr.progress";
29-
29+
3030
/**
3131
* Emitted for xhr.upload on progress.
3232
* Payload is the native ProgressEvent and the HttpRequest to allow

scripts/generate-clients/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Prerequisite
44

5-
* Node.js version >= 12.
6-
* [Build and publish Smithy-TypeScript locally](https://github.com/awslabs/smithy-typescript#steps-to-build).
5+
- Node.js version >= 12.
6+
- [Build and publish Smithy-TypeScript locally](https://github.com/awslabs/smithy-typescript#steps-to-build).
77

88
## Options:
99

tests/e2e/delete-stale-changesets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.deleteStaleChangesets = async (client, stackName) => {
2424
);
2525
}
2626
}
27-
} catch(e) {
27+
} catch (e) {
2828
// non-blocking throttling error, potentially.
2929
console.error(e);
3030
}

0 commit comments

Comments
 (0)