Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@guardian/libs

Package Overview
Dependencies
Maintainers
0
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/libs - npm Package Compare versions

Comparing version 0.0.0-canary-20240911120517 to 0.0.0-canary-20240911122945

2

dist/consent-management-platform/onConsent.js

@@ -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

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