From 46c9df32d8a09cb264b8f6525d0b8598ced3b9f3 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 8 Sep 2017 14:58:44 +0200 Subject: [PATCH] update git module --- dist/mod_git/index.js | 14 ++++++++- dist/npmci.cli.js | 12 +++++++- dist/npmci.env.d.ts | 5 ++++ dist/npmci.env.js | 8 +++++- dist/npmci.monitor.d.ts | 4 +-- dist/npmci.monitor.js | 25 +++++++--------- dist/npmci.plugins.d.ts | 1 - dist/npmci.plugins.js | 3 +- package.json | 3 +- test/assets/package.json | 33 ++++++++++++++++++++++ ts/mod_git/index.ts | 13 ++++++++- ts/npmci.cli.ts | 12 ++++++++ ts/npmci.env.ts | 6 ++++ ts/npmci.monitor.ts | 26 ++++++++--------- ts/npmci.plugins.ts | 1 - yarn.lock | 61 +++++++--------------------------------- 16 files changed, 134 insertions(+), 93 deletions(-) create mode 100644 test/assets/package.json diff --git a/dist/mod_git/index.js b/dist/mod_git/index.js index 7a8ff91..d61c362 100644 --- a/dist/mod_git/index.js +++ b/dist/mod_git/index.js @@ -9,6 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", { value: true }); const plugins = require("./mod.plugins"); +const npmci_bash_1 = require("../npmci.bash"); +const npmci_env_1 = require("../npmci.env"); /** * handle cli input * @param argvArg @@ -29,5 +31,15 @@ exports.handleCli = (argvArg) => __awaiter(this, void 0, void 0, function* () { } }); exports.mirror = () => __awaiter(this, void 0, void 0, function* () { + let githubToken = process.env.NPMCI_GIT_GITHUBTOKEN; + let githubUser = process.env.NPMCI_GIT_GITHUBGROUP || npmci_env_1.repo.user; + let githubRepo = process.env.NPMCI_GIT_GITHUB || npmci_env_1.repo.repo; + if (githubToken) { + plugins.beautylog.info('found github token.'); + plugins.beautylog.log('attempting the mirror the repository to GitHub'); + // add the mirror + npmci_bash_1.bash(`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`); + npmci_bash_1.bash(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VcsQ0FBQyxDQUFDLENBQUM7UUFDaEIsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMscUJBQXFCLENBQUMsQ0FBQTtRQUM3QyxPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxnREFBZ0QsQ0FBQyxDQUFBO1FBQ3ZFLGlCQUFpQjtRQUNqQixpQkFBSSxDQUFDLGlDQUFpQyxXQUFXLGVBQWUsVUFBVSxJQUFJLFVBQVUsTUFBTSxDQUFDLENBQUE7UUFDL0YsaUJBQUksQ0FBQyxpQkFBaUIsQ0FBQyxDQUFBO0lBQ3pCLENBQUM7QUFDSCxDQUFDLENBQUEsQ0FBQSJ9 \ No newline at end of file diff --git a/dist/npmci.cli.js b/dist/npmci.cli.js index 76d0865..a3fac20 100644 --- a/dist/npmci.cli.js +++ b/dist/npmci.cli.js @@ -10,6 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); const plugins = require("./npmci.plugins"); const paths = require("./npmci.paths"); +// Get Info about npmci itself let npmciInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot); plugins.beautylog.log('npmci version: ' + npmciInfo.version); const npmciMods = require("./npmci.mods"); @@ -41,6 +42,15 @@ smartcli.addCommand('command') console.log(err); process.exit(1); }); +// command +smartcli.addCommand('git') + .then((argvArg) => __awaiter(this, void 0, void 0, function* () { + let modGit = yield npmciMods.modGit.load(); + yield modGit.handleCli(argvArg); +})).catch(err => { + console.log(err); + process.exit(1); +}); // build smartcli.addCommand('docker') .then((argvArg) => __awaiter(this, void 0, void 0, function* () { @@ -85,4 +95,4 @@ smartcli.addCommand('trigger') process.exit(1); }); smartcli.startParse(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuY2xpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuY2xpLnR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FBTSxTQUFTLENBQUMsTUFBTSxDQUFDLElBQUksRUFBRSxDQUFBO0lBQzFDLE1BQU0sTUFBTSxDQUFDLFNBQVMsQ0FBQyxPQUFPLENBQUMsQ0FBQTtBQUNqQyxDQUFDLENBQUEsQ0FBQyxDQUFDLEtBQUssQ0FBQyxHQUFHO0lBQ1YsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQTtJQUNoQixPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFBO0FBQ2pCLENBQUMsQ0FBQyxDQUFBO0FBRUosVUFBVTtBQUNWLFFBQVEsQ0FBQyxVQUFVLENBQUMsU0FBUyxDQUFDO0tBQzNCLElBQUksQ0FBQyxDQUFPLElBQUk7SUFDZixJQUFJLFVBQVUsR0FBRyxNQUFNLFNBQVMsQ0FBQyxVQUFVLENBQUMsSUFBSSxFQUFFLENBQUE7SUFDbEQsTUFBTSxVQUFVLENBQUMsT0FBTyxFQUFFLENBQUE7QUFDNUIsQ0FBQyxDQUFBLENBQUMsQ0FBQyxLQUFLLENBQUMsR0FBRztJQUNWLE9BQU8sQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUE7SUFDaEIsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQTtBQUNqQixDQUFDLENBQUMsQ0FBQTtBQUVKLFFBQVEsQ0FBQyxVQUFVLEVBQUUsQ0FBQSJ9 \ No newline at end of file diff --git a/dist/npmci.env.d.ts b/dist/npmci.env.d.ts index da29dd8..7604c0c 100644 --- a/dist/npmci.env.d.ts +++ b/dist/npmci.env.d.ts @@ -1,5 +1,10 @@ import { GitRepo } from 'smartstring'; +import { ProjectInfo } from 'projectinfo'; /** * a info instance about the git respoitory at cwd :) */ export declare let repo: GitRepo; +/** + * Info about the project at cwd + */ +export declare let cwdProjectInfo: ProjectInfo; diff --git a/dist/npmci.env.js b/dist/npmci.env.js index 1bc4f6b..bcf8551 100644 --- a/dist/npmci.env.js +++ b/dist/npmci.env.js @@ -1,7 +1,13 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +const paths = require("./npmci.paths"); const smartstring_1 = require("smartstring"); +const projectinfo_1 = require("projectinfo"); if (process.env.CI_REPOSITORY_URL) { exports.repo = new smartstring_1.GitRepo(process.env.CI_REPOSITORY_URL); } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuZW52LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuZW52LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsNkNBQXFDO0FBT3JDLEVBQUUsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsaUJBQWlCLENBQUMsQ0FBQyxDQUFDO0lBQ2xDLFlBQUksR0FBRyxJQUFJLHFCQUFPLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFBO0FBQ25ELENBQUMifQ== \ No newline at end of file +/** + * Info about the project at cwd + */ +exports.cwdProjectInfo = new projectinfo_1.ProjectInfo(paths.cwd); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kuZW52LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtY2kuZW52LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsdUNBQXNDO0FBQ3RDLDZDQUFxQztBQUNyQyw2Q0FBeUM7QUFPekMsRUFBRSxDQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDLENBQUM7SUFDbEMsWUFBSSxHQUFHLElBQUkscUJBQU8sQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLGlCQUFpQixDQUFDLENBQUE7QUFDbkQsQ0FBQztBQUVEOztHQUVHO0FBQ1EsUUFBQSxjQUFjLEdBQUcsSUFBSSx5QkFBVyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQSJ9 \ No newline at end of file diff --git a/dist/npmci.monitor.d.ts b/dist/npmci.monitor.d.ts index 323e6b2..c0f0129 100644 --- a/dist/npmci.monitor.d.ts +++ b/dist/npmci.monitor.d.ts @@ -1,2 +1,2 @@ -import { Smartmonitor } from 'smartmonitor'; -export declare let npmciMonitor: Smartmonitor; +import { Analytics } from 'smartanalytics'; +export declare let npmciAnalytics: Analytics; diff --git a/dist/npmci.monitor.js b/dist/npmci.monitor.js index 59bec27..90d3f67 100644 --- a/dist/npmci.monitor.js +++ b/dist/npmci.monitor.js @@ -1,18 +1,13 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const plugins = require("./npmci.plugins"); -const smartmonitor_1 = require("smartmonitor"); -exports.npmciMonitor = new smartmonitor_1.Smartmonitor(); -let monitorEnvString = process.env.NPMCI_MONITOR; -if (monitorEnvString) { - let npmciMonitorKeys = monitorEnvString.split('|'); - exports.npmciMonitor.addInstrumental({ - apiKey: process.env.NPMCI_MONITOR - }); - plugins.beautylog.info('Monitoring activated'); -} -else { - plugins.beautylog.warn('Monitoring could not be enabled due to missing API-KEY'); -} -exports.npmciMonitor.increment('lossless-ci.builds', 1); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kubW9uaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLm1vbml0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMEM7QUFHMUMsK0NBQTJDO0FBRWhDLFFBQUEsWUFBWSxHQUFHLElBQUksMkJBQVksRUFBRSxDQUFBO0FBRTVDLElBQUksZ0JBQWdCLEdBQVcsT0FBTyxDQUFDLEdBQUcsQ0FBQyxhQUFhLENBQUE7QUFFeEQsRUFBRSxDQUFDLENBQUMsZ0JBQWdCLENBQUMsQ0FBQyxDQUFDO0lBQ3JCLElBQUksZ0JBQWdCLEdBQWEsZ0JBQWdCLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFBO0lBQzVELG9CQUFZLENBQUMsZUFBZSxDQUFDO1FBQzNCLE1BQU0sRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWE7S0FDbEMsQ0FBQyxDQUFBO0lBQ0YsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsc0JBQXNCLENBQUMsQ0FBQTtBQUNoRCxDQUFDO0FBQUMsSUFBSSxDQUFDLENBQUM7SUFDTixPQUFPLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyx3REFBd0QsQ0FBQyxDQUFBO0FBQ2xGLENBQUM7QUFFRCxvQkFBWSxDQUFDLFNBQVMsQ0FBQyxvQkFBb0IsRUFBRSxDQUFDLENBQUMsQ0FBQSJ9 \ No newline at end of file +const smartanalytics_1 = require("smartanalytics"); +exports.npmciAnalytics = new smartanalytics_1.Analytics({ + apiEndPoint: 'https://pubapi-1.lossless.one/analytics', + projectId: 'gitzone', + appName: 'npmci' +}); +exports.npmciAnalytics.recordEvent('npmToolExecution', {}).catch(err => { + plugins.beautylog.warn('Lossless Analytics API not available...'); +}); +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kubW9uaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLm1vbml0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBMEM7QUFHMUMsbURBQTBDO0FBRS9CLFFBQUEsY0FBYyxHQUFHLElBQUksMEJBQVMsQ0FBQztJQUN4QyxXQUFXLEVBQUUseUNBQXlDO0lBQ3RELFNBQVMsRUFBRSxTQUFTO0lBQ3BCLE9BQU8sRUFBRSxPQUFPO0NBQ2pCLENBQUMsQ0FBQTtBQUVGLHNCQUFjLENBQUMsV0FBVyxDQUFDLGtCQUFrQixFQUFFLEVBRTlDLENBQUMsQ0FBQyxLQUFLLENBQUMsR0FBRztJQUNWLE9BQU8sQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLHlDQUF5QyxDQUFDLENBQUE7QUFDbkUsQ0FBQyxDQUFDLENBQUEifQ== \ No newline at end of file diff --git a/dist/npmci.plugins.d.ts b/dist/npmci.plugins.d.ts index a9600dd..7f71742 100644 --- a/dist/npmci.plugins.d.ts +++ b/dist/npmci.plugins.d.ts @@ -12,7 +12,6 @@ export import smartcli = require('smartcli'); export import smartdelay = require('smartdelay'); export import smartfile = require('smartfile'); export import shelljs = require('shelljs'); -export import smartmonitor = require('smartmonitor'); export import smartparam = require('smartparam'); export import smartq = require('smartq'); export import smartshell = require('smartshell'); diff --git a/dist/npmci.plugins.js b/dist/npmci.plugins.js index 14848ea..8fe7234 100644 --- a/dist/npmci.plugins.js +++ b/dist/npmci.plugins.js @@ -14,7 +14,6 @@ exports.smartcli = require("smartcli"); exports.smartdelay = require("smartdelay"); exports.smartfile = require("smartfile"); exports.shelljs = require("shelljs"); -exports.smartmonitor = require("smartmonitor"); exports.smartparam = require("smartparam"); exports.smartq = require("smartq"); exports.smartshell = require("smartshell"); @@ -23,4 +22,4 @@ exports.smartsystem = require("smartsystem"); exports.smartssh = require("smartssh"); exports.smartstring = require("smartstring"); exports.through2 = require("through2"); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtY2kucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWNpLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwwQkFBdUI7QUFDdkIseUNBQThDO0FBQ25DLFFBQUEsSUFBSSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQ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tBQUNsRCx1Q0FBNEMifQ== \ No newline at end of file diff --git a/package.json b/package.json index 4461ab3..a32a822 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ }, "dependencies": { "@types/lodash": "^4.14.74", - "@types/node": "^8.0.25", "@types/shelljs": "^0.7.4", "@types/through2": "^2.0.33", "beautylog": "^6.1.10", @@ -39,10 +38,10 @@ "projectinfo": "^3.0.2", "request": "^2.81.0", "shelljs": "^0.7.8", + "smartanalytics": "^2.0.8", "smartcli": "^2.0.7", "smartdelay": "^1.0.3", "smartfile": "^4.2.20", - "smartmonitor": "^1.0.3", "smartparam": "^1.0.2", "smartq": "^1.1.6", "smartshell": "^1.0.13", diff --git a/test/assets/package.json b/test/assets/package.json new file mode 100644 index 0000000..7786640 --- /dev/null +++ b/test/assets/package.json @@ -0,0 +1,33 @@ +{ + "name": "sandbox-npmts", + "version": "1.0.1", + "description": "a cool test repo for npmts", + "main": "dist/index.js", + "typings": "dist/index.d.ts", + "directories": { + "test": "test" + }, + "scripts": { + "test": "(npmts)", + "testDev": "node ../../pushrocks/npmts/dist/index.js" + }, + "repository": { + "type": "git", + "url": "git+ssh://git@gitlab.com/sandboxzone/sandbox-npmts.git" + }, + "author": "Lossless GmbH", + "license": "MIT", + "bugs": { + "url": "https://gitlab.com/sandboxzone/sandbox-npmts/issues" + }, + "homepage": "https://gitlab.com/sandboxzone/sandbox-npmts#README", + "dependencies": { + "smartchai": "^1.0.3", + "smartci": "^1.0.2", + "smartq": "^1.1.6" + }, + "devDependencies": { + "qenv": "^1.1.7", + "tapbundle": "^1.1.1" + } +} diff --git a/ts/mod_git/index.ts b/ts/mod_git/index.ts index 4208d08..fb48ca0 100644 --- a/ts/mod_git/index.ts +++ b/ts/mod_git/index.ts @@ -1,4 +1,6 @@ import * as plugins from './mod.plugins' +import { bash } from '../npmci.bash' +import { repo } from '../npmci.env' /** * handle cli input @@ -20,5 +22,14 @@ export let handleCli = async (argvArg) => { } export let mirror = async () => { - + let githubToken = process.env.NPMCI_GIT_GITHUBTOKEN + let githubUser = process.env.NPMCI_GIT_GITHUBGROUP || repo.user + let githubRepo = process.env.NPMCI_GIT_GITHUB || repo.repo + if (githubToken) { + plugins.beautylog.info('found github token.') + plugins.beautylog.log('attempting the mirror the repository to GitHub') + // add the mirror + bash(`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`) + bash(`git push mirror`) + } } diff --git a/ts/npmci.cli.ts b/ts/npmci.cli.ts index c23d7ee..7503e70 100644 --- a/ts/npmci.cli.ts +++ b/ts/npmci.cli.ts @@ -1,5 +1,7 @@ import * as plugins from './npmci.plugins' import * as paths from './npmci.paths' + +// Get Info about npmci itself let npmciInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot) plugins.beautylog.log('npmci version: ' + npmciInfo.version) @@ -39,6 +41,16 @@ smartcli.addCommand('command') process.exit(1) }) +// command +smartcli.addCommand('git') +.then(async (argvArg) => { + let modGit = await npmciMods.modGit.load() + await modGit.handleCli(argvArg) +}).catch(err => { + console.log(err) + process.exit(1) +}) + // build smartcli.addCommand('docker') .then(async argvArg => { diff --git a/ts/npmci.env.ts b/ts/npmci.env.ts index 6ba8be8..2fb7e20 100644 --- a/ts/npmci.env.ts +++ b/ts/npmci.env.ts @@ -1,6 +1,7 @@ import * as plugins from './npmci.plugins' import * as paths from './npmci.paths' import { GitRepo } from 'smartstring' +import { ProjectInfo } from 'projectinfo' import { Dockerfile } from './mod_docker/index' /** @@ -10,3 +11,8 @@ export let repo: GitRepo if (process.env.CI_REPOSITORY_URL) { repo = new GitRepo(process.env.CI_REPOSITORY_URL) } + +/** + * Info about the project at cwd + */ +export let cwdProjectInfo = new ProjectInfo(paths.cwd) diff --git a/ts/npmci.monitor.ts b/ts/npmci.monitor.ts index f45d968..0a6db67 100644 --- a/ts/npmci.monitor.ts +++ b/ts/npmci.monitor.ts @@ -1,20 +1,16 @@ import * as plugins from './npmci.plugins' import * as env from './npmci.env' -import { Smartmonitor } from 'smartmonitor' +import { Analytics } from 'smartanalytics' -export let npmciMonitor = new Smartmonitor() +export let npmciAnalytics = new Analytics({ + apiEndPoint: 'https://pubapi-1.lossless.one/analytics', + projectId: 'gitzone', + appName: 'npmci' +}) -let monitorEnvString: string = process.env.NPMCI_MONITOR - -if (monitorEnvString) { - let npmciMonitorKeys: string[] = monitorEnvString.split('|') - npmciMonitor.addInstrumental({ - apiKey: process.env.NPMCI_MONITOR - }) - plugins.beautylog.info('Monitoring activated') -} else { - plugins.beautylog.warn('Monitoring could not be enabled due to missing API-KEY') -} - -npmciMonitor.increment('lossless-ci.builds', 1) +npmciAnalytics.recordEvent('npmToolExecution', { + +}).catch(err => { + plugins.beautylog.warn('Lossless Analytics API not available...') +}) \ No newline at end of file diff --git a/ts/npmci.plugins.ts b/ts/npmci.plugins.ts index b5e1916..c977520 100644 --- a/ts/npmci.plugins.ts +++ b/ts/npmci.plugins.ts @@ -12,7 +12,6 @@ export import smartcli = require('smartcli') export import smartdelay = require('smartdelay') export import smartfile = require('smartfile') export import shelljs = require('shelljs') -export import smartmonitor = require('smartmonitor') export import smartparam = require('smartparam') export import smartq = require('smartq') export import smartshell = require('smartshell') diff --git a/yarn.lock b/yarn.lock index d7e3ca4..0015466 100644 --- a/yarn.lock +++ b/yarn.lock @@ -68,7 +68,7 @@ version "2.0.29" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-2.0.29.tgz#5002e14f75e2d71e564281df0431c8c1b4a2a36a" -"@types/node@*", "@types/node@^8.0.10", "@types/node@^8.0.25": +"@types/node@*", "@types/node@^8.0.10": version "8.0.25" resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.25.tgz#66ecaf4df93f5281b48427ee96fbcdfc4f0cdce1" @@ -92,12 +92,6 @@ version "1.0.5" resolved "https://registry.yarnpkg.com/@types/q/-/q-1.0.5.tgz#02b9d43a1a8e7503d15ed2fecb15ebb18c519b1d" -"@types/raven@^1.2.1": - version "1.2.4" - resolved "https://registry.yarnpkg.com/@types/raven/-/raven-1.2.4.tgz#7ddd500fd93b128abe194911b05ba3404f1e2fb8" - dependencies: - "@types/node" "*" - "@types/shelljs@^0.7.2", "@types/shelljs@^0.7.4": version "0.7.4" resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.4.tgz#137b5f31306eaff4de120ffe5b9d74b297809cfc" @@ -1426,7 +1420,7 @@ json-stable-stringify@^1.0.1: dependencies: jsonify "~0.0.0" -json-stringify-safe@5.0.1, json-stringify-safe@~5.0.1: +json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" @@ -1661,10 +1655,6 @@ lru-queue@0.1: dependencies: es5-ext "~0.10.2" -lsmod@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/lsmod/-/lsmod-1.0.0.tgz#9a00f76dca36eb23fa05350afe1b585d4299e64b" - map-cache@^0.2.0: version "0.2.2" resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" @@ -2105,17 +2095,6 @@ randomatic@^1.1.3: is-number "^3.0.0" kind-of "^4.0.0" -raven@^2.0.0: - version "2.1.2" - resolved "https://registry.yarnpkg.com/raven/-/raven-2.1.2.tgz#4aa7a72c4b3061d7fde06bfc62d669a74a651e27" - dependencies: - cookie "0.3.1" - json-stringify-safe "5.0.1" - lsmod "1.0.0" - stack-trace "0.0.9" - timed-out "4.0.1" - uuid "3.0.0" - read-pkg-up@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" @@ -2320,6 +2299,14 @@ signal-exit@^3.0.0, signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" +smartanalytics@^2.0.8: + version "2.0.8" + resolved "https://registry.yarnpkg.com/smartanalytics/-/smartanalytics-2.0.8.tgz#aaa08a3dacb1702955e00bfb315e7ed6b8470230" + dependencies: + smartq "^1.1.1" + smartrequest "^1.0.4" + typings-global "^1.0.14" + smartchai@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/smartchai/-/smartchai-1.0.3.tgz#de6d010bb8b5aef24cb70b31a5f5334e8c41b72f" @@ -2408,22 +2395,6 @@ smartlodash@^1.0.1: "@types/node" "^8.0.10" lodash "^4.17.4" -smartmental@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/smartmental/-/smartmental-1.0.4.tgz#104c470c550364fb00a1c4a333123d9970c8acb2" - dependencies: - typings-global "^1.0.16" - -smartmonitor@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/smartmonitor/-/smartmonitor-1.0.3.tgz#287a52f0bc02fa995d816d6a04b5b5808386024b" - dependencies: - "@types/raven" "^1.2.1" - beautylog "^6.1.10" - raven "^2.0.0" - smartmental "^1.0.3" - typings-global "^1.0.16" - smartparam@0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/smartparam/-/smartparam-0.1.1.tgz#51c526bf38b0965007b21edd3e96c7e179c93591" @@ -2611,10 +2582,6 @@ sshpk@^1.7.0: jsbn "~0.1.0" tweetnacl "~0.14.0" -stack-trace@0.0.9: - version "0.0.9" - resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.9.tgz#a8f6eaeca90674c333e7c43953f275b451510695" - stream-consume@~0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/stream-consume/-/stream-consume-0.1.0.tgz#a41ead1a6d6081ceb79f65b061901b6d8f3d1d0f" @@ -2756,10 +2723,6 @@ time-stamp@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3" -timed-out@4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" - timers-ext@0.1: version "0.1.2" resolved "https://registry.yarnpkg.com/timers-ext/-/timers-ext-0.1.2.tgz#61cc47a76c1abd3195f14527f978d58ae94c5204" @@ -2837,10 +2800,6 @@ util.promisify@^1.0.0: define-properties "^1.1.2" object.getownpropertydescriptors "^2.0.3" -uuid@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.0.tgz#6728fc0459c450d796a99c31837569bdf672d728" - uuid@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04"