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

pastebin-js

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pastebin-js - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

yarn.lock

2

bin/pastebin.js

@@ -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)"
]
}
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