s9s-cloudlink-api
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -30,3 +30,2 @@ 'use strict'; | ||
*/ | ||
var CloudlinkApi = exports.CloudlinkApi = function () { | ||
@@ -42,3 +41,3 @@ _createClass(CloudlinkApi, null, [{ | ||
get: function get() { | ||
return ['aws', 'digitalocean']; | ||
return ['aws', 'digitalocean', 'gce']; | ||
} | ||
@@ -94,3 +93,3 @@ | ||
value: function listInstances() { | ||
var ids = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0]; | ||
var ids = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
@@ -187,3 +186,3 @@ return _CloudlinkHttp2.default.request(this.config, 'listInstances', { ids: ids }); | ||
value: function listDistributions() { | ||
var filters = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var filters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -257,4 +256,4 @@ return _CloudlinkHttp2.default.request(this.config, 'listDistributions', { | ||
value: function listVpcs() { | ||
var filters = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var ids = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1]; | ||
var filters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var ids = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
@@ -327,4 +326,4 @@ return _CloudlinkHttp2.default.request(this.config, 'listVpcs', { | ||
value: function listSubNets() { | ||
var ids = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0]; | ||
var filters = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1]; | ||
var ids = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
var filters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
@@ -331,0 +330,0 @@ return _CloudlinkHttp2.default.request(this.config, 'listSubNets', { |
@@ -19,3 +19,2 @@ "use strict"; | ||
*/ | ||
var CloudlinkApiError = function (_Error) { | ||
@@ -27,3 +26,3 @@ _inherits(CloudlinkApiError, _Error); | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(CloudlinkApiError).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, (CloudlinkApiError.__proto__ || Object.getPrototypeOf(CloudlinkApiError)).apply(this, arguments)); | ||
} | ||
@@ -30,0 +29,0 @@ |
@@ -24,3 +24,2 @@ 'use strict'; | ||
*/ | ||
var CloudlinkHttp = function () { | ||
@@ -27,0 +26,0 @@ function CloudlinkHttp() { |
@@ -10,3 +10,3 @@ { | ||
"undocumentLines": [ | ||
35 | ||
36 | ||
] | ||
@@ -13,0 +13,0 @@ }, |
{ | ||
"name": "s9s-cloudlink-api", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"main": "api.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -21,3 +21,4 @@ import CloudlinkApiError from './CloudlinkApiError'; | ||
'aws', | ||
'digitalocean' | ||
'digitalocean', | ||
'gce' | ||
]; | ||
@@ -24,0 +25,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1047877
23388