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

request-promise

Package Overview
Dependencies
Maintainers
1
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.0.1 to 0.0.2

README.md

9

lib/rp.js

@@ -5,7 +5,8 @@ var Promise = require('bluebird'),

function rp(options) {
var statusCodes = {
var statusCodes = {
'GET' : [200],
'HEAD' : [200],
'PUT' : [200, 201],
'POST' : [200, 201]
'POST' : [200, 201],
'DELETE' : [200, 201]
}, c = {}, i;

@@ -41,2 +42,4 @@ if (typeof options === 'string') {

module.exports = rp;
module.exports = function (a) {
if (a) return rp(a);
};
{
"name": "request-promise",
"version": "0.0.1",
"version": "0.0.2",
"description": "Promise-based Wrapper for XHR using Request and Bluebird",
"main": "lib/tp.js",
"main": "./lib/rp.js",
"scripts": {

@@ -18,7 +18,9 @@ "test": "To Do"

],
"readmeFilename": "README.md",
"author": "Ty Abonil",
"license": "MIT",
"dependencies": {
"bluebird": "~0.7.9-1"
"bluebird": "~0.7.9-1",
"request": "~2.27.0"
}
}

Sorry, the diff of this file is not supported yet

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