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

effector-inspector

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effector-inspector - npm Package Compare versions

Comparing version 0.2.0-2 to 0.2.0-3

2

dist/common.js

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

module.exports=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t){e.exports=require("effector-dom")},function(e,t){e.exports=require("effector")},function(e,t,r){"use strict";r.r(t),r.d(t,"addStore",(function(){return a})),r.d(t,"addEvent",(function(){return l})),r.d(t,"createInspector",(function(){return d}));var o=r(1),n=r(0);function c(e){const t=Object(o.createEvent)(),r=Object(o.createStore)({map:new Map},{name:`$${e}Storage`});return r.on(t,({map:e},t)=>(e.set(t.compositeName.path.join("/"),t),{map:e})),{$store:r,api:{add:t}}}const i=c("stores"),s=c("events"),a=i.api.add,l=s.api.add;function d(){const e=document.createElement("div");return e.classList.add("effector-inspector"),document.body.append(e),function(e){const t=Object(o.createStore)(!1),r=Object(o.createEvent)();console.info("%c[effector-inspector] %cPress %cCTRL+B %cto open Inspector","color: gray; font-size: 1rem;","color: currentColor; font-size: 1rem;","color: deepskyblue; font-family: monospace; font-size: 1rem;","color: currentColor; font-size: 1rem;"),t.on(r,e=>!e),document.addEventListener("keypress",e=>{const t=e;2===t.keyCode&&t.ctrlKey&&r()}),Object(n.using)(e,()=>{Object(n.h)("div",()=>{Object(n.spec)({style:p.root,visible:t}),Object(n.h)("div",{style:p.sectionHead,text:"Stores"}),Object(n.h)("div",()=>{Object(n.spec)({style:p.storesTable}),Object(n.list)(i.$store.map(({map:e})=>[...e.entries()]),({store:e})=>{Object(n.h)("div",()=>{Object(n.spec)({style:p.store,attr:{title:e.map(([,e])=>{var t,r,o;return null!=(o=null===(r=null===(t=e.defaultConfig)||void 0===t?void 0:t.loc)||void 0===r?void 0:r.file)?o:""})}});const t=e.map(([e])=>e);Object(n.h)("pre",()=>{Object(n.spec)({style:p.storeName,text:t})}),Object(n.h)("pre",()=>{Object(n.spec)({style:p.storeValue,text:e.getState()[1].map(e=>JSON.stringify(e))})})})})})})})}(e),{root:e}}const p={root:{backgroundColor:"white",borderRadius:"0.5rem",bottom:"3rem",boxShadow:"0 14.5px 5.2px -10px rgba(0,0,0,0.038), 0 23.9px 16.6px -10px rgba(0,0,0,0.057), 0 64px 118px -10px rgba(0,0,0,0.08)",display:"flex",flexDirection:"column",left:"3rem",overflowX:"auto",position:"fixed",top:"3rem",userSelect:"none",width:"26rem",zIndex:1e3},sectionHead:{backgroundColor:"white",borderBottom:"1px solid rgba(0,0,0,0.08)",display:"flex",fontSize:"1.5rem",fontWeight:"bold",left:0,lineHeight:"2rem",padding:"0.5rem 1rem",position:"sticky",right:0,top:0},storesTable:{display:"table"},store:{display:"table-row",fontSize:"1rem"},storeName:{margin:0,display:"table-cell",padding:"0.5rem 1rem"},storeValue:{margin:0,display:"table-cell",padding:"0.5rem 1rem"}}}]);
module.exports=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t){e.exports=require("effector-dom")},function(e,t){e.exports=require("effector")},function(e,t,r){"use strict";r.r(t),r.d(t,"addStore",(function(){return s})),r.d(t,"addEvent",(function(){return l})),r.d(t,"createInspector",(function(){return d}));var o=r(1),n=r(0);function i(e){const t=Object(o.createEvent)(),r=Object(o.createStore)({map:new Map},{name:`$${e}Storage`});return r.on(t,({map:e},t)=>(e.set(t.compositeName.path.join("/"),t),{map:e})),{$store:r,api:{add:t}}}const c=i("stores"),a=i("events"),s=c.api.add,l=a.api.add;function d(e={}){const t=document.createElement("div");return t.classList.add("effector-inspector"),document.body.append(t),function(e,t){const r=Object(o.createStore)(!1),i=Object(o.createEvent)();console.info("%c[effector-inspector] %cPress %cCTRL+B %cto open Inspector","color: gray; font-size: 1rem;","color: currentColor; font-size: 1rem;","color: deepskyblue; font-family: monospace; font-size: 1rem;","color: currentColor; font-size: 1rem;"),r.on(i,e=>!e),document.addEventListener("keypress",e=>{const t=e;2===t.keyCode&&t.ctrlKey&&i()}),Object(n.using)(e,()=>{Object(n.h)("div",()=>{Object(n.spec)({style:u.root,visible:r}),function(e){Object(n.h)("div",{style:u.sectionHead,text:"Stores"}),Object(n.h)("div",()=>{Object(n.spec)({style:u.storesTable}),Object(n.list)(c.$store.map(({map:e})=>[...e.entries()]),({store:t})=>{Object(n.h)("div",()=>{Object(n.spec)({style:u.store,attr:{title:t.map(([,e])=>{var t,r,o;return null!=(o=null===(r=null===(t=e.defaultConfig)||void 0===t?void 0:t.loc)||void 0===r?void 0:r.file)?o:""})}});const r=t.map(([t])=>{var r;return t.replace(null!=(r=e.trimDomain)?r:"","")});Object(n.h)("pre",()=>{Object(n.spec)({style:u.storeName,text:r})}),Object(n.h)("pre",()=>{Object(n.spec)({style:u.storeValue,text:t.getState()[1].map(e=>JSON.stringify(e))})})})})})}(t)})})}(t,e),{root:t}}const u={root:{backgroundColor:"white",borderRadius:"0.5rem",bottom:"3rem",boxShadow:"0 14.5px 5.2px -10px rgba(0,0,0,0.038), 0 23.9px 16.6px -10px rgba(0,0,0,0.057), 0 64px 118px -10px rgba(0,0,0,0.08)",display:"flex",flexDirection:"column",left:"3rem",overflowX:"auto",position:"fixed",top:"3rem",userSelect:"none",width:"26rem",zIndex:1e3},sectionHead:{backgroundColor:"white",borderBottom:"1px solid rgba(0,0,0,0.08)",display:"flex",fontSize:"1.5rem",fontWeight:"bold",left:0,lineHeight:"2rem",padding:"0.5rem 1rem",position:"sticky",right:0,top:0},storesTable:{display:"table"},store:{display:"table-row",fontSize:"1rem"},storeName:{margin:0,display:"table-cell",padding:"0.5rem 1rem"},storeValue:{margin:0,display:"table-cell",padding:"0.5rem 1rem"}}}]);
//# sourceMappingURL=common.js.map
import { Store, Event } from 'effector';
export declare const addStore: Event<Store<any>>;
export declare const addEvent: Event<Event<any>>;
export declare function createInspector(): {
interface Options {
trimDomain?: string;
}
export declare function createInspector(options?: Options): {
root: HTMLElement;
};
export {};
{
"name": "effector-inspector",
"version": "0.2.0-2",
"version": "0.2.0-3",
"main": "./dist/common.js",

@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts",

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