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

@20minutes/tyr

Package Overview
Dependencies
Maintainers
2
Versions
449
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@20minutes/tyr - npm Package Compare versions

Comparing version 0.1.65 to 0.1.66

2

dist/js/ads.min.js

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

(function(){"use strict";const A={desktop:{article:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",BAN_MTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",INREAD:"[[1,1], [300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v]]",INSTREAM_DESKTOP:"[[300,250v], [640,380v], [640,533v]]",PAVE_ARTICLE:"[[1,1], [300,250], [336,280], [600,250], [770,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600], [336,280]]",PAVE_BTF:"[[1,1], [300,250], [300,600], [336,280]]",PAVE_COM:"[[1,1], [300,250], [336,280], [600,250], [770,250]]",PAVE_MTF:"[[1,1], [300,250], [300,600], [336,280]]"},divers:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",BAN_MTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",INREAD:"[[1,1], [300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v]]",PAVE_ARTICLE:"[[1,1], [300,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600]]",PAVE_BTF:"[[1,1], [300,250], [300,600]]",PAVE_COM:"[[1,1], [300,250]]",PAVE_MTF:"[[1,1], [300,250], [300,600]]"},horoscope:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",BAN_MTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",INREAD:"[[1,1], [300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v]]",PAVE_ARTICLE:"[[1,1], [300,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600]]",PAVE_BTF:"[[1,1], [300,250], [300,600]]",PAVE_COM:"[[1,1], [300,250]]",PAVE_MTF:"[[1,1], [300,250], [300,600]]"}},mobile:{article:{ARTICLE_ATF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480], [336,280]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480], [336,280]]",ARTICLE_MTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480], [336,280]]",HEADER_AD:'[[1,1], [300,50], [300,100], [320,50], [320,100], "Fluid"]',INREAD:'[[300,250], [300,250v], [640,380], [640,533], [640,533v], "Fluid"]',INSTREAM_DESKTOP:"[[300,250v], [640,380v], [640,533v]]",INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]",PAVE_COM:"[[1,1], [300,168], [300,250], [300,250v], [320,50], [320,100], [320,480], [336,280]]"},divers:{ARTICLE_ATF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_MTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",HEADER_AD:'[[1,1], [320,50], [320,100], "Fluid"]',INREAD:'[[300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v], "Fluid"]',INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]",NFB_1:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",NFB_2:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]"},horoscope:{ARTICLE_ATF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_MTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",HEADER_AD:'[[1,1], [320,50], [320,100], "Fluid"]',INREAD:'[[300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v], "Fluid"]',INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]",NFB_1:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",NFB_2:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]"}}};var I=(e=>(e[e.article=0]="article",e[e.divers=1]="divers",e[e.horoscope=2]="horoscope",e))(I||{}),g=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e))(g||{}),r=(e=>(e.MISC="divers",e.HOME="home",e.LOCAL="local",e.PLANET="plan\xE8te",e))(r||{}),T=(e=>(e.PAGETYPE="pageType",e.TAGS="tags",e))(T||{});const S=e=>{var t,o,a,n;switch(e){case"pageType":return Object.values(g).includes((t=window.datalayer)==null?void 0:t.page_type)?(o=window.datalayer.page_type)==null?void 0:o.toLowerCase():g.MISC;case"tags":return Object.values(r).includes((a=window.datalayer)==null?void 0:a.tags)?(n=window.datalayer.tags)==null?void 0:n.toLowerCase():r.MISC}return window.datalayer[e]},h=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(T).forEach(e=>{window.dfp.targeting[e]=S(e)})},R=["nfb_1","nfb_2","article_btf"],m=e=>{var t;const o=e instanceof Array?e:[e];window.dfp.slots=((t=window.dfp)==null?void 0:t.slots)||[],window.dfp.slots=[...window.dfp.slots,...o]},E=(e,t=window.dfp.targeting)=>{const o=e.getAttribute("data-dfp-name"),a=e.getAttribute("data-dfp-path"),n=e.getAttribute("id"),i=a?.split("/").filter(l=>l!==""),s=(i?.[1]||null)==="20minutes_desktop"?"desktop":"mobile",u=i?.[i.length-1]||null;if(n&&o&&s&&u){let l;if(l=o&&JSON.parse(A[s][u][o.toUpperCase()])||null,a&&l&&googletag){let d=null;if(R.includes(o)?(d=googletag.defineSlot([a,o].join("/"),l),d!=null&&d.getSlotElementId()&&e.setAttribute("id",d.getSlotElementId())):d=googletag.defineSlot([a,o].join("/"),l,n),!d)return;d.addService(googletag.pubads()),m({slotElementId:d.getSlotElementId(),path:a,sizes:JSON.stringify(l)}),Object.entries(t).map(([B,V])=>d?.setTargeting(B,V))}}},b=(e=window.dfp.targeting)=>{window.dfp.slotsReady=!1,googletag.cmd.push(()=>{document.querySelectorAll("div[data-dfp-path]").forEach(t=>E(t,e)),window.dfp.slotsReady=!0})};let f=!1,v=0;const F=1500,c="renderAd",w=e=>{console.log(`20minDfpCall: adslot with following id has been called: %c${e}`,"color: #0777;font-weight:bold;")},N=()=>f||googletag&&googletag.pubadsReady&&window.dfp.slotsReady&&window.dfp.hubvisorEnd,p=e=>{googletag&&googletag.cmd.push(()=>{const t={};googletag.pubads().getSlots().forEach(a=>{t[a.getSlotElementId()]=a});const o=[];e.forEach(a=>{t[a]&&o.push(t[a])}),o.length&&googletag.pubads().refresh(o)})},C=()=>{document.addEventListener(c,e=>{if(!e.target)return;const t=e;t&&t.target.closest("[data-dfp-name]")&&t.detail.length&&p([t.detail[0].id])},!0)},L=()=>{const e=document.querySelectorAll('div[data-dfp-name][data-delayed="true"]');Array.prototype.forEach.call(e,t=>{t.addEventListener(t.getAttribute("id"),function o(){t.dispatchEvent(new CustomEvent(c,{detail:[{id:t.getAttribute("id")}]})),w(t.getAttribute("id")),t.removeEventListener(c,o)})})},y=()=>{const e=[],t=document.querySelectorAll('div[data-dfp-name][data-delayed="false"]');t.length>0&&Array.prototype.forEach.call(t,o=>{e.push(o.getAttribute("id")),w(o.getAttribute("id"))}),p(e)},_=()=>{y(),L()},P=()=>{const e=setInterval(()=>{if(!N()&&v<F){v+=100;return}clearInterval(e),f=!0,C(),document.readyState!=="loading"?_():window.addEventListener("DOMContentLoaded",()=>{_()})},100)},O=e=>document.cookie.indexOf(e)!==-1,D=e=>{const t=document.cookie.split(";").filter(o=>o.indexOf(e)!==-1)[0];return t?t.split("=")[1]:"{}"},M=()=>{googletag.cmd.push(()=>{googletag.pubads().setTargeting("lang","fr"),googletag.pubads().setTargeting("dn",window.location.hostname);try{const t=window.location.href.split("?")[1];t&&t.split("&").forEach(o=>{const a=o.split("=");a[0]==="20minutest"&&googletag.pubads().setTargeting(a[0],a[1])})}catch{}googletag.pubads().enableSingleRequest(),googletag.pubads().disableInitialLoad(),googletag.enableServices(),O("20min_fp")&&window.Didomi.getUserConsentStatusForPurpose("publicite-9qedKJMX")&&googletag.pubads().setPublisherProvidedId(D("20min_fp"));const e=Math.max(document.documentElement.clientWidth,window.innerWidth||0);e>=1400?googletag.pubads().setTargeting("screen",["1400","1000"]):e>=1e3&&googletag.pubads().setTargeting("screen","1000")})};(()=>{window.dfp.initDfpSlot=E,window.dfp.callSlots=p,M(),h(),b(),P()})()})();
(function(){"use strict";const T={desktop:{article:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",BAN_MTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",INREAD:"[[1,1], [300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v]]",INSTREAM_DESKTOP:"[[300,250v], [640,380v], [640,533v]]",PAVE_ARTICLE:"[[1,1], [300,250], [336,280], [600,250], [770,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600], [336,280]]",PAVE_BTF:"[[1,1], [300,250], [300,600], [336,280]]",PAVE_COM:"[[1,1], [300,250], [336,280], [600,250], [770,250]]",PAVE_MTF:"[[1,1], [300,250], [300,600], [336,280]]"},divers:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",BAN_MTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",INREAD:"[[1,1], [300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v]]",PAVE_ARTICLE:"[[1,1], [300,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600]]",PAVE_BTF:"[[1,1], [300,250], [300,600]]",PAVE_COM:"[[1,1], [300,250]]",PAVE_MTF:"[[1,1], [300,250], [300,600]]"},horoscope:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",BAN_MTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",INREAD:"[[1,1], [300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v]]",PAVE_ARTICLE:"[[1,1], [300,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600]]",PAVE_BTF:"[[1,1], [300,250], [300,600]]",PAVE_COM:"[[1,1], [300,250]]",PAVE_MTF:"[[1,1], [300,250], [300,600]]"}},mobile:{article:{ARTICLE_ATF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480], [336,280]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480], [336,280]]",ARTICLE_MTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480], [336,280]]",HEADER_AD:'[[1,1], [300,50], [300,100], [320,50], [320,100], "Fluid"]',INREAD:'[[300,250], [300,250v], [640,380], [640,533], [640,533v], "Fluid"]',INSTREAM_DESKTOP:"[[300,250v], [640,380v], [640,533v]]",INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]",PAVE_COM:"[[1,1], [300,168], [300,250], [300,250v], [320,50], [320,100], [320,480], [336,280]]"},divers:{ARTICLE_ATF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_MTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",HEADER_AD:'[[1,1], [320,50], [320,100], "Fluid"]',INREAD:'[[300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v], "Fluid"]',INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]",NFB_1:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",NFB_2:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]"},horoscope:{ARTICLE_ATF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_MTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",HEADER_AD:'[[1,1], [320,50], [320,100], "Fluid"]',INREAD:'[[300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v], "Fluid"]',INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]",NFB_1:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",NFB_2:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]"}}};var I=(e=>(e[e.article=0]="article",e[e.divers=1]="divers",e[e.horoscope=2]="horoscope",e))(I||{}),g=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e))(g||{}),r=(e=>(e.MISC="divers",e.HOME="home",e.LOCAL="local",e.PLANET="plan\xE8te",e))(r||{}),E=(e=>(e.PAGETYPE="pageType",e.TAGS="tags",e))(E||{});const S=e=>{var t,o,a,d;switch(e){case"pageType":return Object.values(g).includes((t=window.datalayer)==null?void 0:t.page_type)?(o=window.datalayer.page_type)==null?void 0:o.toLowerCase():g.MISC;case"tags":return Object.values(r).includes((a=window.datalayer)==null?void 0:a.tags)?(d=window.datalayer.tags)==null?void 0:d.toLowerCase():r.MISC}return window.datalayer[e]},h=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(E).forEach(e=>{window.dfp.targeting[e]=S(e)})},m=["nfb_1","nfb_2","article_btf"],R=e=>{var t;const o=e instanceof Array?e:[e];window.dfp.slots=((t=window.dfp)==null?void 0:t.slots)||[],window.dfp.slots=[...window.dfp.slots,...o]},f=(e,t=window.dfp.targeting)=>{const o=e.getAttribute("data-dfp-name"),a=e.getAttribute("data-dfp-path"),d=e.getAttribute("id"),n=a?.split("/").filter(i=>i!==""),s=(n?.[1]||null)==="20minutes_desktop"?"desktop":"mobile",A=n?.[n.length-1]||null;if(d&&o&&s&&A){let i;if(i=o&&JSON.parse(T[s][A][o.toUpperCase()])||null,a&&i&&googletag){let l=null;if(m.includes(o)?(l=googletag.defineSlot([a,o].join("/"),i),l!=null&&l.getSlotElementId()&&e.setAttribute("id",l.getSlotElementId())):l=googletag.defineSlot([a,o].join("/"),i,d),!l)return;l.addService(googletag.pubads()),R({slotElementId:l.getSlotElementId(),path:a,sizes:JSON.stringify(i)}),Object.entries(t).map(([B,V])=>l?.setTargeting(B,V))}}},b=(e=window.dfp.targeting)=>{window.dfp.slotsReady=!1,googletag.cmd.push(()=>{document.querySelectorAll("div[data-dfp-path]").forEach(t=>f(t,e)),window.dfp.slotsReady=!0})};let w=!1,v=0;const F=1500,c="renderAd",p=e=>{console.log(`20minDfpCall: adslot with following id has been called: %c${e}`,"color: #0777;font-weight:bold;")},N=()=>w||googletag&&googletag.pubadsReady&&window.dfp.slotsReady&&window.dfp.hubvisorEnd,u=e=>{googletag&&googletag.cmd.push(()=>{const t={};googletag.pubads().getSlots().forEach(d=>{t[d.getSlotElementId()]=d});const o=[],a=[];e.forEach(d=>{t[d]&&(o.push(t[d]),a.push(t[d].getSlotElementId()))}),o.length&&window.Hubvisor("20minutes:refresh",[...a],()=>{googletag.cmd.push(()=>{googletag.pubads().refresh([...o]),a.forEach(d=>{p(d)})})})})},C=()=>{document.addEventListener(c,e=>{if(!e.target)return;const t=e;t&&t.target.closest("[data-dfp-name]")&&t.detail.length&&u([t.detail[0].id])},!0)},L=()=>{const e=document.querySelectorAll('div[data-dfp-name][data-delayed="true"]');Array.prototype.forEach.call(e,t=>{t.addEventListener(t.getAttribute("id"),function o(){t.dispatchEvent(new CustomEvent(c,{detail:[{id:t.getAttribute("id")}]})),p(t.getAttribute("id")),t.removeEventListener(c,o)})})},y=()=>{const e=[],t=document.querySelectorAll('div[data-dfp-name][data-delayed="false"]');t.length>0&&Array.prototype.forEach.call(t,o=>{e.push(o.getAttribute("id")),p(o.getAttribute("id"))}),u(e)},_=()=>{y(),L()},P=()=>{const e=setInterval(()=>{if(!N()&&v<F){v+=100;return}clearInterval(e),w=!0,C(),document.readyState!=="loading"?_():window.addEventListener("DOMContentLoaded",()=>{_()})},100)},O=e=>document.cookie.indexOf(e)!==-1,D=e=>{const t=document.cookie.split(";").filter(o=>o.indexOf(e)!==-1)[0];return t?t.split("=")[1]:"{}"},M=()=>{googletag.cmd.push(()=>{googletag.pubads().setTargeting("lang","fr"),googletag.pubads().setTargeting("dn",window.location.hostname);try{const t=window.location.href.split("?")[1];t&&t.split("&").forEach(o=>{const a=o.split("=");a[0]==="20minutest"&&googletag.pubads().setTargeting(a[0],a[1])})}catch{}googletag.pubads().enableSingleRequest(),googletag.pubads().disableInitialLoad(),googletag.enableServices(),O("20min_fp")&&window.Didomi.getUserConsentStatusForPurpose("publicite-9qedKJMX")&&googletag.pubads().setPublisherProvidedId(D("20min_fp"));const e=Math.max(document.documentElement.clientWidth,window.innerWidth||0);e>=1400?googletag.pubads().setTargeting("screen",["1400","1000"]):e>=1e3&&googletag.pubads().setTargeting("screen","1000")})};(()=>{window.dfp.initDfpSlot=f,window.dfp.callSlots=u,M(),h(),b(),P()})()})();

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

(function(){"use strict";const u=n=>{const e=document.cookie.split(";").filter(o=>o.indexOf(n)!==-1)[0];return e?e.split("=")[1]:"{}"},i=n=>{const e=[`${n.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];n.domain&&e.push(`domain=${n.domain}`),document.cookie=e.join("; ")},a=n=>{document.cookie.split(";").map(e=>e.split("=")[0].trim()).filter(e=>n.indexOf(e)===-1).forEach(e=>{const{hostname:o}=window.location;i({name:e}),i({name:e,domain:o.substring(o.indexOf(".")+1)}),i({name:e,domain:o.substring(o.indexOf("."))}),i({name:e,domain:`.${o}`})})},d=n=>{for(let e=0;e<sessionStorage.length;e+=1){const o=sessionStorage.key(e);o&&n.indexOf(o)===-1&&sessionStorage.removeItem(o)}},c=n=>{for(let e=0;e<localStorage.length;e+=1){const o=localStorage.key(e);o&&n.indexOf(o)===-1&&localStorage.removeItem(o)}},r=["20mnToken","20mnUserDataLayer","20mnTutorial","20mnUserInfo","20mnUserSession","_vfa","_vfb","_vfz","atauthority","atid","atidvisitor","atidx","atuserid","didomi_token","euconsent-v2","_pbjs_userid_consent_data","osano_consentmanager","osano_consentmanager_expdate","osano_consentmanager_uuid","SESSIDSF","SESSIDSFRM","TCPID","TSTD","ei_client_id","_biz_pendingA","_biz_flagsA","_biz_uid","_biz_nA","ajs_group_id","ajs_user_id","ajs_anonymous_id","TSNGUID","_mkto_trk","JSESSIONID","staging-login_idle_session_timeout","login_service_login_newrelic_com_tokens","login_idle_session_timeout","lang","auth_expiration_timestamp","sticky-scorecast-business-chat","__utna","__utnv","auth_token","PHPSESSID","sticky-scorecast-business-app","sticky-scorecast-prod-app","realm"],m=["_vf_sid","consent_validity_date","20mn-articlesSaved","20mn-font","closedInfo","20mn-known-user","20mn-block-links","20mnBreakingNewsBanner","20mnAppBanner","20mn-visits-content","20minutes-font"],l=["vfThirdpartyCookiesEnabled","com.batch.sessionId","loadIntrasticial"],p=()=>{window.didomiOnReady.push(()=>{let n=new Date;const e=n.getTimezoneOffset();n=new Date(n.getTime()-e*60*1e3);const o=n.toISOString().split("T")[0],t=localStorage.getItem("consent_validity_date");t&&o>t&&(window.Didomi.reset(),localStorage.removeItem("consent_validity_date"),window.disapproveDidomiGTMEvents=!0,a(r),c(m),d(l),window.Didomi.notice.show())})},_=()=>{window.didomiEventListeners.push({event:"notice.clickagree",listener:()=>{console.log("notice.clickagree")}}),window.didomiEventListeners.push({event:"notice.clickmoreinfo",listener:()=>{console.log("notice.clickmoreinfo")}}),window.didomiEventListeners.push({event:"notice.clickdisagree",listener:()=>{console.log("notice.clickdisagree")}})},g=()=>{window.cmpVariables={consentEventsCount:0},window.didomiEventListeners.push({event:"consent.changed",listener:()=>{const n=u("euconsent-v2"),e=window.cmpVariables.consentEventsCount>0?!0:!!n,o=!window.Didomi.getUserConsentStatusForPurpose("Cookies"),t=window.sessionStorage.getItem("cmpModal");e&&!t&&(o&&(a(r),c(m),d(l)),setTimeout(()=>{window.location.reload()})),t&&window.sessionStorage.removeItem("cmpModal"),window.cmpVariables.consentEventsCount+=1}})},w=(n,e,o=()=>{})=>{performance.mark(`20mn:${n}:Start`);const t=document.getElementsByTagName("script")[0],s=document.createElement("script");s.async=!0,s.src=e,s.onload=()=>{o(),performance.mark(`20mn:${n}:End`)},t&&t.parentNode&&t.parentNode.insertBefore(s,t)},v=()=>{window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{var n,e;(e=(n=window.ATInternet)==null?void 0:n.Tracker)!=null&&e.instances&&window.ATInternet.Tracker.instances.forEach(o=>{o.privacy.getVisitorMode().name!=="optout"&&(o.privacy.setVisitorMode("cnil","exempt"),window.Didomi.getUserConsentStatusForPurpose("mesureda-6qyqaZXC")&&o.privacy.setVisitorOptin())})}})},f=()=>{window.didomiOnReady=window.didomiOnReady||[];const n=(e,o)=>{o?(e.eventStatus==="tcloaded"||e.eventStatus==="useractioncomplete")&&(w("DFP_init","https://securepubads.g.doubleclick.net/tag/js/gpt.js"),window.__tcfapi&&window.__tcfapi("removeEventListener",2,null,e.listenerId)):console.log("Issue with dfp callback")};window.didomiOnReady.push(()=>{typeof n<"u"&&window.__tcfapi("addEventListener",2,n)})},S=()=>{window.didomiOnReady=window.didomiOnReady||[];const n=(e,o)=>{o?(e.eventStatus==="tcloaded"||e.eventStatus==="useractioncomplete")&&(w("Outbrain_init","https://widgets.outbrain.com/outbrain.js"),window.__tcfapi&&window.__tcfapi("removeEventListener",2,null,e.listenerId)):console.log("Issue with outbrain callback")};window.didomiOnReady.push(()=>{typeof n<"u"&&window.__tcfapi("addEventListener",2,n)})},k=()=>{f(),v(),S()};(()=>{p(),k(),g(),_()})()})();
(function(){"use strict";const u=n=>{const e=document.cookie.split(";").filter(o=>o.indexOf(n)!==-1)[0];return e?e.split("=")[1]:"{}"},i=n=>{const e=[`${n.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];n.domain&&e.push(`domain=${n.domain}`),document.cookie=e.join("; ")},a=n=>{document.cookie.split(";").map(e=>e.split("=")[0].trim()).filter(e=>n.indexOf(e)===-1).forEach(e=>{const{hostname:o}=window.location;i({name:e}),i({name:e,domain:o.substring(o.indexOf(".")+1)}),i({name:e,domain:o.substring(o.indexOf("."))}),i({name:e,domain:`.${o}`})})},d=n=>{for(let e=0;e<sessionStorage.length;e+=1){const o=sessionStorage.key(e);o&&n.indexOf(o)===-1&&sessionStorage.removeItem(o)}},c=n=>{for(let e=0;e<localStorage.length;e+=1){const o=localStorage.key(e);o&&n.indexOf(o)===-1&&localStorage.removeItem(o)}},r=["20mnToken","20mnUserDataLayer","20mnTutorial","20mnUserInfo","20mnUserSession","_vfa","_vfb","_vfz","atauthority","atid","atidvisitor","atidx","atuserid","didomi_token","euconsent-v2","_pbjs_userid_consent_data","osano_consentmanager","osano_consentmanager_expdate","osano_consentmanager_uuid","SESSIDSF","SESSIDSFRM","TCPID","TSTD","ei_client_id","_biz_pendingA","_biz_flagsA","_biz_uid","_biz_nA","ajs_group_id","ajs_user_id","ajs_anonymous_id","TSNGUID","_mkto_trk","JSESSIONID","staging-login_idle_session_timeout","login_service_login_newrelic_com_tokens","login_idle_session_timeout","lang","auth_expiration_timestamp","sticky-scorecast-business-chat","__utna","__utnv","auth_token","PHPSESSID","sticky-scorecast-business-app","sticky-scorecast-prod-app","realm"],m=["_vf_sid","consent_validity_date","20mn-articlesSaved","20mn-font","closedInfo","20mn-known-user","20mn-block-links","20mnBreakingNewsBanner","20mnBreakingNews","20mnAppBanner","20mn-visits-content","20minutes-font"],l=["vfThirdpartyCookiesEnabled","com.batch.sessionId","loadIntrasticial"],p=()=>{window.didomiOnReady.push(()=>{let n=new Date;const e=n.getTimezoneOffset();n=new Date(n.getTime()-e*60*1e3);const o=n.toISOString().split("T")[0],t=localStorage.getItem("consent_validity_date");t&&o>t&&(window.Didomi.reset(),localStorage.removeItem("consent_validity_date"),window.disapproveDidomiGTMEvents=!0,a(r),c(m),d(l),window.Didomi.notice.show())})},_=()=>{window.didomiEventListeners.push({event:"notice.clickagree",listener:()=>{console.log("notice.clickagree")}}),window.didomiEventListeners.push({event:"notice.clickmoreinfo",listener:()=>{console.log("notice.clickmoreinfo")}}),window.didomiEventListeners.push({event:"notice.clickdisagree",listener:()=>{console.log("notice.clickdisagree")}})},g=()=>{window.cmpVariables={consentEventsCount:0},window.didomiEventListeners.push({event:"consent.changed",listener:()=>{const n=u("euconsent-v2"),e=window.cmpVariables.consentEventsCount>0?!0:!!n,o=!window.Didomi.getUserConsentStatusForPurpose("Cookies"),t=window.sessionStorage.getItem("cmpModal");e&&!t&&(o&&(a(r),c(m),d(l)),setTimeout(()=>{window.location.reload()})),t&&window.sessionStorage.removeItem("cmpModal"),window.cmpVariables.consentEventsCount+=1}})},w=(n,e,o=()=>{})=>{performance.mark(`20mn:${n}:Start`);const t=document.getElementsByTagName("script")[0],s=document.createElement("script");s.async=!0,s.src=e,s.onload=()=>{o(),performance.mark(`20mn:${n}:End`)},t&&t.parentNode&&t.parentNode.insertBefore(s,t)},v=()=>{window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{var n,e;(e=(n=window.ATInternet)==null?void 0:n.Tracker)!=null&&e.instances&&window.ATInternet.Tracker.instances.forEach(o=>{o.privacy.getVisitorMode().name!=="optout"&&(o.privacy.setVisitorMode("cnil","exempt"),window.Didomi.getUserConsentStatusForPurpose("mesureda-6qyqaZXC")&&o.privacy.setVisitorOptin())})}})},f=()=>{window.didomiOnReady=window.didomiOnReady||[];const n=(e,o)=>{o?(e.eventStatus==="tcloaded"||e.eventStatus==="useractioncomplete")&&(w("DFP_init","https://securepubads.g.doubleclick.net/tag/js/gpt.js"),window.__tcfapi&&window.__tcfapi("removeEventListener",2,null,e.listenerId)):console.log("Issue with dfp callback")};window.didomiOnReady.push(()=>{typeof n<"u"&&window.__tcfapi("addEventListener",2,n)})},S=()=>{window.didomiOnReady=window.didomiOnReady||[];const n=(e,o)=>{o?(e.eventStatus==="tcloaded"||e.eventStatus==="useractioncomplete")&&(w("Outbrain_init","https://widgets.outbrain.com/outbrain.js"),window.__tcfapi&&window.__tcfapi("removeEventListener",2,null,e.listenerId)):console.log("Issue with outbrain callback")};window.didomiOnReady.push(()=>{typeof n<"u"&&window.__tcfapi("addEventListener",2,n)})},k=()=>{f(),v(),S()};(()=>{p(),k(),g(),_()})()})();
export declare type HubvisorType = {
(event: '20minutes:refresh', elements: googletag.Slot[], callback: () => void): void;
(event: '20minutes:refresh', elements: string[], callback: () => void): void;
cmd: (() => void)[];
};
{
"name": "@20minutes/tyr",
"version": "0.1.65",
"version": "0.1.66",
"repository": "git@github.com:20minutes/tyr.git",

@@ -5,0 +5,0 @@ "license": "MIT",

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