Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@financial-times/ads-personalised-consent

Package Overview
Dependencies
Maintainers
11
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/ads-personalised-consent - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2-beta.1

59

dist/ads-personalised-consent.js
import { fetchLegislation } from '@financial-times/privacy-legislation-client';
/**
* @typedef {import("..").RegionalCompliance} RegionalCompliance
* @typedef {import("..").ConsentInfo} ConsentInfo
* @typedef {import("..").Legislation} Legislation
* @typedef {import("..").Region} Region
*/
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
class PersonalisedConsent {
gpcValue = false;
/** @type {RegionalCompliance} */
// existing legislation policies
constructor() {
this.gpcValue = false;
/** @type {RegionalCompliance} */
privacyLegislation = {
legislation: undefined,
region: undefined
};
consentCookie = {
behavioral: false,
demographic: false,
programmatic: false,
all: false
}; // existing legislation policies
this.privacyLegislation = {
legislation: undefined,
region: undefined
};
/** @type {ConsentInfo} */
static legislationPolicy = {
CCPA: "ccpa",
GDPR: "gdpr"
};
this.consentCookie = {
behavioral: false,
demographic: false,
programmatic: false,
all: false
};
}
/**

@@ -32,2 +41,3 @@ * init method initialises all the properties in the class by calling all the update functions

async init() {

@@ -214,2 +224,7 @@ await this.updatePrivacyLegislation();

_defineProperty(PersonalisedConsent, "legislationPolicy", {
CCPA: "ccpa",
GDPR: "gdpr"
});
const getPersonalisedConsent = async () => {

@@ -216,0 +231,0 @@ const pc = new PersonalisedConsent();

@@ -22,3 +22,3 @@ {

},
"version": "5.1.1"
"version": "5.1.2-beta.1"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc