@guardian/libs
Advanced tools
Comparing version 0.0.0-canary-20240911120517 to 0.0.0-canary-20240911122945
@@ -5,3 +5,3 @@ import { onConsentChange } from './onConsentChange.js'; | ||
onConsentChange((consentState) => { | ||
if (consentState.tcfv2 ?? consentState.ccpa ?? consentState.aus) { | ||
if (consentState.tcfv2 ?? consentState.usnat ?? consentState.aus) { | ||
resolve(consentState); | ||
@@ -8,0 +8,0 @@ } |
@@ -57,8 +57,5 @@ import { getConsentState as getConsentState$3 } from './aus/getConsentState.js'; | ||
return enhanceConsentState({ aus: await getConsentState$3() }); | ||
case "ccpa": | ||
return enhanceConsentState({ ccpa: await getConsentState$2() }); | ||
case "usnat": { | ||
const usnatConsentState = await getConsentState$2(); | ||
return enhanceConsentState({ | ||
ccpa: usnatConsentState, | ||
usnat: usnatConsentState | ||
@@ -65,0 +62,0 @@ }); |
@@ -27,4 +27,2 @@ import { CountryCode } from '../../countries/@types/CountryCode.js'; | ||
tcfv2?: TCFv2ConsentState; | ||
/** @deprecated CCPA has been deprecated. Please use usnat */ | ||
ccpa?: USNATConsentState; | ||
usnat?: USNATConsentState; | ||
@@ -31,0 +29,0 @@ aus?: AUSConsentState; |
@@ -1,3 +0,3 @@ | ||
var version = "0.0.0-canary-20240911120517"; | ||
var version = "0.0.0-canary-20240911122945"; | ||
export { version }; |
{ | ||
"name": "@guardian/libs", | ||
"version": "0.0.0-canary-20240911120517", | ||
"version": "0.0.0-canary-20240911122945", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "A collection of JavaScript libraries and TypeScript types for Guardian projects", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
238354
7632