Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
babel-sugar-v-bind-sync
Advanced tools
Babel syntactic sugar for v-bind sync modifier support in Vue JSX
Syntactic sugar for v-bind sync
modifier in JSX.
This repo is only compatible with Babel 7.x, for 6.x please use njleonzhang/babel-plugin-vue-jsx-sync
Install the dependencies:
# for yarn:
yarn add -D babel-sugar-v-bind-sync
# for npm:
npm install babel-sugar-v-bind-sync --save-dev
In your .babelrc
:
module.exports = {
plugins: [require('babel-sugar-v-bind-sync')]
}
This plugin adds v-bind sync
modifier to the JSX and tries to mirror the same behavior as in vue-template-compiler, with a few differences:
_
) instead of dot (.
) for sync
modifier (prop_sync={this.bar}
).propName_sync
) in JSX, but you can use kebab-case too (prop-name_sync
).export default {
data() {
return {
bar: 'naz',
};
},
render(h) {
return (
<div>
<component foo_sync={this.bar} />
</div>
);
},
};
FAQs
Babel syntactic sugar for v-bind sync modifier support in Vue JSX
We found that babel-sugar-v-bind-sync demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.