Skip to content

Commit c3b4b22

Browse files
authored
fix: change fetch-retry import to esm module import (#611)
1 parent 92b8d61 commit c3b4b22

File tree

1 file changed

+2
-1
lines changed
  • packages/traceloop-sdk/src/lib/prompts

1 file changed

+2
-1
lines changed

packages/traceloop-sdk/src/lib/prompts/fetch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { InitializeOptions } from "../interfaces";
22
import fetch from "cross-fetch";
3+
import fetchBuilder from "fetch-retry";
34

4-
const fetchRetry = require("fetch-retry")(fetch);
5+
const fetchRetry = fetchBuilder(fetch);
56

67
export const fetchPrompts = async (options: InitializeOptions) => {
78
const { apiKey, baseUrl, traceloopSyncMaxRetries } = options;

0 commit comments

Comments
 (0)