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.13 to 1.0.0-beta.14

3

lib/command/Command.d.ts

@@ -9,4 +9,5 @@ import { Callback } from '../callback';

protected callback: Callback;
protected listenerId: number;
protected param?: any;
constructor(callback: Callback, param?: any);
constructor(callback: Callback, param?: any, listenerId?: number);
protected isValid(): boolean;

@@ -13,0 +14,0 @@ protected abstract success(): void;

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Command=function(){function t(t,i){this.callback=t,this.param=i,this.isValid()?this.success():this.fail()}return t.prototype.isValid=function(){return!0},t.prototype.fail=function(){(0,this.callback)(null,!1)},t}();exports.Command=Command;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Command=function(){function t(t,i,s){this.callback=t,this.param=i,this.listenerId=s,this.isValid()?this.success():this.fail()}return t.prototype.isValid=function(){return!0},t.prototype.fail=function(){(0,this.callback)(null,!1)},t}();exports.Command=Command;
//# sourceMappingURL=Command.js.map
import { Command } from './Command';
import { Callback } from '../callback';
export declare class GetTCDataCommand extends Command {
private listenerId;
private isSuccess;
constructor(callback: Callback, param?: any, listenerId?: number);
/**
* because the success is an override method and we want to perform some
* async action, this method is created to proxy that one.
*/
private sendData;

@@ -8,0 +11,0 @@ protected success(): void;

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

"use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(exports,"__esModule",{value:!0});var CmpApiModel_1=require("../CmpApiModel"),Command_1=require("./Command"),core_1=require("@iabtcf/core"),util_1=require("@iabtcf/util"),response_1=require("../response"),GetTCDataCommand=function(e){function t(t,r,n){var o=e.call(this,t,r)||this;return o.listenerId=n,new util_1.PolyFill,o.isSuccess&&o.sendData(),o}return __extends(t,e),t.prototype.sendData=function(){var e=this,t=this.callback,r=CmpApiModel_1.CmpApiModel.tcModel;r.gvl||CmpApiModel_1.CmpApiModel.tcString?t(new response_1.TCData(this.param,this.listenerId),!0):(r.gvl=new core_1.GVL(r.vendorListVersion),r.gvl.readyPromise.then((function(){return t(new response_1.TCData(e.param,e.listenerId),!0)}),this.fail).catch(this.fail))},t.prototype.success=function(){this.isSuccess=!0},t.prototype.isValid=function(){var e=!0;return void 0!==this.param&&(e=(e=Array.isArray(this.param))&&this.param.every((function(e){return Number.isInteger(e)}))),e},t}(Command_1.Command);exports.GetTCDataCommand=GetTCDataCommand;
"use strict";var __extends=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(exports,"__esModule",{value:!0});var CmpApiModel_1=require("../CmpApiModel"),Command_1=require("./Command"),core_1=require("@iabtcf/core"),util_1=require("@iabtcf/util"),response_1=require("../response"),GetTCDataCommand=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return new util_1.PolyFill,o}return __extends(t,e),t.prototype.sendData=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return e=CmpApiModel_1.CmpApiModel.tcModel,null===CmpApiModel_1.CmpApiModel.tcModel||e.gvl||CmpApiModel_1.CmpApiModel.tcString?[3,2]:(e.gvl=new core_1.GVL(e.vendorListVersion),[4,e.gvl.readyPromise]);case 1:t.sent(),t.label=2;case 2:return(0,this.callback)(new response_1.TCData(this.param,this.listenerId),!0),[2]}}))}))},t.prototype.success=function(){this.sendData()},t.prototype.isValid=function(){var e=!0;return void 0!==this.param&&(e=(e=Array.isArray(this.param))&&this.param.every((function(e){return Number.isInteger(e)}))),e},t}(Command_1.Command);exports.GetTCDataCommand=GetTCDataCommand;
//# sourceMappingURL=GetTCDataCommand.js.map
{
"name": "@iabtcf/cmpapi",
"version": "1.0.0-beta.13",
"version": "1.0.0-beta.14",
"description": "Ensures other in-page digital marketing technologies have access to CMP transparency and consent information for the iab. Transparency and Consent Framework (TCF).",

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

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

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

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