PT

@core / consent

1.1.0 ▾
verificadoMIT
GitHub

Consentimento de cookies LGPD/RGPD: banner com recusar igual a aceitar, categorias, registro de prova e Consent Mode v2

Código9 arquivosContexto~743 tokensanálise aprovada

A árvore exata que será injetada, após o .genpmignore. Fixada em

src/lib/consent/adapters/hono.tssomente leitura · 37d6a8f
// Adaptador Hono: `app.route('/api/consent', consentRoutes({ cookiesByCategory: { analytics: ['_ga'], marketing: ['_fbp'] } }))`.
import { Hono } from 'hono';
import { handleConsent } from './http.ts';

export function consentRoutes(opts: Parameters<typeof handleConsent>[1] = {}) {
  return new Hono().get('/', (c) => handleConsent(c.req.raw, opts)).post('/', (c) => handleConsent(c.req.raw, opts));
}

Denunciar @core/consent

Entre com o GitHub para denunciar um pacote.