request-promise
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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
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 README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
3004
4
41
0
44
2
+ Addedrequest@~2.27.0
+ Addedasn1@0.1.11(transitive)
+ Addedassert-plus@0.1.5(transitive)
+ Addedasync@0.9.2(transitive)
+ Addedaws-sign@0.3.0(transitive)
+ Addedboom@0.4.2(transitive)
+ Addedcombined-stream@0.0.7(transitive)
+ Addedcookie-jar@0.3.0(transitive)
+ Addedcryptiles@0.2.2(transitive)
+ Addedctype@0.5.3(transitive)
+ Addeddelayed-stream@0.0.5(transitive)
+ Addedforever-agent@0.5.2(transitive)
+ Addedform-data@0.1.4(transitive)
+ Addedhawk@1.0.0(transitive)
+ Addedhoek@0.9.1(transitive)
+ Addedhttp-signature@0.10.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedmime@1.2.11(transitive)
+ Addednode-uuid@1.4.8(transitive)
+ Addedoauth-sign@0.3.0(transitive)
+ Addedqs@0.6.6(transitive)
+ Addedrequest@2.27.0(transitive)
+ Addedsntp@0.2.4(transitive)
+ Addedtunnel-agent@0.3.0(transitive)