Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

request-promise

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-promise - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

14

lib/rp.js

@@ -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

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