New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@guardian/consent-management-platform

Package Overview
Dependencies
Maintainers
6
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/consent-management-platform - npm Package Compare versions

Comparing version 0.0.0-beta-20240209115205 to 0.0.0-beta-20240212113333

dist/consumer-self-test.d.ts

1

dist/index.d.ts

@@ -6,1 +6,2 @@ import type { CMP } from './types';

export declare const getConsentFor: import("./types").GetConsentFor;
export { clickAcceptAllCookies, log_error, log_info } from './consumer-self-test';

@@ -987,2 +987,19 @@ import { log, removeCookie, storage } from '@guardian/libs';

const ELEMENT_ID = {
TCFV2_FIRST_LAYER_ACCEPT_ALL: 'div.message-component.message-row > button.sp_choice_type_11',
CMP_CONTAINER: '[id*="sp_message_iframe"]',
};
const log_info = (message) => {
console.log(`(cmp monitoring) info: ${message}`);
};
const log_error = (message) => {
console.error(`(cmp monitoring): error: ${message}`);
};
const clickAcceptAllCookies = async (page, textToPrintToConsole) => {
log_info(`Clicking on "${textToPrintToConsole}" on CMP`);
const acceptAllButton = page.frameLocator(ELEMENT_ID.CMP_CONTAINER).locator(ELEMENT_ID.TCFV2_FIRST_LAYER_ACCEPT_ALL);
await acceptAllButton.click();
log_info(`Clicked on "${textToPrintToConsole}"`);
};
if (!isServerSide) {

@@ -1001,5 +1018,5 @@ window.guCmpHotFix ||= {};

if (window.guCmpHotFix.initialised) {
if (window.guCmpHotFix.cmp?.version !== "0.0.0-beta-20240209115205")
if (window.guCmpHotFix.cmp?.version !== "0.0.0-beta-20240212113333")
console.warn('Two different versions of the CMP are running:', [
"0.0.0-beta-20240209115205",
"0.0.0-beta-20240212113333",
window.guCmpHotFix.cmp?.version,

@@ -1042,3 +1059,3 @@ ]);

showPrivacyManager,
version: "0.0.0-beta-20240209115205",
version: "0.0.0-beta-20240212113333",
__isDisabled: isDisabled,

@@ -1058,2 +1075,2 @@ __enable: enable,

export { cmp, getConsentFor, onConsent, onConsentChange };
export { clickAcceptAllCookies, cmp, getConsentFor, log_error, log_info, onConsent, onConsentChange };

@@ -991,2 +991,19 @@ 'use strict';

const ELEMENT_ID = {
TCFV2_FIRST_LAYER_ACCEPT_ALL: 'div.message-component.message-row > button.sp_choice_type_11',
CMP_CONTAINER: '[id*="sp_message_iframe"]',
};
const log_info = (message) => {
console.log(`(cmp monitoring) info: ${message}`);
};
const log_error = (message) => {
console.error(`(cmp monitoring): error: ${message}`);
};
const clickAcceptAllCookies = async (page, textToPrintToConsole) => {
log_info(`Clicking on "${textToPrintToConsole}" on CMP`);
const acceptAllButton = page.frameLocator(ELEMENT_ID.CMP_CONTAINER).locator(ELEMENT_ID.TCFV2_FIRST_LAYER_ACCEPT_ALL);
await acceptAllButton.click();
log_info(`Clicked on "${textToPrintToConsole}"`);
};
if (!isServerSide) {

@@ -1005,5 +1022,5 @@ window.guCmpHotFix ||= {};

if (window.guCmpHotFix.initialised) {
if (window.guCmpHotFix.cmp?.version !== "0.0.0-beta-20240209115205")
if (window.guCmpHotFix.cmp?.version !== "0.0.0-beta-20240212113333")
console.warn('Two different versions of the CMP are running:', [
"0.0.0-beta-20240209115205",
"0.0.0-beta-20240212113333",
window.guCmpHotFix.cmp?.version,

@@ -1046,3 +1063,3 @@ ]);

showPrivacyManager,
version: "0.0.0-beta-20240209115205",
version: "0.0.0-beta-20240212113333",
__isDisabled: isDisabled,

@@ -1062,5 +1079,8 @@ __enable: enable,

exports.clickAcceptAllCookies = clickAcceptAllCookies;
exports.cmp = cmp;
exports.getConsentFor = getConsentFor;
exports.log_error = log_error;
exports.log_info = log_info;
exports.onConsent = onConsent;
exports.onConsentChange = onConsentChange;

4

package.json
{
"name": "@guardian/consent-management-platform",
"version": "0.0.0-beta-20240209115205",
"version": "0.0.0-beta-20240212113333",
"description": "Consent management for *.theguardian.com.",

@@ -79,2 +79,3 @@ "homepage": "https://github.com/guardian/consent-management-platform.git",

"npm-run-all": "^4",
"playwright-core": "1.41.2",
"prettier": "^3.2.4",

@@ -95,4 +96,5 @@ "prettier-plugin-svelte": "^3.1.2",

"peerDependencies": {
"playwright-core": "1.41.2",
"@guardian/libs": "^15.0.0 || ^16.0.0"
}
}
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