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:
parent
4791d0e707
commit
e01d30adb9
1 changed files with 12 additions and 0 deletions
|
@ -37,6 +37,18 @@ Storage.prototype.can_fetch_url = function(url) {
|
||||||
&& url.path.indexOf(this.url.path) === 0
|
&& 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) {
|
Storage.prototype.get_package = function(name, callback) {
|
||||||
request({
|
request({
|
||||||
url: this.config.url + '/' + name,
|
url: this.config.url + '/' + name,
|
||||||
|
|
Loading…
Add table
Reference in a new issue