Skip to content

Commit

Permalink
chore: switch to use .js imports in source
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Nov 19, 2023
1 parent 027e6c9 commit e325b95
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/event-handler/index.ts
Expand Up @@ -6,7 +6,7 @@ import type {
Options,
State,
WebhookEventHandlerError,
} from "../types.ts";
} from "../types.js";
import {
receiverOn as on,
receiverOnAny as onAny,
Expand Down
2 changes: 1 addition & 1 deletion src/event-handler/on.ts
Expand Up @@ -4,7 +4,7 @@ import type {
EmitterWebhookEventName,
State,
WebhookEventHandlerError,
} from "../types.ts";
} from "../types.js";

function handleEventHandlers(
state: State,
Expand Down
2 changes: 1 addition & 1 deletion src/event-handler/receive.ts
Expand Up @@ -6,7 +6,7 @@ import type {
State,
WebhookError,
WebhookEventHandlerError,
} from "../types.ts";
} from "../types.js";
import { wrapErrorHandler } from "./wrap-error-handler.js";

type EventAction = Extract<
Expand Down
2 changes: 1 addition & 1 deletion src/event-handler/remove-listener.ts
@@ -1,4 +1,4 @@
import type { EmitterWebhookEventName, State } from "../types.ts";
import type { EmitterWebhookEventName, State } from "../types.js";

export function removeListener(
state: State,
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -12,7 +12,7 @@ import type {
WebhookError,
WebhookEventHandlerError,
EmitterWebhookEventWithStringPayloadAndSignature,
} from "./types.ts";
} from "./types.js";

export { createNodeMiddleware } from "./middleware/node/index.js";
export { emitterEventNames } from "./generated/webhook-names.js";
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/node/index.ts
@@ -1,7 +1,7 @@
import { createLogger } from "../../createLogger.js";
import type { Webhooks } from "../../index.js";
import { middleware } from "./middleware.js";
import type { MiddlewareOptions } from "./types.ts";
import type { MiddlewareOptions } from "./types.js";

export function createNodeMiddleware(
webhooks: Webhooks,
Expand Down
4 changes: 2 additions & 2 deletions src/middleware/node/middleware.ts
Expand Up @@ -7,8 +7,8 @@ type ServerResponse = any;
import type { WebhookEventName } from "@octokit/webhooks-types";

import type { Webhooks } from "../../index.js";
import type { WebhookEventHandlerError } from "../../types.ts";
import type { MiddlewareOptions } from "./types.ts";
import type { WebhookEventHandlerError } from "../../types.js";
import type { MiddlewareOptions } from "./types.js";
import { getMissingHeaders } from "./get-missing-headers.js";
import { getPayload } from "./get-payload.js";
import { onUnhandledRequestDefault } from "./on-unhandled-request-default.js";
Expand Down
2 changes: 1 addition & 1 deletion src/verify-and-receive.ts
Expand Up @@ -6,7 +6,7 @@ import type {
EmitterWebhookEvent,
EmitterWebhookEventWithStringPayloadAndSignature,
State,
} from "./types.ts";
} from "./types.js";

export async function verifyAndReceive(
state: State & { secret: string },
Expand Down

0 comments on commit e325b95

Please sign in to comment.