Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@azure/core-util
Advanced tools
The @azure/core-util package provides a set of utilities used by Azure SDK for JavaScript packages. These utilities include functions for dealing with delays, tracing, and other common tasks that are useful when interacting with Azure services or building applications that integrate with the Azure ecosystem.
delay
Provides a way to pause execution for a specified amount of time. This is useful for implementing retries or waiting for an operation to complete.
async function main() {
await delay(1000);
console.log('Delayed for 1 second');
}
main();
trace
Facilitates distributed tracing of operations, allowing for monitoring and diagnosing issues across distributed systems.
const span = createSpan('my-operation', {kind: SpanKind.INTERNAL});
try {
// operation code here
} finally {
span.end();
}
Lodash is a utility library offering a wide array of functions for tasks like data manipulation, testing, and logic operations. While it doesn't focus on Azure or distributed tracing specifically, it provides general-purpose utilities that are useful in many of the same scenarios as @azure/core-util.
The async package provides utilities for working with asynchronous JavaScript, such as managing series, parallel, and waterfall control flow. It's similar to @azure/core-util in that it helps manage asynchronous operations, but it doesn't include utilities for tracing or Azure-specific integrations.
This library is intended to provide various shared utility functions for client SDK packages.
See our support policy for more details.
This package is primarily used in authoring client SDKs and not meant to be consumed directly by end users.
Utility methods provided by this library should be stateless.
Examples can be found in the samples
folder.
Look at usage in dependent client SDKs.
If you run into issues while using this library, please feel free to file an issue.
If you'd like to contribute to this library, please read the contributing guide to learn more about how to build and test the code.
FAQs
Core library for shared utility methods
The npm package @azure/core-util receives a total of 4,322,851 weekly downloads. As such, @azure/core-util popularity was classified as popular.
We found that @azure/core-util demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.