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.3.4 to 0.3.5

2

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

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

@@ -8,3 +8,4 @@ let mainTinyModel;const win=window;Ant.AxmlPanel=class extends Elements.ElementsPanel{constructor(){super('axml');this.registerRequiredCSS('elements/elementsTreeOutline.css');Ant.targetManager.addEventListener(Ant.TargetManager.Events.switchTarget,this.requestTargetWS,this);this.requestTargetWS();}

this.wasShown();}
async requestTargetWS(){const{path,target,model}=Ant.targetManager.getCurrent();this._target=target;this._tinyModel=model;this.modelAdded(model,path,target);SDK.targetManager.modelAdded(this._target,Ant.TinyModel,model);SDK.targetManager.observeModels(Ant.TinyModel,this);SDK.targetManager.addModelListener(Ant.TinyModel,SDK.DOMModel.Events.DocumentUpdated,this._documentUpdatedEvent,this);await model.requestDocumentPromise();}};;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;}
async requestTargetWS(){const current=Ant.targetManager.getCurrent();if(!current.model||!current.target||!current.path){return;}
const{path,model,target,}=current;this._target=target;this._tinyModel=model;this.modelAdded(model,path,target);SDK.targetManager.modelAdded(this._target,Ant.TinyModel,model);SDK.targetManager.observeModels(Ant.TinyModel,this);SDK.targetManager.addModelListener(Ant.TinyModel,SDK.DOMModel.Events.DocumentUpdated,this._documentUpdatedEvent,this);await model.requestDocumentPromise();}};;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;}
_addDOMStorage(domStorage){if(!domStorage._isLocalStorage)return;this.showStorage(domStorage);}

@@ -11,0 +12,0 @@ _domStorageAdded(event){var domStorage=(event.data);this._addDOMStorage(domStorage);}

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