Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
core-js-builder
Advanced tools
For some cases could be useful to exclude some core-js
features or generate a polyfill for target engines. This API helps conditionally include or exclude certain parts of core-js
and build for targets. modules
, exclude
and targets
options are specified in the core-js-compat
format.
import builder from 'core-js-builder';
const bundle = await builder({
modules: ['core-js/actual', 'esnext.reflect'], // entries / modules / namespaces, by default - all `core-js` modules
exclude: [/^es\.math\./, 'es.number.constructor'], // a blacklist of entries / modules / namespaces, by default - empty list
targets: '> 0.5%, not dead, ie 9-11', // optional browserslist or core-js-compat format query
summary: { // shows summary for the bundle, disabled by default:
console: { size: true, modules: false }, // in the console, you could specify required parts or set `true` for enable all of them
comment: { size: false, modules: true }, // in the comment in the target file, similarly to `summary.console`
},
filename: PATH_TO_MY_COREJS_BUNDLE, // optional target filename, if it's missed a file will not be created
});
Array
by copy proposal:
/actual/
entry points for methods from this proposalArray.prototype.toSpliced
throws a TypeError
instead of RangeError
if the result length is more than MAX_SAFE_INTEGER
, proposal-change-array-by-copy/70atob
/ btoa
fixes:
atob
does not ignore spaces, node/42530atob
does not validate encoding, node/42646/full/
namespace as the replacement for /features/
since it's more descriptive in context of the rest namespaces (/es/
⊆ /stable/
⊆ /actual/
⊆ /full/
)%TypedArray%.prototype.groupBy
was removed from the Array
grouping proposal a long time ago. We can't completely remove this method since it's a breaking change. But this proposal has been promoted to stage 3 - so the proposal should be promoted without this method, this method should not be available in /actual/
entries - but it should be available in early-stage entries to avoid breakage.core-js-compat
-> core-js-builder
-> core-js-bundle
output. That mean that if the output contains, for example, es.object.has-own
, the legacy reference to it, esnext.object.has-own
, no longer added.core-js-builder
and core-js-compat
, now it's modules
and exclude
optionstargets
option of core-js-compat
means that the targets
filter just will not be applied, so the result will contain modules required for all possible engines.stack
property on DOMException
marked as supported from Deno 1.15FAQs
core-js builder
The npm package core-js-builder receives a total of 4,999 weekly downloads. As such, core-js-builder popularity was classified as popular.
We found that core-js-builder 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.