Skip to content

Commit

Permalink
fix: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ committed Jan 28, 2020
1 parent d0c5170 commit bb20861
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/load-method-handler-mapping/index.ts
@@ -1,7 +1,6 @@
import * as fs from "fs";
import * as util from "util";
import { flatten, chain } from "lodash";
import { inspect } from "util";
const readDir = util.promisify(fs.readdir);

export default async function loadMethodHandlerMapping(basePath: string) {
Expand Down
3 changes: 1 addition & 2 deletions src/transports/https.ts
@@ -1,9 +1,8 @@
import cors from "cors";
import { json as jsonParser } from "body-parser";
import connect, { HandleFunction } from "connect";
import http2, { ServerOptions, Http2SecureServer, SecureServerOptions } from "http2";
import http2, { Http2SecureServer, SecureServerOptions } from "http2";
import ServerTransport, { IJSONRPCRequest } from "./server-transport";
import { IncomingMessage } from "http";

export interface IHTTPSServerTransportOptions extends SecureServerOptions {
middleware: HandleFunction[];
Expand Down
3 changes: 0 additions & 3 deletions src/transports/ipc.test.ts
@@ -1,9 +1,6 @@
import examples from "@open-rpc/examples";
import { parseOpenRPCDocument } from "@open-rpc/schema-utils-js";
import { Router } from "../router";
import * as fs from "fs";
import { promisify } from "util";
const readFile = promisify(fs.readFile);
import IPCTransport from "./ipc";
import ipc from "node-ipc";
import { IJSONRPCResponse } from "./server-transport";
Expand Down
4 changes: 1 addition & 3 deletions src/transports/ipc.ts
@@ -1,8 +1,6 @@
import cors from "cors";
import ServerTransport, { IJSONRPCRequest, IJSONRPCResponse } from "./server-transport";
import ServerTransport, { IJSONRPCRequest } from "./server-transport";
import * as ipc from "node-ipc";
import _ from "lodash";
import { HandleFunction, NextHandleFunction } from "connect";

export interface IIPCServerTransportOptions {
id: string;
Expand Down

0 comments on commit bb20861

Please sign in to comment.