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

@iabtcf/cmpapi

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iabtcf/cmpapi - npm Package Compare versions

Comparing version 1.0.0-beta.6 to 1.0.0-beta.7

3

lib/CmpApiModel.d.ts

@@ -41,3 +41,6 @@ import { TCModel } from '@iabtcf/core';

static set tcModel(model: TCModel | null);
private static isPurposeRestrictionVector;
private static isVector;
private static isTCModel;
static reset(): void;
}

2

lib/CmpApiModel.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core_1=require("@iabtcf/core"),status_1=require("./status"),CmpApiModel=function(){function t(){}return Object.defineProperty(t,"disabled",{get:function(){return this.disabled_},set:function(t){t&&(this.cmpStatus=status_1.CmpStatus.ERROR),this.disabled_=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"uiVisible",{get:function(){return this.uiVisible_},set:function(t){t?(this.displayStatus=status_1.DisplayStatus.VISIBLE,this.eventStatus=status_1.EventStatus.CMP_UI_SHOWN):(this.displayStatus=status_1.DisplayStatus.DISABLED,this.eventStatus=status_1.EventStatus.TC_LOADED),this.uiVisible_=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"tcModel",{get:function(){return this.tcModel_},set:function(t){if(t instanceof core_1.TCModel)this.gdprApplies=!0,this.displayStatus=status_1.DisplayStatus.HIDDEN,void 0!==this.tcModel_?this.eventStatus=status_1.EventStatus.USER_ACTION_COMPLETE:this.eventStatus=status_1.EventStatus.TC_LOADED,this.tcModel_=t.clone();else{if(null!==t)throw this.cmpStatus=status_1.CmpStatus.ERROR,new Error("Invalid value ("+t+") passed for tcModel");this.gdprApplies=!1,this.displayStatus=status_1.DisplayStatus.DISABLED,this.tcModel_=null}this.cmpStatus=status_1.CmpStatus.LOADED,this.changeEventCallback&&this.changeEventCallback()},enumerable:!0,configurable:!0}),t.reset=function(){delete this.tcModel_,delete this.cmpId,delete this.cmpVersion,delete this.gdprApplies,delete this.eventStatus,delete this.changeEventCallback,this.uiVisible_=!1,this.disabled_=!1,this.cmpStatus=status_1.CmpStatus.LOADING,this.displayStatus=status_1.DisplayStatus.HIDDEN,this.eventQueue.clear()},t.apiVersion=2,t.tcfPolicyVersion=2,t.cmpStatus=status_1.CmpStatus.LOADING,t.displayStatus=status_1.DisplayStatus.HIDDEN,t.eventQueue=new Set,t.uiVisible_=!1,t.disabled_=!1,t}();exports.CmpApiModel=CmpApiModel;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var status_1=require("./status"),CmpApiModel=function(){function t(){}return Object.defineProperty(t,"disabled",{get:function(){return this.disabled_},set:function(t){t&&(this.cmpStatus=status_1.CmpStatus.ERROR),this.disabled_=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"uiVisible",{get:function(){return this.uiVisible_},set:function(t){t?(this.displayStatus=status_1.DisplayStatus.VISIBLE,this.eventStatus=status_1.EventStatus.CMP_UI_SHOWN):(this.displayStatus=status_1.DisplayStatus.DISABLED,this.eventStatus=status_1.EventStatus.TC_LOADED),this.uiVisible_=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"tcModel",{get:function(){return this.tcModel_},set:function(t){if(null===t)this.gdprApplies=!1,this.displayStatus=status_1.DisplayStatus.DISABLED,this.tcModel_=null;else{if(!this.isTCModel(t))throw this.cmpStatus=status_1.CmpStatus.ERROR,new Error("Invalid value ("+t+") passed for tcModel");this.gdprApplies=!0,this.displayStatus=status_1.DisplayStatus.HIDDEN,void 0!==this.tcModel_?this.eventStatus=status_1.EventStatus.USER_ACTION_COMPLETE:this.eventStatus=status_1.EventStatus.TC_LOADED,this.tcModel_=t.clone()}this.cmpStatus=status_1.CmpStatus.LOADED,this.changeEventCallback&&this.changeEventCallback()},enumerable:!0,configurable:!0}),t.isPurposeRestrictionVector=function(t){var e=t;return"function"==typeof e.add&&"function"==typeof e.getVendors&&"function"==typeof e.getRestrictionType&&"function"==typeof e.vendorHasRestriction&&"function"==typeof e.getMaxVendorId&&"function"==typeof e.getRestrictions&&"function"==typeof e.getPurposes&&"function"==typeof e.isEmpty&&"function"==typeof e.isEncodable},t.isVector=function(t){var e=t;return"number"==typeof e.maxId&&"function"==typeof e.has&&"function"==typeof e.set&&"function"==typeof e.empty&&"function"==typeof e.forEach&&"number"==typeof e.size&&"function"==typeof e.setAll},t.isTCModel=function(t){var e=t;return"boolean"==typeof e.isServiceSpecific&&"boolean"==typeof e.useNonStandardStacks&&"boolean"==typeof e.purposeOneTreatment&&"string"==typeof e.publisherCountryCode&&this.isVector(e.vendorsAllowed)&&this.isVector(e.vendorsDisclosed)&&this.isVector(e.purposeConsents)&&this.isVector(e.purposeLegitimateInterest)&&this.isVector(e.vendorConsents)&&this.isVector(e.vendorLegitimateInterest)&&this.isVector(e.specialFeatureOptIns)&&this.isVector(e.publisherConsents)&&this.isVector(e.publisherLegitimateInterest)&&this.isVector(e.publisherCustomConsents)&&this.isVector(e.publisherCustomLegitimateInterest)&&this.isPurposeRestrictionVector(e.publisherRestrictions)},t.reset=function(){delete this.tcModel_,delete this.cmpId,delete this.cmpVersion,delete this.gdprApplies,delete this.eventStatus,delete this.changeEventCallback,this.uiVisible_=!1,this.disabled_=!1,this.cmpStatus=status_1.CmpStatus.LOADING,this.displayStatus=status_1.DisplayStatus.HIDDEN,this.eventQueue.clear()},t.apiVersion=2,t.tcfPolicyVersion=2,t.cmpStatus=status_1.CmpStatus.LOADING,t.displayStatus=status_1.DisplayStatus.HIDDEN,t.eventQueue=new Set,t.uiVisible_=!1,t.disabled_=!1,t}();exports.CmpApiModel=CmpApiModel;
//# sourceMappingURL=CmpApiModel.js.map
{
"name": "@iabtcf/cmpapi",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7",
"description": "Ensures other in-page digital marketing technologies have access to CMP transparency and consent information for the iab. Transparency and Consent Framework (TCF).",

@@ -29,8 +29,8 @@ "author": "Chris Paterson <tcf@chrispaterson.io>",

"dependencies": {
"@iabtcf/core": "^1.0.0-beta.6",
"@iabtcf/util": "^1.0.0-beta.6"
"@iabtcf/core": "1.0.0-beta.7",
"@iabtcf/util": "1.0.0-beta.7"
},
"devDependencies": {
"@iabtcf/stub": "^1.0.0-beta.6",
"@iabtcf/testing": "^1.0.0-beta.6",
"@iabtcf/stub": "1.0.0-beta.7",
"@iabtcf/testing": "1.0.0-beta.7",
"@istanbuljs/nyc-config-typescript": "^0.1.3",

@@ -37,0 +37,0 @@ "@types/mocha": "^5.2.7",

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