Comparing version 0.2.0 to 0.2.1
@@ -15,4 +15,4 @@ 'use strict' | ||
* .then(response => { | ||
* console.log("Response received") | ||
* console.log(response.data) | ||
* console.log("Response received", response.data) | ||
* console.log("The nodejs response instance", response.res) | ||
* }) | ||
@@ -31,3 +31,3 @@ * .catch(console.error) | ||
@returns {external:Promise} | ||
@resolve {{ res: node-res-object, data: response-data }} | ||
@resolve {object} - `res` will be the node response object, `data` will be the data | ||
@reject {Error} | ||
@@ -34,0 +34,0 @@ @alias module:req-then |
{ | ||
"name": "req-then", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Simple http(s) request function, returning a promise. ", | ||
@@ -11,2 +11,3 @@ "repository": "https://github.com/75lb/req-then", | ||
}, | ||
"license": "MIT", | ||
"keywords": [ | ||
@@ -27,3 +28,3 @@ "http", | ||
"test": "tape test/*.js", | ||
"docs": "jsdoc2md lib/*.js -l js > README.md; echo", | ||
"docs": "jsdoc2md -t jsdoc2md/README.hbs lib/*.js -l js > README.md; echo", | ||
"start": "node test/interactive/server.js" | ||
@@ -30,0 +31,0 @@ }, |
@@ -0,1 +1,6 @@ | ||
[![view on npm](http://img.shields.io/npm/v/req-then.svg)](https://www.npmjs.org/package/req-then) | ||
[![npm module downloads](http://img.shields.io/npm/dt/req-then.svg)](https://www.npmjs.org/package/req-then) | ||
[![Dependency Status](https://david-dm.org/75lb/req-then.svg)](https://david-dm.org/75lb/req-then) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard) | ||
<a name="module_req-then"></a> | ||
@@ -11,4 +16,4 @@ ## req-then | ||
.then(response => { | ||
console.log("Response received") | ||
console.log(response.data) | ||
console.log("Response received", response.data) | ||
console.log("The nodejs response instance", response.res) | ||
}) | ||
@@ -22,3 +27,3 @@ .catch(console.error) | ||
**Kind**: Exported function | ||
**Resolve**: <code>{ res: node-res-object, data: response-data </code>} | ||
**Resolve**: <code>object</code> - `res` will be the node response object, `data` will be the data | ||
**Reject**: <code>Error</code> | ||
@@ -34,1 +39,5 @@ | ||
* * * | ||
© 2015 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
8474
9
0
41