Socket
Socket
Sign inDemoInstall

chrome-zones

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-zones

browser module to wrap chrome extension apis so that if they are executing in a zone, their callbacks do too


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

chrome-zones

Build Status

wraps chrome extension apis so that if they are executing in a zone, their callbacks do too

Why?

If, for instance, you wish to use angular2 in a chrome extension, and want to change renderable/injectable/etc values from within a chrome extension api callback.

How?

Do i use it?

npm install chrome-zones is the easiest.

If npm is too heavy for you, grab a built version from this repo. Note that you'll also need angular/zone.js included in your page.

Example

See example for a complete working example.

Does it work?

Using monkeypatching and zone.wrap. Basically when the script loads it patches the entire chrome.<whatever> api space such that all functions that are called have their last argument (if it is a function) patched with zone.wrap.

License

MIT

FAQs

Package last updated on 03 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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