@guardian/consent-management-platform
Advanced tools
Comparing version 0.0.0-beta-20240219110734 to 0.0.0-beta-20240219152933
@@ -1,3 +0,3 @@ | ||
import type { CountryCode } from '@guardian/libs'; | ||
import type { Framework } from './types'; | ||
export declare const getFramework: (countryCode: CountryCode) => Framework; | ||
import type { Country } from './types/countries'; | ||
export declare const getFramework: (countryCode: Country) => Framework; |
@@ -5,3 +5,3 @@ import type { onConsent as OnConsent } from './onConsent'; | ||
export declare const serverSideWarn: () => void; | ||
export declare const serverSideWarnAndReturn: <T>(arg: T) => () => T; | ||
export declare const serverSideWarnAndReturn: <T extends unknown>(arg: T) => () => T; | ||
export declare const cmp: CMP; | ||
@@ -8,0 +8,0 @@ export declare const onConsent: () => ReturnType<typeof OnConsent>; |
@@ -1,5 +0,6 @@ | ||
import type { CountryCode } from '@guardian/libs'; | ||
import { Page } from 'playwright-core'; | ||
import type { VendorName } from '../vendors'; | ||
import type { AUSConsentState } from './aus'; | ||
import type { CCPAConsentState } from './ccpa'; | ||
import type { Country } from './countries'; | ||
import type { TCFv2ConsentState } from './tcfv2'; | ||
@@ -20,3 +21,3 @@ export type Framework = 'tcfv2' | 'ccpa' | 'aus'; | ||
pubData?: PubData; | ||
country?: CountryCode; | ||
country?: Country; | ||
}) => void; | ||
@@ -56,1 +57,2 @@ export type OnConsentChange = (fn: Callback, final?: boolean) => void; | ||
export type { VendorName }; | ||
export type ClickAcceptAllCookies = (page: Page, text: string) => void; |
@@ -1,2 +0,4 @@ | ||
type VendorIDType = Record<string, string[]>; | ||
type VendorIDType = { | ||
[key: string]: string[]; | ||
}; | ||
export declare const TCFV2VendorIDs: VendorIDType; | ||
@@ -3,0 +5,0 @@ export declare const MiscVendorID: VendorIDType; |
{ | ||
"name": "@guardian/consent-management-platform", | ||
"version": "0.0.0-beta-20240219110734", | ||
"version": "0.0.0-beta-20240219152933", | ||
"description": "Consent management for *.theguardian.com.", | ||
@@ -8,4 +8,4 @@ "homepage": "https://github.com/guardian/consent-management-platform.git", | ||
"license": "Apache-2.0", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
@@ -80,2 +80,4 @@ "files": [ | ||
"npm-run-all": "^4", | ||
"playwright-core": "1.41.2", | ||
"playwright-aws-lambda": "^0.10.0", | ||
"prettier": "^3.2.4", | ||
@@ -88,3 +90,2 @@ "prettier-plugin-svelte": "^3.1.2", | ||
"rollup-plugin-svelte": "^7.1.6", | ||
"@rollup/plugin-json": "^6.1.0", | ||
"serve": "^14.2.1", | ||
@@ -95,7 +96,9 @@ "start-server-and-test": "~2.0.3", | ||
"typescript": "~5.3.3", | ||
"wait-for-expect": "^3" | ||
"wait-for-expect": "^3", | ||
"ts-node-dev": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"playwright-core": "1.41.2", | ||
"@guardian/libs": "^15.0.0 || ^16.0.0" | ||
} | ||
} |
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
105994
62
2640
2
53
5