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.
@babel/plugin-syntax-object-rest-spread
Advanced tools
The @babel/plugin-syntax-object-rest-spread package allows Babel to parse and handle the object rest/spread syntax. This syntax enables the extraction of properties from objects and the creation of new objects with certain properties of an existing object. It is important to note that this plugin only enables the syntax and does not transform it; the actual transformation is handled by another plugin like @babel/plugin-proposal-object-rest-spread.
Object Rest Properties
Allows extracting the remaining own enumerable property keys that are not already picked off by the destructuring pattern.
{ ...rest } = object
Object Spread Properties
Enables the creation of a new object by copying own enumerable properties from a provided object onto the new object.
{ ...object }
This package not only allows Babel to parse the object rest/spread syntax but also transforms it. It is the complement to @babel/plugin-syntax-object-rest-spread, which only enables the syntax.
This is a legacy plugin that was used before the proposal reached stage 4 and was included in the official ECMAScript standard. It both enabled the syntax and transformed it, similar to @babel/plugin-proposal-object-rest-spread.
Allow parsing of object rest/spread
See our website @babel/plugin-syntax-object-rest-spread for more information.
Using npm:
npm install --save-dev @babel/plugin-syntax-object-rest-spread
or using yarn:
yarn add @babel/plugin-syntax-object-rest-spread --dev
FAQs
Allow parsing of object rest/spread
The npm package @babel/plugin-syntax-object-rest-spread receives a total of 26,933,840 weekly downloads. As such, @babel/plugin-syntax-object-rest-spread popularity was classified as popular.
We found that @babel/plugin-syntax-object-rest-spread demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.