Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
babel-plugin-polyfill-es-shims
Advanced tools
Using npm:
npm install --save-dev babel-plugin-polyfill-es-shims
or using yarn:
yarn add babel-plugin-polyfill-es-shims --dev
Add this plugin to your Babel configuration:
{
"plugins": [["polyfill-es-shims", { "method": "usage-pure" }]]
}
This package supports the usage-pure
and usage-global
methods.
This plugin supports the following es-shims
polyfills.
For historical reasons, some of these packages are not under the @es-shims organization. They are explicitly marked in the following tables.
Builtin object or function | Package name | Owner |
---|---|---|
Array.prototype.every | array.prototype.every | |
Array.prototype.indexOf | array.prototype.indexof | |
Array.prototype.lastIndexOf | array.prototype.lastindexof | |
Array.prototype.map | array.prototype.map | |
Array.prototype.reduce | array.prototype.reduce | |
Array.prototype.reduceRight | array.prototype.reduceright | |
Array.prototype.some | array.prototype.some |
Builtin object or function | Package name | Owner |
---|---|---|
Array.from | array.from | @mathiasbynens |
Array.of | array.of | @mathiasbynens |
Array.prototype.entries | array.prototype.entries | |
Array.prototype.find | array.prototype.find | @paulmillr |
Array.prototype.findIndex | array.prototype.findindex | @paulmillr |
Array.prototype.keys | array.prototype.keys | |
Array.prototype.values | array.prototype.values | |
Function.prototype.name | function.prototype.name | |
Number.isNaN | is-nan | |
Object.assign | object.assign | @ljharb |
Object.is | object-is | |
Reflect.ownKeys | reflect.ownkeys | |
RegExp.prototype.flags | regexp.prototype.flags | |
String.fromCodePoint | string.fromcodepoint | @mathiasbynens |
String.prototype.codePointAt | string.prototype.codepointat | @mathiasbynens |
String.prototype.endsWith | string.prototype.endswith | @mathiasbynens |
String.prototype.includes | string.prototype.includes | @mathiasbynens |
String.prototype.repeat | string.prototype.repeat | @mathiasbynens |
String.prototype.startWith | string.prototype.startwith | @mathiasbynens |
Builtin object or function | Package name | Owner |
---|---|---|
Array.prototype.includes | array-includes |
Builtin object or function | Package name | Owner |
---|---|---|
Object.values | object.values | |
Object.entries | object.entries | |
Object.getOwnPropertyDescriptors | object.getownpropertydescriptors | |
String.prototype.padStart | string.prototype.padstart | |
String.prototype.padEnd | string.prototype.padend |
Builtin object or function | Package name | Owner |
---|---|---|
Promise.prototype.finally | promise.prototype.finally |
Builtin object or function | Package name | Owner |
---|---|---|
Array.prototype.flat | array.prototype.flat | |
Array.prototype.flatMap | array.prototype.flatmap | |
Object.fromEntries | object.fromentries | |
String.prototype.trimStart | string.prototype.trimstart | |
String.prototype.trimEnd | string.prototype.trimend | |
String.prototype.trimLeft | string.prototype.trimleft | |
String.prototype.trimRight | string.prototype.trimright | |
Symbol.prototype.description | symbol.prototype.description |
Builtin object or function | Package name | Owner |
---|---|---|
globalThis | globalthis | |
Promise.allSettled | promise.allsettled | |
String.prototype.matchAll | string.prototype.matchall |
Builtin object or function | Package name | Owner |
---|---|---|
AggregateError (for Promise.any ) | es-aggregate-error | |
String.prototype.replaceAll | string.prototype.replaceall | |
Promise.any | promise.any |
NOTE: This polyfill provider is only compatible with polyfills that follow the es-shims-api
specification. Additionally, those polyfills must live under the @es-shims
organization.
This provider fully supports ES2016+, but we are still working on ES5 and ES6 support. You can find the list of missing polyfills at missing-polyfills.md
.
FAQs
A Babel plugin to inject imports to es-shims polyfills
The npm package babel-plugin-polyfill-es-shims receives a total of 1,082 weekly downloads. As such, babel-plugin-polyfill-es-shims popularity was classified as popular.
We found that babel-plugin-polyfill-es-shims demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.