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-estrela
Advanced tools
A babel plugin to pre-process estrela jsx/tsx files.
import { onDestroy } from 'estrela';
const App = () => {
// create a number state with initial value equal to 0.
let count = 0;
// subscribe to "count" state changes.
count$.subscribe(console.log);
// create an updater interval function.
const interval = setInterval(() => count++, 1000);
// clean interval on destroy this component.
onDestroy(() => clearInterval(interval));
// return JSX element.
return <div>Count is {count * 2}</div>;
};
It will transpile the code above to:
import { template as _template, h as _h, $$ as _$$ } from "estrela/internal";
import { render } from "estrela";
import { onDestroy } from "estrela";
const _tmpl = _template("<div>Count is </div>");
const App = _props => {
const _$ = /*#__PURE__*/_$$();
_$.count = 0
_$.$.count.subscribe(console.log);
const interval = setInterval(() => _$.count++, 1e3);
onDestroy(() => clearInterval(interval));
return _h(_tmpl, {
"0": {
"children": [[() => _$.count * 2, null]]
}
});
};
Using npm:
$ npm install --save-dev babel-plugin-estrela
or using yarn:
$ yarn add --dev babel-plugin-estrela
For more Estrela information, visit the github page at https://github.com/estrelajs/estrela/.
FAQs
A babel plugin to pre-process estrela jsx/tsx files
The npm package babel-plugin-estrela receives a total of 0 weekly downloads. As such, babel-plugin-estrela popularity was classified as not popular.
We found that babel-plugin-estrela demonstrated a healthy version release cadence and project activity because the last version was released less than 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.