
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
= assert_repeated
Assertions that run multiple times, used to smoke-test or randomly probe a function with a large domain.
assert_repeatedly_true(1000) do
expected = rand(100)
actual = decrypt(encrypt(expected))
expected == actual
end
assert_repeatedly_false(10) do
!she_loves_me
end
assert_repeatedly(100_000, /awesome/) do
"writing tests is awesome!"
end
This is way better than running assert in a loop because it doesn't blow up the assertion counter:
45 tests, 1089 assertions, 0 failures, 0 errors
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2009 Bryce Kerley and Todd Willey.
DO WHATEVER YOU WANT WITH THIS SOFTWARE; see LICENSE for details.
FAQs
Unknown package
We found that assert_repeated demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.