
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@web-companions/h
Advanced tools
A set of helper functions
npm install @web-companions/h --save
index.jsx
import { css } from '@web-companions/h';
<div>
<span
style={css`
color: red;
`}
>
Red text
</span>
</div>
index.jsx
import { setStyle } from '@web-companions/h';
// domNode is an Element or ShadowRoot
setStyle(require('./style.css'), domNode);
The easier and simples mapper for EG. It will update a component's property immediately without waiting other changes.
NOTE: Use it only if you want to maximal speed up you component.
! Pay attention that it's not possible to change several different properties inside one updating iteration with this mapper.
index.jsx
import { instantMapper } from '@web-companions/h';
import { EG } from '@web-companions/gfc';
import { render } from 'lit-html';
let sum = 0;
export const demoElement = EG(
mapper: instantMapper
)(function* () {
let state: number = 0;
const setState = (newState: number) => {
state = newState;
this.next();
};
while (true) {
if (state < 5) {
setState(++sum);
}
yield render(<div>Sum Immediate - {String(state)}</div>, this);
}
});
FAQs
Helper functions for using with @web-companions
We found that @web-companions/h 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.