@sveltejs/adapter-cloudflare-workers
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -1,2 +0,2 @@ | ||
import { CacheStorage } from '@cloudflare/workers-types'; | ||
import { CacheStorage, IncomingRequestCfProperties } from '@cloudflare/workers-types'; | ||
@@ -10,4 +10,5 @@ declare global { | ||
caches: CacheStorage; | ||
cf?: IncomingRequestCfProperties; | ||
} | ||
} | ||
} |
@@ -74,3 +74,5 @@ import { Server } from 'SERVER'; | ||
// @ts-expect-error lib.dom is interfering with workers-types | ||
caches | ||
caches, | ||
// @ts-expect-error req is actually a Cloudflare request not a standard request | ||
cf: req.cf | ||
}, | ||
@@ -77,0 +79,0 @@ getClientAddress() { |
{ | ||
"name": "@sveltejs/adapter-cloudflare-workers", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "SvelteKit adapter that creates a Cloudflare Workers site using a function for dynamic server rendering", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9730
226