Skip to content

Commit 4e4a66a

Browse files
committed
fix to not rely on hapijs Util(s).Dictionary as they renamed and it broke
1 parent 3b55213 commit 4e4a66a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type {
55
ResponseToolkit,
66
RouteOptions,
77
Server,
8-
Util,
98
} from '@hapi/hapi';
109
import type {
1110
ApolloServer,
@@ -118,7 +117,9 @@ function toGraphqlRequest(request: Request): HTTPGraphQLRequest {
118117
};
119118
}
120119

121-
function normalizeHeaders(headers: Util.Dictionary<string>): HeaderMap {
120+
function normalizeHeaders(headers: {
121+
[key: string]: string;
122+
}): HeaderMap {
122123
const newHeaders = new HeaderMap();
123124
for (const [key, value] of Object.entries(headers)) {
124125
if (value !== undefined) {

0 commit comments

Comments
 (0)