fixed 16 file Buffer overflow
This commit is contained in:
parent
301a317fa0
commit
2096e27fc5
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
coverage/
|
coverage/
|
||||||
pages/
|
pages/
|
||||||
|
public/
|
||||||
config.json
|
config.json
|
2
dist/npmci.clean.d.ts
vendored
2
dist/npmci.clean.d.ts
vendored
@ -1,5 +1,5 @@
|
|||||||
/// <reference types="q" />
|
/// <reference types="q" />
|
||||||
import * as plugins from "./npmci.plugins";
|
import * as plugins from './npmci.plugins';
|
||||||
/**
|
/**
|
||||||
* cleans npmci config files
|
* cleans npmci config files
|
||||||
*/
|
*/
|
||||||
|
2
dist/npmci.clean.js
vendored
2
dist/npmci.clean.js
vendored
@ -10,4 +10,4 @@ exports.clean = () => {
|
|||||||
done.resolve();
|
done.resolve();
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY2xlYW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1jaS5jbGVhbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkNBQTJDO0FBQzNDLHVDQUFzQztBQUV0Qzs7R0FFRztBQUNRLFFBQUEsS0FBSyxHQUFHO0lBQ2YsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixPQUFPLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLGtCQUFrQixDQUFDLENBQUM7SUFDMUQsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ2YsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFDIn0=
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY2xlYW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9ucG1jaS5jbGVhbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkNBQTBDO0FBQzFDLHVDQUFzQztBQUV0Qzs7R0FFRztBQUNRLFFBQUEsS0FBSyxHQUFHO0lBQ2YsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUM1QixPQUFPLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUFDLGtCQUFrQixDQUFDLENBQUE7SUFDekQsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFBO0lBQ2QsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUE7QUFDdkIsQ0FBQyxDQUFBIn0=
|
2
dist/npmci.command.d.ts
vendored
2
dist/npmci.command.d.ts
vendored
@ -1,3 +1,3 @@
|
|||||||
/// <reference types="q" />
|
/// <reference types="q" />
|
||||||
import * as plugins from "./npmci.plugins";
|
import * as plugins from './npmci.plugins';
|
||||||
export declare let command: () => plugins.q.Promise<{}>;
|
export declare let command: () => plugins.q.Promise<{}>;
|
||||||
|
9
dist/npmci.command.js
vendored
9
dist/npmci.command.js
vendored
@ -3,15 +3,16 @@ const plugins = require("./npmci.plugins");
|
|||||||
const npmci_bash_1 = require("./npmci.bash");
|
const npmci_bash_1 = require("./npmci.bash");
|
||||||
exports.command = () => {
|
exports.command = () => {
|
||||||
let done = plugins.q.defer();
|
let done = plugins.q.defer();
|
||||||
let wrappedCommand = "";
|
let wrappedCommand = '';
|
||||||
let argvArray = process.argv;
|
let argvArray = process.argv;
|
||||||
for (let i = 3; i < argvArray.length; i++) {
|
for (let i = 3; i < argvArray.length; i++) {
|
||||||
wrappedCommand = wrappedCommand + argvArray[i];
|
wrappedCommand = wrappedCommand + argvArray[i];
|
||||||
if (i + 1 != argvArray.length)
|
if (i + 1 !== argvArray.length) {
|
||||||
wrappedCommand = wrappedCommand + " ";
|
wrappedCommand = wrappedCommand + ' ';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
npmci_bash_1.bash(wrappedCommand);
|
npmci_bash_1.bash(wrappedCommand);
|
||||||
done.resolve();
|
done.resolve();
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLmNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJDQUEyQztBQUMzQyw2Q0FBa0M7QUFFdkIsUUFBQSxPQUFPLEdBQUc7SUFDakIsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUM1QixJQUFJLGNBQWMsR0FBVSxFQUFFLENBQUM7SUFDL0IsSUFBSSxTQUFTLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztJQUM3QixHQUFHLENBQUEsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxHQUFHLFNBQVMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxFQUFFLEVBQUMsQ0FBQztRQUN0QyxjQUFjLEdBQUcsY0FBYyxHQUFHLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUMvQyxFQUFFLENBQUEsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLFNBQVMsQ0FBQyxNQUFNLENBQUM7WUFBQyxjQUFjLEdBQUcsY0FBYyxHQUFHLEdBQUcsQ0FBQztJQUN4RSxDQUFDO0lBQ0QsaUJBQUksQ0FBQyxjQUFjLENBQUMsQ0FBQztJQU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SJ9
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"npmts":{
|
"npmts":{
|
||||||
"mode":"default"
|
"mode":"default",
|
||||||
|
"coverageTreshold": "70"
|
||||||
},
|
},
|
||||||
"npmdocker":{
|
"npmdocker":{
|
||||||
"baseImage":"hosttoday/ht-docker-node:npmts"
|
"baseImage":"hosttoday/ht-docker-node:npmts"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts) && (npm run testVersion)",
|
"test": "(npmts) && (npm run testVersion)",
|
||||||
"testVersion": "node dist/index.js -v"
|
"testVersion": "(cd test/assets/ && node ../../dist/index.js -v)"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -22,6 +22,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/pushrocks/npmci#README",
|
"homepage": "https://gitlab.com/pushrocks/npmci#README",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/should": "^8.1.30",
|
||||||
"npmts-g": "^5.2.8",
|
"npmts-g": "^5.2.8",
|
||||||
"should": "^11.1.1",
|
"should": "^11.1.1",
|
||||||
"typings-test": "^1.0.3"
|
"typings-test": "^1.0.3"
|
||||||
|
17
test/test.js
17
test/test.js
@ -1,6 +1,21 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
require("typings-test");
|
require("typings-test");
|
||||||
const should = require("should");
|
const should = require("should");
|
||||||
|
const path = require("path");
|
||||||
|
// set up environment
|
||||||
|
process.env.CI_BUILD_REPO = 'https://yyyyyy:xxxxxxxx@gitlab.com/mygroup/myrepo.git';
|
||||||
|
process.env.NPMCI_SSHKEY_1 = 'hostString|somePrivKey|##';
|
||||||
|
process.env.NPMTS_TEST = 'true';
|
||||||
|
process.cwd = () => {
|
||||||
|
return path.join(__dirname, 'assets/');
|
||||||
|
};
|
||||||
|
const NpmciBuildDocker = require("../dist/npmci.build.docker");
|
||||||
|
const NpmciPublish = require("../dist/npmci.publish");
|
||||||
|
const NpmciTest = require("../dist/npmci.test");
|
||||||
|
const NpmciSsh = require("../dist/npmci.ssh");
|
||||||
|
let dockerfile1;
|
||||||
|
let dockerfile2;
|
||||||
|
let sortableArray;
|
||||||
describe('NPMCI', function () {
|
describe('NPMCI', function () {
|
||||||
describe('build.docker', function () {
|
describe('build.docker', function () {
|
||||||
it('should return valid Dockerfiles', function () {
|
it('should return valid Dockerfiles', function () {
|
||||||
@ -70,4 +85,4 @@ describe('NPMCI', function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFxQjtBQUNyQixpQ0FBZ0M7QUFLaEMsUUFBUSxDQUFDLE9BQU8sRUFBQztJQUNiLFFBQVEsQ0FBQyxjQUFjLEVBQUM7UUFDcEIsRUFBRSxDQUFDLGlDQUFpQyxFQUFDO1lBQ2pDLFdBQVcsR0FBRyxJQUFJLGdCQUFnQixDQUFDLFVBQVUsQ0FBQyxFQUFDLFFBQVEsRUFBRSxjQUFjLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBQyxDQUFDLENBQUE7WUFDckYsV0FBVyxHQUFHLElBQUksZ0JBQWdCLENBQUMsVUFBVSxDQUFDLEVBQUMsUUFBUSxFQUFFLHVCQUF1QixFQUFFLElBQUksRUFBRSxJQUFJLEVBQUMsQ0FBQyxDQUFBO1lBQzlGLE1BQU0sQ0FBQyxXQUFXLENBQUMsT0FBTyxDQUFDLENBQUMsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFBO1lBQzNDLE1BQU0sQ0FBQyxXQUFXLENBQUMsT0FBTyxDQUFDLENBQUMsS0FB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MsSUFBSSxDQUFDLFFBQVEsQ0FBQztpQkFDbkIsSUFBSSxDQUFDO2dCQUNGLElBQUksRUFBRSxDQUFBO1lBQ1YsQ0FBQyxDQUFDLENBQUE7UUFDVixDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQyxDQUFBO0lBRUYsUUFBUSxDQUFDLG1CQUFtQixFQUFDO1FBQ3pCLEVBQUUsQ0FBQyx5QkFBeUIsRUFBQyxVQUFTLElBQUk7WUFDdEMsUUFBUSxDQUFDLEdBQUcsRUFBRTtpQkFDVCxJQUFJLENBQUM7Z0JBQ0YsSUFBSSxFQUFFLENBQUE7WUFDVixDQUFDLENBQUMsQ0FBQTtRQUNWLENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQyxDQUFDLENBQUE7QUFDTixDQUFDLENBQUMsQ0FBQSJ9
|
@ -1,12 +1,12 @@
|
|||||||
import * as plugins from "./npmci.plugins";
|
import * as plugins from './npmci.plugins'
|
||||||
import * as paths from "./npmci.paths"
|
import * as paths from './npmci.paths'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cleans npmci config files
|
* cleans npmci config files
|
||||||
*/
|
*/
|
||||||
export let clean = () => {
|
export let clean = () => {
|
||||||
let done = plugins.q.defer();
|
let done = plugins.q.defer()
|
||||||
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig);
|
plugins.smartfile.fs.removeSync(paths.NpmciPackageConfig)
|
||||||
done.resolve();
|
done.resolve()
|
||||||
return done.promise;
|
return done.promise
|
||||||
};
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
import * as plugins from "./npmci.plugins";
|
import * as plugins from './npmci.plugins'
|
||||||
import {bash} from "./npmci.bash";
|
import {bash} from './npmci.bash'
|
||||||
|
|
||||||
export let command = () => {
|
export let command = () => {
|
||||||
let done = plugins.q.defer()
|
let done = plugins.q.defer()
|
||||||
let wrappedCommand:string = "";
|
let wrappedCommand: string = ''
|
||||||
let argvArray = process.argv;
|
let argvArray = process.argv
|
||||||
for(let i = 3; i < argvArray.length; i++){
|
for (let i = 3; i < argvArray.length; i++) {
|
||||||
wrappedCommand = wrappedCommand + argvArray[i];
|
wrappedCommand = wrappedCommand + argvArray[i]
|
||||||
if(i + 1 != argvArray.length) wrappedCommand = wrappedCommand + " ";
|
if (i + 1 !== argvArray.length) { wrappedCommand = wrappedCommand + ' ' }
|
||||||
}
|
}
|
||||||
bash(wrappedCommand);
|
bash(wrappedCommand)
|
||||||
done.resolve();
|
done.resolve()
|
||||||
return done.promise
|
return done.promise
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user