Comparing version 1.1.1 to 1.1.2
@@ -25,2 +25,3 @@ /** | ||
} | ||
return; | ||
}); | ||
@@ -41,2 +42,3 @@ }; | ||
if (data) { getPublicLink(); } | ||
return; | ||
}); | ||
@@ -48,3 +50,10 @@ }; | ||
cloudpt.shares(options, function(data) { | ||
var data = JSON.parse(data); | ||
data = data || null; | ||
try { | ||
data = JSON.parse(data); | ||
} | ||
catch(e) { | ||
console.log('Error: service returned unhandled exception'); | ||
process.exit(0); | ||
} | ||
if (data && data.url) { | ||
@@ -58,2 +67,6 @@ var outURL = data.url; | ||
} | ||
else { | ||
console.log('Error: unable to get public URL'); | ||
} | ||
return; | ||
}); | ||
@@ -60,0 +73,0 @@ }; |
@@ -45,3 +45,3 @@ /** | ||
save: saveConfig | ||
} | ||
}; | ||
}; |
@@ -34,5 +34,5 @@ module.exports = function() { | ||
console.log('\n********** CLOUDIFY OAUTH SETUP **********\n'); | ||
console.log('In your browser, log in to your CloudPT account. Then visit:') | ||
console.log(('https://cloudpt.pt/oauth/authorize?oauth_token=' + token)) | ||
console.log('After logged in, you will be prompted with a pin number\n') | ||
console.log('In your browser, log in to your CloudPT account. Then visit:'); | ||
console.log(('https://cloudpt.pt/oauth/authorize?oauth_token=' + token)); | ||
console.log('After logged in, you will be prompted with a pin number\n'); | ||
console.log('Enter the pin number here:'); | ||
@@ -58,2 +58,2 @@ var stdin = process.openStdin(); | ||
getRequestToken(oa); | ||
} | ||
}; |
@@ -17,3 +17,3 @@ { | ||
], | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"repository": { | ||
@@ -20,0 +20,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
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
12821
11
220