
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
browser-polyfills
Advanced tools
Minimal polyfills for modern browser applications
This polyfill contains the following polyfills:
PromisefetchMapSetArray.findArray.findIndexArray.fromObject.valuesObject.assignrequestAnimationFrame (rAF)Just import it at the beginning of your application and go wild.
import 'browser-polyfills';
Note that this package will only polyfill what your browser environment does not
have. For example, if the user's browser has fetch, this package will not add
the polyfill and your application will keep using the browser's native code.
This package fine-tunes some aspects of the polyfilled packages. Note that the
enhancements described here are done in spite of the browser's support (i.e.
if fetch is supported by the browser, the enhancement will still be applied).
fetchBoth native and polyfilled fetch functions have a major inconsistency related
to the function's outcome. Basically fetch can either return a Promise when
successfully communicates with the server, or throws an error when it cannot.
This inconsistency can easily lead to repeated or bloated code and/or unhandled
errors. This package prevents this inconsistency and forces fetch to always
return a Promise. I.e. instead of throwing an error, fetch will return a
rejected Promise, to be handled like any Promise would - with a catch.
FAQs
Minimal polyfills for modern browser applications
The npm package browser-polyfills receives a total of 117 weekly downloads. As such, browser-polyfills popularity was classified as not popular.
We found that browser-polyfills 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.