Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Like
Promise.all()
but forMap
andObject
Useful when you need to run multiple promises concurrently and keep track of the fulfilled values by name.
$ npm install p-props
const pProps = require('p-props');
const got = require('got');
(async () => {
const fetch = async url => {
const {body} = await got(url);
return body;
};
const sites = {
ava: fetch('ava.li'),
todomvc: fetch('todomvc.com'),
github: fetch('github.com'),
foo: 'bar'
};
console.log(await pProps(sites));
/*
{
ava: '<!doctype …',
todomvc: '<!doctype …',
github: '<!doctype …',
foo: 'bar'
}
*/
})();
Returns a Promise
that is fulfilled when all promises in input
and ones returned from mapper
are fulfilled, or rejects if any of the promises reject. The fulfilled value is the same as input
, but with a fulfilled version of each entry value, or the fulfilled value returned from mapper
, if defined.
Type: Map
Object
Resolves entry values that are promises. Other values are passed through.
Type: Function
Receives the current value and key as parameters. Expected to return a Promise
or value.
Type: Object
See the p-map
options.
MIT © Sindre Sorhus
FAQs
Like `Promise.all()` but for `Map` and `Object`
We found that p-props 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.