New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cloudflare-htmx

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflare-htmx - npm Package Compare versions

Comparing version

to
1.1.2

19

index.ts

@@ -6,8 +6,13 @@ const HEADERS = { headers: { 'content-type': 'text/html;charset=UTF-8' } };

export type LayoutFunction<Env = unknown, Params extends string = any> = (
children: string,
request?: Request,
params?: Params,
env?: Env
) => string | Promise<string>;
export type LayoutFunction<Env = unknown, Params extends string = any> = ({
children,
request,
params,
env,
}: {
children: string;
request?: Request;
params?: Params;
env?: Env;
}) => string | Promise<string>;

@@ -31,3 +36,3 @@ export const applyLayout =

return new Response(
await layout(children, request, params, env),
await layout({ children, request, params, env }),
response

@@ -34,0 +39,0 @@ );

{
"name": "cloudflare-htmx",
"version": "1.1.1",
"version": "1.1.2",
"description": "HTMX library for Cloudflare Pages",

@@ -5,0 +5,0 @@ "main": "index.ts",