JA
ベータ版の翻訳

@core / consent

1.1.0 ▾
認証済みMIT
GitHub

GDPR クッキー同意:拒否と同意を同等に扱うバナー、カテゴリ、同意記録、ConsentGate、Consent Mode v2

コード9 ファイルコンテキスト約 743 トークンスキャン合格

.genpmignore 適用後に組み込まれる正確なツリーです。固定先:

src/lib/consent/adapters/hono.ts読み取り専用 · 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));
}

@core/consent を報告

パッケージを報告するには GitHub でログインしてください。

GitHub で続ける