Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
babel-plugin-polyfill-es-shims
Advanced tools
A Babel plugin to inject imports to es-shims polyfills
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 polyfill provider is compatible with polyfills that follow the es-shims-api
specification. Those polyfills must live under the @es-shims
organization, but for historical reasons some of them are owned by different people: they are explicitly marked as such in the following tables.
Builtin object or function | Package name | Owner |
---|---|---|
String.prototype.isWellFormed | string.prototype.iswellformed | |
String.prototype.toWellFormed | string.prototype.towellformed |
Builtin object or function | Package name | Owner |
---|---|---|
Array.prototype.findLast | array.prototype.findlast | |
Array.prototype.findLastIndex | array.prototype.findlastindex | |
Array.prototype.toReversed | array.prototype.toreversed | |
Array.prototype.toSorted | array.prototype.tosorted | |
Array.prototype.toSpliced | array.prototype.tospliced | |
Array.prototype.with | array.prototype.with |
Builtin object or function | Package name | Owner |
---|---|---|
Array.prototype.at | array.prototype.at | |
Error 's cause property | error-cause | |
Object.hasOwn | object.hasown | |
String.prototype.at | string.prototype.at |
Builtin object or function | Package name | Owner |
---|---|---|
AggregateError (for Promise.any ) | es-aggregate-error | |
Promise.any | promise.any | |
String.prototype.replaceAll | string.prototype.replaceall |
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 |
---|---|---|
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 |
---|---|---|
Promise.prototype.finally | promise.prototype.finally |
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 |
---|---|---|
Array.prototype.includes | array-includes |
⚠️ This provider fully supports ES2016+ polyfills, but we are still working on ES5 and ES6 support. You can find the list of missing polyfills at
missing-polyfills.md
.
⚠️ This provider fully supports ES2016+ polyfills, but we are still working on ES5 and ES6 support. You can find the list of missing polyfills at
missing-polyfills.md
.
Builtin object or function | Package name | Owner |
---|---|---|
parseInt | parseint | |
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 | |
Number.prototype.toExponential | number.prototype.toexponential | |
Object.defineProperties | object.defineproperties | |
String.prototype.split | string.prototype.split | |
String.prototype.substr | string.prototype.substr | |
String.prototype.trim | string.prototype.trim |
FAQs
A Babel plugin to inject imports to es-shims polyfills
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.