@financial-times/cmp-client 2.2.1 → 2.2.2

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.
@@ -4,10 +4,10 @@ import type { ParsedConsentState, ConsentPayloadOptions, ConsentCategoryPayload
4
4
  */
5
5
  export declare function getConsentPayload(parsedConsent: ParsedConsentState, { shouldUpdateConsentStore, formOfWordsId, cookieDomain }: Partial<ConsentPayloadOptions>): {
6
6
  data: Record<string, ConsentCategoryPayload>;
7
+ cookieDomain: string | undefined;
7
8
  setConsentCookie?: undefined;
8
9
  formOfWordsId?: undefined;
9
10
  consentSource?: undefined;
10
- cookieDomain?: undefined;
11
11
  } | {
12
12
  setConsentCookie: boolean;
13
13
  formOfWordsId: string | undefined;
package/dist/index.cjs CHANGED
@@ -203,7 +203,7 @@ function getConsentPayload(parsedConsent, { shouldUpdateConsentStore, formOfWord
203
203
  {}
204
204
  );
205
205
  if (!shouldUpdateConsentStore) {
206
- return { data };
206
+ return { data, cookieDomain };
207
207
  } else {
208
208
  return {
209
209
  setConsentCookie: true,
package/dist/index.js CHANGED
@@ -201,7 +201,7 @@ function getConsentPayload(parsedConsent, { shouldUpdateConsentStore, formOfWord
201
201
  {}
202
202
  );
203
203
  if (!shouldUpdateConsentStore) {
204
- return { data };
204
+ return { data, cookieDomain };
205
205
  } else {
206
206
  return {
207
207
  setConsentCookie: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/cmp-client",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -20,7 +20,7 @@
20
20
  "next-session-client": "^5.0.0"
21
21
  },
22
22
  "devDependencies": {
23
- "eslint": "^8.51.0",
23
+ "eslint": "^8.53.0",
24
24
  "npm-run-all": "^4.1.5",
25
25
  "typescript": "^5.2.2",
26
26
  "vite": "^4.5.0",