From f5b00fdcd736315db2c4269af8619f0ad48156e6 Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Fri, 31 Jul 2020 12:59:14 -0700 Subject: [PATCH] refactor: no import star Signed-off-by: Grant Timmerman --- src/index.ts | 4 +++- src/transport/emitter.ts | 2 +- src/transport/index.ts | 4 ---- 3 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 src/transport/index.ts diff --git a/src/index.ts b/src/index.ts index b77e2e30..2c20efab 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,9 @@ import { ValidationError } from "./event/validation"; // import {Version} from './event/' import { CloudEventV03, CloudEventV03Attributes, CloudEventV1, CloudEventV1Attributes } from "./event/interfaces"; -import { Emitter, Receiver, Mode, Protocol, TransportOptions } from "./transport"; +import { Emitter, TransportOptions } from "./transport/emitter"; +import { Receiver, Mode } from "./transport/receiver"; +import { Protocol } from "./transport/protocols"; import { Headers, headersFor } from "./transport/http/headers"; export { diff --git a/src/transport/emitter.ts b/src/transport/emitter.ts index 2cc9d9de..911339e3 100644 --- a/src/transport/emitter.ts +++ b/src/transport/emitter.ts @@ -1,6 +1,6 @@ import { CloudEvent } from "../event/cloudevent"; import { emitBinary, emitStructured } from "./http"; -import { Protocol } from "."; +import { Protocol } from "./protocols"; import { AxiosResponse } from "axios"; import { Agent } from "http"; diff --git a/src/transport/index.ts b/src/transport/index.ts deleted file mode 100644 index 24c5755d..00000000 --- a/src/transport/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./emitter"; -export * from "./receiver"; -export * as http from "./http/headers"; -export * from "./protocols";