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

do-wrapper-browser

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

do-wrapper-browser - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

122

lib/do-wrapper.js

@@ -109,4 +109,4 @@ /*

DigitalOcean.prototype.dropletsGetAll = function(callback) {
this._get('droplets/', function(err, body) {
callback(err, body);
this._get('droplets/', function(err, body, response) {
callback(err, body, response);
});

@@ -122,4 +122,4 @@ };

var url = 'droplets/' + dropletID + '/kernels';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -135,4 +135,4 @@ };

var url = 'droplets/' + dropletID + '/snapshots';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -148,4 +148,4 @@ };

var url = 'droplets/' + dropletID + '/backups';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -161,4 +161,4 @@ };

var url = "droplets/" + dropletID + '/actions';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -183,4 +183,4 @@ };

this._post(url, options, function(err, body) {
callback(err, body);
this._post(url, options, function(err, body, response) {
callback(err, body, response);
});

@@ -196,4 +196,4 @@ };

var url = 'droplets/' + dropletID;
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -209,4 +209,4 @@ };

var url = 'droplets/' + dropletID;
this._delete(url, function(err, body) {
callback(err, body);
this._delete(url, function(err, body, response) {
callback(err, body, response);
});

@@ -226,3 +226,3 @@ };

this._post(url, action, function(err, body) {
this._post(url, action, function(err, body, response) {
callback(err, body.action);

@@ -239,4 +239,4 @@ });

var url = 'droplets/' + dropletID + '/actions/' + actionID;
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -252,4 +252,4 @@ };

var url = 'domains/';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -266,4 +266,4 @@ };

options = {"name": domain, "ip_address": ip};
this._post(url, options, function(err, body) {
callback(err, body);
this._post(url, options, function(err, body, response) {
callback(err, body, response);
});

@@ -279,4 +279,4 @@ };

var url = 'domains/' + domain;
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -292,4 +292,4 @@ }

var url = 'domains/' + domain;
this._delete(url, function(err, body) {
callback(err, body);
this._delete(url, function(err, body, response) {
callback(err, body, response);
});

@@ -305,4 +305,4 @@ };

var url = 'domains/' + domain + '/records';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -322,4 +322,4 @@ };

this._post(url, body, function(err, body) {
callback(err, body);
this._post(url, body, function(err, body, response) {
callback(err, body, response);
});

@@ -335,4 +335,4 @@ };

var url = 'domains/' + domain + '/records/' + recordID;
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -348,4 +348,4 @@ };

var url = 'domains/' + domain + '/records/' + recordID;
this._delete(url, function(err, body) {
callback(err, body);
this._delete(url, function(err, body, response) {
callback(err, body, response);
});

@@ -361,4 +361,4 @@ };

var url = 'regions/';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -374,4 +374,4 @@ };

var url = 'sizes/';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -387,4 +387,4 @@ };

var url = 'account/keys/';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -401,4 +401,4 @@ };

body = {"name": name, "public_key": key};
this._post(url, body, function(err, body) {
callback(err, body);
this._post(url, body, function(err, body, response) {
callback(err, body, response);
});

@@ -414,4 +414,4 @@ };

var url = 'account/keys/' + keyID;
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -428,4 +428,4 @@ };

body = {"name": name};
this._post(url, body, function(err, body) {
callback(err, body);
this._post(url, body, function(err, body, response) {
callback(err, body, response);
});

@@ -441,4 +441,4 @@ };

var url = 'account/keys/' + keyID;
this._delete(url, function(err, body) {
callback(err, body);
this._delete(url, function(err, body, response) {
callback(err, body, response);
});

@@ -454,4 +454,4 @@ };

var url = 'images/';
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -467,4 +467,4 @@ };

var url = 'images/' + imageID;
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -480,4 +480,4 @@ };

var url = 'images/' + imageSlug;
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});

@@ -493,4 +493,4 @@ };

var url = 'images/' + imageID;
this._delete(url, function(err, body) {
callback(err, body);
this._delete(url, function(err, body, response) {
callback(err, body, response);
});

@@ -507,4 +507,4 @@ };

body = {"type": "transfer", "region": region};
this._post(url, body, function(err, body) {
callback(err, body);
this._post(url, body, function(err, body, response) {
callback(err, body, response);
});

@@ -520,5 +520,5 @@ };

var url = 'images/' + imageID + '/action/' + actionID;
this._get(url, function(err, body) {
callback(err, body);
this._get(url, function(err, body, response) {
callback(err, body, response);
});
};
{
"name": "do-wrapper-browser",
"version": "0.1.1",
"version": "0.1.2",
"description": "Node.js Wrapper for Digital Ocean API v2 for the browser",

@@ -5,0 +5,0 @@ "author": "Matt Major",

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