fixed 16 file Buffer overflow

This commit is contained in:
2016-11-25 13:25:45 +01:00
parent 301a317fa0
commit 2096e27fc5
10 changed files with 46 additions and 27 deletions

View File

@ -1,12 +1,12 @@
import * as plugins from "./npmci.plugins";
import * as paths from "./npmci.paths"
import * as plugins from './npmci.plugins'
import * as paths from './npmci.paths'
/**
* cleans npmci config files
*/
export let clean = () => {
let done = plugins.q.defer();
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig);
done.resolve();
return done.promise;
};
let done = plugins.q.defer()
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig)
done.resolve()
return done.promise
}

View File

@ -1,15 +1,15 @@
import * as plugins from "./npmci.plugins";
import {bash} from "./npmci.bash";
import * as plugins from './npmci.plugins'
import {bash} from './npmci.bash'
export let command = () => {
let done = plugins.q.defer()
let wrappedCommand:string = "";
let argvArray = process.argv;
for(let i = 3; i < argvArray.length; i++){
wrappedCommand = wrappedCommand + argvArray[i];
if(i + 1 != argvArray.length) wrappedCommand = wrappedCommand + " ";
let wrappedCommand: string = ''
let argvArray = process.argv
for (let i = 3; i < argvArray.length; i++) {
wrappedCommand = wrappedCommand + argvArray[i]
if (i + 1 !== argvArray.length) { wrappedCommand = wrappedCommand + ' ' }
}
bash(wrappedCommand);
done.resolve();
bash(wrappedCommand)
done.resolve()
return done.promise
}
}