From 8fa3021f4e5d6c21a0464c77824c3f3470ffb77d Mon Sep 17 00:00:00 2001 From: CahidArda Date: Tue, 23 Jul 2024 11:59:44 +0300 Subject: [PATCH] fix: add cloudflare/nodejs imports and add cache parameter to cloudflare client added the imports because we could use explicit import when debugging. added cache field because by default it's undefined and won't cause an issue if not passed in cloudflare workers. We will be able to explicitly set it if needed. --- package.json | 8 ++++++++ src/platforms/cloudflare.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/package.json b/package.json index f691908..3ab0fe5 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/platforms/cloudflare.ts b/src/platforms/cloudflare.ts index 7db8aea..cf6a9dc 100644 --- a/src/platforms/cloudflare.ts +++ b/src/platforms/cloudflare.ts @@ -76,6 +76,7 @@ export class Index extends core.Index