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
8
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 4.0.2 to 4.0.3-beta.5

26

dist/ads-personalised-consent.cjs.js

@@ -7,17 +7,3 @@ 'use strict';

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;
}
/** @typedef {import("$typings/personalised-consent")} PersonalisedConsentTyping */
/** @type {PersonalisedConsentTyping.PersonalisedConsent} */

@@ -40,5 +26,10 @@

static legislationPolicy = {
CCPA: 'ccpa',
GDPR: 'gdpr'
};
/**
* init method initialises all the properties in the class by calling all the update functions
*/
async init() {

@@ -207,7 +198,2 @@ await this.updatePrivacyLegislation();

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

@@ -214,0 +200,0 @@ const pc = new PersonalisedConsent();

import { fetchLegislation } from '@financial-times/privacy-legislation-client';
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;
}
/** @typedef {import("$typings/personalised-consent")} PersonalisedConsentTyping */
/** @type {PersonalisedConsentTyping.PersonalisedConsent} */

@@ -35,5 +21,10 @@

static legislationPolicy = {
CCPA: 'ccpa',
GDPR: 'gdpr'
};
/**
* init method initialises all the properties in the class by calling all the update functions
*/
async init() {

@@ -202,7 +193,2 @@ await this.updatePrivacyLegislation();

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

@@ -209,0 +195,0 @@ const pc = new PersonalisedConsent();

{
"name": "@financial-times/ads-personalised-consent",
"version": "4.0.2",
"description": "A package for handling consent settings of personalised ads",
"keywords": [],
"author": "Financial Times",
"license": "MIT",
"repository": "git+https://github.com/financial-times/advertising.git",
"homepage": "https://github.com/financial-times/advertising#readme",
"homepage": "https://github.com/Financial-Times/advertising#readme",
"main": "dist/ads-personalised-consent.cjs.js",
"module": "dist/ads-personalised-consent.esm.js",
"main": "dist/ads-personalised-consent.cjs.js",
"files": [
"dist/"
],
"exports": {
".": {
"import": "./dist/ads-personalised-consent.esm.js",
"require": "./dist/ads-personalised-consent.cjs.js"
}
},
"dependencies": {
"@financial-times/privacy-legislation-client": "^1.0.0"
},
"devDependencies": {
"@babel/core": "7.15.0",
"@babel/eslint-parser": "^7.16.3",
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "7.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"jest": "26.6.3",
"rollup": "2.56.3"
},
"scripts": {
"test": "jest --colors",
"clean": "rm -rf ./dist",
"build": "npm run clean && rollup -c"
}
}
"rollup": "rollup -c",
"build": "run-s clean rollup"
},
"version": "4.0.3-beta.5"
}
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