New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vivareal/cookie-notifier

Package Overview
Dependencies
Maintainers
57
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vivareal/cookie-notifier - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

preview.png

2

dist/cookie-notifier.min.js

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

function n(o){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(o)}var o,t;o=this,t=function(n){var o,t,e=document.createElement("div"),f="\n /* cyrillic-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n }\n /* cyrillic */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n }\n /* greek-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+1F00-1FFF;\n }\n /* greek */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0370-03FF;\n }\n /* vietnamese */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;\n }\n /* latin-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n /* latin */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n /* cyrillic-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n }\n /* cyrillic */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n }\n /* greek-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+1F00-1FFF;\n }\n /* greek */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0370-03FF;\n }\n /* vietnamese */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;\n }\n /* latin-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n /* latin */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n\n .cookie-notifier {\n background: #FFFFFF;\n position: fixed;\n bottom: 0;\n width: 100%;\n padding: 16px 32px;\n left: 0;\n box-sizing: border-box;\n box-shadow: 0px 2px 24px rgba(0, 0, 0, 0.16);\n z-index: 100;\n }\n\n .cookie-notifier__wrapper {\n max-width: 1032px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: 10fr 1fr;\n grid-column-gap: 16px;\n align-items: center;\n }\n\n @media screen and (max-width: 600px) {\n .cookie-notifier {\n padding: 8px 24px;\n }\n .cookie-notifier__wrapper {\n grid-template-columns: 1fr;\n grid-row-gap: 16px;\n }\n\n .cookie-notifier__paragraph {\n line-height: 20px\n }\n }\n\n .cookie-notifier__paragraph {\n margin: 0px;\n font-size: 14px;\n font-weight: 400;\n font-family: 'Roboto', sans-serif;\n color: #474747;\n }\n\n .cookie-notifier__cta {\n background: ".concat(n.cta.background,";\n color: ").concat(n.cta.color,";\n cursor: pointer;\n display: inline-block;\n text-decoration: none;\n font-size: 1rem;\n font-weight: 700;\n line-height: 1.5;\n text-align: center;\n border-radius: 4px;\n height: 40px;\n padding: 8px 24px;\n border: none;\n font-family: 'Roboto', sans-serif;\n }\n\n .cookie-notifier__link {\n color: ").concat(n.cta.background,";\n text-decoration: underline;\n }\n "),i='\n <div class="cookie-notifier">\n <div class="cookie-notifier__wrapper">\n <p class="cookie-notifier__paragraph">\n Usamos cookies para personalizar conteúdos e melhorar a sua experiência. Ao navegar neste site, você concorda com a nossa \n <a href="'.concat(n.link,'" target="_blank" class="cookie-notifier__link">Política de Cookies</a>.\n </p>\n <button class="cookie-notifier__cta" id="cookie-notifier-cta">').concat(n.cta.text,"</button>\n </div>\n </div>\n ");Boolean((o="cookie-notifier",(t=document.cookie.match(new RegExp("(?:^|; )"+o.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))?decodeURIComponent(t[1]):void 0))||(function(n){e.innerHTML=n,document.body.appendChild(e)}(i),function(n){var o=document.createElement("style");o.type="text/css",o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(o)}(f),document.getElementById("cookie-notifier-cta").addEventListener("click",(function(){var n;document.cookie="cookie-notifier=1;domain=".concat(((n=window.location.hostname.split(/(\.)(com.*)$/))[0]=n[0].split(".").pop(),n.join(""))),e.innerHTML=""}),!1))},"function"==typeof define&&define.amd?define("cookieNotifier",(function(){return t})):"object"===("undefined"==typeof module?"undefined":n(module))&&module.exports?module.exports=t:o.cookieNotifier=t;
function n(o){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(o)}var o,t;o=this,t=function(n){var o,t,e=document.createElement("div"),f="\n /* cyrillic-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n }\n /* cyrillic */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n }\n /* greek-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+1F00-1FFF;\n }\n /* greek */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0370-03FF;\n }\n /* vietnamese */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;\n }\n /* latin-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2) format('woff2');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n /* latin */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n /* cyrillic-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n }\n /* cyrillic */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n }\n /* greek-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+1F00-1FFF;\n }\n /* greek */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0370-03FF;\n }\n /* vietnamese */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;\n }\n /* latin-ext */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4AMP6lbBP.woff2) format('woff2');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n /* latin */\n @font-face {\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n\n .cookie-notifier {\n background: #FFFFFF;\n position: fixed;\n bottom: 0;\n width: 100%;\n padding: 16px 32px;\n left: 0;\n box-sizing: border-box;\n box-shadow: 0px 2px 24px rgba(0, 0, 0, 0.16);\n z-index: 100;\n }\n\n .cookie-notifier__wrapper {\n max-width: 1032px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: 10fr 1fr;\n grid-column-gap: 16px;\n align-items: center;\n }\n\n @media screen and (max-width: 600px) {\n .cookie-notifier {\n padding: 8px 24px;\n }\n .cookie-notifier__wrapper {\n grid-template-columns: 1fr;\n grid-row-gap: 16px;\n }\n\n .cookie-notifier__paragraph {\n line-height: 20px\n }\n }\n\n .cookie-notifier__paragraph {\n margin: 0px;\n font-size: 14px;\n font-weight: 400;\n font-family: 'Roboto', sans-serif;\n color: #474747;\n }\n\n .cookie-notifier__cta {\n background: ".concat(n.cta.background,";\n color: ").concat(n.cta.color,";\n cursor: pointer;\n display: inline-block;\n text-decoration: none;\n font-size: 1rem;\n font-weight: 700;\n line-height: 1.5;\n text-align: center;\n border-radius: 4px;\n height: 40px;\n padding: 8px 24px;\n border: none;\n font-family: 'Roboto', sans-serif;\n }\n\n .cookie-notifier__link {\n color: ").concat(n.cta.background,";\n text-decoration: underline;\n }\n "),i='\n <div class="cookie-notifier">\n <div class="cookie-notifier__wrapper">\n <p class="cookie-notifier__paragraph">\n Usamos cookies para personalizar conteúdos e melhorar a sua experiência. Ao navegar neste site, você concorda com a nossa \n <a href="'.concat(n.link,'" target="_blank" class="cookie-notifier__link">Política de Cookies</a>.\n </p>\n <button class="cookie-notifier__cta" id="cookie-notifier-cta">').concat(n.cta.text,"</button>\n </div>\n </div>\n ");Boolean((o="cookie-notifier",(t=document.cookie.match(new RegExp("(?:^|; )"+o.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")))?decodeURIComponent(t[1]):void 0))||(function(n){e.innerHTML=n,document.body.appendChild(e)}(i),function(n){var o=document.createElement("style");o.type="text/css",o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(o)}(f),document.getElementById("cookie-notifier-cta").addEventListener("click",(function(){var n;document.cookie="cookie-notifier=1;domain=".concat(((n=window.location.hostname.split(/(\.)(com.*)$/))[0]=n[0].split(".").pop(),n.join("")),";path=/"),e.innerHTML=""}),!1))},"function"==typeof define&&define.amd?define("cookieNotifier",(function(){return t})):"object"===("undefined"==typeof module?"undefined":n(module))&&module.exports?module.exports=t:o.cookieNotifier=t;
{
"name": "@vivareal/cookie-notifier",
"version": "1.0.2",
"version": "1.0.3",
"description": "Cookie notifier 🍪",

@@ -13,3 +13,4 @@ "author": "OLX Brasil - ZAP+",

"files": [
"dist"
"dist",
"preview.png"
],

@@ -54,3 +55,3 @@ "sideEffects": false,

},
"gitHead": "465312f7f19f6c2279edbbfae0f08de3e07c0277"
"gitHead": "605e5f57fbc064501182ddfd354fdbbd12a8694d"
}
# Cookie notifier 🍪
# Cookie notifier 🍪

@@ -30,3 +30,3 @@ ![Preview](preview.png)

export default {
mouted() {
mounted() {
new cookieNotifier({

@@ -52,3 +52,3 @@ link: 'http://www.google.com',

```html
<script src="https://unpkg.com/@vivareal/cookie-notifier@1.0.0"></script>
<script src="https://unpkg.com/@vivareal/cookie-notifier@^1"></script>
<script>

@@ -55,0 +55,0 @@ new cookieNotifier({

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