Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@exodus/simple-retry
Advanced tools
yarn
import { retry } from '@exodus/simple-retry'
const broadcastTxWithRetry = retry(broadcastFunction, { delayTimesMs: ['10s'] })
const result = await broadcastTxWithRetry(plainTx)
It is possible to trap specific errors and mark them as final when retrying is not needed, like:
const broadcastTxWithRetry = retry(
async (plainTx) => {
try {
return await broadcastFunction(plainTx)
} catch (e) {
if (/specific-final-error/i.test(e.message)) e.finalError = true
throw e
}
},
{ delayTimesMs: ['10s'] }
)
yarn test
yarn test --watch
To publish, first set the private
flag to false and edit the version number in package.json
.
yarn build
NPM_CONFIG_OTP=123456 yarn release
NPM_CONFIG_OTP=123456 yarn release from-package # if 2FA token timeout, re-publish with current version in package.json
NPM_CONFIG_OTP=775106 npm publish --registry=https://registry.npmjs.org
After sucessfully publishing, reset the private
flag to true and commit the version change.
FAQs
Simple Retry
The npm package @exodus/simple-retry receives a total of 1,175 weekly downloads. As such, @exodus/simple-retry popularity was classified as popular.
We found that @exodus/simple-retry demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.