Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@azure/core-util
Advanced tools
Package description
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.
Readme
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 3,863,772 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.