diff --git a/dist/index.js b/dist/index.js index 5816e8f..ad94c6d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); var taskbuffer_classes_task_1 = require("./taskbuffer.classes.task"); exports.Task = taskbuffer_classes_task_1.Task; var taskbuffer_classes_taskchain_1 = require("./taskbuffer.classes.taskchain"); @@ -9,4 +10,4 @@ var taskbuffer_classes_taskspace_1 = require("./taskbuffer.classes.taskspace"); exports.Taskspace = taskbuffer_classes_taskspace_1.Taskspace; // import for naming only require("./taskbuffer.classes.helpers"); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUVBQTZEO0FBQXJELHlDQUFBLElBQUksQ0FBQTtBQUNaLCtFQUF5RDtBQUFqRCxtREFBQSxTQUFTLENBQUE7QUFDakIscUZBQStEO0FBQXZELHlEQUFBLFlBQVksQ0FBQTtBQUNwQiwrRUFBeUQ7QUFBakQsbURBQUEsU0FBUyxDQUFBO0FBRWpCLHlCQUF5QjtBQUN6Qix3Q0FBcUMifQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHFFQUE2RDtBQUFyRCx5Q0FBQSxJQUFJLENBQUE7QUFDWiwrRUFBeUQ7QUFBakQsbURBQUEsU0FBUyxDQUFBO0FBQ2pCLHFGQUErRDtBQUF2RCx5REFBQSxZQUFZLENBQUE7QUFDcEIsK0VBQXlEO0FBQWpELG1EQUFBLFNBQVMsQ0FBQTtBQUVqQix5QkFBeUI7QUFDekIsd0NBQXFDIn0= \ No newline at end of file diff --git a/dist/taskbuffer.classes.helpers.js b/dist/taskbuffer.classes.helpers.js index da34727..91e7bbf 100644 --- a/dist/taskbuffer.classes.helpers.js +++ b/dist/taskbuffer.classes.helpers.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const plugins = require("./taskbuffer.plugins"); const taskbuffer_classes_task_1 = require("./taskbuffer.classes.task"); exports.emptyTaskFunction = function (x) { @@ -148,4 +149,4 @@ class BufferRunner { } exports.BufferRunner = BufferRunner; ; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFza2J1ZmZlci5jbGFzc2VzLmhlbHBlcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy90YXNrYnVmZmVyLmNsYXNzZXMuaGVscGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsZ0RBQWlEO0FBQ2pELHVFQUErRDtBQUVwRCxRQUFBLGlCQUFpQixHQUFrQixVQUFVLENBQUM7SUFDdkQsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUM1QixJQUFJLENBQUMsT0FBTyxFQUFFLENBQUE7SUFDZCxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUNyQixDQUFDLENBQUE7QUFFVSxRQUFBLE1BQU0sR0FBRyxVQUFVLE9BQWE7SUFDekMsRUFBRSxDQUFDLENBQ0QsT0FBTyxZQUFZLDhCQUFJO1dBQ3BCLE9BQU8sT0FBTyxDQUFDLFlBQVksS0FBSyxVQUNyQyxDQUFDLENBQUMsQ0FBQztRQUNELE1BQU0sQ0FBQyxJQUFJLENBQUE7SUFDYixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDTixNQUFNLENBQUMsS0FBSyxDQUFBO0lBQ2QsQ0FBQztBQUNILENBQUMsQ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BQUksYUFBYSxHQUFpQixJQUFJLENBQUMsSUFBSSxDQUFDLFlBQVksQ0FBQyxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsYUFBYSxHQUFHLENBQUMsQ0FBQyxDQUFBO1FBQ25HLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUM7WUFDbEIsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUNkLENBQUM7UUFDRCxNQUFNLENBQUMsYUFBYSxDQUFBO0lBQ3RCLENBQUM7SUFBQSxDQUFDO0NBQ0g7QUF4Q0Qsb0NBd0NDO0FBQUEsQ0FBQyJ9 \ No newline at end of file diff --git a/dist/taskbuffer.classes.task.js b/dist/taskbuffer.classes.task.js index e84e9a6..ff9e39d 100644 --- a/dist/taskbuffer.classes.task.js +++ b/dist/taskbuffer.classes.task.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const plugins = require("./taskbuffer.plugins"); const helpers = require("./taskbuffer.classes.helpers"); class Task { @@ -56,4 +57,4 @@ class Task { } } exports.Task = Task; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFza2J1ZmZlci5jbGFzc2VzLnRhc2suanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy90YXNrYnVmZmVyLmNsYXNzZXMudGFzay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsZ0RBQStDO0FBQy9DLHdEQUF1RDtBQU12RDtJQWNFLFlBQVksVUFPWDtRQWRELHdCQUF3QjtRQUN4QixZQUFPLEdBQVksS0FBSyxDQUFBO1FBQ3hCLGlCQUFZLEdBQUcsSUFBSSxPQUFPLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxDQUFBO1FBQzdDLGlCQUFZLEdBQUcsSUFBSSxPQUFPLENBQUMsWUFBWSxDQUFDLEl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UMsSUFBSSxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUE7SUFDeEMsQ0FBQztJQUVEOztPQUVHO0lBQ0gsZUFBZSxDQUFDLENBQUU7UUFDaEIsTUFBTSxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFBO0lBQ3JDLENBQUM7SUFFRCxJQUFJLEtBQUs7UUFDUCxNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQTtJQUNwQixDQUFDO0lBQ0QsSUFBSSxLQUFLLENBQUMsUUFBZ0I7UUFDeEIsRUFBRSxDQUFDLENBQUMsUUFBUSxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUM7WUFDMUIsSUFBSSxDQUFDLE1BQU0sR0FBRyxRQUFRLENBQUE7UUFDeEIsQ0FBQztRQUFDLElBQUksQ0FBQyxDQUFDO1lBQ04sT0FBTyxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsYUFBYSxHQUFHLFFBQVEsR0FBRyxtQkFBbUIsQ0FBQyxDQUFBO1FBQ3pFLENBQUM7SUFDSCxDQUFDO0NBQ0Y7QUFwRUQsb0JBb0VDIn0= \ No newline at end of file diff --git a/dist/taskbuffer.classes.taskchain.js b/dist/taskbuffer.classes.taskchain.js index bab7409..6fb6813 100644 --- a/dist/taskbuffer.classes.taskchain.js +++ b/dist/taskbuffer.classes.taskchain.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const plugins = require("./taskbuffer.plugins"); const taskbuffer_classes_task_1 = require("./taskbuffer.classes.task"); class Taskchain extends taskbuffer_classes_task_1.Task { @@ -50,4 +51,4 @@ class Taskchain extends taskbuffer_classes_task_1.Task { ; } exports.Taskchain = Taskchain; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFza2J1ZmZlci5jbGFzc2VzLnRhc2tjaGFpbi5qc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UFDO1FBQUEsQ0FBQztJQUNKLENBQUM7SUFDRCxPQUFPLENBQUMsT0FBYTtRQUNuQixJQUFJLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQTtJQUM5QixDQUFDO0lBQUEsQ0FBQztJQUNGLFVBQVUsQ0FBQyxPQUFhO1FBQ3RCLE9BQU87SUFDVCxDQUFDO0lBQUEsQ0FBQztJQUNGLFNBQVM7SUFFVCxDQUFDO0lBQUEsQ0FBQztDQUNIO0FBdkRELDhCQXVEQyJ9 \ No newline at end of file diff --git a/dist/taskbuffer.classes.taskmanager.js b/dist/taskbuffer.classes.taskmanager.js index 0c41e73..c80e1c6 100644 --- a/dist/taskbuffer.classes.taskmanager.js +++ b/dist/taskbuffer.classes.taskmanager.js @@ -1,2 +1,3 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFza2J1ZmZlci5jbGFzc2VzLnRhc2ttYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvdGFza2J1ZmZlci5jbGFzc2VzLnRhc2ttYW5hZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ== \ No newline at end of file diff --git a/dist/taskbuffer.classes.taskparallel.js b/dist/taskbuffer.classes.taskparallel.js index 6c3846b..17dc84f 100644 --- a/dist/taskbuffer.classes.taskparallel.js +++ b/dist/taskbuffer.classes.taskparallel.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); const plugins = require("./taskbuffer.plugins"); const taskbuffer_classes_task_1 = require("./taskbuffer.classes.task"); class Taskparallel extends taskbuffer_classes_task_1.Task { @@ -20,4 +21,4 @@ class Taskparallel extends taskbuffer_classes_task_1.Task { } } exports.Taskparallel = Taskparallel; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJma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.classes.taskspace.js b/dist/taskbuffer.classes.taskspace.js index bc4b195..ab23850 100644 --- a/dist/taskbuffer.classes.taskspace.js +++ b/dist/taskbuffer.classes.taskspace.js @@ -1,5 +1,6 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); class Taskspace { } exports.Taskspace = Taskspace; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFza2J1ZmZlci5jbGFzc2VzLnRhc2tzcGFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3Rhc2tidWZmZXIuY2xhc3Nlcy50YXNrc3BhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUdBO0NBRUM7QUFGRCw4QkFFQyJ9 \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFza2J1ZmZlci5jbGFzc2VzLnRhc2tzcGFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3Rhc2tidWZmZXIuY2xhc3Nlcy50YXNrc3BhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFHQTtDQUVDO0FBRkQsOEJBRUMifQ== \ No newline at end of file diff --git a/dist/taskbuffer.plugins.js b/dist/taskbuffer.plugins.js index 0a55050..e86e79b 100644 --- a/dist/taskbuffer.plugins.js +++ b/dist/taskbuffer.plugins.js @@ -1,4 +1,5 @@ "use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); require("typings-global"); const beautylog = require("beautylog"); exports.beautylog = beautylog; @@ -8,4 +9,4 @@ const rxjs = require("rxjs"); exports.rxjs = rxjs; const q = require("smartq"); exports.q = q; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFza2J1ZmZlci5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvdGFza2J1ZmZlci5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwwQkFBdUI7QUFDdkIsdUNBQXNDO0FBTWxDLDhCQUFTO0FBTGIsaUNBQWdDO0FBTTVCLHdCQUFNO0FBTFYsNkJBQTRCO0FBTXhCLG9CQUFJO0FBTFIsNEJBQTJCO0FBTXZCLGNBQUMifQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFza2J1ZmZlci5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvdGFza2J1ZmZlci5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCO0FBQ3ZCLHVDQUFzQztBQU1sQyw4QkFBUztBQUxiLGlDQUFnQztBQU01Qix3QkFBTTtBQUxWLDZCQUE0QjtBQU14QixvQkFBSTtBQUxSLDRCQUEyQjtBQU12QixjQUFDIn0= \ No newline at end of file diff --git a/package.json b/package.json index cb6a34c..d7efcea 100644 --- a/package.json +++ b/package.json @@ -26,15 +26,13 @@ "homepage": "https://gitlab.com/pushrocks/taskbuffer#readme", "dependencies": { "@types/lodash": "4.x.x", - "beautylog": "^6.1.1", + "beautylog": "^6.1.10", "lodash": "^4.17.4", - "rxjs": "^5.1.1", + "rxjs": "^5.4.0", "smartq": "^1.1.1", - "typings-global": "^1.0.14" + "typings-global": "^1.0.17" }, "devDependencies": { - "npmts-g": "^6.0.0", - "smartchai": "^1.0.1", - "typings-test": "^1.0.3" + "tapbundle": "^1.0.14" } } diff --git a/test/test.d.ts b/test/test.d.ts deleted file mode 100644 index 2fd432a..0000000 --- a/test/test.d.ts +++ /dev/null @@ -1 +0,0 @@ -import 'typings-test'; diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 90b04d8..0000000 --- a/test/test.js +++ /dev/null @@ -1,213 +0,0 @@ -"use strict"; -require("typings-test"); -const taskbuffer = require("../dist/index"); -const smartchai_1 = require("smartchai"); -const q = require("smartq"); -// setup some testData to work with -let testTask; -let testTaskFunction = function () { - let done = q.defer(); - console.log('main function executed!'); - done.resolve(); - return done.promise; -}; -let testTaskFunctionTimeout = function () { - let done = q.defer(); - console.log('main function started!'); - setTimeout(() => { - console.log('main function ended!'); - done.resolve(); - }, 2000); - return done.promise; -}; -let testPreTask = new taskbuffer.Task({ - taskFunction: function () { - let done = q.defer(); - console.log('preTask executed'); - done.resolve(); - return done.promise; - }, - preTask: testTask -}); -// some more tasks to wirj with -let task1 = new taskbuffer.Task({ - name: 'Task 1', - taskFunction: () => { - let done = q.defer(); - console.log('Task1 started'); - setTimeout(() => { - console.log('Task1 executed'); - done.resolve(); - }, 5000); - return done.promise; - } -}); -let task2 = new taskbuffer.Task({ - name: 'Task 1', - taskFunction: () => { - let done = q.defer(); - console.log('Task2 started'); - setTimeout(() => { - console.log('Task2 executed'); - done.resolve(); - }, 5000); - return done.promise; - } -}); -let task3 = new taskbuffer.Task({ - name: 'Task 3', - taskFunction: () => { - let done = q.defer(); - console.log('Task3 started'); - setTimeout(() => { - console.log('Task3 executed'); - done.resolve(); - }, 5000); - return done.promise; - } -}); -// the actual tests -describe('taskbuffer', function () { - describe('.Task', function () { - it('new Task() should return a new task', function () { - testTask = new taskbuffer.Task({ taskFunction: testTaskFunction, preTask: testPreTask }); - }); - it('testTask should be and instance of Task', function () { - smartchai_1.expect(testTask).to.be.instanceof(taskbuffer.Task); - }); - it('testTask.idle is true', function () { - if (!testTask.idle) { - throw new Error('testTask.idle is not true'); - } - }); - it('testTask.running is type boolean and initially false', function () { - smartchai_1.expect(testTask.running).to.be.a('boolean'); - smartchai_1.expect(testTask.running).to.be.false; - }); - it('testTask.trigger() expect return Promise', function () { - smartchai_1.expect(testTask.trigger()).to.be.instanceof(Promise); - }); - it('testTask.trigger() returned Promise expect be fullfilled', function (done) { - testTask.trigger() - .then(done); - }); - it('expect run a task without pre and afterTask', function (done) { - let localTestTask = new taskbuffer.Task({ taskFunction: testTaskFunction }); - localTestTask.trigger().then(done); - }); - it('expect run buffered', function (done) { - this.timeout(10000); - let localTestTask = new taskbuffer.Task({ - taskFunction: testTaskFunctionTimeout, - buffered: true, - bufferMax: 2 - }); - localTestTask.trigger(); - localTestTask.trigger(); - localTestTask.trigger(); - localTestTask.trigger().then(() => { - done(); - }); - }); - }); - describe('Taskchain', function () { - let testTaskchain; - let testTaskArray = [ - new taskbuffer.Task({ - name: 'task1', - taskFunction: function () { - let done = q.defer(); - setTimeout(done.resolve, 2000); - return done.promise; - } - }), - new taskbuffer.Task({ - name: 'task2', - taskFunction: function () { - let done = q.defer(); - setTimeout(done.resolve, 2000); - return done.promise; - } - }) - ]; - it('expect run tasks in sequence', function (done) { - this.timeout(5000); - testTaskchain = new taskbuffer.Taskchain({ - name: 'Taskchain1', - taskArray: testTaskArray - }); - testTaskchain.trigger().then(done); - }); - }); - describe('taskparallel', function () { - it('expect run in Parallel', function (done) { - this.timeout(7000); - let testTaskparallel = new taskbuffer.Taskparallel({ - taskArray: [task1, task2, task3] - }); - testTaskparallel.trigger().then(() => { - done(); - }); - }); - }); - describe('some flowtests', function () { - let flowTask1 = new taskbuffer.Task({ - taskFunction: (x) => { - let done = q.defer(); - console.log('flowTask1'); - console.log(x); - done.resolve(x); - return done.promise; - } - }); - let flowTaskBuffered = new taskbuffer.Task({ - taskFunction: (x) => { - let done = q.defer(); - console.log('flowTask1'); - console.log(x); - done.resolve(x); - return done.promise; - }, - buffered: true, - bufferMax: 1 - }); - let flowTask2 = new taskbuffer.Task({ - taskFunction: (x) => { - let done = q.defer(); - console.log('flowTask2'); - console.log(x); - done.resolve(x); - return done.promise; - }, - preTask: flowTask1 - }); - let flowTask3 = new taskbuffer.Taskchain({ - taskArray: [flowTask1, flowTask2] - }); - it('should let a value flow through a task', function (done) { - flowTask1.trigger(12).then((x) => { - smartchai_1.expect(x).to.equal(12); - done(); - }).catch(done); - }); - it('should let a values flow between tasks', function (done) { - flowTask2.trigger(12).then((x) => { - smartchai_1.expect(x).to.equal(12); - done(); - }).catch(done); - }); - it('expect let a values flow between tasks when buffered', function (done) { - flowTaskBuffered.trigger(12).then((x) => { - smartchai_1.expect(x).to.equal(12); - done(); - }).catch(done); - }); - it('should let a values flow between tasks in Taskchain', function (done) { - flowTask3.trigger(12).then((x) => { - smartchai_1.expect(x).to.equal(12); - done(); - }).catch(done); - }); - }); -}); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFxQjtBQUNyQiw0Q0FBNEM7QUFDNUMseUNBQWtDO0FBQ2xDLDRCQUEyQjtBQUUzQixtQ0FBbUM7QUFDbkMsSUFBSSxRQUF5QixDQUFBO0FBQzdCLElBQUksZ0JBQWdCLEdBQUc7SUFDckIsSUFBSSxJQUFJLEdBQUcsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFBO0lBQ3BCLE9BQU8sQ0FBQyxHQUFHLENBQUMseUJBQXlCLENBQUMsQ0FBQTtJQUN0QyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUE7SUFDZCxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUNyQixDQUFDLENBQUE7QUFFRCxJQUFJLHVCQUF1QixHQUFHO0lBQzVCLElBQUksSUFBSSxHQUFHLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUNwQixPQUFPLENBQUMsR0FBRyxDQUFDLHdCQUF3QixDQUFDLENBQUE7SUFDckMsVUFBVSxDQUFDO1FBQ1QsT0FBTyxDQUFDLEdBQUcsQ0FBQyxzQkFBc0IsQ0FBQyxDQUFBO1FBQ25DLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQTtJQUNoQixDQUFDLEVBQUU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QUMsQ0FBQyxDQUFBO0lBQ0osQ0FBQyxDQUFDLENBQUE7QUFDSixDQUFDLENBQUMsQ0FBQSJ9 \ No newline at end of file diff --git a/test/test.ts b/test/test.ts index 50097a0..4f575ae 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1,6 +1,6 @@ -import 'typings-test' +import { expect, tap } from 'tapbundle' import taskbuffer = require('../dist/index') -import { expect } from 'smartchai' + import * as q from 'smartq' // setup some testData to work with @@ -32,7 +32,6 @@ let testPreTask = new taskbuffer.Task({ preTask: testTask }) - // some more tasks to wirj with let task1 = new taskbuffer.Task({ name: 'Task 1', @@ -71,153 +70,139 @@ let task3 = new taskbuffer.Task({ } }) -// the actual tests -describe('taskbuffer', function () { - describe('.Task', function () { - it('new Task() should return a new task', function () { - testTask = new taskbuffer.Task({ taskFunction: testTaskFunction, preTask: testPreTask }) - }) - it('testTask should be and instance of Task', function () { - expect(testTask).to.be.instanceof(taskbuffer.Task) - }) - it('testTask.idle is true', function () { - if (!testTask.idle) { - throw new Error('testTask.idle is not true') - } - - }) - it('testTask.running is type boolean and initially false', function () { - expect(testTask.running).to.be.a('boolean') - expect(testTask.running).to.be.false - }) - it('testTask.trigger() expect return Promise', function () { - expect(testTask.trigger()).to.be.instanceof(Promise) - }) - it('testTask.trigger() returned Promise expect be fullfilled', function (done) { - testTask.trigger() - .then(done) - }) - it('expect run a task without pre and afterTask', function (done) { - let localTestTask = new taskbuffer.Task({ taskFunction: testTaskFunction }) - localTestTask.trigger().then(done) - }) - - it('expect run buffered', function (done) { - this.timeout(10000) - let localTestTask = new taskbuffer.Task({ - taskFunction: testTaskFunctionTimeout, - buffered: true, - bufferMax: 2 - }) - localTestTask.trigger() - localTestTask.trigger() - localTestTask.trigger() - localTestTask.trigger().then(() => { - done() - }) - }) - }) - describe('Taskchain', function () { - let testTaskchain - let testTaskArray = [ - new taskbuffer.Task({ - name: 'task1', - taskFunction: function () { - let done = q.defer() - setTimeout(done.resolve, 2000) - return done.promise - } - }), - new taskbuffer.Task({ - name: 'task2', - taskFunction: function () { - let done = q.defer() - setTimeout(done.resolve, 2000) - return done.promise - } - }) - ] - it('expect run tasks in sequence', function (done) { - this.timeout(5000) - testTaskchain = new taskbuffer.Taskchain({ - name: 'Taskchain1', - taskArray: testTaskArray - }) - testTaskchain.trigger().then(done) - }) - }) - describe('taskparallel', function () { - it('expect run in Parallel', function (done) { - this.timeout(7000) - let testTaskparallel = new taskbuffer.Taskparallel({ - taskArray: [ task1, task2, task3 ] - }) - testTaskparallel.trigger().then(() => { - done() - }) - }) - }) - describe('some flowtests', function () { - let flowTask1 = new taskbuffer.Task({ - taskFunction: (x: number) => { - let done = q.defer() - console.log('flowTask1') - console.log(x) - done.resolve(x) - return done.promise - } - }) - - let flowTaskBuffered = new taskbuffer.Task({ - taskFunction: (x: number) => { - let done = q.defer() - console.log('flowTask1') - console.log(x) - done.resolve(x) - return done.promise - }, - buffered: true, - bufferMax: 1 - }) - - let flowTask2 = new taskbuffer.Task({ - taskFunction: (x: number) => { - let done = q.defer() - console.log('flowTask2') - console.log(x) - done.resolve(x) - return done.promise - }, - preTask: flowTask1 - }) - let flowTask3 = new taskbuffer.Taskchain({ - taskArray: [ flowTask1, flowTask2 ] - }) - it('should let a value flow through a task', function (done) { - flowTask1.trigger(12).then((x) => { - expect(x).to.equal(12) - done() - }).catch(done) - }) - it('should let a values flow between tasks', function (done) { - flowTask2.trigger(12).then((x) => { - expect(x).to.equal(12) - done() - }).catch(done) - }) - - it('expect let a values flow between tasks when buffered', function (done) { - flowTaskBuffered.trigger(12).then((x) => { - expect(x).to.equal(12) - done() - }).catch(done) - }) - - it('should let a values flow between tasks in Taskchain', function (done) { - flowTask3.trigger(12).then((x) => { - expect(x).to.equal(12) - done() - }).catch(done) - }) - }) +tap.test('new Task() should return a new task', async () => { + testTask = new taskbuffer.Task({ taskFunction: testTaskFunction, preTask: testPreTask }) }) +tap.test('testTask should be and instance of Task', async () => { + expect(testTask).to.be.instanceof(taskbuffer.Task) +}) +tap.test('testTask.idle is true', async () => { + if (!testTask.idle) { + throw new Error('testTask.idle is not true') + } + +}) +tap.test('testTask.running is type boolean and initially false', async () => { + expect(testTask.running).to.be.a('boolean') + // tslint:disable-next-line:no-unused-expression + expect(testTask.running).to.be.false +}) + +tap.test('testTask.trigger() expect return Promise', async () => { + expect(testTask.trigger()).to.be.instanceof(Promise) +}) + +tap.test('testTask.trigger() returned Promise expect be fullfilled', async () => { + await testTask.trigger() +}) + +tap.test('expect run a task without pre and afterTask', async () => { + let localTestTask = new taskbuffer.Task({ taskFunction: testTaskFunction }) + await localTestTask.trigger() +}) + +tap.test('expect run buffered', async () => { + let localTestTask = new taskbuffer.Task({ + taskFunction: testTaskFunctionTimeout, + buffered: true, + bufferMax: 2 + }) + localTestTask.trigger() + localTestTask.trigger() + localTestTask.trigger() + await localTestTask.trigger() +}) + +let testTaskchain +let testTaskArray = [ + new taskbuffer.Task({ + name: 'task1', + taskFunction: function () { + let done = q.defer() + setTimeout(done.resolve, 2000) + return done.promise + } + }), + new taskbuffer.Task({ + name: 'task2', + taskFunction: function () { + let done = q.defer() + setTimeout(done.resolve, 2000) + return done.promise + } + }) +] + +tap.test('expect run tasks in sequence', async () => { + testTaskchain = new taskbuffer.Taskchain({ + name: 'Taskchain1', + taskArray: testTaskArray + }) + await testTaskchain.trigger() +}) + +tap.test('expect run in Parallel', async () => { + let testTaskparallel = new taskbuffer.Taskparallel({ + taskArray: [ task1, task2, task3 ] + }) + await testTaskparallel.trigger() +}) + +let flowTask1 = new taskbuffer.Task({ + taskFunction: (x: number) => { + let done = q.defer() + console.log('flowTask1') + console.log(x) + done.resolve(x) + return done.promise + } +}) + +let flowTaskBuffered = new taskbuffer.Task({ + taskFunction: (x: number) => { + let done = q.defer() + console.log('flowTask1') + console.log(x) + done.resolve(x) + return done.promise + }, + buffered: true, + bufferMax: 1 +}) + +let flowTask2 = new taskbuffer.Task({ + taskFunction: (x: number) => { + let done = q.defer() + console.log('flowTask2') + console.log(x) + done.resolve(x) + return done.promise + }, + preTask: flowTask1 +}) + +let flowTask3 = new taskbuffer.Taskchain({ + taskArray: [ flowTask1, flowTask2 ] +}) + +tap.test('should let a value flow through a task', async () => { + let result = await flowTask1.trigger(12) + expect(result).to.equal(12) +}) + +tap.test('should let a values flow between tasks', async () => { + let result = await flowTask2.trigger(12) + expect(result).to.equal(12) +}) + +tap.test('expect let a values flow between tasks when buffered', async () => { + let result = await flowTaskBuffered.trigger(12) + expect(result).to.equal(12) +}) + +tap.test('should let a values flow between tasks in Taskchain', async () => { + let result = await flowTask3.trigger(12) + expect(result).to.equal(12) +}) + +tap.start() diff --git a/yarn.lock b/yarn.lock index 33588de..d643a49 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9,36 +9,38 @@ "@types/chai" "*" "@types/promises-a-plus" "*" -"@types/chai@*", "@types/chai@^3.4.34": - version "3.4.34" - resolved "https://registry.yarnpkg.com/@types/chai/-/chai-3.4.34.tgz#d5335792823bb09cddd5e38c3d211b709183854d" +"@types/chai-string@^1.1.30": + version "1.1.30" + resolved "https://registry.yarnpkg.com/@types/chai-string/-/chai-string-1.1.30.tgz#4d8744b31a5a2295fc01c981ed1e2d4c8a070f0a" + dependencies: + "@types/chai" "*" -"@types/lodash@4.x.x": - version "4.14.52" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.52.tgz#de5c7ab14da1289733233c9b0ec6f9e377db90f5" +"@types/chai@*", "@types/chai@^3.4.35": + version "3.5.2" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-3.5.2.tgz#c11cd2817d3a401b7ba0f5a420f35c56139b1c1e" -"@types/mocha@^2.2.31": - version "2.2.39" - resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.39.tgz#f68d63db8b69c38e9558b4073525cf96c4f7a829" +"@types/lodash@4.x.x", "@types/lodash@^4.14.55": + version "4.14.65" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.65.tgz#a0f78d71ffcd3c02628d5f616410c98c424326d5" -"@types/node@*": - version "7.0.5" - resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.5.tgz#96a0f0a618b7b606f1ec547403c00650210bfbb7" +"@types/node@*", "@types/node@^7.0.29": + version "7.0.29" + resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.29.tgz#ccfcec5b7135c7caf6c4ffb8c7f33102340d99df" "@types/promises-a-plus@*": version "0.0.27" resolved "https://registry.yarnpkg.com/@types/promises-a-plus/-/promises-a-plus-0.0.27.tgz#c64651134614c84b8f5d7114ce8901d36a609780" -"@types/q@0.x.x": - version "0.0.32" - resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5" - -"@types/shelljs@^0.3.33": - version "0.3.33" - resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.3.33.tgz#df613bddb88225ed09ce5c835f620dcaaf155e6b" +"@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/which@^1.0.28": + version "1.0.28" + resolved "https://registry.yarnpkg.com/@types/which/-/which-1.0.28.tgz#016e387629b8817bed653fe32eab5d11279c8df6" + ansi-256-colors@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/ansi-256-colors/-/ansi-256-colors-1.1.0.tgz#910de50efcc7c09e3d82f2f87abd6b700c18818a" @@ -59,29 +61,33 @@ balanced-match@^0.4.1: version "0.4.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" -beautycolor@^1.0.5: +beautycolor@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/beautycolor/-/beautycolor-1.0.7.tgz#a4715738ac4c8221371e9cbeb5a6cc6d11ecbf7c" dependencies: ansi-256-colors "^1.1.0" typings-global "^1.0.14" -beautylog@^6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/beautylog/-/beautylog-6.1.1.tgz#2a83603ad7e2a0a09701ac63d7d3064a588dc779" +beautylog@^6.1.10: + version "6.1.10" + resolved "https://registry.yarnpkg.com/beautylog/-/beautylog-6.1.10.tgz#9c27e566937684cb689f9372d98cfa5415d50b72" dependencies: - "@types/lodash" "4.x.x" - beautycolor "^1.0.5" + "@types/lodash" "^4.14.55" + beautycolor "^1.0.7" figlet "^1.2.0" lodash "^4.17.4" ora "^1.1.0" smartenv "^2.0.0" - smartq "^1.0.4" + smartq "^1.1.1" typings-global "^1.0.14" -brace-expansion@^1.0.0: - version "1.1.6" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" +bindings@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11" + +brace-expansion@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.7.tgz#3effc3c50e000531fb720eaff80f0ae8ef23cf59" dependencies: balanced-match "^0.4.1" concat-map "0.0.1" @@ -92,6 +98,10 @@ chai-as-promised@^6.0.0: dependencies: check-error "^1.0.2" +chai-string@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/chai-string/-/chai-string-1.3.0.tgz#df6139f294391b1035be5606f60a843b3a5041e7" + chai@^3.5.0: version "3.5.0" resolved "https://registry.yarnpkg.com/chai/-/chai-3.5.0.tgz#4d02637b067fe958bdbfdd3a40ec56fef7373247" @@ -134,6 +144,18 @@ deep-eql@^0.1.3: dependencies: type-detect "0.1.1" +early@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/early/-/early-2.1.1.tgz#841e23254ea5dc54d8afaeee82f5ab65c00ee23c" + dependencies: + beautycolor "^1.0.7" + smartq "^1.1.1" + typings-global "^1.0.16" + +es6-error@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.0.2.tgz#eec5c726eacef51b7f6b73c20db6e1b13b069c98" + escape-string-regexp@^1.0.2: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" @@ -147,13 +169,13 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" glob@^7.0.0: - version "7.1.1" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" - minimatch "^3.0.2" + minimatch "^3.0.4" once "^1.3.0" path-is-absolute "^1.0.0" @@ -175,10 +197,28 @@ inherits@2: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" interpret@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.1.tgz#d579fb7f693b858004947af39fa0db49f795602c" + version "1.0.3" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.3.tgz#cbc35c62eeee73f19ab7b10a801511401afc0f90" -lodash@^4.17.2, lodash@^4.17.4: +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + +leakage@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/leakage/-/leakage-0.3.0.tgz#15d698abdc76bbc6439601f4f3020e77e2d50c39" + dependencies: + es6-error "^4.0.2" + left-pad "^1.1.3" + memwatch-next "^0.3.0" + minimist "^1.2.0" + pretty-bytes "^4.0.2" + +left-pad@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.1.3.tgz#612f61c033f3a9e08e939f1caebeea41b6f3199a" + +lodash@^4.17.4: version "4.17.4" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" @@ -188,24 +228,30 @@ log-symbols@^1.0.2: dependencies: chalk "^1.0.0" +memwatch-next@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/memwatch-next/-/memwatch-next-0.3.0.tgz#2111050f9a906e0aa2d72a4ec0f0089c78726f8f" + dependencies: + bindings "^1.2.1" + nan "^2.3.2" + mimic-fn@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18" -minimatch@^3.0.2: - version "3.0.3" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" +minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" dependencies: - brace-expansion "^1.0.0" + brace-expansion "^1.1.7" -npmts-g@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/npmts-g/-/npmts-g-6.0.0.tgz#491fd50f110967f1b68f14237e7ea5157bf4ddb3" - dependencies: - "@types/shelljs" "^0.3.33" - semver "^5.3.0" - shelljs "^0.7.5" - typings-global "^1.0.14" +minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +nan@^2.3.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.6.2.tgz#e4ff34e6c95fdfb5aecc08de6596f43605a7db45" once@^1.3.0: version "1.4.0" @@ -214,14 +260,14 @@ once@^1.3.0: wrappy "1" onetime@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.0.tgz#52aa8110e52fc5126ffc667bd8ec21c2ed209ce6" + version "2.0.1" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" dependencies: mimic-fn "^1.0.0" ora@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-1.1.0.tgz#69aaa4a209630e43b142c5f7ff41820da87e2faf" + version "1.2.0" + resolved "https://registry.yarnpkg.com/ora/-/ora-1.2.0.tgz#32fb3183500efe83f5ea89101785f0ee6060fec9" dependencies: chalk "^1.1.1" cli-cursor "^2.1.0" @@ -232,9 +278,13 @@ path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" -q@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/q/-/q-1.4.1.tgz#55705bcd93c5f3673530c2c2cbc0c2b3addc286e" +path-parse@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" + +pretty-bytes@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" rechoir@^0.6.2: version "0.6.2" @@ -243,8 +293,10 @@ rechoir@^0.6.2: resolve "^1.1.6" resolve@^1.1.6: - version "1.2.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c" + version "1.3.3" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.3.tgz#655907c3469a8680dc2de3a275a8fdd69691f0e5" + dependencies: + path-parse "^1.0.5" restore-cursor@^2.0.0: version "2.0.0" @@ -253,9 +305,9 @@ restore-cursor@^2.0.0: onetime "^2.0.0" signal-exit "^3.0.2" -rxjs@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.1.1.tgz#fc48922965bc6c5efbcc0fe46e90a3af64137a7b" +rxjs@^5.4.0: + version "5.4.0" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.4.0.tgz#a7db14ab157f9d7aac6a56e655e7a3860d39bf26" dependencies: symbol-observable "^1.0.1" @@ -263,9 +315,9 @@ semver@^5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" -shelljs@^0.7.4, shelljs@^0.7.5: - version "0.7.6" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad" +shelljs@^0.7.6: + version "0.7.8" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3" dependencies: glob "^7.0.0" interpret "^1.0.0" @@ -275,31 +327,49 @@ signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" -smartchai@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/smartchai/-/smartchai-1.0.1.tgz#cde7776212fa5145d62dc4195405929807a3e0e5" +smartchai@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/smartchai/-/smartchai-1.0.3.tgz#de6d010bb8b5aef24cb70b31a5f5334e8c41b72f" dependencies: - "@types/chai" "^3.4.34" + "@types/chai" "^3.4.35" "@types/chai-as-promised" "0.0.29" + "@types/chai-string" "^1.1.30" chai "^3.5.0" chai-as-promised "^6.0.0" + chai-string "^1.3.0" + +smartdelay@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/smartdelay/-/smartdelay-1.0.3.tgz#5fd44dad77262d110702f0293efa80c072cfb579" + dependencies: + smartq "^1.1.1" + typings-global "^1.0.16" smartenv@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/smartenv/-/smartenv-2.0.0.tgz#ede4e2044efcf9bec318388bb1dab53024ee3d16" + version "2.0.6" + resolved "https://registry.yarnpkg.com/smartenv/-/smartenv-2.0.6.tgz#b38c679b0c151b9af548f68c3a072c29d1417e8d" dependencies: - "@types/q" "0.x.x" - lodash "^4.17.2" - q "^1.4.1" + lodash "^4.17.4" + smartq "^1.1.1" typings-global "^1.0.14" -smartq@^1.0.4, smartq@^1.1.1: +smartq@^1.1.0, smartq@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/smartq/-/smartq-1.1.1.tgz#efb358705260d41ae18aef7ffd815f7b6fe17dd3" dependencies: typed-promisify "^0.3.0" typings-global "^1.0.14" +smartshell@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/smartshell/-/smartshell-1.0.6.tgz#27b1c79029784abe72ac7e91fe698b7ebecc6629" + dependencies: + "@types/shelljs" "^0.6.0" + "@types/which" "^1.0.28" + shelljs "^0.7.6" + smartq "^1.1.0" + which "^1.2.12" + strip-ansi@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" @@ -314,6 +384,17 @@ symbol-observable@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d" +tapbundle@^1.0.14: + version "1.0.14" + resolved "https://registry.yarnpkg.com/tapbundle/-/tapbundle-1.0.14.tgz#75827e335fcb02216f0267a26a26d702ddc02e3c" + dependencies: + early "^2.1.1" + leakage "^0.3.0" + smartchai "^1.0.3" + smartdelay "^1.0.3" + smartq "^1.1.1" + typings-global "^1.0.16" + type-detect@0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822" @@ -326,19 +407,19 @@ 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@*, typings-global@^1.0.14: - version "1.0.14" - resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.14.tgz#ab682720a03d6b9278869fb5c30c30d7dc61d12c" +typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.17: + version "1.0.17" + resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.17.tgz#41edc331ccec3168289adc8849e1e255efbe7152" dependencies: + "@types/node" "^7.0.29" semver "^5.3.0" - shelljs "^0.7.4" + smartshell "^1.0.6" -typings-test@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/typings-test/-/typings-test-1.0.3.tgz#fbab895eb3f0c44842e73db059f65946b971e369" +which@^1.2.12: + version "1.2.14" + resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5" dependencies: - "@types/mocha" "^2.2.31" - typings-global "*" + isexe "^2.0.0" wrappy@1: version "1.0.2"