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.54 to 0.1.55

2

dist/js/ads.min.js

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

(function(){"use strict";const A={desktop:{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:{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.divers=0]="divers",e[e.horoscope=1]="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||{}),f=(e=>(e.PAGETYPE="pageType",e.TAGS="tags",e))(f||{});const _=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]},m=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(f).forEach(e=>{window.dfp.targeting[e]=_(e)})},S=["nfb_1","nfb_2","article_btf"],b=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]},y=e=>{window.dfp.slotsReady=!1,googletag.cmd.push(()=>{const t=[];document.querySelectorAll("div[data-dfp-path]").forEach(o=>{const a=o.getAttribute("data-dfp-name"),d=o.getAttribute("data-dfp-path"),h=o.getAttribute("id"),i=d?.split("/").filter(l=>l!==""),s=(i?.[1]||null)==="20minutes_desktop"?"desktop":"mobile",u=i?.[i.length-1]||null;if(h&&a&&s&&u){let l;if(l=a&&JSON.parse(A[s][u][a.toUpperCase()])||null,d&&l&&googletag){let n=null;if(S.includes(a)?(n=googletag.defineSlot([d,a].join("/"),l),n!=null&&n.getSlotElementId()&&o.setAttribute("id",n.getSlotElementId())):n=googletag.defineSlot([d,a].join("/"),l,h),!n)return;n.addService(googletag.pubads()),t.push({slotElementId:n.getSlotElementId(),path:d,sizes:JSON.stringify(l)}),Object.entries(e).map(([B,V])=>n?.setTargeting(B,V))}}}),window.dfp.slotsReady=!0,b(t)})};let w=!1,E=0;const C=1500,c="renderAd",p=e=>{console.log(`20minDfpCall: adslot with following id has been called: %c${e}`,"color: #0777;font-weight:bold;")},L=()=>w||googletag&&googletag.pubadsReady&&window.dfp.slotsReady&&window.dfp.hubvisorEnd,T=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&&window.Hubvisor("20minutes:refresh",[...o],()=>{googletag.cmd.push(()=>{googletag.pubads().refresh([...o]),o.forEach(a=>{p(a.getSlotElementId())})})})})},N=()=>{document.addEventListener(c,e=>{if(!e.target)return;const t=e;t&&t.target.closest("[data-dfp-name]")&&t.detail.length&&T([t.detail[0].id])},!0)},R=()=>{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)})})},F=()=>{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"))}),T(e)},v=()=>{F(),R()},O=()=>{const e=setInterval(()=>{if(!L()&&E<C){E+=100;return}clearInterval(e),w=!0,N(),document.readyState!=="loading"?v():window.addEventListener("DOMContentLoaded",()=>{v()})},100)},P=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(),P("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")})};(()=>{M(),m(),y(window.dfp.targeting),O()})()})();
(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 h=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]},S=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(T).forEach(e=>{window.dfp.targeting[e]=h(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]},b=e=>{window.dfp.slotsReady=!1,googletag.cmd.push(()=>{const t=[];document.querySelectorAll("div[data-dfp-path]").forEach(o=>{const a=o.getAttribute("data-dfp-name"),d=o.getAttribute("data-dfp-path"),w=o.getAttribute("id"),i=d?.split("/").filter(l=>l!==""),s=(i?.[1]||null)==="20minutes_desktop"?"desktop":"mobile",u=i?.[i.length-1]||null;if(w&&a&&s&&u){let l;if(l=a&&JSON.parse(A[s][u][a.toUpperCase()])||null,d&&l&&googletag){let n=null;if(m.includes(a)?(n=googletag.defineSlot([d,a].join("/"),l),n!=null&&n.getSlotElementId()&&o.setAttribute("id",n.getSlotElementId())):n=googletag.defineSlot([d,a].join("/"),l,w),!n)return;n.addService(googletag.pubads()),t.push({slotElementId:n.getSlotElementId(),path:d,sizes:JSON.stringify(l)}),Object.entries(e).map(([B,V])=>n?.setTargeting(B,V))}}}),window.dfp.slotsReady=!0,R(t)})};let E=!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=()=>E||googletag&&googletag.pubadsReady&&window.dfp.slotsReady&&window.dfp.hubvisorEnd,f=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&&window.Hubvisor("20minutes:refresh",[...o],()=>{googletag.cmd.push(()=>{googletag.pubads().refresh([...o]),o.forEach(a=>{p(a.getSlotElementId())})})})})},C=()=>{document.addEventListener(c,e=>{if(!e.target)return;const t=e;t&&t.target.closest("[data-dfp-name]")&&t.detail.length&&f([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"))}),f(e)},_=()=>{y(),L()},P=()=>{const e=setInterval(()=>{if(!N()&&v<F){v+=100;return}clearInterval(e),E=!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")})};(()=>{M(),S(),b(window.dfp.targeting),P()})()})();

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

(function(r){"use strict";const l=()=>{var n;return(n=Array.from(document.querySelectorAll(".c-tags--breadcrumb")))==null?void 0:n.reduce((e,a)=>e+a.innerHTML,"")},t=()=>{window.gtmDatalayer=window.gtmDatalayer||[];const n=document.cookie.match("(^|;)\\s*20mnUserDataLayer\\s*=\\s*([^;]+)"),e=n?JSON.parse(decodeURIComponent(n.pop())):null;window.gtmDatalayer=[{page_uri:window.location.pathname,user_status:window.datalayer.user_status,referrer:document.referrer,breadcrumb:l(),user:{d:e?.d||null,g:e?.g||null,i:e?.i||null,l:e?.l||null,o:e?.o||null}}]};return r.initGTMPageConfig=t,Object.defineProperty(r,"__esModule",{value:!0}),r})({});
(function(r){"use strict";const l=()=>{var e;return(e=Array.from(document.querySelectorAll(".c-tags--breadcrumb")))==null?void 0:e.reduce((n,o)=>n+o.innerHTML,"")},a=()=>{window.gtmDatalayer=window.gtmDatalayer||[];const e=document.cookie.match("(^|;)\\s*20mnUserDataLayer\\s*=\\s*([^;]+)"),n=e?JSON.parse(decodeURIComponent(e.pop())):null;window.gtmDatalayer=[{page_uri:window.location.pathname,user_status:window.datalayer.user_status,referrer:document.referrer,breadcrumb:l(),user:{d:n?.d||null,g:n?.g||null,i:n?.i||null,l:n?.l||null,o:n?.o||null}}]};return r.initGTMPageConfig=a,r})({});

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

(function(){"use strict";const l=e=>document.cookie.indexOf(e)!==-1,m=e=>{const t=document.cookie.split(";").filter(n=>n.indexOf(e)!==-1)[0];return t?t.split("=")[1]:"{}"},u=e=>{const t=[`${e.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];e.domain&&t.push(`domain=${e.domain}`),document.cookie=t.join("; ")},p=(e,t=100)=>{const n=e.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,i=Math.max(document.documentElement.clientHeight,window.innerHeight||0),L=o+i,C=n.top+o;return L>C-t};let c=[],d;const g=(e,t)=>{let n=!1;return()=>{n||(e(),n=!0,d=setTimeout(()=>{n=!1},t))}},h=e=>e.event&&p(e.elem,Number(e.distance))?(e.elem.dispatchEvent(new Event(e.event)),e.elem.dataset.lazyLoaded="true",!1):!0,r=()=>{g(()=>{c=c.filter(h),c.length<=0&&(clearTimeout(d),window.removeEventListener("scroll",r))},50)()},f=()=>{c.length<=0||window.addEventListener("scroll",r)},w=e=>{c.push(e),f()},a=()=>{document.querySelectorAll('[data-delayed="true"]').forEach(e=>{const t={elem:e,event:e.getAttribute("id"),distance:e.dataset.distanceVisible};w(t)})},E=()=>{document.readyState!=="loading"?a():window.addEventListener("DOMContentLoaded",()=>{a()})},v=(e,t,n=()=>{})=>{performance.mark(`20mn:${e}:Start`);const o=document.getElementsByTagName("script")[0],i=document.createElement("script");i.async=!0,i.src=t,i.onload=()=>{n(),performance.mark(`20mn:${e}:End`)},o&&o.parentNode&&o.parentNode.insertBefore(i,o)},s=()=>{var e;!document.querySelector(".gcse-search")||!((e=window.envVariables)!=null&&e.googleSearchCode)||v("googlesearch",`https://cse.google.com/cse.js?cx=${window.envVariables.googleSearchCode}`)},k=()=>{document.readyState!=="loading"?s():window.addEventListener("DOMContentLoaded",()=>{s()})},y=()=>{if(l("20min_fp")){const e=m("20min_fp");fetch(`https://securepubads.g.doubleclick.net/user_data_deletion?ppid=${e}&iu=49926454`,{referrerPolicy:"strict-origin-when-cross-origin"}).then(t=>{t.ok&&alert("La demande de suppression a bien \xE9t\xE9 prise en compte")}),u({name:"20min_fp"})}},b=()=>{const e=document.getElementById("delete-fingerprint");e&&e.addEventListener("click",y)};(()=>{b(),E(),k()})()})();
(function(){"use strict";const m=e=>document.cookie.indexOf(e)!==-1,u=e=>{const t=document.cookie.split(";").filter(n=>n.indexOf(e)!==-1)[0];return t?t.split("=")[1]:"{}"},p=e=>{const t=[`${e.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];e.domain&&t.push(`domain=${e.domain}`),document.cookie=t.join("; ")},g=(e,t=100)=>{const n=e.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,i=Math.max(document.documentElement.clientHeight,window.innerHeight||0),C=o+i,S=n.top+o;return C>S-t};let d=[],c;const h=(e,t)=>{let n=!1;return()=>{n||(e(),n=!0,c=setTimeout(()=>{n=!1},t))}},w=e=>e.event&&g(e.elem,Number(e.distance))?(e.elem.dispatchEvent(new Event(e.event)),e.elem.dataset.lazyLoaded="true",!1):!0,a=()=>{h(()=>{d=d.filter(w),d.length<=0&&(clearTimeout(c),window.removeEventListener("scroll",a))},50)()},f=()=>{d.length<=0||window.addEventListener("scroll",a)},E=e=>{d.push(e),f()},r=()=>{document.querySelectorAll('[data-delayed="true"]').forEach(e=>{const t={elem:e,event:e.getAttribute("id"),distance:e.dataset.distanceVisible};E(t)})},v=()=>{document.readyState!=="loading"?r():window.addEventListener("DOMContentLoaded",()=>{r()})},y=(e,t,n=()=>{})=>{performance.mark(`20mn:${e}:Start`);const o=document.getElementsByTagName("script")[0],i=document.createElement("script");i.async=!0,i.src=t,i.onload=()=>{n(),performance.mark(`20mn:${e}:End`)},o&&o.parentNode&&o.parentNode.insertBefore(i,o)},s=()=>{var e;!document.querySelector(".gcse-search")||!((e=window.envVariables)!=null&&e.googleSearchCode)||y("googlesearch",`https://cse.google.com/cse.js?cx=${window.envVariables.googleSearchCode}`)},L=()=>{document.readyState!=="loading"?s():window.addEventListener("DOMContentLoaded",()=>{s()})},k=()=>{if(m("20min_fp")){const e=u("20min_fp");fetch(`https://securepubads.g.doubleclick.net/user_data_deletion?ppid=${e}&iu=49926454`,{referrerPolicy:"strict-origin-when-cross-origin"}).then(t=>{t.ok&&alert("La demande de suppression a bien \xE9t\xE9 prise en compte")}),p({name:"20min_fp"})}},l=()=>{const e=document.getElementById("delete-fingerprint");e&&e.addEventListener("click",k)},b=()=>{document.readyState!=="loading"?l():window.addEventListener("DOMContentLoaded",()=>{l()})};(()=>{b(),v(),L()})()})();
export declare const adSizesList: {
desktop: {
article: {
BAN_ATF: string;
BAN_BTF: string;
BAN_MTF: string;
INREAD: string;
INSTREAM_DESKTOP: string;
PAVE_ARTICLE: string;
PAVE_ATF: string;
PAVE_BTF: string;
PAVE_COM: string;
PAVE_MTF: string;
};
divers: {

@@ -27,2 +39,13 @@ BAN_ATF: string;

mobile: {
article: {
ARTICLE_ATF: string;
ARTICLE_BTF: string;
ARTICLE_MTF: string;
HEADER_AD: string;
INREAD: string;
INSTREAM_DESKTOP: string;
INTRASTITIEL_GAG: string;
INTRASTITIEL_PROG: string;
PAVE_COM: string;
};
divers: {

@@ -53,9 +76,10 @@ ARTICLE_ATF: string;

export declare enum AdPagesTypeEnum {
'divers' = 0,
'horoscope' = 1
'article' = 0,
'divers' = 1,
'horoscope' = 2
}
export declare type AdSizesType = {
desktop: keyof (typeof adSizesList)['desktop']['divers'] & keyof (typeof adSizesList)['desktop']['horoscope'];
mobile: keyof (typeof adSizesList)['mobile']['divers'] & keyof (typeof adSizesList)['mobile']['horoscope'];
desktop: keyof (typeof adSizesList)['desktop']['article'] & keyof (typeof adSizesList)['desktop']['divers'] & keyof (typeof adSizesList)['desktop']['horoscope'];
mobile: keyof (typeof adSizesList)['mobile']['article'] & keyof (typeof adSizesList)['mobile']['divers'] & keyof (typeof adSizesList)['mobile']['horoscope'];
};
export declare type AdPagesType = keyof typeof AdPagesTypeEnum;
{
"name": "@20minutes/tyr",
"version": "0.1.54",
"version": "0.1.55",
"repository": "git@github.com:20minutes/tyr.git",

@@ -56,3 +56,3 @@ "license": "MIT",

"@storybook/addon-links": "^6.5.15",
"@storybook/builder-vite": "^0.2.6",
"@storybook/builder-vite": "^0.2.7",
"@storybook/react": "^6.5.15",

@@ -64,4 +64,4 @@ "@storybook/testing-library": "0.0.13",

"@types/react-dom": "^18.0.10",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"@vitejs/plugin-react": "^3.0.1",

@@ -75,3 +75,3 @@ "babel-loader": "^9.1.2",

"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-jsx-a11y": "^6.7.0",
"eslint-plugin-prettier": "^4.2.1",

@@ -85,3 +85,3 @@ "eslint-plugin-react": "^7.31.11",

"purgecss": "^5.0.0",
"rollup": "^2.79.1",
"rollup": "^3.9.1",
"rollup-plugin-cleanup": "^3.2.1",

@@ -88,0 +88,0 @@ "rollup-plugin-esbuild": "^5.0.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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