Comparing version 0.4.0 to 0.4.1
{ | ||
"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). |
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 2 instances in 1 package
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 2 instances in 1 package
3893
74