
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
angular-promise-extras-real
Advanced tools
Install the package
bower install --save angular-promise-extras
Add the bower source file to your web page.
Add the angular module ngPromiseExtras as a dependency of your application module.
var deferreds = [ $q.defer(), $q.defer() ]
var asyncVals = deferreds.map(function(deferred) {
return deferred.promise
})
asyncVals.push(3)
$q.allSettled(asyncVals).then(function(values) {
expect(values).toEqual([
{ state: 'fulfilled', value: 1 },
{ state: 'rejected', reason: 2 },
{ state: 'fulfilled', value: 3 },
])
})
deferreds[0].resolve(1)
deferreds[1].reject(2)
Also works with objects:
var deferreds = [ $q.defer(), $q.defer() ]
var promisesArray = deferreds.map(function(deferred) {
return deferred.promise
})
var promises = { a: promisesArray[0], b: promisesArray[1], c: 3 }
$q.allSettled(promises).then(function(values) {
expect(values).toEqual({
a: { state: 'fulfilled', value: 1 },
b: { state: 'rejected', reason: 2 },
c: { state: 'fulfilled', value: 3 },
})
})
deferreds[0].resolve(1)
deferreds[1].reject(2)
Also provides
$q.map: works like Bluebird.map or Bluebird.props depending on whether an array or an object is passed.$q.mapSettled: Works like $q.map but with the settled semantics.$q.resolve: Works like Bluebird.resolve.FAQs
Adds some extra functions to $q like $q.allSettled
We found that angular-promise-extras-real 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.