@cookiemunch/sdk 0.13.2 → 0.14.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 +5 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +31 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Every published release, newest first. Dates are the day the version was cut.
|
|
4
4
|
|
|
5
|
+
## 0.14.0 (2026-11-02)
|
|
6
|
+
|
|
7
|
+
- Added: `sites.planCookies(cbid, { cookies, replace, presets })`: the combined dry run of a declarations write and presets, in order.
|
|
8
|
+
- Added: `programHandle` on the referalli preset params.
|
|
9
|
+
|
|
5
10
|
## 0.13.2 (2026-11-02)
|
|
6
11
|
|
|
7
12
|
- Added: `dsar.create(input, { dryRun: true, preview: true })` and `plan[].preview` (record types and counts per system).
|
package/dist/index.cjs
CHANGED
|
@@ -465,7 +465,7 @@ async function exchangeOperatorToken(input) {
|
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
// src/index.ts
|
|
468
|
-
var SDK_VERSION = "0.
|
|
468
|
+
var SDK_VERSION = "0.14.0";
|
|
469
469
|
var CookieMunchApiError = class extends Error {
|
|
470
470
|
constructor(status, message, code, body) {
|
|
471
471
|
super(message);
|
|
@@ -635,6 +635,7 @@ function createCookieMunch(opts) {
|
|
|
635
635
|
return o?.dryRun ? out : void 0;
|
|
636
636
|
}),
|
|
637
637
|
declareCookies: (cbid, cookies, o) => request("PUT", `/sites/${enc(cbid)}/cookies${qs({ dryRun: o?.dryRun ? "1" : void 0 })}`, { cookies, ...o?.replace ? { replace: true } : {} }),
|
|
638
|
+
planCookies: (cbid, input) => request("POST", `/sites/${enc(cbid)}/cookies/plan`, input),
|
|
638
639
|
snippet: (cbid, opts2) => get(`/sites/${enc(cbid)}/snippet${qs({ blockingmode: opts2?.blockingMode, culture: opts2?.culture })}`),
|
|
639
640
|
previewToken: (cbid, o) => request("POST", `/sites/${enc(cbid)}/preview-token`, o ?? {}),
|
|
640
641
|
verify: (cbid, method) => request("POST", `/sites/${enc(cbid)}/verify`, { method }),
|