Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@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
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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.