Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
babel-plugin-vtex-render-route
Advanced tools
A babel plugin for extracting VTEX Render route information from a component
A babel plugin for extracting VTEX Render route information from a component
If you write the following:
import route from 'vtex.renderjs/route.js'
// Your React component code here
// Let's call this component 'Home'
export default route('home', '/')(Home)
It will extract the information on the parameters provided for the route
function and append it to the babel's file metadata
property.
With the example above it would create something like this:
file {
metadata {
// Various babel's properties
vtexRender {
route {
name: 'home',
path: '/'
}
}
}
}
For the extraction to be succesful it depends on some rules:
import
from vtex.renderjs/route.js
That's it!
The name of the function isn't fixed, sou you're not required to use the name route
(as written on our example).
This plugin is intended to be used in conjunction with gulp-vtex-render on the VTEX Toolbelt. Together they're able to extract route information on build time for the VTEX Render framework.
FAQs
A babel plugin for extracting VTEX Render route information from a component
The npm package babel-plugin-vtex-render-route receives a total of 2 weekly downloads. As such, babel-plugin-vtex-render-route popularity was classified as not popular.
We found that babel-plugin-vtex-render-route 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.