Comparing version 1.1.3 to 1.2.0
@@ -97,4 +97,5 @@ /** | ||
var getDownloadLink = function(publicURL, shareID) { | ||
var cldURL = 'https://cld.pt/dl/download/', | ||
filePart = publicURL.split('/').pop(); | ||
var cldURL = 'https://cld.pt/dl/download/'; | ||
var urlParts = publicURL.split('/'); | ||
var filePart = urlParts.pop() || urlParts.pop(); | ||
return cldURL + shareID + '/' + filePart; | ||
@@ -101,0 +102,0 @@ }; |
@@ -17,3 +17,3 @@ { | ||
], | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"repository": { | ||
@@ -25,3 +25,4 @@ "type": "git", | ||
"oauth": ">= 0.9.10", | ||
"meocloud": "~0.0.2" | ||
"meocloud": "~0.0.2", | ||
"minimist": "0.0.8" | ||
}, | ||
@@ -28,0 +29,0 @@ "engines": { |
@@ -41,2 +41,11 @@ var expect = require('chai').expect, | ||
}); | ||
it('should output help and exit with error when no files are passed', function(done) { | ||
exec('./bin/cloudify --test', function(error, stdout, stderr) { | ||
expect(error).to.be.ok; | ||
expect(stdout).to.match(/^Usage\: cloudify \[options\] \<file\_to\_share\>/); | ||
expect(stderr).to.be.empty; | ||
done(); | ||
}); | ||
}); | ||
}); |
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
15190
3
253
+ Addedminimist@0.0.8
+ Addedminimist@0.0.8(transitive)