Skip to content

Commit

Permalink
Merge pull request #40 from upstash/hotfix-cloudflare-cache-field
Browse files Browse the repository at this point in the history
Add cloudflare/nodejs imports and add cache parameter to cloudflare client
  • Loading branch information
ogzhanolguncu authored Jul 23, 2024
2 parents fcd01c9 + 8fa3021 commit 44bbe93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
"import": "./dist/cloudflare.mjs",
"types": "./dist/cloudflare.d.ts"
}
},
"./cloudflare": {
"import": "./dist/cloudflare.mjs",
"types": "./dist/cloudflare.d.ts"
},
"./nodejs": {
"import": "./dist/nodejs.mjs",
"types": "./dist/nodejs.d.ts"
}
},
"main": "./dist/nodejs.js",
Expand Down
1 change: 1 addition & 0 deletions src/platforms/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export class Index<TIndexMetadata extends Dict = Dict> extends core.Index<TIndex
retry: config?.retry,
headers: { authorization: `Bearer ${token}` },
signal: config?.signal,
cache: config?.cache === false ? undefined : config?.cache,
});

super(client);
Expand Down

0 comments on commit 44bbe93

Please sign in to comment.