@financial-times/ads-personalised-consent
Advanced tools
Comparing version 4.0.2 to 4.0.3-beta.5
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
18122
1
331
2
2