Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@automattic/calypso-polyfills
Advanced tools
Polyfills required for Calypso to work across various browsers and in node.
This package includes several configurations for required polyfills for Calypso, targeting three different environments: node, evergreen (newer browsers) and fallback (older browsers).
calypso-polyfills
ties into the Calypso build process, to ensure that only the required polyfills for each build target are needed. Through the use of Babel's preset-env
and browserslist
configurations, we strip out any polyfills that are supported for all browsers that are supported by that build target.
See the root directory's package.json
for the list of supported browsers for each build target.
In Node.js, simply require the package:
require( '@automattic/calypso-polyfills' );
In a browser, a similar naked import will include the polyfills (defaulting to the fallback
set):
import from '@automattic/calypso-polyfills';
If you want to explicitly include the evergreen
or fallback
polyfills, you can append to the import path:
import from '@automattic/calypso-polyfills/browser-evergreen';
import from '@automattic/calypso-polyfills/browser-fallback';
FAQs
Polyfills required for Calypso to work across various browsers and in node.
The npm package @automattic/calypso-polyfills receives a total of 0 weekly downloads. As such, @automattic/calypso-polyfills popularity was classified as not popular.
We found that @automattic/calypso-polyfills demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 24 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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.