Skip to content

Commit

Permalink
fix(types): node-http-handler type imports and @aws-sdk/types exports (
Browse files Browse the repository at this point in the history
  • Loading branch information
MYoung25 authored Apr 4, 2023
1 parent ddb0c5d commit 8ee06d4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/node-http-handler/src/node-http2-connection-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RequestContext } from "@aws-sdk/types";
import { ConnectConfiguration } from "@aws-sdk/types/src/connection/config";
import { ConnectionManager, ConnectionManagerConfiguration } from "@aws-sdk/types/src/connection/manager";
import { ConnectConfiguration } from "@aws-sdk/types";
import { ConnectionManager, ConnectionManagerConfiguration } from "@aws-sdk/types";
import http2, { ClientHttp2Session } from "http2";

import { NodeHttp2ConnectionPool } from "./node-http2-connection-pool";
Expand Down Expand Up @@ -37,9 +37,9 @@ export class NodeHttp2ConnectionManager implements ConnectionManager<ClientHttp2
if (err) {
throw new Error(
"Fail to set maxConcurrentStreams to " +
this.config.maxConcurrency +
"when creating new session for " +
requestContext.destination.toString()
this.config.maxConcurrency +
"when creating new session for " +
requestContext.destination.toString()
);
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ConnectionPool } from "@aws-sdk/types/src/connection/pool";
import { ConnectionPool } from "@aws-sdk/types";
import { ClientHttp2Session } from "http2";

export class NodeHttp2ConnectionPool implements ConnectionPool<ClientHttp2Session> {
Expand Down
3 changes: 1 addition & 2 deletions packages/node-http-handler/src/node-http2-handler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { HttpHandler, HttpRequest, HttpResponse } from "@aws-sdk/protocol-http";
import { buildQueryString } from "@aws-sdk/querystring-builder";
import { HttpHandlerOptions, Provider, RequestContext } from "@aws-sdk/types";
import { ConnectConfiguration } from "@aws-sdk/types/dist-types/connection/config";
import { ConnectConfiguration, HttpHandlerOptions, Provider, RequestContext } from "@aws-sdk/types";
import { ClientHttp2Session, constants } from "http2";

import { getTransformedHeaders } from "./get-transformed-headers";
Expand Down
3 changes: 3 additions & 0 deletions packages/types/src/connection/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./config";
export * from "./manager";
export * from "./pool";
1 change: 1 addition & 0 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export * from "./auth";
export * from "./checksum";
export * from "./client";
export * from "./command";
export * from "./connection";
export * from "./credentials";
export * from "./crypto";
export * from "./dns";
Expand Down

0 comments on commit 8ee06d4

Please sign in to comment.