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

@iabtcf/stub

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iabtcf/stub - npm Package Compare versions

Comparing version 1.0.0-beta.4 to 1.0.0-beta.5

3

lib/stub.js

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

"use strict";function _readOnlyError(e){throw new Error('"'+e+'" is read-only')}(function(){var e=function e(){var r="__tcfapiLocator";var a=window;var t=[];var n;function i(){var e=a.document;var t=!!a.frames[r];if(!t){if(e.body){var n=e.createElement("iframe");n.style.cssText="display:none";n.name=r;e.body.appendChild(n)}else{setTimeout(i,5)}}return!t}function o(){var e;for(var r=arguments.length,a=new Array(r),n=0;n<r;n++){a[n]=arguments[n]}if(!a.length){return t}else if(a[0]==="setGdprApplies"){if(a.length>3&&parseInt(a[1],10)===2&&typeof a[3]==="boolean"){e=a[3];if(typeof a[2]==="function"){a[2]("set",true)}}}else if(a[0]==="ping"){var i={gdprApplies:e,cmpLoaded:false,cmpStatus:"stubCMP",apiVersion:2};if(typeof a[2]==="function"){a[2](i,true)}}else{t.push(a)}}function s(e){var r=typeof e.data==="string";var a={};try{if(r){a=JSON.parse(e.data)}else{a=e.data}}catch(e){}var t=a.__tcfapiCall;if(t){window.__tcfapi(t.command,t.version,(function(a,n){var i={__tcfapiReturn:{returnValue:a,success:n,callId:t.callId}};if(r){i=JSON.stringify(i)}e.source.postMessage(i,"*")}),t.parameter)}}while(a){try{if(a.frames[r]){n=a;break}}catch(e){}if(a===window.top){break}a=(_readOnlyError("win"),a.parent)}if(!n){i();a.__tcfapi=o;a.addEventListener("message",s,false)}};if(module&&module.exports){module.exports=e}else{e()}})();
"use strict";function _readOnlyError(e){throw new Error('"'+e+'" is read-only')}!function(){var e=function(){var e,t="__tcfapiLocator",r=window,a=[];for(;r;){try{if(r.frames[t]){e=r;break}}catch(e){}if(r===window.top)break;_readOnlyError("win"),r=r.parent}e||(!function e(){var a=r.document,n=!!r.frames[t];if(!n)if(a.body){var o=a.createElement("iframe");o.style.cssText="display:none",o.name=t,a.body.appendChild(o)}else setTimeout(e,5);return!n}(),r.__tcfapi=function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return a;if("setGdprApplies"===r[0])r.length>3&&2===parseInt(r[1],10)&&"boolean"==typeof r[3]&&(e=r[3],"function"==typeof r[2]&&r[2]("set",!0));else if("ping"===r[0]){var o={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stubCMP",apiVersion:2};"function"==typeof r[2]&&r[2](o,!0)}else a.push(r)},r.addEventListener("message",(function(e){var t="string"==typeof e.data,r={};try{r=t?JSON.parse(e.data):e.data}catch(e){}var a=r.__tcfapiCall;a&&window.__tcfapi(a.command,a.version,(function(r,n){var o={__tcfapiReturn:{returnValue:r,success:n,callId:a.callId}};t&&(o=JSON.stringify(o)),e.source.postMessage(o,"*")}),a.parameter)}),!1))};module&&module.exports?module.exports=e:e()}();
//# sourceMappingURL=stub.js.map
{
"name": "@iabtcf/stub",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.5",
"description": "CMP API Stub code",

@@ -16,9 +16,9 @@ "author": "Chris Paterson <tcf@chrispaterson.io>",

"scripts": {
"build": "rm -rf lib && mkdir lib ; babel src/stub.js | terser -m --source-map -o lib/stub.js",
"build": "rm -rf lib && mkdir lib ; babel src/stub.js | terser -m -c --source-map url='stub.js.map' -o lib/stub.js",
"build:dev": "rm -rf lib && ln -s src lib",
"prepare": "yarn run build",
"prepack": "yarn run build",
"lint": "exit 0"
},
"dependencies": {
"@iabtcf/core": "^1.0.0-beta.4"
"@iabtcf/core": "^1.0.0-beta.5"
},

@@ -25,0 +25,0 @@ "devDependencies": {

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