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

@lavamoat/lavadome-core

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lavamoat/lavadome-core - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

2

build/main.js

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

(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{LavaDome:()=>H,LavaDomeDebug:()=>Q});const{Object:o,Array:n,Function:r,Math:a,parseInt:s,WeakMap:l,Error:i,JSON:u}=globalThis,{defineProperties:p,assign:c,getOwnPropertyDescriptor:d,entries:f,create:y,hasOwn:b}=o,{from:g}=n,{random:h}=a,{stringify:m}=u,v=(e,t,o)=>e&&r.prototype.call.bind(d(e,t)[o]),w=v(globalThis?.Element?.prototype,"attachShadow","value"),T=v(globalThis?.Document?.prototype,"createElement","value"),O=v(globalThis?.Node?.prototype,"appendChild","value"),S=v(globalThis?.Node?.prototype,"textContent","set"),x=v(globalThis?.Element?.prototype,"setAttribute","value"),I=v(globalThis?.String?.prototype,"toUpperCase","value"),M=v(globalThis?.Array?.prototype,"map","value"),D=v(globalThis?.Array?.prototype,"join","value"),j=v(globalThis?.Array?.prototype,"keys","value"),k=v(globalThis?.Array?.prototype,"at","value"),L=v(globalThis?.WeakMap?.prototype,"get","value"),A=v(globalThis?.WeakMap?.prototype,"set","value"),C=v(globalThis?.Number?.prototype,"toFixed","value"),P={isInnerInstance:Symbol("isInnerInstance"),unsafeOpenModeShadow:"unsafeOpenModeShadow"},_=e=>function(t,o,n){const r=e[t];return b(e,t)?typeof r!==o?n:r:n},E="abcdefghijklmnopqrstuvwxyz",N="0123456789",$="!@#$%^&*()?.;:\"'[]{}+=-_/",F={letters:E,digits:N,symbols:$,alphanumeric:E+N,all:E+I(E)+N+$},{letters:R,alphanumeric:W,all:q}=F,z=(e,t)=>e[s(C(h()*t))];function B(e,t,o=""){return e=D(M(f(e),(([e,t])=>`${e}: ${t} !important`)),"; "),function(){const n=T(document,t());return x(n,"style",e),S(n,o),n}}const U=e=>()=>e(),G=U(B({"-webkit-user-modify":"unset","-webkit-user-select":"none","user-select":"none"},(()=>(7,z(R,26)+D(M(g(j(n(7))),(()=>z(W,36))),""))))),J=U(B({top:"-10px",right:"-10px",position:"fixed","font-size":"1px"},(()=>"span"),q)),Y=new l;function H(e,t){t=function(e={}){const{unsafeOpenModeShadow:t,isInnerInstance:o}=P,n=_(c(y(null),e)),r=y(null);return r.isInnerInstance=n(o,"boolean",!1),r.unsafeOpenModeShadow=n(t,"boolean",!1),r}(t),p(this,{text:{value:function(e){if("string"!=typeof e)throw new i(`LavaDome: first argument must be a string, instead got ${m(e)}`);if(void 0===k(g(e),1))return S(o,e);M(g(e),(e=>{const n=T(document,"span");t[P.isInnerInstance]=!0,new H(n,t).text(e),O(o,n)})),O(o,J())}}});const o=G(),n=function(e,t){const{unsafeOpenModeShadow:o,isInnerInstance:n}=t;let r=L(Y,e);if(!r){const t={mode:"closed"};o&&(t.mode="open",n||console.warn("LavaDome:",`Initiated with "${P.unsafeOpenModeShadow}" set to true.`,"This leaves LavaDome fully vulnerable, ONLY USE FOR TESTING!")),r=w(e,t),A(Y,e,r)}return r}(e,t);O(n,o)}const{all:K}=F,Q={getTextByRoot:function(e){console.warn("LavaDomeDebug(getTextByRoot):","Call/include this function for testing/debugging purposes only!",`(remember, '${P.unsafeOpenModeShadow}' must be enabled for this function to work)`);let t="";const o=e?.shadowRoot;if(!o)return t;const n=g(o.querySelectorAll("span"));return M(n,(e=>{const o=e?.shadowRoot?.firstChild?.textContent;o&&(t+=o)})),t},stripDistractionFromText:function(e){return console.warn("LavaDomeDebug(stripDistractionFromText):","Call/include this function for testing/debugging purposes only!"),e.split(K).join("").split("\n").join("").split("\r").join("").split("\t").join("")}};var V=exports;for(var X in t)V[X]=t[X];t.__esModule&&Object.defineProperty(V,"__esModule",{value:!0})})();
(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{LavaDome:()=>K,LavaDomeDebug:()=>V});const{Object:o,Array:n,Function:a,Math:r,parseInt:s,WeakMap:l,Error:i,JSON:p,Symbol:u}=globalThis,{defineProperties:c,assign:d,getOwnPropertyDescriptor:y,entries:b,create:f,hasOwn:g}=o,{from:h}=n,{random:m}=r,{stringify:v}=p,w=(e,t,o)=>e&&a.prototype.call.bind(y(e,t)[o]),T=w(globalThis?.Element?.prototype,"attachShadow","value"),S=w(globalThis?.Document?.prototype,"createElement","value"),O=w(globalThis?.Node?.prototype,"appendChild","value"),M=w(globalThis?.Node?.prototype,"textContent","set"),x=w(globalThis?.Element?.prototype,"setAttribute","value"),I=w(globalThis?.String?.prototype,"toUpperCase","value"),D=w(globalThis?.Array?.prototype,"map","value"),j=w(globalThis?.Array?.prototype,"join","value"),k=w(globalThis?.Array?.prototype,"keys","value"),L=w(globalThis?.Array?.prototype,"at","value"),A=w(globalThis?.WeakMap?.prototype,"get","value"),C=w(globalThis?.WeakMap?.prototype,"set","value"),P=(w(globalThis?.WeakMap?.prototype,"has","value"),w(globalThis?.Number?.prototype,"toFixed","value")),_={isInnerInstance:Symbol("isInnerInstance"),unsafeOpenModeShadow:"unsafeOpenModeShadow"},E=e=>function(t,o,n){const a=e[t];return g(e,t)?typeof a!==o?n:a:n},N="abcdefghijklmnopqrstuvwxyz",$="0123456789",F="!@#$%^&*()?.;:\"'[]{}+=-_/",R={letters:N,digits:$,symbols:F,alphanumeric:N+$,all:N+I(N)+$+F},{letters:W,alphanumeric:q,all:z}=R,B=(e,t)=>e[s(P(m()*t))];function U(e,t,o=""){return e=j(D(b(e),(([e,t])=>`${e}: ${t} !important`)),"; "),function(){const n=S(document,t());return x(n,"style",e),M(n,o),n}}const G=e=>()=>e(),J=G(U({"-webkit-user-modify":"unset","-webkit-user-select":"none","user-select":"none"},(()=>(7,B(W,26)+j(D(h(k(n(7))),(()=>B(q,36))),""))))),Y=G(U({top:"-10px",right:"-10px",position:"fixed","font-size":"1px"},(()=>"span"),z)),H=new l;function K(e,t){t=function(e={}){const{unsafeOpenModeShadow:t,isInnerInstance:o}=_,n=E(d(f(null),e)),a=f(null);return a.isInnerInstance=n(o,"boolean",!1),a.unsafeOpenModeShadow=n(t,"boolean",!1),a}(t),c(this,{text:{value:function(e){if("string"!=typeof e)throw new i(`LavaDome: first argument must be a string, instead got ${v(e)}`);if(void 0===L(h(e),1))return M(o,e);D(h(e),(e=>{const n=S(document,"span");t[_.isInnerInstance]=!0,new K(n,t).text(e),O(o,n)})),O(o,Y())}}});const o=J(),n=function(e,t){const{unsafeOpenModeShadow:o,isInnerInstance:n}=t;let a=A(H,e);if(!a){const t={mode:"closed"};o&&(t.mode="open",n||console.warn("LavaDome:",`Initiated with "${_.unsafeOpenModeShadow}" set to true.`,"This leaves LavaDome fully vulnerable, ONLY USE FOR TESTING!")),a=T(e,t),C(H,e,a)}return a}(e,t);O(n,o)}const{all:Q}=R,V={getTextByRoot:function(e){console.warn("LavaDomeDebug(getTextByRoot):","Call/include this function for testing/debugging purposes only!",`(remember, '${_.unsafeOpenModeShadow}' must be enabled for this function to work)`);let t="";const o=e?.shadowRoot;if(!o)return t;const n=h(o.querySelectorAll("span"));return D(n,(e=>{const o=e?.shadowRoot?.firstChild?.textContent;o&&(t+=o)})),t},stripDistractionFromText:function(e){return console.warn("LavaDomeDebug(stripDistractionFromText):","Call/include this function for testing/debugging purposes only!"),e.split(Q).join("").split("\n").join("").split("\r").join("").split("\t").join("")}};var X=exports;for(var Z in t)X[Z]=t[Z];t.__esModule&&Object.defineProperty(X,"__esModule",{value:!0})})();
//# sourceMappingURL=main.js.map
{
"name": "@lavamoat/lavadome-core",
"version": "0.0.11",
"version": "0.0.12",
"description": "",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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