Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
heart-ping
Advanced tools
A simple light-weight Typescript module for pinging HTTP services at set intervals to provide a heartbeat.
A simple light-weight Typescript module for pinging HTTP services at set intervals to provide a heartbeat.
yarn add heart-ping
import HeartPing from 'heart-ping';
const heartPing = new HeartPing();
heartPing.setBeatInterval(10_000);
heartPing.setBeatTimeout(30_000);
heartPing.setOnTimeout(() => {
console.log('The ping request to www.google.com has timed out!');
});
heartPing.start(
'www.google.com', // or using https, e.g.: 'https://www.google.com'
80,
(time) => {
console.log(`Successfully pinged www.google.com! It took ${time} milliseconds.`);
},
() => {
console.log('Failed to ping www.google.com!');
},
);
MIT License
Contributions are encouraged, please see further details below:
Here are some basic rules to follow to ensure timely addition of your request:
main
branch. Any other branch (unless specified by the
maintainers) will get rejected.FAQs
A simple light-weight Typescript module for pinging HTTP services at set intervals to provide a heartbeat.
The npm package heart-ping receives a total of 3 weekly downloads. As such, heart-ping popularity was classified as not popular.
We found that heart-ping 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.