Comparing version 2.0.0 to 2.0.1
@@ -29,5 +29,4 @@ var fs = require('fs'); | ||
var headerRequest = { uri: repoTemplates+templateName+'/'+temp.files[filesDownloaded], rejectUnauthorized: false } | ||
var req = request(headerRequest) | ||
.pipe(fs.createWriteStream("."+folder+"/"+temp.files[filesDownloaded])) | ||
.on('close', function (err) { | ||
request(headerRequest, function (err, response, body) { | ||
fs.writeFileSync("."+folder+"/"+temp.files[filesDownloaded], response.data); | ||
filesDownloaded++; | ||
@@ -39,3 +38,15 @@ if(totalFiles === filesDownloaded) { | ||
} | ||
// response.data.pipe(fs.createWriteStream("."+folder+"/"+temp.files[filesDownloaded])) | ||
// .on('close', function (err) { | ||
// filesDownloaded++; | ||
// if(totalFiles === filesDownloaded) { | ||
// callback(); | ||
// } else { | ||
// download(); | ||
// } | ||
// }) | ||
}) | ||
} | ||
@@ -42,0 +53,0 @@ download(); |
{ | ||
"name": "mobileui", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "MobileUI is a simple and easy NPM package to install UI Components for web mobile apps using HTML, CSS and JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "./bin/mobileui", |
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
58531
842