Skip to content

Commit 8ee06d4

Browse files
authored
fix(types): node-http-handler type imports and @aws-sdk/types exports (#4610)
1 parent ddb0c5d commit 8ee06d4

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

packages/node-http-handler/src/node-http2-connection-manager.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { RequestContext } from "@aws-sdk/types";
2-
import { ConnectConfiguration } from "@aws-sdk/types/src/connection/config";
3-
import { ConnectionManager, ConnectionManagerConfiguration } from "@aws-sdk/types/src/connection/manager";
2+
import { ConnectConfiguration } from "@aws-sdk/types";
3+
import { ConnectionManager, ConnectionManagerConfiguration } from "@aws-sdk/types";
44
import http2, { ClientHttp2Session } from "http2";
55

66
import { NodeHttp2ConnectionPool } from "./node-http2-connection-pool";
@@ -37,9 +37,9 @@ export class NodeHttp2ConnectionManager implements ConnectionManager<ClientHttp2
3737
if (err) {
3838
throw new Error(
3939
"Fail to set maxConcurrentStreams to " +
40-
this.config.maxConcurrency +
41-
"when creating new session for " +
42-
requestContext.destination.toString()
40+
this.config.maxConcurrency +
41+
"when creating new session for " +
42+
requestContext.destination.toString()
4343
);
4444
}
4545
});

packages/node-http-handler/src/node-http2-connection-pool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConnectionPool } from "@aws-sdk/types/src/connection/pool";
1+
import { ConnectionPool } from "@aws-sdk/types";
22
import { ClientHttp2Session } from "http2";
33

44
export class NodeHttp2ConnectionPool implements ConnectionPool<ClientHttp2Session> {

packages/node-http-handler/src/node-http2-handler.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { HttpHandler, HttpRequest, HttpResponse } from "@aws-sdk/protocol-http";
22
import { buildQueryString } from "@aws-sdk/querystring-builder";
3-
import { HttpHandlerOptions, Provider, RequestContext } from "@aws-sdk/types";
4-
import { ConnectConfiguration } from "@aws-sdk/types/dist-types/connection/config";
3+
import { ConnectConfiguration, HttpHandlerOptions, Provider, RequestContext } from "@aws-sdk/types";
54
import { ClientHttp2Session, constants } from "http2";
65

76
import { getTransformedHeaders } from "./get-transformed-headers";
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from "./config";
2+
export * from "./manager";
3+
export * from "./pool";

packages/types/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export * from "./auth";
33
export * from "./checksum";
44
export * from "./client";
55
export * from "./command";
6+
export * from "./connection";
67
export * from "./credentials";
78
export * from "./crypto";
89
export * from "./dns";

0 commit comments

Comments
 (0)