Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@colony/colony-js-utils
Advanced tools
Utilities for colonyJS packages.
yarn add @colony/colony-js-utils
import { raceAgainstTimeout } from '@colony/colony-js-utils';
class MyClass {
async somethingVerySlow() {
return mySlowPromise();
}
async doSomethingCoolAsync() {
// Will either return the result of `somethingVerySlow()` or throw throw an error on timeout
return raceAgainstTimeout(this.somethingVerySlow(), 30000);
}
async doSomethingElse() {
// Will do something on timeout, e.g. remove an event listener
return raceAgainstTimeout(
this.somethingVerySlow(),
30000,
() => this.removeEventListener('something'),
);
}
}
This package is part of the colonyJS monorepo.
Please read our contributing guidelines.
v1.2.1
Documentation
Enhancements
@colony/colony-js-contract-client
)release
command for the project, streamlined prepublish hooks, simplified and improved babel configBug fixes
@colony/colony-js-contract-client
)@colony/colony-js-contract-client
)FAQs
Utilities for Colony JS packages
The npm package @colony/colony-js-utils receives a total of 6 weekly downloads. As such, @colony/colony-js-utils popularity was classified as not popular.
We found that @colony/colony-js-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.