request-promise
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -14,3 +14,3 @@ 'use strict'; | ||
function clearCache() { | ||
_(require.cache).keys().forEach(function (key) { | ||
_.forEach(_.keys(require.cache), function (key) { | ||
delete require.cache[key]; | ||
@@ -144,11 +144,5 @@ }); | ||
_.forEach([ | ||
['then'], | ||
['catch'], | ||
['finally'] | ||
], | ||
function (args) { | ||
expose.apply(undefined, args); | ||
} | ||
); | ||
expose('then'); | ||
expose('catch'); | ||
expose('finally'); | ||
@@ -155,0 +149,0 @@ request.Request.prototype.promise = function RP$promise() { |
{ | ||
"name": "request-promise", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "The world-famous HTTP client 'Request' now Promises/A+ compliant. Powered by Bluebird.", | ||
@@ -33,18 +33,18 @@ "keywords": [ | ||
"bluebird": "^2.3", | ||
"chalk": "^0.5.1", | ||
"lodash": "^2.4.1", | ||
"chalk": "1.0.x", | ||
"lodash": "3.6.x", | ||
"request": "^2.34" | ||
}, | ||
"devDependencies": { | ||
"body-parser": "^1.12.0", | ||
"chai": "^1.10.0", | ||
"chai-as-promised": "^4.1.1", | ||
"event-stream": "^3.1.7", | ||
"gulp": "^3.8.10", | ||
"gulp-istanbul": "^0.3.1", | ||
"gulp-jshint": "^1.9.0", | ||
"gulp-mocha": "^2.0.0", | ||
"jshint-stylish": "^1.0.0", | ||
"rimraf": "^2.2.8", | ||
"run-sequence": "^1.0.1" | ||
"body-parser": "1.12.x", | ||
"chai": "2.2.x", | ||
"chai-as-promised": "4.3.x", | ||
"event-stream": "3.3.x", | ||
"gulp": "3.8.x", | ||
"gulp-istanbul": "0.8.x", | ||
"gulp-jshint": "1.10.x", | ||
"gulp-mocha": "2.0.x", | ||
"jshint-stylish": "1.0.x", | ||
"rimraf": "2.3.x", | ||
"run-sequence": "1.0.x" | ||
}, | ||
@@ -51,0 +51,0 @@ "engines": { |
@@ -374,3 +374,3 @@ <a href="http://promisesaplus.com/"> | ||
We added io.js to our Travis CI build and all tests are green. However, they mostly cover the functionality of Request-Promise itself. Barely of Request and Bluebird. At the time of writing both libraries didn't add io.js to their build, yet. So please use io.js with care. | ||
We added io.js to our Travis CI build and all tests are green. However, they mostly cover the functionality of Request-Promise itself. Barely of Request and Bluebird. At the time of writing Request did but Bluebird didn't add io.js to its build, yet. So please use io.js with care. | ||
@@ -381,3 +381,3 @@ ## Can I trust this module? | ||
However, there is one important design detail: Request-Promise passes a callback to each Request call which it uses to resolve or reject the promise. The callback is also registered if you don't use the promise features in a certain request. E.g. you may only use streaming: `rp(...).pipe(...)` As a result, [additional code](https://github.com/request/request/blob/master/request.js#L1194-L1241) is executed that buffers the streamed data and passes it as the response body to the "complete" event. If you stream large quantities of data the buffer grows big and that has an impact on your memory footprint. In these cases you can just `var request = require('request');` and use `request` for streaming large quantities of data. | ||
However, there is one important design detail: Request-Promise passes a callback to each Request call which it uses to resolve or reject the promise. The callback is also registered if you don't use the promise features in a certain request. E.g. you may only use streaming: `rp(...).pipe(...)` As a result, [additional code](https://github.com/request/request/blob/master/request.js#L1166-L1213) is executed that buffers the streamed data and passes it as the response body to the "complete" event. If you stream large quantities of data the buffer grows big and that has an impact on your memory footprint. In these cases you can just `var request = require('request');` and use `request` for streaming large quantities of data. | ||
@@ -402,2 +402,4 @@ ## Contributing | ||
- v0.4.2 (2015-04-12) | ||
- Updated dependencies | ||
- v0.4.1 (2015-03-20) | ||
@@ -404,0 +406,0 @@ - Improved Error types to work in browsers without v8 engine |
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
439
28395
148
+ Addedansi-regex@1.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.0.0(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedhas-ansi@1.0.3(transitive)
+ Addedlodash@3.6.0(transitive)
+ Addedstrip-ansi@2.0.1(transitive)
+ Addedsupports-color@1.3.1(transitive)
- Removedansi-regex@0.2.1(transitive)
- Removedansi-styles@1.1.0(transitive)
- Removedchalk@0.5.1(transitive)
- Removedhas-ansi@0.1.0(transitive)
- Removedlodash@2.4.2(transitive)
- Removedstrip-ansi@0.3.0(transitive)
- Removedsupports-color@0.2.0(transitive)
Updatedchalk@1.0.x
Updatedlodash@3.6.x