Skip to content

Commit

Permalink
fix: extensionless js imports - initial (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
YauhenChakhlou authored Mar 23, 2024
1 parent d0e5e58 commit 5ef49b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/instrumentation/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/instrumentation/service.ts
Original file line number Diff line number Diff line change
@@ -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<Fetcher> = {
Expand Down

0 comments on commit 5ef49b4

Please sign in to comment.