Comparing version 3.0.0-beta.4 to 3.0.0-beta.5
@@ -41,2 +41,1 @@ import { cookiesHandles } from "../utils/AtomicCookiesManager"; | ||
export {}; | ||
//# sourceMappingURL=AtomicClient.d.ts.map |
export * from "./AtomicClient"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
"use strict";var t=require("../AtomicCookiesManager-bfWsmaXZ.js"),e=require("crypto");require("node:crypto");const i=n;function r(){const t=["atomicCookiesManager","_calculateHashBucket","508574EEDwZh","getSetAtomicSessionIdCookie","Atomic API URL is required for atomic service to work","atomicExperimentsEndpoint","120531kTffui","unknown","getVariantIdCookie","getAtomicSessionIdCookie","isReady","warn","type","variant_id","124yywYvk","getSetAtomicUserIdCookie","Error capturing event","json","47235096mKukBw","capture","10yoXWXN","getAtomicUserIdCookie","740103VSacDK","3404892MpSMnY","ensureAtomicUserId","cookies","atomicServiceRoleKey","digest","stringify","hex","atomicApiUrl","atomicEventsEndpoint","9885504CQjMab","application/json","882469ACgawM","Bearer "];return(r=function(){return t})()}function n(t,e){const i=r();return(n=function(t,e){return i[t-=469]})(t,e)}!function(){const t=n,e=r();for(;;)try{if(763882===-parseInt(t(481))/1+-parseInt(t(497))/2+-parseInt(t(501))/3*(parseInt(t(473))/4)+parseInt(t(479))/5*(-parseInt(t(482))/6)+parseInt(t(493))/7+-parseInt(t(491))/8+parseInt(t(477))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class s{[i(489)];[i(500)];[i(490)];[i(485)];[i(495)];[i(469)]=!1;init(e){const r=i;if(!e[r(489)]||!e[r(485)])throw new Error(r(499));this.atomicApiUrl=e[r(489)],this[r(500)]=this[r(489)]+"/experiments/get-variant",this[r(490)]=this[r(489)]+"/experiments/event",this.atomicServiceRoleKey=e[r(485)],this[r(495)]=new t.AtomicCookiesManager(e[r(484)]),this.isReady=!0}async getVariant(t,e,r){const n=i;if(!this[n(495)]||!this[n(500)]||!this.atomicServiceRoleKey)return null;try{const i=this[n(495)][n(503)](t,e);if(i)return i;const s=this[n(495)].getAtomicUserIdCookie();if(!s)return console[n(470)]("Atomic user id is required to get variant"),null;const o=this[n(496)](s,t,e),a=await fetch(this[n(500)],{method:"POST",headers:{"Content-Type":n(492),Authorization:"Bearer "+this.atomicServiceRoleKey},body:JSON.stringify({feature_flag:t,hash_bucket:o,variants_list:r})}),c=await a[n(476)]();return c&&c[n(472)]?c.variant_id:null}catch(t){return null}}async[i(483)](){const t=i;return this[t(495)]?{atomicUserId:this.atomicCookiesManager[t(474)](),atomicSessionId:this[t(495)][t(498)]()}:null}async[i(478)](t){const e=i;if(!this.atomicCookiesManager||!this[e(490)]||!this.atomicServiceRoleKey)return null;try{const i=this[e(495)][e(480)]()||e(502),r=this.atomicCookiesManager[e(504)]()||e(502),n=t[e(471)]||e(502),s={...t,userId:i,sessionId:r,type:n};await fetch(this[e(490)],{method:"POST",headers:{"Content-Type":e(492),Authorization:e(494)+this[e(485)]},body:JSON[e(487)](s)})}catch(t){console.error(e(475),t)}}[i(496)](t,r,n){const s=i,o=t+"-"+r+"-"+n,a=e.createHash("sha256").update(o)[s(486)](s(488));return parseInt(a,16)%1e3}}function o(t,e){var i=a();return(o=function(t,e){return i[t-=142]})(t,e)}function a(){var t=["8690624mvqpat","10AHUVsg","12robDBO","530017VNPlEr","33tqNdJu","8084412vBBufS","68184xhiUBD","259XVORAf","4376268Hdoyss","4UGoRHn","2688665TedrcI","1766799vhtxEm"];return(a=function(){return t})()}!function(){for(var t=o,e=a();;)try{if(896481===parseInt(t(152))/1*(parseInt(t(146))/2)+-parseInt(t(145))/3+-parseInt(t(151))/4*(-parseInt(t(147))/5)+parseInt(t(143))/6*(parseInt(t(144))/7)+parseInt(t(149))/8+-parseInt(t(148))/9*(-parseInt(t(150))/10)+-parseInt(t(153))/11*(parseInt(t(142))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),exports.AtomicClient=s,exports.createClient=function(t){const e=new s;return e.init(t),e}; | ||
"use strict";var t=require("../AtomicCookiesManager-DcfzIcro.js"),e=require("crypto");require("node:crypto");const n=i;function i(t,e){const n=r();return(i=function(t,e){return n[t-=158]})(t,e)}function r(){const t=["type","warn","atomicApiUrl","getSetAtomicUserIdCookie","1110122CItxmx","getSetAtomicSessionIdCookie","31522898qfQObW","capture","getVariantIdCookie","9220386dVqTpT","3448360EemqNL","Atomic API URL is required for atomic service to work","atomicCookiesManager","getAtomicUserIdCookie","10HbLCIe","init","update","atomicExperimentsEndpoint","unknown","atomicServiceRoleKey","error","ensureAtomicUserId","/experiments/event","_calculateHashBucket","3306033btlWRd","cookies","7bxBopj","isReady","Atomic user id is required to get variant","json","5JyxuNB","Error capturing event","/experiments/get-variant","hex","Bearer ","POST","atomicEventsEndpoint","15STYlTX","getAtomicSessionIdCookie","3066414nICtZC","variant_id","application/json","stringify","834716tljptm"];return(r=function(){return t})()}!function(){const t=i,e=r();for(;;)try{if(779433===-parseInt(t(189))/1+-parseInt(t(180))/2+parseInt(t(178))/3*(-parseInt(t(184))/4)+-parseInt(t(171))/5*(-parseInt(t(194))/6)+-parseInt(t(167))/7*(-parseInt(t(195))/8)+-parseInt(t(165))/9*(parseInt(t(199))/10)+parseInt(t(191))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class s{[n(187)];[n(158)];[n(177)];[n(160)];[n(197)];[n(168)]=!1;[n(200)](e){const i=n;if(!e.atomicApiUrl||!e.atomicServiceRoleKey)throw new Error(i(196));this[i(187)]=e[i(187)],this.atomicExperimentsEndpoint=this.atomicApiUrl+i(173),this.atomicEventsEndpoint=this[i(187)]+i(163),this[i(160)]=e[i(160)],this.atomicCookiesManager=new t.AtomicCookiesManager(e[i(166)]),this.isReady=!0}async getVariant(t,e,i){const r=n;if(!this[r(197)]||!this[r(158)]||!this[r(160)])return null;try{const n=this[r(197)][r(193)](t,e);if(n)return n;const s=this[r(197)][r(198)]();if(!s)return console[r(186)](r(169)),null;const o=this[r(164)](s,t,e),a=await fetch(this[r(158)],{method:r(176),headers:{"Content-Type":"application/json",Authorization:r(175)+this[r(160)]},body:JSON[r(183)]({feature_flag:t,hash_bucket:o,variants_list:i})}),c=await a[r(170)]();return c&&c.variant_id?c[r(181)]:null}catch(t){return null}}async[n(162)](){const t=n;return this[t(197)]?{atomicUserId:this.atomicCookiesManager[t(188)](),atomicSessionId:this[t(197)][t(190)]()}:null}async[n(192)](t){const e=n;if(!this[e(197)]||!this.atomicEventsEndpoint||!this.atomicServiceRoleKey)return null;try{const n=this[e(197)][e(198)]()||e(159),i=this[e(197)][e(179)]()||e(159),r=t[e(185)]||"unknown",s={...t,userId:n,sessionId:i,type:r};await fetch(this[e(177)],{method:e(176),headers:{"Content-Type":e(182),Authorization:e(175)+this[e(160)]},body:JSON.stringify(s)})}catch(t){console[e(161)](e(172),t)}}[n(164)](t,i,r){const s=n,o=t+"-"+i+"-"+r,a=e.createHash("sha256")[s(201)](o).digest(s(174));return parseInt(a,16)%1e3}}function o(t,e){var n=a();return(o=function(t,e){return n[t-=349]})(t,e)}function a(){var t=["67908ziMkgz","994998GGBuaG","364483kYhBEZ","603hedZND","258GxYXoT","1496712lHpanF","11005sIEgQj","2317916zIGSJL","74056EftsNy"];return(a=function(){return t})()}!function(){for(var t=o,e=a();;)try{if(312996===parseInt(t(356))/1+-parseInt(t(354))/2+parseInt(t(355))/3+parseInt(t(352))/4+parseInt(t(351))/5*(-parseInt(t(349))/6)+-parseInt(t(350))/7+-parseInt(t(353))/8*(parseInt(t(357))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),exports.AtomicClient=s,exports.createClient=function(t){const e=n,i=new s;return i[e(200)](t),i}; |
@@ -14,2 +14,1 @@ import React from '../../react'; | ||
export {}; | ||
//# sourceMappingURL=AtomicVariant.d.ts.map |
export * from './AtomicVariant'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,1 @@ import { AtomicClient } from '../../core'; | ||
}>; | ||
//# sourceMappingURL=AtomicContext.d.ts.map |
@@ -9,2 +9,1 @@ import React from '../../react'; | ||
export {}; | ||
//# sourceMappingURL=AtomicProvider.d.ts.map |
export * from './AtomicContext'; | ||
export * from './AtomicProvider'; | ||
//# sourceMappingURL=index.d.ts.map |
export * from './useAtomic'; | ||
//# sourceMappingURL=index.d.ts.map |
import { AtomicClient } from '../../core'; | ||
export declare const useAtomic: () => AtomicClient; | ||
//# sourceMappingURL=useAtomic.d.ts.map |
export * from './context'; | ||
export * from './components'; | ||
export * from './hooks'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
"use strict";var t=require("../react"),n=require("../core/index.js");function r(t,n){const e=s();return(r=function(t,n){return e[t-=478]})(t,n)}require("../AtomicCookiesManager-bfWsmaXZ.js"),require("node:crypto"),require("crypto"),function(){const t=r,n=s();for(;;)try{if(105111===parseInt(t(483))/1+-parseInt(t(484))/2+-parseInt(t(485))/3*(-parseInt(t(478))/4)+parseInt(t(479))/5+parseInt(t(487))/6+parseInt(t(481))/7*(-parseInt(t(482))/8)+parseInt(t(480))/9*(-parseInt(t(486))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const e=t.createContext({client:new n.AtomicClient});function s(){const t=["405dvzuDm","625604nzkLzO","8NjxLZG","40410zBfgRQ","99866zYqbur","9GrDHCu","16840VVsAHm","35226FTqNNQ","86864kbyjGM","1043835CaMNVp"];return(s=function(){return t})()}function a(t,n){var r=u();return(a=function(t,n){return r[t-=224]})(t,n)}function u(){var t=["145686STzdMu","254haknWt","409620bSIfvF","65sXnccj","7431Muapor","230rLWeSf","438757hVgxIa","6258QyvHEL","1816fNIQvT","1141047qjYTdu","143423CMxHKy"];return(u=function(){return t})()}function c(){const t=["58968vvjkkI","72292oeogbL","614xRPBZs","18rvIFDa","636BsHvzf","63obvMfN","854890tbcYiZ","3lbAqOG","87018ZesGDf","308804stbUSy","761015LkoFLE","632lSPeKI"];return(c=function(){return t})()}function i(t,n){const r=c();return(i=function(t,n){return r[t-=111]})(t,n)}!function(){for(var t=a,n=u();;)try{if(203276===parseInt(t(234))/1+-parseInt(t(225))/2*(parseInt(t(228))/3)+parseInt(t(226))/4+parseInt(t(227))/5*(-parseInt(t(224))/6)+-parseInt(t(231))/7*(parseInt(t(232))/8)+-parseInt(t(233))/9+parseInt(t(229))/10*(parseInt(t(230))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(){const t=i,n=c();for(;;)try{if(109586===-parseInt(t(119))/1*(parseInt(t(122))/2)+-parseInt(t(115))/3*(-parseInt(t(117))/4)+-parseInt(t(118))/5+parseInt(t(116))/6*(parseInt(t(113))/7)+parseInt(t(120))/8*(-parseInt(t(111))/9)+-parseInt(t(114))/10+-parseInt(t(121))/11*(-parseInt(t(112))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const o=()=>{const{client:n}=t.useContext(e);return n};function p(t,n){var r=f();return(p=function(t,n){return r[t-=105]})(t,n)}function f(){var t=["1693069MYsXEe","16eIIZfd","2988680BbQALN","65wfHLnH","12180078vmtQld","32740NaxPrX","1907142okKrEc","2826nFaYph","1732233gJazMA"];return(f=function(){return t})()}function I(){var t=["69afzXGX","687096nafAmX","24gzDmtd","133556TTmTXl","2112cQjHYy","1637624xCMkDW","55374BooSwI","85Sxpjpb","1846040mKbmDm","40egszgI","973566AodCqX"];return(I=function(){return t})()}function h(t,n){var r=I();return(h=function(t,n){return r[t-=382]})(t,n)}function l(){var t=["653789gLxpZc","2466710nzlQgY","4wvWvPQ","6zUFAjV","203896PpSzQa","927048GUBMvd","90065HcDnCf","135umMBsi","1365100ZPXjGR","4409923QfOsud","2Jkeyrm"];return(l=function(){return t})()}function v(t,n){var r=l();return(v=function(t,n){return r[t-=349]})(t,n)}!function(){for(var t=p,n=f();;)try{if(444102===parseInt(t(107))/1*(parseInt(t(111))/2)+-parseInt(t(112))/3+parseInt(t(109))/4+-parseInt(t(106))/5+-parseInt(t(110))/6+parseInt(t(113))/7*(parseInt(t(105))/8)+parseInt(t(108))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(){for(var t=h,n=I();;)try{if(224667===parseInt(t(387))/1+-parseInt(t(388))/2*(-parseInt(t(384))/3)+-parseInt(t(389))/4+-parseInt(t(391))/5*(-parseInt(t(390))/6)+-parseInt(t(392))/7+-parseInt(t(386))/8*(-parseInt(t(385))/9)+-parseInt(t(382))/10*(-parseInt(t(383))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(){for(var t=v,n=l();;)try{if(362363===parseInt(t(358))/1*(parseInt(t(357))/2)+-parseInt(t(352))/3*(-parseInt(t(349))/4)+parseInt(t(353))/5+parseInt(t(350))/6*(-parseInt(t(356))/7)+-parseInt(t(351))/8*(-parseInt(t(354))/9)+-parseInt(t(359))/10+-parseInt(t(355))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),exports.AtomicContext=e,exports.AtomicProvider=function({client:n,children:r}){const s=t.useMemo((()=>{if(n)return n}),[n]);return s&&"undefined"!=typeof window?t.createElement(e.Provider,{value:{client:s}},r):t.createElement(t.Fragment,null,r)},exports.AtomicVariant=function({children:n,variantId:r,featureFlag:e,experimentEpoch:s,trackableButtonIds:a=[],visibilityObserverOptions:u,trackInteraction:c=!0,trackView:i=!0,...p}){const f=o(),I=t.useRef(null),h=t.useRef(!1),l=t.useRef(!1),v=t.useCallback(((t,n)=>{f?f.capture({type:t,featureFlag:e,experimentEpoch:s,variantId:r,metadata:n}):console.error("AtomicClient not found")}),[f,e,s,r]),d=t.useCallback((()=>{!h.current&&i&&(v("exposure"),h.current=!0)}),[v,i]),m=t.useCallback((()=>{!l.current&&c&&(v("interaction"),l.current=!0)}),[v,c]);return t.useEffect((()=>{if(null===I.current||!i)return;const t=new IntersectionObserver((([t])=>{t.isIntersecting&&d()}),{threshold:.1,...u});return t.observe(I.current),()=>t.disconnect()}),[i,d,u]),t.useEffect((()=>{if(!c)return;const t=t=>{const n=t.target,r=a.find((t=>n.closest(`#${t}`)));r&&v("click",{buttonId:r}),m()};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}),[c,a,v,m]),t.createElement("div",{ref:I,...p},n)},exports.useAtomic=o; | ||
"use strict";var t=require("../react"),n=require("../core/index.js");function r(){const t=["4434DhunUG","35IHndAQ","1390dJGgYP","3417bhtEuf","749852NZywOT","11DznSDx","224870wYAGIP","3LDEiWT","3561732QAoTCU","148inHBHR","414468clvcey","362632mJmTRJ"];return(r=function(){return t})()}function e(t,n){const s=r();return(e=function(t,n){return s[t-=341]})(t,n)}require("../AtomicCookiesManager-DcfzIcro.js"),require("node:crypto"),require("crypto"),function(){const t=e,n=r();for(;;)try{if(141674===-parseInt(t(346))/1*(parseInt(t(352))/2)+parseInt(t(350))/3*(parseInt(t(347))/4)+parseInt(t(345))/5*(parseInt(t(343))/6)+parseInt(t(344))/7*(-parseInt(t(342))/8)+-parseInt(t(341))/9+parseInt(t(349))/10*(-parseInt(t(348))/11)+parseInt(t(351))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const s=t.createContext({client:new n.AtomicClient});function a(t,n){var r=u();return(a=function(t,n){return r[t-=191]})(t,n)}function u(){var t=["1504562GtnvIm","2737992CbGJpZ","79172WuJUSr","1119370xIgCWe","9wLdkxX","7789936VmTAKw","26398850JKIlrN","7265512jAeAkt","1antxvt","87htIgjR"];return(u=function(){return t})()}function c(){const t=["809404ZGrwgC","3325420Xrcybk","363835gfawtD","1265990gXlgFG","3yTApqD","44130MiPYVU","82594OcpPfV","24ivkaUF","7983NKwXWU","108mRPuSC"];return(c=function(){return t})()}function i(t,n){const r=c();return(i=function(t,n){return r[t-=386]})(t,n)}!function(){for(var t=a,n=u();;)try{if(939888===parseInt(t(197))/1*(parseInt(t(199))/2)+parseInt(t(198))/3*(parseInt(t(191))/4)+-parseInt(t(192))/5+parseInt(t(200))/6+parseInt(t(194))/7+parseInt(t(196))/8*(parseInt(t(193))/9)+-parseInt(t(195))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(){const t=i,n=c();for(;;)try{if(238299===-parseInt(t(386))/1+parseInt(t(390))/2+-parseInt(t(388))/3*(parseInt(t(394))/4)+parseInt(t(389))/5*(parseInt(t(393))/6)+parseInt(t(395))/7+-parseInt(t(391))/8*(-parseInt(t(392))/9)+parseInt(t(387))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();const o=()=>{const{client:n}=t.useContext(s);return n};function p(){var t=["27QvWdOe","573416XRsGlG","194139obDYmc","4MNEsEY","14562630GtcdwZ","22ZrELSN","2232566IPWXQu","1696919skVkyP","460381uToyDw","10YLLuds","2711082ILrMoi"];return(p=function(){return t})()}function I(t,n){var r=p();return(I=function(t,n){return r[t-=235]})(t,n)}function f(){var t=["261iqHoJq","372BxBXpv","8349473dkRLVJ","4652756hBPYKo","1490NIMLpq","28903KBxBIg","2809645wiYzWF","233ykqCxj","20quEcns","66056LQMZtG","2171007OFHoKo"];return(f=function(){return t})()}function h(t,n){var r=f();return(h=function(t,n){return r[t-=415]})(t,n)}function l(){var t=["507374PBtbUg","204VibuDI","7800926PHsGcU","99kiRxvZ","44019mzTbZY","85oStVGt","333076nLgssy","9WBUquo","6654792vSfsLs","8619126EBwtHo","3248670pXNONY"];return(l=function(){return t})()}function v(t,n){var r=l();return(v=function(t,n){return r[t-=105]})(t,n)}!function(){for(var t=I,n=p();;)try{if(830769===parseInt(t(242))/1+-parseInt(t(240))/2+parseInt(t(236))/3*(-parseInt(t(237))/4)+parseInt(t(243))/5*(-parseInt(t(244))/6)+-parseInt(t(241))/7+parseInt(t(235))/8*(-parseInt(t(245))/9)+-parseInt(t(238))/10*(-parseInt(t(239))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(){for(var t=h,n=f();;)try{if(608835===parseInt(t(416))/1*(parseInt(t(424))/2)+parseInt(t(419))/3+parseInt(t(423))/4+parseInt(t(415))/5+parseInt(t(421))/6*(-parseInt(t(425))/7)+parseInt(t(418))/8*(-parseInt(t(420))/9)+-parseInt(t(417))/10*(parseInt(t(422))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),function(){for(var t=v,n=l();;)try{if(778412===-parseInt(t(106))/1+parseInt(t(107))/2*(parseInt(t(110))/3)+parseInt(t(112))/4*(-parseInt(t(111))/5)+-parseInt(t(115))/6+-parseInt(t(108))/7+-parseInt(t(114))/8*(-parseInt(t(113))/9)+-parseInt(t(105))/10*(-parseInt(t(109))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(),exports.AtomicContext=s,exports.AtomicProvider=function({client:n,children:r}){const e=t.useMemo((()=>{if(n)return n}),[n]);return e&&"undefined"!=typeof window?t.createElement(s.Provider,{value:{client:e}},r):t.createElement(t.Fragment,null,r)},exports.AtomicVariant=function({children:n,variantId:r,featureFlag:e,experimentEpoch:s,trackableButtonIds:a=[],visibilityObserverOptions:u,trackInteraction:c=!0,trackView:i=!0,...p}){const I=o(),f=t.useRef(null),h=t.useRef(!1),l=t.useRef(!1),v=t.useCallback(((t,n)=>{I?I.capture({type:t,featureFlag:e,experimentEpoch:s,variantId:r,metadata:n}):console.error("AtomicClient not found")}),[I,e,s,r]),d=t.useCallback((()=>{!h.current&&i&&(v("exposure"),h.current=!0)}),[v,i]),k=t.useCallback((()=>{!l.current&&c&&(v("interaction"),l.current=!0)}),[v,c]);return t.useEffect((()=>{if(null===f.current||!i)return;const t=new IntersectionObserver((([t])=>{t.isIntersecting&&d()}),{threshold:.1,...u});return t.observe(f.current),()=>t.disconnect()}),[i,d,u]),t.useEffect((()=>{if(!c)return;const t=t=>{const n=t.target,r=a.find((t=>n.closest(`#${t}`)));r&&v("click",{buttonId:r}),k()};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}),[c,a,v,k]),t.createElement("div",{ref:f,...p},n)},exports.useAtomic=o; |
@@ -21,2 +21,1 @@ /** | ||
} | ||
//# sourceMappingURL=AtomicCookiesManager.d.ts.map |
@@ -15,2 +15,1 @@ export type Framework = 'react' | 'nextjs' | 'remix' | 'vue' | 'unknown'; | ||
export declare function isEnvironment(framework?: Framework, runtime?: Runtime, environment?: Environment): boolean; | ||
//# sourceMappingURL=EnvironmentDetector.d.ts.map |
export * from "./AtomicCookiesManager"; | ||
export * from "./EnvironmentDetector"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
"use strict";var n=require("../AtomicCookiesManager-bfWsmaXZ.js");function e(n,r){const t=o();return(e=function(n,e){return t[n-=179]})(n,r)}function r(){const n=e;if("undefined"!=typeof window){if(window[n(193)])return n(200);if(window[n(185)])return"react"}return"undefined"!=typeof process&&void 0!==process[n(196)][n(194)]?"nextjs":n(199)}function t(){const n=e;return typeof window!==n(191)?"browser":typeof process!==n(191)&&process[n(190)]?.node?n(188):typeof process!==n(191)&&process[n(190)]?.[n(180)]?n(180):n(199)}function o(){const n=["865266dLksBf","versions","undefined","framework","__NEXT_DATA__","__NEXT_PROCESSED_ENV","4205061izoOES","env","environment","runtime","unknown","nextjs","42jPtcxp","12484329KCAEUr","184ftTbHN","15xicKrL","bun","3347310xXOADp","205544mamUgC","6478GiDLYh","client","REACT_APP","291263hmdBqa","104LTIaHD","node"];return(o=function(){return n})()}function s(){const n=e;return typeof window===n(191)?"server":typeof window!==n(191)?n(184):n(199)}function i(){return{framework:r(),runtime:t(),environment:s()}}function p(n,e){var r=u();return(p=function(n,e){return r[n-=227]})(n,e)}function u(){var n=["787708xKryFZ","8LJySEp","4212173YpfWNJ","1729072HkRQyP","8CtSjuT","1105510NafrMg","8960RBrrUB","2873958CKNOkM","13401PSqcBP","33543eaNDyo"];return(u=function(){return n})()}require("node:crypto"),function(){const n=e,r=o();for(;;)try{if(934057===parseInt(n(183))/1*(parseInt(n(187))/2)+-parseInt(n(201))/3*(-parseInt(n(182))/4)+-parseInt(n(179))/5*(parseInt(n(189))/6)+parseInt(n(186))/7*(-parseInt(n(203))/8)+parseInt(n(195))/9+-parseInt(n(181))/10+parseInt(n(202))/11)break;r.push(r.shift())}catch(n){r.push(r.shift())}}(),function(){for(var n=p,e=u();;)try{if(438818===parseInt(n(228))/1+parseInt(n(231))/2+parseInt(n(227))/3*(parseInt(n(229))/4)+parseInt(n(233))/5+parseInt(n(235))/6+parseInt(n(230))/7*(-parseInt(n(232))/8)+-parseInt(n(236))/9*(parseInt(n(234))/10))break;e.push(e.shift())}catch(n){e.push(e.shift())}}(),exports.AtomicCookiesManager=n.AtomicCookiesManager,exports.detectEnvironment=s,exports.detectFramework=r,exports.detectRuntime=t,exports.getFullEnvironmentInfo=i,exports.isClientSide=function(){const n=e;return s()===n(184)},exports.isEnvironment=function(n,r,t){const o=e,s=i();return!(n&&s[o(192)]!==n||r&&s[o(198)]!==r||t&&s[o(197)]!==t)},exports.isServerSide=function(){return"server"===s()}; | ||
"use strict";var n=require("../AtomicCookiesManager-DcfzIcro.js");function t(){const n=r;if(typeof window!==n(283)){if(window[n(285)])return n(286);if(window[n(280)])return n(296)}return typeof process!==n(283)&&void 0!==process[n(293)][n(289)]?n(286):n(300)}function r(n,t){const e=i();return(r=function(n,t){return e[n-=278]})(n,t)}function e(){const n=r;return typeof window!==n(283)?n(279):typeof process!==n(283)&&process[n(278)]?.[n(290)]?"node":typeof process!==n(283)&&process[n(278)]?.[n(297)]?n(297):"unknown"}function o(){const n=r;return typeof window===n(283)?n(281):typeof window!==n(283)?n(282):n(300)}function s(){return{framework:t(),runtime:e(),environment:o()}}function i(){const n=["client","undefined","1114776fBoSDv","__NEXT_DATA__","nextjs","runtime","framework","__NEXT_PROCESSED_ENV","node","5674gkHWvH","9625ZtNGMt","env","783895SowPWH","environment","react","bun","4508325UtYsyd","686088BYIoJh","unknown","2345960oiBGaA","768pjtTqG","24yfiisF","versions","browser","REACT_APP","server"];return(i=function(){return n})()}function u(){var n=["1771011wrvRDm","6hDjTnP","3586050SqCyDm","484252tmtOuU","683838sQRbTs","25359370QQAfKl","4835KHHnHX","272FycSfr","8lZLiOx","4225872MIfwVj"];return(u=function(){return n})()}function c(n,t){var r=u();return(c=function(n,t){return r[n-=272]})(n,t)}require("node:crypto"),function(){const n=r,t=i();for(;;)try{if(199471===parseInt(n(303))/1*(-parseInt(n(291))/2)+-parseInt(n(299))/3+-parseInt(n(284))/4+parseInt(n(294))/5+parseInt(n(302))/6*(-parseInt(n(292))/7)+parseInt(n(301))/8+parseInt(n(298))/9)break;t.push(t.shift())}catch(n){t.push(t.shift())}}(),function(){for(var n=c,t=u();;)try{if(429011===-parseInt(n(275))/1+-parseInt(n(276))/2*(parseInt(n(273))/3)+-parseInt(n(279))/4*(-parseInt(n(278))/5)+-parseInt(n(274))/6+-parseInt(n(281))/7+parseInt(n(280))/8*(parseInt(n(272))/9)+parseInt(n(277))/10)break;t.push(t.shift())}catch(n){t.push(t.shift())}}(),exports.AtomicCookiesManager=n.AtomicCookiesManager,exports.detectEnvironment=o,exports.detectFramework=t,exports.detectRuntime=e,exports.getFullEnvironmentInfo=s,exports.isClientSide=function(){const n=r;return o()===n(282)},exports.isEnvironment=function(n,t,e){const o=r,i=s();return!(n&&i[o(288)]!==n||t&&i[o(287)]!==t||e&&i[o(295)]!==e)},exports.isServerSide=function(){const n=r;return o()===n(281)}; |
{ | ||
"name": "atomic", | ||
"version": "3.0.0-beta.4", | ||
"version": "3.0.0-beta.5", | ||
"author": { | ||
@@ -22,7 +22,5 @@ "name": "Senantix Inc.", | ||
"main": "./dist/core/index.js", | ||
"module": "./dist/core/index.esm.js", | ||
"types": "./dist/core/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/core/index.esm.js", | ||
"require": "./dist/core/index.js", | ||
@@ -32,3 +30,2 @@ "types": "./dist/core/index.d.ts" | ||
"./core": { | ||
"import": "./dist/core/index.esm.js", | ||
"require": "./dist/core/index.js", | ||
@@ -38,3 +35,2 @@ "types": "./dist/core/index.d.ts" | ||
"./react": { | ||
"import": "./dist/react/index.esm.js", | ||
"require": "./dist/react/index.js", | ||
@@ -44,3 +40,2 @@ "types": "./dist/react/index.d.ts" | ||
"./utils": { | ||
"import": "./dist/utils/index.esm.js", | ||
"require": "./dist/utils/index.js", | ||
@@ -47,0 +42,0 @@ "types": "./dist/utils/index.d.ts" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
3
25469
21
176