0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

unimplemented functions now throw

This commit is contained in:
Alex Kocharin 2013-09-25 13:18:38 +04:00
parent 4791d0e707
commit e01d30adb9

View file

@ -37,6 +37,18 @@ Storage.prototype.can_fetch_url = function(url) {
&& url.path.indexOf(this.url.path) === 0
}
Storage.prototype.add_package = function(name, metadata, callback) {
throw new Error('unimplemented');
}
Storage.prototype.add_version = function(name, version, metadata, tag, callback) {
throw new Error('unimplemented');
}
Storage.prototype.add_tarball = function(name, filename) {
throw new Error('unimplemented');
}
Storage.prototype.get_package = function(name, callback) {
request({
url: this.config.url + '/' + name,