@kiyasov/platform-hono 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiyasov/platform-hono",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Nest adapter for Hono",
5
5
  "author": "Islam Kiiasov",
6
6
  "license": "MIT",
@@ -10,7 +10,6 @@ import { ApolloDriverConfig } from "@nestjs/apollo";
10
10
  import { Context, HonoRequest } from "hono";
11
11
  import { StatusCode } from "hono/utils/http-status";
12
12
  import { Logger } from "@nestjs/common";
13
- import http from "http";
14
13
 
15
14
  import { PluginsExplorerService } from "./services/plugins-explorer.service";
16
15
  import { processRequest } from "./graphQLUpload";
@@ -158,14 +157,6 @@ export class HonoGraphQLDriver<
158
157
  return {};
159
158
  }
160
159
 
161
- headersToRecord(headers: Headers): http.IncomingHttpHeaders {
162
- const obj: http.IncomingHttpHeaders = {};
163
- headers.forEach((value, key) => {
164
- obj[key] = value;
165
- });
166
- return obj;
167
- }
168
-
169
160
  private logError(e: unknown): void {
170
161
  if (e instanceof Error) {
171
162
  Logger.error(e.stack || e.message);