
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
@origin-yaropolk/debug-assert
Advanced tools
Small lib that helps your app meet fail-fast and fail-save principles.
import { assert } from 'debug-assert';
assert(myCondition, 'Print this if failed');
You can setup your own fail-fast function:
import { assert, setupFailFast } from 'debug-assert';
setupFailFast((err: Error) => {
console.error(err);
collectSomeData();
process.abort();
});
assert(myCondition, 'Print this if failed');
Change the principle by calling setupMode function:
import { assert, setupMode } from 'debug-assert';
// calls fail-fast function
// it's default behaviour
assert(myCondition, 'Print this if failed');
setupMode('fail-safe');
// throws an exception
assert(myCondition, 'Print this if failed');
setupMode('ignore');
// replaced with noop
assert(myCondition, 'Print this if failed');
There is an assertNotNull alias:
import { assertNotNull } from 'debug-assert';
assertNotNull(null, 'Print this if failed'); // will fail
assertNotNull(undefined, 'Print this if failed'); // not fail
assertNotNull(0, 'Print this if failed'); // not fail
FAQs
Helps your app meet fail-fast/fail-safe principles
We found that @origin-yaropolk/debug-assert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.