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.
@codefeathers/promise.object
Advanced tools
Readme
Promise.object
is Promise.all
for objects, and it traverses deeply! It's also fully typed.
npm install --save @codefeathers/promise.object
import promiseObject from "@codefeathers/promise.object";
const resolved = await Promise.object({
foo: Promise.resolve(5),
bar: {
baz: Promise.resolve([ 1, 2, 3 ])
}
});
console.log(resolved);
//-> { foo: 5, bar: { baz: [ 1, 2, 3 ] } }
We need to go deeper!
import promiseObject from "@codefeathers/promise.object";
const resolved = await Promise.object(
Promise.resolve({
foo: Promise.resolve({
bar: Promise.resolve(5)
})
})
);
console.log(resolved);
//-> { foo: { bar: 5 } }
import promiseObject from "https://deno.land/x/promise_object@v0.10.0";
The original idea and challenge was from @TRGWII.
FAQs
Deep resolve promises in objects.
The npm package @codefeathers/promise.object receives a total of 485 weekly downloads. As such, @codefeathers/promise.object popularity was classified as not popular.
We found that @codefeathers/promise.object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.