New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

when-all

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

when-all - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

6

package.json
{
"name": "when-all",
"version": "0.4.0",
"version": "0.4.1",
"description": "normalize an object/array where some value may be wrapped in Results",
"dependencies": {
"result-type": "1.0.0",
"map": "http://github.com/jkroso/map/tarball/0.2.1",
"when": "http://github.com/jkroso/when/tarball/3.1.2"
"map": "http://github.com/jkroso/map/tarball/0.2.2",
"when": "http://github.com/jkroso/when/tarball/3.1.3"
},

@@ -10,0 +10,0 @@ "devDependencies": {

@@ -8,3 +8,3 @@

_With [component](//github.com/component/component), [packin](//github.com/jkroso/packin)
_With [component](//github.com/component/component), [packin](//github.com/jkroso/packin)_

@@ -29,3 +29,3 @@ $ {package mananger} install jkroso/when-all

Create a Result for a new `x` with all values lifted out of their Result proxies
Create a Result for a new `x` with all values lifted out of their Results

@@ -46,10 +46,8 @@ ```js

The functions this module uses to handle objects and arrays are actually implemented differently and you can also access the specific handlers with `require('when-all/{type}')`. I recommend you do this whenever possible to avoid unnecessary duck typing.
## Example
You could decorate a function so it can optionally take promised values as arguments.
You could decorate a function so it can take [Results](//github.com/jkroso/result) as arguments.
```js
var all = require('when-all/array')
var all = require('when-all')

@@ -78,2 +76,2 @@ function decorate(fn) {

Then open your browser to the `./test` directory.
Then open your browser [to](http://localhost:3000/test).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc