{"_id":"@adv-ui/boros-tcf-stub","_rev":"135-d6a71e3dd7b16550d06efb84242899ad","name":"@adv-ui/boros-tcf-stub","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@adv-ui/boros-tcf-stub","version":"1.0.0","keywords":["ads","advertising","schibsted","adevinta","gdpr","cmp","tcf","tcfv2","stub","consent-string","iab","boros"],"author":{"name":"One Punch Team"},"license":"MIT","_id":"@adv-ui/boros-tcf-stub@1.0.0","maintainers":[{"name":"miduga","email":"miduga@gmail.com"},{"name":"schibstedspain","email":"cloud-accounts@scmspain.com"}],"homepage":"https://github.com/scm-spain/boros-tcf-stub#readme","bugs":{"url":"https://github.com/scm-spain/boros-tcf-stub/issues"},"dist":{"shasum":"12d87b3a4bb01f1d75abd58c40a47b158bb783c9","tarball":"https://registry.npmjs.org/@adv-ui/boros-tcf-stub/-/boros-tcf-stub-1.0.0.tgz","fileCount":11,"integrity":"sha512-t2NafmpEcDsEd7Q5i2oWYt/imSrcytEQE9Ki+BT91A8r9AeAIQ+GmHs9BkEO7TNAOqXA6rnWYMY9SbDmh6CPOQ==","signatures":[{"sig":"MEUCIHv52NPJBSLXx0kdPEXp0ZAS5e2vvjjfwQnpcRg2Uk2hAiEAlivLyJ4861x+IIWzq/y/w4Y2xE5oAXNl3tfMz94rkhk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8awOCRA9TVsSAnZWagAAN1sP/0UT0tOI+gw1NctfqcL7\nAAWT6EHfG4O9MjAG/XKmJq8C6/ai8nDew/LNEP0Fms6FX9/ZeQKxmuo7Smcv\nhfpYTMt1YUXsM4+TJcBdiuHta/I4Qd7Rl/0rMzIxEypHlJhKzuIIlelHpI2t\nwViUOERAx167NOK6KhKoY1ZSlu/Ldcy/57K4qbTIwhrCgmg+hOkHenauW6bD\n+DqDKUzJCi3oAOWzjQol6y636Zj3mn0FsauS3ru3YSxqKIArVacWtxZX8ZNM\n6/2K8WEmbDmoykxuqjuu4tc4my7DjOMoivg9f9ZYFvF408Bxb9bM/e1tI6HF\nA2UoaWVe9bgwsEaXnihqDmpp3QR4j9GzYBVUEsfWRXz5696F+rnXRWKbMjJk\neJ/QOpQlNVIOruMkhh1KI8CRDO4JF8DY6bKK4PKKKjwm+NId/zfKMa5UnrM+\nFEoQ1Mmj4su4OkL2Kc/ZI0W1iqXu0oFdtaVlsTE2yNsNQC9OWLVhBduybGj7\ncdnEt6vZzl8Io06/KXzKYTvPB9sDnQ32zHXHv3nE9fu75PBRpHcwP7NOJvLL\nhamvixa2mtARMNFihwcMgPQHqXn0i/U+nVZjz2OLVlrYv0R+ZwWcLW24Yy8O\nmXBEKvrPs67P/l2oi2QlhjWXSXUnJUHQOuZ/G32qctMBZtlyrmfAVw5R8ZBw\n8k+w\r\n=bFKz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","gitHead":"bb5f72854915965393a0779c52c20ea4b8d696d3","scripts":{"lint":"sui-lint js","test":"sui-test server --pattern '\"src/test/**/*Test.js\"'","build":"rm -Rf dist && babel src/main --out-dir dist","check":"npm run lint && npm run test","start":"webpack-dev-server --config src/webpack/dev.webpack.config.js","deploy":"rm -Rf deploy && npm run deploy:webpack && npm run deploy:s3","phoenix":"rm -Rf node_modules && rm -Rf package-lock.json && npm i","prepack":"npm run build","coverage":"nyc --reporter=html --exclude='\"src/test/**/*Test.js\"' npm run test","versiona":"node versiona.js","deploy:s3":"node deploy.js","coverage:ci":"nyc --reporter=cobertura --exclude='\"src/test/**/*Test.js\"' npm run test && codecov","deploy:webpack":"webpack --config src/webpack/deploy.webpack.config.js --progress --profile --colors --display-error-details --display-cached"},"_npmUser":{"name":"schibstedspain","email":"cloud-accounts@scmspain.com"},"prettier":"./node_modules/@s-ui/lint/.prettierrc.js","stylelint":{"extends":"./node_modules/@s-ui/lint/stylelint.config.js"},"repository":{"url":"git+https://github.com/scm-spain/boros-tcf-stub.git","type":"git"},"_npmVersion":"6.13.4","description":"Adevinta GDPR - Transparency and Consent Framework - Stub for Boros TCF","directories":{},"_nodeVersion":"12.14.1","dependencies":{},"eslintConfig":{"extends":["./node_modules/@s-ui/lint/eslintrc.js"]},"_hasShrinkwrap":false,"devDependencies":{"nyc":"15.0.0","chai":"4.2.0","nock":"12.0.3","jsdom":"16.2.2","mocha":"5.2.0","sinon":"9.0.2","codecov":"3.6.5","webpack":"4.42.1","versiona":"4","@babel/cli":"7.8.0","@s-ui/lint":"3","@s-ui/test":"2","@babel/core":"7.8.0","webpack-cli":"3.3.11","babel-loader":"8.0.6","jsdom-global":"3.0.2","@babel/runtime":"7.8.0","@babel/register":"7.8.0","babel-preset-sui":"3","s3-folder-upload":"2.3.0","webpack-dev-server":"3.10.3","html-webpack-plugin":"4.0.4","clean-webpack-plugin":"3.0.0","babel-plugin-transform-define":"2.0.0","@babel/plugin-transform-modules-commonjs":"7.8.0"},"_npmOperationalInternal":{"tmp":"tmp/boros-tcf-stub_1.0.0_1592896526400_0.22881353589438702","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@adv-ui/boros-tcf-stub","version":"1.1.0","keywords":["ads","advertising","schibsted","adevinta","gdpr","cmp","tcf","tcfv2","stub","consent-string","iab","boros"],"author":{"name":"One Punch Team"},"license":"MIT","_id":"@adv-ui/boros-tcf-stub@1.1.0","maintainers":[{"name":"miduga","email":"miduga@gmail.com"},{"name":"schibstedspain","email":"cloud-accounts@scmspain.com"}],"homepage":"https://github.com/scm-spain/boros-tcf-stub#readme","bugs":{"url":"https://github.com/scm-spain/boros-tcf-stub/issues"},"dist":{"shasum":"f33130a99019c5616f53a3a215882102124b63b5","tarball":"https://registry.npmjs.org/@adv-ui/boros-tcf-stub/-/boros-tcf-stub-1.1.0.tgz","fileCount":11,"integrity":"sha512-YoxbpqZQtvZ8dC2i+4dHaxMQT1vMuyeDG9bMGMFoUigdqoUSThgeDN9f5UnSrip0zuzqoOy1mIsgnREYKuQzAg==","signatures":[{"sig":"MEUCIQDTko4TTeUdcU8HIS0w4Xyh7QD8NsZXK+Qoq50O0GyUhgIgN5MNE/QtozKasSgrnJs7w4+QnjFYU5caXi6VQlHYFB0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12753,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8h5qCRA9TVsSAnZWagAAP/wP/j8VjgYcLrSSSJBpiuu5\nHjft7A//o8VkY5aIpgjtpeH66e8kU7mqsIwRaSBk49UKSsudAPgp4cIA9HfA\nF8P0e0koE3pbHWMp2Vke98IJ1Ne1fQ8Scvwo7J1MX97mFrMHF/24b9kns27Y\nG5e4AY3nNtYqC0GYeA2uxjvrLWRJNQdKjk7CiGI9RRlwxORCd9GvaiYxtE7s\nq9b12j6ZuDIYB2G7mB/YG1NC1iWKobp8cJoFrNpYrU7VG+zhi5mBs7kaHkGr\n0HdIXxVW8fNfzkgSW2kXoI1O6FDXMt20uykQ4IbwaXfMWCMGAsR86/dJ/7wx\nnZx17lOBVzdSwaA3bWKbE4u+xLdk/dvR2tel2EICDhNFVN+LLA+9nGfLZPzk\nYhrsR/aclyaCpRQDpzdZdInrMk5rXbG6Umwq5MWjTV9UDS+/nrks2qA+ovNs\nCmLMcRPoAKoQ8EISWmC1UnrdMDJ/rZf3U85iLkdEdGKHRoZCWaEQV/1+ZsNL\nFGei8P95+UpR2w75UJIkhpmOEqYktw6ZyGG0VENZJ2ED6f12QdtPaPLEkjmV\n7c0WLdvVmiaBszrPf9Is8rGYOCLJ8NzKXty+auu1GiMdfZQabpsEOVoO1S3I\nmJ8z+TAuzaaEzfUBQfyf1kPj1QNQBcaHKrIshO5kRzC5/i1nDLuwYI+OOMgt\n1ICk\r\n=vEAD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","gitHead":"1821c6ae28cdfc9e75d00ca5126d02ef43970658","scripts":{"lint":"sui-lint js","test":"sui-test server --pattern '\"src/test/**/*Test.js\"'","build":"rm -Rf dist && babel src/main --out-dir dist","check":"npm run lint && npm run test","start":"webpack-dev-server --config src/webpack/dev.webpack.config.js","deploy":"rm -Rf deploy && npm run deploy:webpack && npm run deploy:s3","phoenix":"rm -Rf node_modules && rm -Rf package-lock.json && npm i","prepack":"npm run build","coverage":"nyc --reporter=html --exclude='\"src/test/**/*Test.js\"' npm run test","versiona":"node versiona.js","deploy:s3":"node deploy.js","coverage:ci":"nyc --reporter=cobertura --exclude='\"src/test/**/*Test.js\"' npm run test && codecov","deploy:webpack":"webpack --config src/webpack/deploy.webpack.config.js --progress --profile --colors --display-error-details --display-cached"},"_npmUser":{"name":"schibstedspain","email":"cloud-accounts@scmspain.com"},"prettier":"./node_modules/@s-ui/lint/.prettierrc.js","stylelint":{"extends":"./node_modules/@s-ui/lint/stylelint.config.js"},"repository":{"url":"git+https://github.com/scm-spain/boros-tcf-stub.git","type":"git"},"_npmVersion":"6.13.4","description":"Adevinta GDPR - Transparency and Consent Framework - Stub for Boros TCF","directories":{},"_nodeVersion":"12.14.1","dependencies":{},"eslintConfig":{"extends":["./node_modules/@s-ui/lint/eslintrc.js"]},"_hasShrinkwrap":false,"devDependencies":{"nyc":"15.0.0","chai":"4.2.0","nock":"12.0.3","jsdom":"16.2.2","mocha":"5.2.0","sinon":"9.0.2","codecov":"3.6.5","webpack":"4.42.1","versiona":"4","@babel/cli":"7.8.0","@s-ui/lint":"3","@s-ui/test":"2","@babel/core":"7.8.0","webpack-cli":"3.3.11","babel-loader":"8.0.6","jsdom-global":"3.0.2","@babel/runtime":"7.8.0","@babel/register":"7.8.0","babel-preset-sui":"3","s3-folder-upload":"2.3.0","webpack-dev-server":"3.10.3","html-webpack-plugin":"4.0.4","clean-webpack-plugin":"3.0.0","babel-plugin-transform-define":"2.0.0","@babel/plugin-transform-modules-commonjs":"7.8.0"},"_npmOperationalInternal":{"tmp":"tmp/boros-tcf-stub_1.1.0_1592925801733_0.7494835341337587","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@adv-ui/boros-tcf-stub","version":"1.2.0","keywords":["ads","advertising","schibsted","adevinta","gdpr","cmp","tcf","tcfv2","stub","consent-string","iab","boros"],"author":{"name":"One Punch Team"},"license":"MIT","_id":"@adv-ui/boros-tcf-stub@1.2.0","maintainers":[{"name":"schibstedspain","email":"cloud-accounts@scmspain.com"}],"homepage":"https://github.com/scm-spain/boros-tcf-stub#readme","bugs":{"url":"https://github.com/scm-spain/boros-tcf-stub/issues"},"dist":{"shasum":"b716c7d7d7452d57c6690529649a23b41c5340e9","tarball":"https://registry.npmjs.org/@adv-ui/boros-tcf-stub/-/boros-tcf-stub-1.2.0.tgz","fileCount":11,"integrity":"sha512-7Wt+h/Lh+zxougoRIeiRmXo92vo1vRvGBoILqlL3UwYh18lgBQCTpraXkXyDcEen8wmaQnPuOFnMSaORBrFGfA==","signatures":[{"sig":"MEQCIAFZwwcJmY3xB2QCoK73x4WZwRgIUr0/fD3z1tpc7cYxAiA9trGxHE6O9m2Q0Dwl/wXe4Gj6zwgqJ5WJ4oj8xS/OZg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWy0eCRA9TVsSAnZWagAAcTMQAIqO6PLBc5XT+Wp9qm7w\nVPQAVbeac6Jztqj+l+uMUKKaCOaq9aetLv3ginNKIMugAowLVjoeUF932Mh2\nng3m51elbrZcvGZ6iW+FyOhtnP+dF3X6iKFyXF/jAVhromd4aqhyVYKjtmZ3\n4+jnlJtCjU3fwyQcQMii+KpqCpyeFS2uFeWNOFQJKqiGUC9L/GKU8Kk9PBfA\n0F2zOjzQU0kgy3hdUSzZzPGm8Naefl+Sa4+edgmm09qHiS++jf00tKjtK8r+\ntwmpYwl9wYBr394ZTrKZrEng0QSlVGUSpE/ZjbKR0jSyicseYXMU5ZT+SKMT\nI6JABxVTgiDf17brzSJWP0bgAgDOVUv0ckNSrlNj6sE/G7noSRFt7DCJfDUc\nmKB33dXeipxuGxHs76hTcVoGfg3p4lK8hna3DFdvrvTQV/sx2WqP61LCTE6+\nxbBvJbv7bOea5Hrr4HLMRB2VC2T9fSzroguoTDEYHLpwYGXA6zidlX0RcpdF\nxt7EoeKj7GSNuh9/PirsF19lSBFhOSOgDdu/vuS+CqgEC1jNrG+ycugf4Yve\nj+fPGzUm/msqedA0rpR3J1T00O4TLdxDdG5YO6mHpn8ISxhS9alaMJEufDz3\nEk7R5Ss3CnXpOQmFFi6O4zc7rzDMxYhV3oqMzhGSwZkSi/hg3zjZf90a0yh1\nmkBc\r\n=zYf8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist","gitHead":"dd880c413bcff5abdcbec2f4546c38e3c2b3618e","scripts":{"lint":"sui-lint js","test":"sui-test server --pattern '\"src/test/**/*Test.js\"'","build":"rm -Rf dist && babel src/main --out-dir dist","check":"npm run lint && npm run test","start":"webpack-dev-server --config src/webpack/dev.webpack.config.js","deploy":"rm -Rf deploy && npm run deploy:webpack && npm run deploy:s3","phoenix":"rm -Rf node_modules && rm -Rf package-lock.json && npm i","prepack":"npm run build","coverage":"nyc --reporter=html --exclude='\"src/test/**/*Test.js\"' npm run test","versiona":"node versiona.js","deploy:s3":"node deploy.js","coverage:ci":"nyc --reporter=cobertura --exclude='\"src/test/**/*Test.js\"' npm run test && codecov","deploy:webpack":"webpack --config src/webpack/deploy.webpack.config.js --progress --profile --colors --display-error-details --display-cached"},"_npmUser":{"name":"schibstedspain","email":"cloud-accounts@scmspain.com"},"prettier":"./node_modules/@s-ui/lint/.prettierrc.js","stylelint":{"extends":"./node_modules/@s-ui/lint/stylelint.config.js"},"repository":{"url":"git+https://github.com/scm-spain/boros-tcf-stub.git","type":"git"},"_npmVersion":"6.13.4","description":"Adevinta GDPR - Transparency and Consent Framework - Stub for Boros TCF","directories":{},"_nodeVersion":"12.14.1","eslintConfig":{"extends":["./node_modules/@s-ui/lint/eslintrc.js"]},"_hasShrinkwrap":false,"devDependencies":{"nyc":"15.0.0","chai":"4.2.0","nock":"12.0.3","jsdom":"16.5.1","sinon":"9.0.2","codecov":"3.6.5","webpack":"4.42.1","versiona":"4","@babel/cli":"7.8.0","@s-ui/lint":"3","@s-ui/test":"4","@babel/core":"7.8.0","webpack-cli":"3.3.11","babel-loader":"8.0.6","jsdom-global":"3.0.2","@babel/runtime":"7.8.0","@babel/register":"7.8.0","babel-preset-sui":"3","s3-folder-upload":"2.3.0","webpack-dev-server":"3.10.3","html-webpack-plugin":"4.0.4","clean-webpack-plugin":"3.0.0","babel-plugin-transform-define":"2.0.0","@babel/plugin-transform-modules-commonjs":"7.8.0"},"_npmOperationalInternal":{"tmp":"tmp/boros-tcf-stub_1.2.0_1616588061700_0.05885327809494911","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-06-23T07:15:26.397Z","modified":"2025-11-20T08:27:57.428Z","1.0.0":"2020-06-23T07:15:26.592Z","1.1.0":"2020-06-23T15:23:21.906Z","1.2.0":"2021-03-24T12:14:21.853Z"},"bugs":{"url":"https://github.com/scm-spain/boros-tcf-stub/issues"},"author":{"name":"One Punch Team"},"license":"MIT","homepage":"https://github.com/scm-spain/boros-tcf-stub#readme","keywords":["ads","advertising","schibsted","adevinta","gdpr","cmp","tcf","tcfv2","stub","consent-string","iab","boros"],"repository":{"url":"git+https://github.com/scm-spain/boros-tcf-stub.git","type":"git"},"description":"Adevinta GDPR - Transparency and Consent Framework - Stub for Boros TCF","maintainers":[{"email":"andres.lucas@adevinta.com","name":"andresin87.adevinta"},{"email":"francisco.ruiz@adevinta.com","name":"francisco.ruiz.lloret"},{"email":"enablers-frontend@adevinta.com","name":"schibstedspain"}],"readme":"# Boros TCF Stub\n\n[![Build status](https://travis-ci.org/scm-spain/boros-tcf-stub.svg?branch=master)](https://travis-ci.org/scm-spain/boros-tcf-stub)\n[![codecov](https://codecov.io/gh/scm-spain/boros-tcf-stub/branch/master/graph/badge.svg)](https://codecov.io/gh/scm-spain/boros-tcf-stub)\n[![GitHub license](https://img.shields.io/github/license/scm-spain/boros-tcf-stub.svg)](https://github.com/scm-spain/boros-tcf-stub/blob/master/LICENSE)\n[![npm version](https://img.shields.io/npm/v/@adv-ui/boros-tcf-stub.svg)](https://www.npmjs.com/package/@adv-ui/boros-tcf-stub)\n\n## Table of Contents\n\n* [About](#about)\n* [Features](#features)\n* [Usage](#usage)\n* [License](#license)\n\n\n## About\n\nThe Boros TCF stub implements the [standard TCF v2 stub](https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#how-does-the-cmp-stub-api-work)\n\n## Features\n\n- Registers the `__tcfapiLocator` frame\n\n- Stubs the `window.__tcfapi` responding immediately to the commands\n  - `ping` [See PingReturn in the stubbed __tcfapi](https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#requirements-for-the-cmp-stub-api-script)\n  - `pending` returns the pending calls accumulated while calling `window.__tcfapi` commands\n  - `onReady` returns the optional registered `onReady` callback\n\n- Initializes the cross-framee communication via `postMessagee`, [see usage details](https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md#how-can-vendors-that-use-iframes-call-the-cmp-api-from-an-iframe)\n\n## Usage\n\n### As an importable module\n\n> Use it this way if you're generating your own initialization\n\n**Install**\n```\nnpm i @adv-ui/boros-tcf-stub --save\n```\n\n**Register the Stub**\n```\nimport registerStub from '../main'\n\n// do your magic\nregisterStub()\n```\n\n**Register the Stub with an onReady callback**\n\nThis allows creating additional commands that can have access to the Boros TCF API facade.\n\n```\nimport registerStub from '../main'\n\nconst onReady = api => initializeCustomCommands(api)\n \nregisterStub({onReady})\n```\n\n> The `onReady` callback will be called after Boros TCF initializes the `window.__tcfapi` and before processing any pending command in the stub's queue.\n\n> Remember that the Stub **must** be registered before any script depending on the TCF is loaded\n\n### As a standalone script\n\n**Add it to the `head` tag**\n\n```\n<script\n  src=\"https://c.dcdn.es/borostcf/stub/BorosTcfStub.pro.js\"\n  async=\"false\" \n/>\n```\n\n> This does not accept registering an `onReady` callback. Import the `registerStub` and generate your own script if it's a need.\n\n## License\nBoros TCF Stub is [MIT licensed](./LICENSE).\n","readmeFilename":"README.md"}