
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
es6-promise-plugin
Advanced tools
ES6-Promises polyfill for Cordova/PhoneGap
The web view components on Cordova supported platforms lack suport for ES6 Promise. A polyfill library bundled with the plugin fixes the limitation. However, as more plugin use promises, the application developer using these plugins will end up with multiple promise polyfill libraries.
This plugin attempts to fix this situation by providing a Promise polyfill so that other plugins can rely on this functionality.
Configure your plugin's plugin.xml by adding this dependency:
<dependency
id="es6-promise-plugin"
url="https://github.com/vstirbu/PromisesPlugin.git">
</dependency>
Cordova CLI takes care to install PromisesPlugin automatically:
$ cordova plugins add {yourPlugin}
> Installing "{yourPlugin}" for {platform}
> Installing "es6-promise-plugin" for {platform}
This is all. window.Promise
is available for use in your plugin.
This plugin wraps es6-promise in a Cordova/PhoneGap friendly way.
The plugin is available under MIT license.
FAQs
ES6-Promises polyfill for Cordova/PhoneGap
The npm package es6-promise-plugin receives a total of 27,889 weekly downloads. As such, es6-promise-plugin popularity was classified as popular.
We found that es6-promise-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.