@remix-run/cloudflare-pages
Advanced tools
Comparing version 1.1.3 to 1.2.0-pre.0
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -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 v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -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 v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/cloudflare-pages", | ||
"description": "Cloudflare Pages request handler for Remix", | ||
"version": "1.1.3", | ||
"version": "1.2.0-pre.0", | ||
"license": "MIT", | ||
@@ -17,3 +17,3 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@remix-run/server-runtime": "1.1.3" | ||
"@remix-run/server-runtime": "1.2.0-pre.0" | ||
}, | ||
@@ -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 {}; |
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -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({ |
/** | ||
* @remix-run/cloudflare-pages v1.1.3 | ||
* @remix-run/cloudflare-pages v1.2.0-pre.0 | ||
* | ||
@@ -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 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
18086
476
2
+ Added@remix-run/server-runtime@1.2.0-pre.0(transitive)
- Removed@remix-run/server-runtime@1.1.3(transitive)