Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remix-run/cloudflare-pages

Package Overview
Dependencies
Maintainers
2
Versions
1026
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remix-run/cloudflare-pages - npm Package Compare versions

Comparing version 1.1.3 to 1.2.0-pre.0

2

cookieSigning.js
/**
* @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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc