Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@coorpacademy/components
Advanced tools
This library provide sharable components for web applications, either :
@todo
list npm run
scripts
npm install
npm start
Then open http://localhost:3003
/lib
in a projectnpm link
to create a local @coorpacademy/components
packagenpm link @coorpacademy/components
in your project.@todo
example + howto
npm version patch|minor|major
git push --tags
hyperscript
function, the cloning, and the vtree resolving.import engine from '../../src/engine/virtual-dom';
import createElement from './element';
const Element = createElement(engine, options);
Element
being something like:
export default ({h}) => (props, children) => (
<p>
{children}
</p>
)
@todo
explain engine.resolve
and engine.walker(engine.resolve)
It's possible to enhance a Component
by applying a specific behaviour on it.
Alike every Component
, this behaviour is a kind of MetaComponent
, created with the engine
and 'wrapped' around the Component
to enhance.
const Component = createComponent(engine, options)
const CustomBehaviour = createCustomBehaviour(engine, options)
<CustomBehaviour>
<Component>
</Component>
</CustomBehaviour>
Wrappers
allow to modify the child's props.
<ForceColor {color: 'red'}>
<Component {color: 'blue'}>
</Component>
</ForceColor>
With this kind of Wrapper
, the Component
will have its blue
props.color overriden by the red
value.
Behaviours
allow to modify a child's behaviour, like its style
It's the same job as wrappers
but applying the modification directly on the resolved vTree.
With a Behaviour
the previous example would become :
const Component = createComponent(engine, options)
const RedColor = createRedColor(engine, options)
<RedColor>
<Component>
</Component>
</RedColor>
Here the Component
props.style.color
will be set by the Behaviour
.
Both Wrappers
and Behaviours
may be used as decorator to allow smaller, readable jsx
:
const Component = createComponent(engine, options)
const RedColor = createRedColor(engine, options)
const RedComponent = RedColor.decorate(Component);
<RedComponent>
</RedComponent>
Here the RedComponent
is exactly the same as the previous example for Behaviour
.
FAQs
This library provide sharable components for web applications, either :
We found that @coorpacademy/components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 17 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.