pastebin-js
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -0,1 +1,6 @@ | ||
[0.3.4](https://github.com/j3lte/pastebin-js/releases/tag/v0.3.4) / 2015-11-23 | ||
================== | ||
* Change the error on GET and POST methods | ||
[0.3.1](https://github.com/j3lte/pastebin-js/releases/tag/v0.3.1) / 2014-12-20 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -39,4 +39,4 @@ 'use strict'; | ||
}, function (error, response, body) { | ||
var status = response.statusCode; | ||
if (error) { | ||
var status = response ? response.statusCode : null; | ||
if (error || status === null) { | ||
deferred.reject({status : status, error : error}); | ||
@@ -80,4 +80,4 @@ } | ||
}, function (error, response, body) { | ||
var status = response.statusCode; | ||
if (error) { | ||
var status = response ? response.statusCode : null; | ||
if (error || status === null) { | ||
deferred.reject({status : status, error : error}); | ||
@@ -84,0 +84,0 @@ } |
{ | ||
"name": "pastebin-js", | ||
"version": "0.3.3", | ||
"npm-shrinkwrap-version": "5.4.0", | ||
"node-version": "v0.12.4", | ||
"version": "0.3.4", | ||
"npm-shrinkwrap-version": "5.4.1", | ||
"node-version": "v4.1.0", | ||
"dependencies": { | ||
@@ -7,0 +7,0 @@ "q": { |
{ | ||
"name": "pastebin-js", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "NodeJS module for Pastebin API", | ||
@@ -5,0 +5,0 @@ "main": "index", |
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
61179