Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fh-fhc

Package Overview
Dependencies
Maintainers
2
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-fhc - npm Package Compare versions

Comparing version 0.7.23-182 to 0.7.25-185

48

lib/initlocal.js

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc