@financial-times/ads-personalised-consent
Advanced tools
Comparing version 5.0.0-beta.3 to 5.0.0-beta.5
@@ -22,4 +22,4 @@ import { fetchLegislation } from '@financial-times/privacy-legislation-client'; | ||
static legislationPolicy = { | ||
CCPA: "ccpa", | ||
GDPR: "gdpr" | ||
CCPA: 'ccpa', | ||
GDPR: 'gdpr' | ||
}; | ||
@@ -99,5 +99,5 @@ /** | ||
this.consentCookie = { | ||
behavioral: consentCookie.includes("behaviouraladsOnsite:on"), | ||
demographic: consentCookie.includes("demographicadsOnsite:on"), | ||
programmatic: consentCookie.includes("programmaticadsOnsite:on") | ||
behavioral: consentCookie.includes('behaviouraladsOnsite:on'), | ||
demographic: consentCookie.includes('demographicadsOnsite:on'), | ||
programmatic: consentCookie.includes('programmaticadsOnsite:on') | ||
}; | ||
@@ -149,3 +149,3 @@ } | ||
} | ||
/** | ||
/** | ||
* getLegislation method returns the legislation policies which the user is subject to | ||
@@ -168,3 +168,3 @@ * @returns {PersonalisedConsentTyping.Legislation} | ||
} | ||
/** | ||
/** | ||
* getGpcValue method returns the globalPrivacyControl value in user's browser | ||
@@ -171,0 +171,0 @@ * @returns {boolean} |
@@ -5,5 +5,2 @@ { | ||
"type": "module", | ||
"files": [ | ||
"dist/" | ||
], | ||
"main": "dist/ads-personalised-consent.js", | ||
@@ -13,5 +10,2 @@ "dependencies": { | ||
}, | ||
"peerDependencies": { | ||
"@financial-times/privacy-legislation-client": ">=1" | ||
}, | ||
"scripts": { | ||
@@ -22,3 +16,3 @@ "clean": "rm -rf ./dist", | ||
}, | ||
"version": "5.0.0-beta.3" | ||
} | ||
"version": "5.0.0-beta.5" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
32061
1
6
632