Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@nftx/queue
Advanced tools
This package is written specifically to allow communication and job running between NFTX-API and NFTX-API-INDEXER
@nftx/ queue
This package is written specifically to allow communication and job running between NFTX-API and NFTX-API-INDEXER
Signals and Messages can be sent and received using this library. Signals are used to trigger an intended action whereas Messages are used to notify of events. They act very differently behind the scenes:
A signal is passed to bullmq which then passes it on to a single worker to process. You can have multiple listeners for a signal, but only 1 listener will be given the signal.
Messages, on the other hand, are broadcast to all listeners.
// Create a listener for the signal
onSignal(async (type, data) => {
// Dispatch to the network-specific listener
sendNetworkSignal(data.network, type, data);
});
// Create a listener for mainnet signals
onNetworkSignal(1, (type, data) => {
switch (type) {
case 'index-vault':
// Handle indexing a vault here
// Broadcast a message when the job is complete
sendMessage('vault-indexed', {});
break;
}
});
// Create multiple listeners for messages
onMessage((type, data) => {
switch (type) {
case 'vault-indexed':
// Do something
breka;
}
});
// Emit a signal
sendSignal('index-vault', { vaultId: '0' });
FAQs
This package is written specifically to allow communication and job running between NFTX-API and NFTX-API-INDEXER
We found that @nftx/queue 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.