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

ant-devtools-frontend

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ant-devtools-frontend - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

2

package.json
{
"name": "ant-devtools-frontend",
"description": "Ant DevTools UI From Chrome",
"version": "0.2.5",
"version": "0.2.6",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -16,7 +16,6 @@ const win=window;Ant.AxmlPanel=class extends Elements.ElementsPanel{constructor(){super('axml');this.registerRequiredCSS('elements/elementsTreeOutline.css');SDK.targetManager.observeModels(Ant.TinyModel,this);SDK.targetManager.addModelListener(Ant.TinyModel,SDK.DOMModel.Events.DocumentUpdated,this._documentUpdatedEvent,this);}

_documentUpdated(){this._setDocument(null);}
requestDocumentPromise(){if(this._pendingDocumentRequestPromise)
return this._pendingDocumentRequestPromise;this._pendingDocumentRequestPromise=Ant.makeProxyPromiseOnce('getDocumentOnce',{},payload=>{const root=payload.root;if(root)
requestDocumentPromise(){return Ant.makeProxyPromiseOnce('getDocumentOnce',{},payload=>{console.log('yeah');const root=payload.root;if(root)
this._setDocument(root);delete this._pendingDocumentRequestPromise;if(!this._document)
console.error('No document');return this._document;});return this._pendingDocumentRequestPromise;}};Ant.TinyModel.Events={AttrModified:Symbol('tiny-AttrModified'),AttrRemoved:Symbol('tiny-AttrRemoved'),CharacterDataModified:Symbol('tiny-CharacterDataModified'),DOMMutated:Symbol('tiny-DOMMutated'),NodeInserted:Symbol('tiny-NodeInserted'),NodeRemoved:Symbol('tiny-NodeRemoved'),DocumentUpdated:Symbol('tiny-DocumentUpdated'),ChildNodeCountUpdated:Symbol('tiny-ChildNodeCountUpdated'),DistributedNodesChanged:Symbol('tiny-DistributedNodesChanged'),MarkersChanged:Symbol('tiny-MarkersChanged')};Ant.TinyDispatcher=class extends SDK.DOMDispatcher{constructor(tinyModel){super(tinyModel);}
documentUpdated(){this._domModel._documentUpdated();}};SDK.SDKModel.register(Ant.TinyModel,SDK.Target.Capability.DOM,true);;Ant.TinyConnection=class{constructor(target,dispatcher){this._target=target;this._agent=target.tinyAgent();this._dispatcher=dispatcher;window.listenToHost('render',(event,args)=>{const messageObject=args;const{method,payload}=args;if(extraMessageHandler[method])
console.error('No document');return this._document;});}};Ant.TinyModel.Events={AttrModified:Symbol('tiny-AttrModified'),AttrRemoved:Symbol('tiny-AttrRemoved'),CharacterDataModified:Symbol('tiny-CharacterDataModified'),DOMMutated:Symbol('tiny-DOMMutated'),NodeInserted:Symbol('tiny-NodeInserted'),NodeRemoved:Symbol('tiny-NodeRemoved'),DocumentUpdated:Symbol('tiny-DocumentUpdated'),ChildNodeCountUpdated:Symbol('tiny-ChildNodeCountUpdated'),DistributedNodesChanged:Symbol('tiny-DistributedNodesChanged'),MarkersChanged:Symbol('tiny-MarkersChanged')};Ant.TinyDispatcher=class extends SDK.DOMDispatcher{constructor(tinyModel){super(tinyModel);}
documentUpdated(){console.log('get messages');this._domModel._documentUpdated();}};SDK.SDKModel.register(Ant.TinyModel,SDK.Target.Capability.DOM,true);;Ant.TinyConnection=class{constructor(target,dispatcher){this._target=target;this._agent=target.tinyAgent();this._dispatcher=dispatcher;window.listenToHost('render',(event,args)=>{const messageObject=args;const{method,payload}=args;if(extraMessageHandler[method])
extraMessageHandler[method](payload);else if(this._dispatcher[messageObject.method])

@@ -23,0 +22,0 @@ this._dispatcher[messageObject.method](messageObject);});const extraMessageHandler={};}};;Ant.StoragePanel=class extends UI.VBox{constructor(){super('storage');this.registerRequiredCSS('resources/resourcesPanel.css');this._target=SDK.targetManager.mainTarget();this.contentElement.classList.add('storage-view');const domStorageModel=this._target.model(Resources.DOMStorageModel);domStorageModel.enable();domStorageModel.storages().forEach(this._addDOMStorage.bind(this));domStorageModel.addEventListener(Resources.DOMStorageModel.Events.DOMStorageAdded,this._domStorageAdded,this);domStorageModel.addEventListener(Resources.DOMStorageModel.Events.DOMStorageRemoved,this._domStorageRemoved,this);this._domStorageView=null;}

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