Socket
Socket
Sign inDemoInstall

dropkit

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.1 to 0.9.2

17

index.js

@@ -18,12 +18,10 @@ /*globals require,module */

var req = https.request(params,function(res) {
res.setEncoding('utf8');
var buffer = "";
//204 is successful delete request,201 is created
if ( res.statusCode === 200 || res.statusCode === 204 || res.statusCode === 201 ) {
res.on('data', function (chunk) {
buffer += chunk;
});
} else {
reject(new Error("Error: Non OK Status Code: " + res.statusCode));
}
res.on('data', function (chunk) {
buffer += chunk;
});
res.on('error',function(err) {

@@ -34,3 +32,2 @@ reject(err);

res.on('end',function() {
if ( buffer ) {

@@ -460,3 +457,3 @@ resolve(toJSON(buffer));

DropKit.prototype.regions = function() {
return createPromise(this.createOption({ method: 'GET' , path: "/v2/regions"}));
return createPromise(this.createOption({ method: 'GET' , path: "/v2/regionsx"}));
};

@@ -463,0 +460,0 @@

{
"name": "dropkit",
"version": "0.9.1",
"version": "0.9.2",
"description": "A DigitalOcean Node.js module",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc