Comparing version 0.7.23-182 to 0.7.25-185
@@ -16,3 +16,3 @@ module.exports = initlocal; | ||
var https = require('https'); | ||
var exec = require("./utils/exec.js"); | ||
var exec = require('child_process').exec; | ||
var millicore = require("./utils/millicore.js"); | ||
@@ -169,2 +169,11 @@ var ini = require('./utils/ini'); | ||
function installFhDbLocally(cb) { | ||
exec('npm install fh-db', function(err, stdout, stderr) { | ||
log.silly("npm install fh-db stdout", stdout); | ||
log.silly("npm install fh-db stderr", stderr); | ||
if (err) return cb("Error installing fh-db locally - " + util.inspect(err) + " - " + stderr); | ||
return cb(); | ||
}); | ||
}; | ||
function doInitLocal (appId, cb) { | ||
@@ -175,21 +184,24 @@ if (!appId) return cb("No appId specified! Usage:\n" + initlocal.usage); | ||
if (err) return cb(err); | ||
createLocalDirectory(localDirectory, function (err) { | ||
if(err) return cb(err); | ||
checkApplicationJS(applicationJS, function(err) { | ||
if (err) return cb(err); | ||
common.getAppContainer(appId, function(err, data) { | ||
installFhDbLocally(function (err) { | ||
if (err) return cb(err); | ||
createLocalDirectory(localDirectory, function (err) { | ||
if(err) return cb(err); | ||
checkApplicationJS(applicationJS, function(err) { | ||
if (err) return cb(err); | ||
constructContainerFromIndex(data, function (err, outputFile, fileList) { | ||
common.getAppContainer(appId, function(err, data) { | ||
if (err) return cb(err); | ||
async.forEach(fileList, function (item, cb) { | ||
downloadContainerFile(item.origPath, item.localPath, cb); | ||
}, function (err) { | ||
if(err) return cb(err); | ||
writeFileToLocalDirectory(localDirectory, "container.html", outputFile, function (err) { | ||
if (err) return cb(err); | ||
log.info('Downloaded client App container file and ' + fileList.length + ' script files', 'Finished.'); | ||
initResponse.domain = fhc.target; | ||
writeFileToLocalDirectory(localDirectory, "initResponse.json", JSON.stringify(initResponse), function (err) { | ||
if(err) return cb(err); | ||
return cb(undefined, "Files Saved."); | ||
constructContainerFromIndex(data, function (err, outputFile, fileList) { | ||
if (err) return cb(err); | ||
async.forEach(fileList, function (item, cb) { | ||
downloadContainerFile(item.origPath, item.localPath, cb); | ||
}, function (err) { | ||
if(err) return cb(err); | ||
writeFileToLocalDirectory(localDirectory, "container.html", outputFile, function (err) { | ||
if (err) return cb(err); | ||
log.info('Downloaded client App container file and ' + fileList.length + ' script files', 'Finished.'); | ||
initResponse.domain = fhc.target; | ||
writeFileToLocalDirectory(localDirectory, "initResponse.json", JSON.stringify(initResponse), function (err) { | ||
if(err) return cb(err); | ||
return cb(undefined, "Files Saved."); | ||
}); | ||
}); | ||
@@ -196,0 +208,0 @@ }); |
@@ -5,3 +5,3 @@ { | ||
"keywords" : [ "cli", "feedhenry" ], | ||
"version": "0.7.23-182", | ||
"version": "0.7.25-185", | ||
"preferGlobal" : true, | ||
@@ -29,3 +29,3 @@ "homepage" : "http://git.io/fh-fhc", | ||
"moment": "*", | ||
"cli-table" : "git://github.com/LearnBoost/cli-table.git#703ab71" | ||
"cli-table" : "0.0.2" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies" : { |
@@ -1,1 +0,1 @@ | ||
0.7.23-182 | ||
0.7.25-185 |
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
375481
9655
0
28
+ Addedcli-table@0.0.2(transitive)
+ Addedcolors@0.3.0(transitive)
Updatedcli-table@0.0.2