@remix-run/cloudflare-pages
Advanced tools
Comparing version 0.0.0-experimental-7de3dd2b to 0.0.0-experimental-80f6d2e1
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -18,2 +18,4 @@ * Copyright (c) Remix Software Inc. | ||
* KV Store may contain much more data than cookies. | ||
* | ||
* @see https://remix.run/api/remix#createcloudflarekvsessionstorage-cloudflare-workers | ||
*/ | ||
@@ -20,0 +22,0 @@ function createCloudflareKVSessionStorage({ |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -42,6 +42,4 @@ * Copyright (c) Remix Software Inc. | ||
try { | ||
var _response; | ||
response = await context.env.ASSETS.fetch(context.request.url, context.request.clone()); | ||
response = (_response = response) !== null && _response !== void 0 && _response.ok ? new Response(response.body, response) : undefined; | ||
response = response && response.status >= 200 && response.status < 400 ? new Response(response.body, response) : undefined; | ||
} catch {} | ||
@@ -48,0 +46,0 @@ |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/cloudflare-pages", | ||
"description": "Cloudflare Pages request handler for Remix", | ||
"version": "0.0.0-experimental-7de3dd2b", | ||
"version": "0.0.0-experimental-80f6d2e1", | ||
"license": "MIT", | ||
@@ -17,3 +17,3 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@remix-run/server-runtime": "0.0.0-experimental-7de3dd2b" | ||
"@remix-run/server-runtime": "0.0.0-experimental-80f6d2e1" | ||
}, | ||
@@ -20,0 +20,0 @@ "peerDependencies": { |
@@ -19,4 +19,6 @@ /// <reference types="@cloudflare/workers-types" /> | ||
* KV Store may contain much more data than cookies. | ||
* | ||
* @see https://remix.run/api/remix#createcloudflarekvsessionstorage-cloudflare-workers | ||
*/ | ||
export declare function createCloudflareKVSessionStorage({ cookie, kv }: KVSessionStorageOptions): SessionStorage; | ||
export declare function createCloudflareKVSessionStorage({ cookie, kv, }: KVSessionStorageOptions): SessionStorage; | ||
export {}; |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -22,2 +22,4 @@ * Copyright (c) Remix Software Inc. | ||
* KV Store may contain much more data than cookies. | ||
* | ||
* @see https://remix.run/api/remix#createcloudflarekvsessionstorage-cloudflare-workers | ||
*/ | ||
@@ -24,0 +26,0 @@ function createCloudflareKVSessionStorage({ |
@@ -8,3 +8,3 @@ /// <reference types="@cloudflare/workers-types" /> | ||
} | ||
export declare function createRequestHandler<Env = any>({ build, getLoadContext, mode }: createPagesFunctionHandlerParams<Env>): PagesFunction<Env>; | ||
export declare function createPagesFunctionHandler<Env = any>({ build, getLoadContext, mode }: createPagesFunctionHandlerParams<Env>): (context: EventContext<Env, any, any>) => Promise<Response>; | ||
export declare function createRequestHandler<Env = any>({ build, getLoadContext, mode, }: createPagesFunctionHandlerParams<Env>): PagesFunction<Env>; | ||
export declare function createPagesFunctionHandler<Env = any>({ build, getLoadContext, mode, }: createPagesFunctionHandlerParams<Env>): (context: EventContext<Env, any, any>) => Promise<Response>; |
/** | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-7de3dd2b | ||
* @remix-run/cloudflare-pages v0.0.0-experimental-80f6d2e1 | ||
* | ||
@@ -46,6 +46,4 @@ * Copyright (c) Remix Software Inc. | ||
try { | ||
var _response; | ||
response = await context.env.ASSETS.fetch(context.request.url, context.request.clone()); | ||
response = (_response = response) !== null && _response !== void 0 && _response.ok ? new Response(response.body, response) : undefined; | ||
response = response && response.status >= 200 && response.status < 400 ? new Response(response.body, response) : undefined; | ||
} catch {} | ||
@@ -52,0 +50,0 @@ |
18313
476
+ Added@remix-run/server-runtime@0.0.0-experimental-80f6d2e1(transitive)
- Removed@remix-run/server-runtime@0.0.0-experimental-7de3dd2b(transitive)
Updated@remix-run/server-runtime@0.0.0-experimental-80f6d2e1