@cookiemunch/sdk 0.26.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import type { ConformanceReport } from './executor-conformance.js';
|
|
|
20
20
|
* This package's version, sent in the default User-Agent. Cloudflare answers a request with
|
|
21
21
|
* no recognisable User-Agent with `403 error code: 1010`; a test pins this to package.json.
|
|
22
22
|
*/
|
|
23
|
-
export declare const SDK_VERSION = "0.
|
|
23
|
+
export declare const SDK_VERSION = "0.28.0";
|
|
24
24
|
export interface CookieMunchOptions {
|
|
25
25
|
apiKey: string;
|
|
26
26
|
/** "https://api.cookiemunch.net" — the /v1 prefix is appended automatically. */
|
|
@@ -294,7 +294,7 @@ export interface CategorizedCookie {
|
|
|
294
294
|
}
|
|
295
295
|
/** What a declaration row describes. */
|
|
296
296
|
/** `none`: a cookieless processor (an analytics beacon) declared so the policy names it; nothing is stored. */
|
|
297
|
-
export type StorageType = 'cookie' | 'localStorage' | 'sessionStorage' | 'indexedDB' | 'none';
|
|
297
|
+
export type StorageType = 'cookie' | 'localStorage' | 'sessionStorage' | 'indexedDB' | 'cacheStorage' | 'none';
|
|
298
298
|
/** A cookie the site owner retired: the site renamed or stopped setting it. */
|
|
299
299
|
export interface RetiredCookie {
|
|
300
300
|
/** Exact name, or a `prefix*` wildcard. */
|
|
@@ -469,7 +469,7 @@ export type CustomPresetInput = ({
|
|
|
469
469
|
/** One suggestion in GET /v1/sites/:cbid/cookies/suggestions. */
|
|
470
470
|
export interface CookieSuggestion {
|
|
471
471
|
name: string;
|
|
472
|
-
storage: 'cookie' | 'localStorage' | 'sessionStorage' | 'indexedDB';
|
|
472
|
+
storage: 'cookie' | 'localStorage' | 'sessionStorage' | 'indexedDB' | 'cacheStorage';
|
|
473
473
|
foundOnPages: string[];
|
|
474
474
|
/** `denied`: a crawl saw it before any consent; `granted`: after accepting all. */
|
|
475
475
|
consentStates?: Array<'denied' | 'granted'>;
|
|
@@ -544,7 +544,7 @@ export interface CookiePresetParams {
|
|
|
544
544
|
/** One browser key a surface writes, in an embed manifest. */
|
|
545
545
|
export interface EmbedManifestStorage {
|
|
546
546
|
name: string;
|
|
547
|
-
type: 'cookie' | 'localStorage' | 'sessionStorage' | 'indexedDB';
|
|
547
|
+
type: 'cookie' | 'localStorage' | 'sessionStorage' | 'indexedDB' | 'cacheStorage';
|
|
548
548
|
category: string;
|
|
549
549
|
/** `session`, `persistent` or a duration such as `365d`. */
|
|
550
550
|
lifetime?: string;
|
package/dist/index.js
CHANGED