From 5ef49b4b575a1b3f1bba2632b0a4fc069ac723b3 Mon Sep 17 00:00:00 2001 From: Yauhen Chakhlou <46961971+YauhenChakhlou@users.noreply.github.com> Date: Sat, 23 Mar 2024 22:54:21 +0300 Subject: [PATCH] fix: extensionless js imports - initial (#95) --- src/instrumentation/env.ts | 2 +- src/instrumentation/service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/instrumentation/env.ts b/src/instrumentation/env.ts index e361843..3e6ee43 100644 --- a/src/instrumentation/env.ts +++ b/src/instrumentation/env.ts @@ -3,7 +3,7 @@ import { instrumentDOBinding } from './do.js' import { instrumentKV } from './kv.js' import { instrumentQueueSender } from './queue.js' import { instrumentServiceBinding } from './service.js' -import { instrumentAnalyticsEngineDataset } from './analytics-engine' +import { instrumentAnalyticsEngineDataset } from './analytics-engine.js' const isKVNamespace = (item?: unknown): item is KVNamespace => { return !!(item as KVNamespace)?.getWithMetadata diff --git a/src/instrumentation/service.ts b/src/instrumentation/service.ts index 92bfcd2..e8a16a1 100644 --- a/src/instrumentation/service.ts +++ b/src/instrumentation/service.ts @@ -1,5 +1,5 @@ -import { passthroughGet, wrap } from '../wrap' -import { instrumentClientFetch } from './fetch' +import { passthroughGet, wrap } from '../wrap.js' +import { instrumentClientFetch } from './fetch.js' export function instrumentServiceBinding(fetcher: Fetcher, envName: string): Fetcher { const fetcherHandler: ProxyHandler = {