fis-scaffold-kernel
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -22,3 +22,3 @@ var path = require('path'); | ||
Scaffold.prototype.download = function (id, cb, progress) { | ||
Scaffold.prototype.download = function (id, cb, progress, options) { | ||
log.notice('will download component id: ' + id); | ||
@@ -35,3 +35,3 @@ if (!id) { | ||
log.notice(type + ': download start'); | ||
request.download(id, cb, progress); | ||
request.download(id, cb, progress, options); | ||
}; | ||
@@ -38,0 +38,0 @@ |
@@ -6,3 +6,3 @@ var exports = module.exports = function (option) { | ||
exports.prototype.download = function (id, cb, progress) { | ||
exports.prototype.download = function (id, cb, progress, options) { | ||
if (!id) { | ||
@@ -18,3 +18,8 @@ cb(new Error('must given a component ID')); | ||
var url = this.repos + c[0] + this.postfix + c[1]; | ||
if (options && options.token) { | ||
url += '&private_token=' + options.token; | ||
} | ||
util.download(url,null, cb, progress); | ||
}; | ||
}; |
{ | ||
"name": "fis-scaffold-kernel", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "fis-scaffold-kernel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
27044
716