fixed 16 file Buffer overflow
This commit is contained in:
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user