pastebin-js
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -6,3 +6,3 @@ 'use strict'; | ||
* | ||
* Copyright (c) 2013-2017 Jelte Lagendijk | ||
* Copyright (c) 2013-2019 Jelte Lagendijk | ||
* Licensed under the MIT license. | ||
@@ -9,0 +9,0 @@ */ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
* | ||
* Copyright (c) 2013-2016 Jelte Lagendijk | ||
* Copyright (c) 2013-2019 Jelte Lagendijk | ||
* Licensed under the MIT license. | ||
@@ -9,0 +9,0 @@ */ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
* | ||
* Copyright (c) 2013-2017 Jelte Lagendijk | ||
* Copyright (c) 2013-2019 Jelte Lagendijk | ||
* Licensed under the MIT license. | ||
@@ -9,0 +9,0 @@ */ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
* | ||
* Copyright (c) 2013-2017 Jelte Lagendijk | ||
* Copyright (c) 2013-2019 Jelte Lagendijk | ||
* Licensed under the MIT license. | ||
@@ -56,5 +56,5 @@ */ | ||
} | ||
if (!body || body.length === 0) { | ||
if (!body || body === null || body.length === 0) { | ||
deferred.reject(new Error('Empty response')); | ||
return | ||
return; | ||
} | ||
@@ -95,3 +95,3 @@ if (body.indexOf('Bad API request') !== -1) { | ||
} | ||
if (body === null || body.length === 0) { | ||
if (!body || body === null || body.length === 0) { | ||
deferred.reject(new Error('Empty response')); | ||
@@ -98,0 +98,0 @@ } |
{ | ||
"name": "pastebin-js", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "NodeJS module for Pastebin API", | ||
@@ -53,4 +53,7 @@ "main": "index", | ||
"Peter Dave Hello (https://github.com/PeterDaveHello)", | ||
"James Freeman (https://github.com/jammaloo)" | ||
"James Freeman (https://github.com/jammaloo)", | ||
"gitrog (https://github.com/gitrous)", | ||
"Timmy Dusser-Jolly (https://github.com/tymmesyde)", | ||
"cthuluhoop123 (https://github.com/cthuluhoop123)" | ||
] | ||
} |
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
104110
12