@cookiemunch/sdk 0.28.0 → 0.29.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 +8 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- 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.29.0";
|
|
24
24
|
export interface CookieMunchOptions {
|
|
25
25
|
apiKey: string;
|
|
26
26
|
/** "https://api.cookiemunch.net" — the /v1 prefix is appended automatically. */
|
|
@@ -346,6 +346,8 @@ export interface DeclaredCookie extends DeclaredCookieInput {
|
|
|
346
346
|
source?: 'import';
|
|
347
347
|
/** The vendor whose preset declared it. */
|
|
348
348
|
vendor?: string;
|
|
349
|
+
/** Your own row only: a vendor preset applied here also declares this name; yours is published in its place. */
|
|
350
|
+
shadows?: string;
|
|
349
351
|
/** The `purposes` languages that are machine translations (sites.translateCookies); absent = all human-written. */
|
|
350
352
|
machinePurposes?: string[];
|
|
351
353
|
}
|
|
@@ -624,6 +626,13 @@ export interface CookiePresetResult {
|
|
|
624
626
|
vendor: CookiePresetVendor | (string & {});
|
|
625
627
|
/** `builtin` (Cookie Munch's own rows, also while the vendor's manifest is invalid), `manifest` (its valid embed manifest), or `instance`. */
|
|
626
628
|
source?: 'builtin' | 'manifest' | 'instance';
|
|
629
|
+
/** With `source: "builtin"`: the built-in rows' revision (`builtin:<hash>`); it changes only when what the preset declares here does. */
|
|
630
|
+
revision?: string;
|
|
631
|
+
/** What moved at the vendor since this site last applied the preset (a manifest or instance). An instance's revision is `instance:<hash>`. */
|
|
632
|
+
upstream?: {
|
|
633
|
+
applied: string | null;
|
|
634
|
+
latest: string;
|
|
635
|
+
};
|
|
627
636
|
cookies: DeclaredCookie[];
|
|
628
637
|
removed: string[];
|
|
629
638
|
skipped?: Array<{
|
package/dist/index.js
CHANGED