Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
eb5096482f | |||
6d56a09dd7 |
@ -56,17 +56,13 @@ trigger:
|
|||||||
- docker
|
- docker
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
image: hosttoday/ht-docker-node:npmci
|
image: hosttoday/ht-docker-node:npmpage
|
||||||
stage: pages
|
stage: pages
|
||||||
script:
|
script:
|
||||||
- npmci command yarn global add npmpage
|
- npmci command npmpage --publish gitlab
|
||||||
- npmci command npmpage
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
allow_failure: true
|
|
||||||
|
15
dist/smartshell.wrap.d.ts
vendored
15
dist/smartshell.wrap.d.ts
vendored
@ -18,24 +18,16 @@ export interface IExecResultStreaming {
|
|||||||
* executes a given command async
|
* executes a given command async
|
||||||
* @param commandStringArg
|
* @param commandStringArg
|
||||||
*/
|
*/
|
||||||
export declare let exec: (commandStringArg: string, silentArg?: boolean, strictArg?: boolean) => Promise<IExecResult>;
|
export declare let exec: (commandStringArg: string) => Promise<IExecResult>;
|
||||||
/**
|
/**
|
||||||
* executes a given command async and silent
|
* executes a given command async and silent
|
||||||
* @param commandStringArg
|
* @param commandStringArg
|
||||||
*/
|
*/
|
||||||
export declare let execSilent: (commandStringArg: string) => Promise<IExecResult>;
|
export declare let execSilent: (commandStringArg: string) => Promise<IExecResult>;
|
||||||
/**
|
|
||||||
* executes strict, meaning it rejects the promise if something happens
|
|
||||||
*/
|
|
||||||
export declare let execStrict: (commandStringArg: string) => Promise<IExecResult>;
|
|
||||||
/**
|
/**
|
||||||
* executes a command and allws you to stream output
|
* executes a command and allws you to stream output
|
||||||
*/
|
*/
|
||||||
export declare let execStreaming: (commandStringArg: string, silentArg?: boolean) => {
|
export declare let execStreaming: (commandStringArg: string) => {
|
||||||
childProcess: ChildProcess;
|
|
||||||
finalPromise: Promise<IExecResult>;
|
|
||||||
};
|
|
||||||
export declare let execStreamingSilent: (commandStringArg: string) => {
|
|
||||||
childProcess: ChildProcess;
|
childProcess: ChildProcess;
|
||||||
finalPromise: Promise<IExecResult>;
|
finalPromise: Promise<IExecResult>;
|
||||||
};
|
};
|
||||||
@ -44,8 +36,7 @@ export declare let execStreamingSilent: (commandStringArg: string) => {
|
|||||||
* @param commandStringArg
|
* @param commandStringArg
|
||||||
* @param regexArg
|
* @param regexArg
|
||||||
*/
|
*/
|
||||||
export declare let execAndWaitForLine: (commandStringArg: string, regexArg: RegExp, silentArg?: boolean) => Promise<{}>;
|
export declare let execAndWaitForLine: (commandStringArg: string, regexArg: RegExp) => Promise<{}>;
|
||||||
export declare let execAndWaitForLineSilent: (commandStringArg: string, regexArg: RegExp) => void;
|
|
||||||
/**
|
/**
|
||||||
* get a path
|
* get a path
|
||||||
*/
|
*/
|
||||||
|
68
dist/smartshell.wrap.js
vendored
68
dist/smartshell.wrap.js
vendored
@ -1,42 +1,13 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
|
||||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
||||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
||||||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
||||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
||||||
});
|
|
||||||
};
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const plugins = require("./smartshell.plugins");
|
const plugins = require("./smartshell.plugins");
|
||||||
/**
|
|
||||||
* import path
|
|
||||||
*/
|
|
||||||
let importPath = (stringArg) => {
|
|
||||||
if (process.env.SMARTSHELL_PATH) {
|
|
||||||
let commandResult = `PATH=${process.env.SMARTSHELL_PATH} && ${stringArg}`;
|
|
||||||
// console.log(commandResult)
|
|
||||||
return commandResult;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return stringArg;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* executes a given command async
|
* executes a given command async
|
||||||
* @param commandStringArg
|
* @param commandStringArg
|
||||||
*/
|
*/
|
||||||
exports.exec = (commandStringArg, silentArg = false, strictArg = false) => {
|
exports.exec = (commandStringArg) => {
|
||||||
let done = plugins.smartq.defer();
|
let done = plugins.smartq.defer();
|
||||||
plugins.shelljs.exec(importPath(commandStringArg), { async: true, silent: silentArg }, (code, stdout, stderr) => {
|
plugins.shelljs.exec(commandStringArg, { async: true }, (code, stdout, stderr) => {
|
||||||
if (stderr && (stderr !== '') && (!silentArg || strictArg)) {
|
|
||||||
console.log('StdErr found:');
|
|
||||||
console.log(stderr);
|
|
||||||
}
|
|
||||||
if (strictArg) {
|
|
||||||
done.reject(new Error(stderr));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
done.resolve({
|
done.resolve({
|
||||||
exitCode: code,
|
exitCode: code,
|
||||||
stdout: stdout
|
stdout: stdout
|
||||||
@ -48,21 +19,22 @@ exports.exec = (commandStringArg, silentArg = false, strictArg = false) => {
|
|||||||
* executes a given command async and silent
|
* executes a given command async and silent
|
||||||
* @param commandStringArg
|
* @param commandStringArg
|
||||||
*/
|
*/
|
||||||
exports.execSilent = (commandStringArg) => __awaiter(this, void 0, void 0, function* () {
|
exports.execSilent = (commandStringArg) => {
|
||||||
return yield exports.exec(commandStringArg, true);
|
let done = plugins.smartq.defer();
|
||||||
});
|
plugins.shelljs.exec(commandStringArg, { async: true, silent: true }, (code, stdout, stderr) => {
|
||||||
/**
|
done.resolve({
|
||||||
* executes strict, meaning it rejects the promise if something happens
|
exitCode: code,
|
||||||
*/
|
stdout: stdout
|
||||||
exports.execStrict = (commandStringArg) => __awaiter(this, void 0, void 0, function* () {
|
});
|
||||||
return yield exports.exec(commandStringArg, true, true);
|
});
|
||||||
});
|
return done.promise;
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* executes a command and allws you to stream output
|
* executes a command and allws you to stream output
|
||||||
*/
|
*/
|
||||||
exports.execStreaming = (commandStringArg, silentArg = false) => {
|
exports.execStreaming = (commandStringArg) => {
|
||||||
let childProcessEnded = plugins.smartq.defer();
|
let childProcessEnded = plugins.smartq.defer();
|
||||||
let execChildProcess = plugins.shelljs.exec(importPath(commandStringArg), { async: true, silent: silentArg }, (code, stdout, stderr) => {
|
let execChildProcess = plugins.shelljs.exec(commandStringArg, { async: true, silent: true }, (code, stdout, stderr) => {
|
||||||
childProcessEnded.resolve({
|
childProcessEnded.resolve({
|
||||||
exitCode: code,
|
exitCode: code,
|
||||||
stdout: stdout
|
stdout: stdout
|
||||||
@ -73,17 +45,14 @@ exports.execStreaming = (commandStringArg, silentArg = false) => {
|
|||||||
finalPromise: childProcessEnded.promise
|
finalPromise: childProcessEnded.promise
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.execStreamingSilent = (commandStringArg) => {
|
|
||||||
return exports.execStreaming(commandStringArg, true);
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* executes a command and returns promise that will be fullfilled once an putput line matches RegexArg
|
* executes a command and returns promise that will be fullfilled once an putput line matches RegexArg
|
||||||
* @param commandStringArg
|
* @param commandStringArg
|
||||||
* @param regexArg
|
* @param regexArg
|
||||||
*/
|
*/
|
||||||
exports.execAndWaitForLine = (commandStringArg, regexArg, silentArg = false) => {
|
exports.execAndWaitForLine = (commandStringArg, regexArg) => {
|
||||||
let done = plugins.smartq.defer();
|
let done = plugins.smartq.defer();
|
||||||
let execStreamingResult = exports.execStreaming(commandStringArg, silentArg);
|
let execStreamingResult = exports.execStreaming(commandStringArg);
|
||||||
execStreamingResult.childProcess.stdout.on('data', (stdOutChunk) => {
|
execStreamingResult.childProcess.stdout.on('data', (stdOutChunk) => {
|
||||||
if (regexArg.test(stdOutChunk)) {
|
if (regexArg.test(stdOutChunk)) {
|
||||||
done.resolve();
|
done.resolve();
|
||||||
@ -91,9 +60,6 @@ exports.execAndWaitForLine = (commandStringArg, regexArg, silentArg = false) =>
|
|||||||
});
|
});
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
exports.execAndWaitForLineSilent = (commandStringArg, regexArg) => {
|
|
||||||
exports.execAndWaitForLine(commandStringArg, regexArg, true);
|
|
||||||
};
|
|
||||||
/**
|
/**
|
||||||
* get a path
|
* get a path
|
||||||
*/
|
*/
|
||||||
@ -107,4 +73,4 @@ exports.which = (cmd) => {
|
|||||||
});
|
});
|
||||||
return done.promise;
|
return done.promise;
|
||||||
};
|
};
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRzaGVsbC53cmFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRzaGVsbC53cmFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxnREFBK0M7QUFzQi9DOztHQUVHO0FBQ0gsSUFBSSxVQUFVLEdBQUcsQ0FBQyxTQUFTO0lBQ3pCLEVBQUUsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQztRQUNoQyxJQUFJLGFBQWEsR0FBRyxRQUFRLE9BQU8sQ0FBQyxHQUFHLENBQUMsZUFBZSxPQUFPLFNBQVMsRUFBRSxDQUFBO1FBQ3pFLDZCQUE2QjtRQUM3QixNQUFNLENBQUMsYUFBYSxDQUFBO0lBQ3RCLENBQUM7SUFBQyxJQUFJLENBQUMsQ0FBQztRQUNOLE1BQU0sQ0FBQyxTQUFTLENBQUE7SUFDbEIsQ0FBQztBQUNILENBQUMsQ0FBQTtBQUVEOzs7R0FHRztB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RyxPQUFPLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxDQUFBO0lBQ2pDLElBQUksbUJBQW1CLEdBQUcscUJBQWEsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0lBQ3pELG1CQUFtQixDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLE1BQU0sRUFBRSxDQUFDLFdBQW1CO1FBQ3JFLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQy9CLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQTtRQUNoQixDQUFDO0lBQ0gsQ0FBQyxDQUFDLENBQUE7SUFDRixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUNyQixDQUFDLENBQUE7QUFFRDs7R0FFRztBQUNRLFFBQUEsS0FBSyxHQUFHLENBQUMsR0FBVztJQUM3QixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLEtBQUssRUFBRSxDQUFBO0lBQ2pDLE9BQU8sQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLENBQUMsR0FBRyxFQUFFLElBQVk7UUFDbkMsRUFBRSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztZQUNSLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUE7UUFDbEIsQ0FBQztRQUNELElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUE7SUFDcEIsQ0FBQyxDQUFDLENBQUE7SUFDRixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUNyQixDQUFDLENBQUEifQ==
|
@ -1,12 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "smartshell",
|
"name": "smartshell",
|
||||||
"version": "1.0.13",
|
"version": "1.0.7",
|
||||||
"description": "shell actions designed as promises",
|
"description": "shell actions designed as promises",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts)",
|
"test": "(npmts --notest && ts-node --compilerOptions '{\"target\":\"es6\"}' test/test.ts)"
|
||||||
"testLocal": "(ts-node --compilerOptions '{\"target\":\"es6\"}' test/test.ts)"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -23,13 +22,13 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/pushrocks/smartshell#README",
|
"homepage": "https://gitlab.com/pushrocks/smartshell#README",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tapbundle": "^1.1.1"
|
"tapbundle": "^1.0.14"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/shelljs": "^0.7.2",
|
"@types/shelljs": "^0.7.2",
|
||||||
"@types/which": "^1.0.28",
|
"@types/which": "^1.0.28",
|
||||||
"shelljs": "^0.7.8",
|
"shelljs": "^0.7.8",
|
||||||
"smartq": "^1.1.6",
|
"smartq": "^1.1.1",
|
||||||
"typings-global": "^1.0.19",
|
"typings-global": "^1.0.19",
|
||||||
"which": "^1.2.14"
|
"which": "^1.2.14"
|
||||||
}
|
}
|
||||||
|
@ -22,12 +22,12 @@ tap.test('smartshell should stream a shell execution', async () => {
|
|||||||
done.resolve(data)
|
done.resolve(data)
|
||||||
})
|
})
|
||||||
let data = await done.promise
|
let data = await done.promise
|
||||||
expect(data).to.match(/[0-9\.]*/)
|
expect(data).to.equal('5.0.3\n')
|
||||||
await execStreamingResponse.finalPromise
|
await execStreamingResponse.finalPromise
|
||||||
})
|
})
|
||||||
|
|
||||||
tap.test('it should execute and wait for a line in the output', async () => {
|
tap.test('it should execute and wait for a line in the output', async () => {
|
||||||
await smartshell.execAndWaitForLine('echo "5.0.4"', /5.0.4/)
|
await smartshell.execAndWaitForLine('npm -v', /5.0.3/)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Smartshell class
|
// Smartshell class
|
||||||
@ -46,6 +46,4 @@ tap.test('smartshell should run async', async () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
tap.start({
|
tap.start()
|
||||||
throwOnError: true
|
|
||||||
})
|
|
||||||
|
@ -20,34 +20,13 @@ export interface IExecResultStreaming {
|
|||||||
finalPromise: Promise<IExecResult>
|
finalPromise: Promise<IExecResult>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* import path
|
|
||||||
*/
|
|
||||||
let importPath = (stringArg): string => {
|
|
||||||
if (process.env.SMARTSHELL_PATH) {
|
|
||||||
let commandResult = `PATH=${process.env.SMARTSHELL_PATH} && ${stringArg}`
|
|
||||||
// console.log(commandResult)
|
|
||||||
return commandResult
|
|
||||||
} else {
|
|
||||||
return stringArg
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* executes a given command async
|
* executes a given command async
|
||||||
* @param commandStringArg
|
* @param commandStringArg
|
||||||
*/
|
*/
|
||||||
export let exec = (commandStringArg: string, silentArg: boolean = false, strictArg = false): Promise<IExecResult> => {
|
export let exec = (commandStringArg: string): Promise<IExecResult> => {
|
||||||
let done = plugins.smartq.defer<IExecResult>()
|
let done = plugins.smartq.defer<IExecResult>()
|
||||||
plugins.shelljs.exec(importPath(commandStringArg), { async: true, silent: silentArg }, (code, stdout, stderr) => {
|
plugins.shelljs.exec(commandStringArg, { async: true }, (code, stdout, stderr) => {
|
||||||
if (stderr && (stderr !== '') && (!silentArg || strictArg)) {
|
|
||||||
console.log('StdErr found:')
|
|
||||||
console.log(stderr)
|
|
||||||
}
|
|
||||||
if (strictArg) {
|
|
||||||
done.reject(new Error(stderr))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
done.resolve({
|
done.resolve({
|
||||||
exitCode: code,
|
exitCode: code,
|
||||||
stdout: stdout
|
stdout: stdout
|
||||||
@ -60,23 +39,23 @@ export let exec = (commandStringArg: string, silentArg: boolean = false, strictA
|
|||||||
* executes a given command async and silent
|
* executes a given command async and silent
|
||||||
* @param commandStringArg
|
* @param commandStringArg
|
||||||
*/
|
*/
|
||||||
export let execSilent = async (commandStringArg: string): Promise<IExecResult> => {
|
export let execSilent = (commandStringArg: string) => {
|
||||||
return await exec(commandStringArg, true)
|
let done = plugins.smartq.defer<IExecResult>()
|
||||||
}
|
plugins.shelljs.exec(commandStringArg, { async: true, silent: true }, (code, stdout, stderr) => {
|
||||||
|
done.resolve({
|
||||||
/**
|
exitCode: code,
|
||||||
* executes strict, meaning it rejects the promise if something happens
|
stdout: stdout
|
||||||
*/
|
})
|
||||||
export let execStrict = async (commandStringArg: string): Promise<IExecResult> => {
|
})
|
||||||
return await exec(commandStringArg, true, true)
|
return done.promise
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* executes a command and allws you to stream output
|
* executes a command and allws you to stream output
|
||||||
*/
|
*/
|
||||||
export let execStreaming = (commandStringArg: string, silentArg: boolean = false) => {
|
export let execStreaming = (commandStringArg: string) => {
|
||||||
let childProcessEnded = plugins.smartq.defer<IExecResult>()
|
let childProcessEnded = plugins.smartq.defer<IExecResult>()
|
||||||
let execChildProcess = plugins.shelljs.exec(importPath(commandStringArg), {async: true, silent: silentArg}, (code, stdout, stderr) => {
|
let execChildProcess = plugins.shelljs.exec(commandStringArg, {async: true, silent: true}, (code, stdout, stderr) => {
|
||||||
childProcessEnded.resolve({
|
childProcessEnded.resolve({
|
||||||
exitCode: code,
|
exitCode: code,
|
||||||
stdout: stdout
|
stdout: stdout
|
||||||
@ -88,18 +67,14 @@ export let execStreaming = (commandStringArg: string, silentArg: boolean = false
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export let execStreamingSilent = (commandStringArg: string) => {
|
|
||||||
return execStreaming(commandStringArg, true)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* executes a command and returns promise that will be fullfilled once an putput line matches RegexArg
|
* executes a command and returns promise that will be fullfilled once an putput line matches RegexArg
|
||||||
* @param commandStringArg
|
* @param commandStringArg
|
||||||
* @param regexArg
|
* @param regexArg
|
||||||
*/
|
*/
|
||||||
export let execAndWaitForLine = (commandStringArg: string, regexArg: RegExp, silentArg: boolean = false) => {
|
export let execAndWaitForLine = (commandStringArg: string, regexArg: RegExp) => {
|
||||||
let done = plugins.smartq.defer()
|
let done = plugins.smartq.defer()
|
||||||
let execStreamingResult = execStreaming(commandStringArg, silentArg)
|
let execStreamingResult = execStreaming(commandStringArg)
|
||||||
execStreamingResult.childProcess.stdout.on('data', (stdOutChunk: string) => {
|
execStreamingResult.childProcess.stdout.on('data', (stdOutChunk: string) => {
|
||||||
if (regexArg.test(stdOutChunk)) {
|
if (regexArg.test(stdOutChunk)) {
|
||||||
done.resolve()
|
done.resolve()
|
||||||
@ -108,15 +83,11 @@ export let execAndWaitForLine = (commandStringArg: string, regexArg: RegExp, sil
|
|||||||
return done.promise
|
return done.promise
|
||||||
}
|
}
|
||||||
|
|
||||||
export let execAndWaitForLineSilent = (commandStringArg: string, regexArg: RegExp) => {
|
|
||||||
execAndWaitForLine(commandStringArg, regexArg, true)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get a path
|
* get a path
|
||||||
*/
|
*/
|
||||||
export let which = (cmd: string): Promise<string> => {
|
export let which = (cmd: string): Promise<string> => {
|
||||||
let done = plugins.smartq.defer<string>()
|
let done = plugins.smartq.defer()
|
||||||
plugins.which(cmd, (err, path: string) => {
|
plugins.which(cmd, (err, path: string) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
done.reject(err)
|
done.reject(err)
|
||||||
|
129
yarn.lock
129
yarn.lock
@ -15,22 +15,24 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@types/chai" "*"
|
"@types/chai" "*"
|
||||||
|
|
||||||
"@types/chai@*":
|
"@types/chai@*", "@types/chai@^3.4.35":
|
||||||
version "4.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.0.1.tgz#37fea779617cfec3fd2b19a0247e8bbdd5133bf6"
|
|
||||||
|
|
||||||
"@types/chai@^3.4.35":
|
|
||||||
version "3.5.2"
|
version "3.5.2"
|
||||||
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-3.5.2.tgz#c11cd2817d3a401b7ba0f5a420f35c56139b1c1e"
|
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-3.5.2.tgz#c11cd2817d3a401b7ba0f5a420f35c56139b1c1e"
|
||||||
|
|
||||||
"@types/node@*":
|
"@types/node@*":
|
||||||
version "8.0.13"
|
version "8.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.13.tgz#530f0f9254209b0335bf5cc6387822594ef47093"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.1.tgz#89c271e0c3b9ebb6a3756dd601336970b6228b77"
|
||||||
|
|
||||||
"@types/promises-a-plus@*":
|
"@types/promises-a-plus@*":
|
||||||
version "0.0.27"
|
version "0.0.27"
|
||||||
resolved "https://registry.yarnpkg.com/@types/promises-a-plus/-/promises-a-plus-0.0.27.tgz#c64651134614c84b8f5d7114ce8901d36a609780"
|
resolved "https://registry.yarnpkg.com/@types/promises-a-plus/-/promises-a-plus-0.0.27.tgz#c64651134614c84b8f5d7114ce8901d36a609780"
|
||||||
|
|
||||||
|
"@types/shelljs@^0.6.0":
|
||||||
|
version "0.6.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.6.0.tgz#090b705c102ce7fc5c0c5ea9b524418ff15840df"
|
||||||
|
dependencies:
|
||||||
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/shelljs@^0.7.2":
|
"@types/shelljs@^0.7.2":
|
||||||
version "0.7.2"
|
version "0.7.2"
|
||||||
resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.2.tgz#c2bdb3fe80cd7a3da08750ca898ae44c589671f3"
|
resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.2.tgz#c2bdb3fe80cd7a3da08750ca898ae44c589671f3"
|
||||||
@ -103,13 +105,6 @@ deep-eql@^0.1.3:
|
|||||||
dependencies:
|
dependencies:
|
||||||
type-detect "0.1.1"
|
type-detect "0.1.1"
|
||||||
|
|
||||||
define-properties@^1.1.2:
|
|
||||||
version "1.1.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94"
|
|
||||||
dependencies:
|
|
||||||
foreach "^2.0.5"
|
|
||||||
object-keys "^1.0.8"
|
|
||||||
|
|
||||||
early@^2.1.1:
|
early@^2.1.1:
|
||||||
version "2.1.1"
|
version "2.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/early/-/early-2.1.1.tgz#841e23254ea5dc54d8afaeee82f5ab65c00ee23c"
|
resolved "https://registry.yarnpkg.com/early/-/early-2.1.1.tgz#841e23254ea5dc54d8afaeee82f5ab65c00ee23c"
|
||||||
@ -118,39 +113,14 @@ early@^2.1.1:
|
|||||||
smartq "^1.1.1"
|
smartq "^1.1.1"
|
||||||
typings-global "^1.0.16"
|
typings-global "^1.0.16"
|
||||||
|
|
||||||
es-abstract@^1.5.1:
|
|
||||||
version "1.7.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.7.0.tgz#dfade774e01bfcd97f96180298c449c8623fb94c"
|
|
||||||
dependencies:
|
|
||||||
es-to-primitive "^1.1.1"
|
|
||||||
function-bind "^1.1.0"
|
|
||||||
is-callable "^1.1.3"
|
|
||||||
is-regex "^1.0.3"
|
|
||||||
|
|
||||||
es-to-primitive@^1.1.1:
|
|
||||||
version "1.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d"
|
|
||||||
dependencies:
|
|
||||||
is-callable "^1.1.1"
|
|
||||||
is-date-object "^1.0.1"
|
|
||||||
is-symbol "^1.0.1"
|
|
||||||
|
|
||||||
es6-error@^4.0.2:
|
es6-error@^4.0.2:
|
||||||
version "4.0.2"
|
version "4.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.0.2.tgz#eec5c726eacef51b7f6b73c20db6e1b13b069c98"
|
resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.0.2.tgz#eec5c726eacef51b7f6b73c20db6e1b13b069c98"
|
||||||
|
|
||||||
foreach@^2.0.5:
|
|
||||||
version "2.0.5"
|
|
||||||
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
|
|
||||||
|
|
||||||
fs.realpath@^1.0.0:
|
fs.realpath@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
|
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
|
||||||
|
|
||||||
function-bind@^1.0.2, function-bind@^1.1.0:
|
|
||||||
version "1.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771"
|
|
||||||
|
|
||||||
glob@^7.0.0:
|
glob@^7.0.0:
|
||||||
version "7.1.2"
|
version "7.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
|
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
|
||||||
@ -162,12 +132,6 @@ glob@^7.0.0:
|
|||||||
once "^1.3.0"
|
once "^1.3.0"
|
||||||
path-is-absolute "^1.0.0"
|
path-is-absolute "^1.0.0"
|
||||||
|
|
||||||
has@^1.0.1:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28"
|
|
||||||
dependencies:
|
|
||||||
function-bind "^1.0.2"
|
|
||||||
|
|
||||||
inflight@^1.0.4:
|
inflight@^1.0.4:
|
||||||
version "1.0.6"
|
version "1.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
|
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
|
||||||
@ -183,24 +147,6 @@ interpret@^1.0.0:
|
|||||||
version "1.0.3"
|
version "1.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90"
|
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90"
|
||||||
|
|
||||||
is-callable@^1.1.1, is-callable@^1.1.3:
|
|
||||||
version "1.1.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
|
|
||||||
|
|
||||||
is-date-object@^1.0.1:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16"
|
|
||||||
|
|
||||||
is-regex@^1.0.3:
|
|
||||||
version "1.0.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491"
|
|
||||||
dependencies:
|
|
||||||
has "^1.0.1"
|
|
||||||
|
|
||||||
is-symbol@^1.0.1:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572"
|
|
||||||
|
|
||||||
isexe@^2.0.0:
|
isexe@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
|
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
|
||||||
@ -240,17 +186,6 @@ nan@^2.3.2:
|
|||||||
version "2.6.2"
|
version "2.6.2"
|
||||||
resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45"
|
resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45"
|
||||||
|
|
||||||
object-keys@^1.0.8:
|
|
||||||
version "1.0.11"
|
|
||||||
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
|
|
||||||
|
|
||||||
object.getownpropertydescriptors@^2.0.3:
|
|
||||||
version "2.0.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16"
|
|
||||||
dependencies:
|
|
||||||
define-properties "^1.1.2"
|
|
||||||
es-abstract "^1.5.1"
|
|
||||||
|
|
||||||
once@^1.3.0:
|
once@^1.3.0:
|
||||||
version "1.4.0"
|
version "1.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
|
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
|
||||||
@ -285,7 +220,7 @@ semver@^5.3.0:
|
|||||||
version "5.3.0"
|
version "5.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
|
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"
|
||||||
|
|
||||||
shelljs@^0.7.8:
|
shelljs@^0.7.6, shelljs@^0.7.8:
|
||||||
version "0.7.8"
|
version "0.7.8"
|
||||||
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
|
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -311,34 +246,33 @@ smartdelay@^1.0.3:
|
|||||||
smartq "^1.1.1"
|
smartq "^1.1.1"
|
||||||
typings-global "^1.0.16"
|
typings-global "^1.0.16"
|
||||||
|
|
||||||
smartq@^1.1.1, smartq@^1.1.6:
|
smartq@^1.1.0, smartq@^1.1.1:
|
||||||
version "1.1.6"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/smartq/-/smartq-1.1.6.tgz#0c1ff4336d95e95b4f1fdd8ccd7e2c5a323b8412"
|
resolved "https://registry.yarnpkg.com/smartq/-/smartq-1.1.1.tgz#efb358705260d41ae18aef7ffd815f7b6fe17dd3"
|
||||||
dependencies:
|
dependencies:
|
||||||
typings-global "^1.0.19"
|
typed-promisify "^0.3.0"
|
||||||
util.promisify "^1.0.0"
|
typings-global "^1.0.14"
|
||||||
|
|
||||||
smartshell@^1.0.6:
|
smartshell@^1.0.6:
|
||||||
version "1.0.8"
|
version "1.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/smartshell/-/smartshell-1.0.8.tgz#1535756c0fe8069f7e6da1e3f9cb6c8f77094e42"
|
resolved "https://registry.yarnpkg.com/smartshell/-/smartshell-1.0.6.tgz#27b1c79029784abe72ac7e91fe698b7ebecc6629"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/shelljs" "^0.7.2"
|
"@types/shelljs" "^0.6.0"
|
||||||
"@types/which" "^1.0.28"
|
"@types/which" "^1.0.28"
|
||||||
shelljs "^0.7.8"
|
shelljs "^0.7.6"
|
||||||
smartq "^1.1.1"
|
smartq "^1.1.0"
|
||||||
typings-global "^1.0.19"
|
which "^1.2.12"
|
||||||
which "^1.2.14"
|
|
||||||
|
|
||||||
tapbundle@^1.1.1:
|
tapbundle@^1.0.14:
|
||||||
version "1.1.1"
|
version "1.0.14"
|
||||||
resolved "https://registry.yarnpkg.com/tapbundle/-/tapbundle-1.1.1.tgz#ec4172c0e82a77b1f6133fef2606311ede28a62d"
|
resolved "https://registry.yarnpkg.com/tapbundle/-/tapbundle-1.0.14.tgz#75827e335fcb02216f0267a26a26d702ddc02e3c"
|
||||||
dependencies:
|
dependencies:
|
||||||
early "^2.1.1"
|
early "^2.1.1"
|
||||||
leakage "^0.3.0"
|
leakage "^0.3.0"
|
||||||
smartchai "^1.0.3"
|
smartchai "^1.0.3"
|
||||||
smartdelay "^1.0.3"
|
smartdelay "^1.0.3"
|
||||||
smartq "^1.1.1"
|
smartq "^1.1.1"
|
||||||
typings-global "^1.0.19"
|
typings-global "^1.0.16"
|
||||||
|
|
||||||
type-detect@0.1.1:
|
type-detect@0.1.1:
|
||||||
version "0.1.1"
|
version "0.1.1"
|
||||||
@ -348,6 +282,10 @@ type-detect@^1.0.0:
|
|||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2"
|
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2"
|
||||||
|
|
||||||
|
typed-promisify@^0.3.0:
|
||||||
|
version "0.3.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/typed-promisify/-/typed-promisify-0.3.0.tgz#1ba0af5e444c87d8047406f18ce49092a1191853"
|
||||||
|
|
||||||
typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.19:
|
typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.19:
|
||||||
version "1.0.19"
|
version "1.0.19"
|
||||||
resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.19.tgz#3376a72d4de1e5541bf5702248ff64c3e6ea316c"
|
resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.19.tgz#3376a72d4de1e5541bf5702248ff64c3e6ea316c"
|
||||||
@ -355,14 +293,7 @@ typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.19:
|
|||||||
semver "^5.3.0"
|
semver "^5.3.0"
|
||||||
smartshell "^1.0.6"
|
smartshell "^1.0.6"
|
||||||
|
|
||||||
util.promisify@^1.0.0:
|
which@^1.2.12, which@^1.2.14:
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030"
|
|
||||||
dependencies:
|
|
||||||
define-properties "^1.1.2"
|
|
||||||
object.getownpropertydescriptors "^2.0.3"
|
|
||||||
|
|
||||||
which@^1.2.14:
|
|
||||||
version "1.2.14"
|
version "1.2.14"
|
||||||
resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5"
|
resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
Reference in New Issue
Block a user