From e47df190153719b39c22f6f4198ad5ae628a7145 Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Sun, 18 Sep 2016 23:44:56 +0200 Subject: [PATCH] fix --- dist/early.child.js | 9 ++++++--- pages/api/file.json | 2 +- pages/api/index.html | 14 ++++++++++++++ pages/api/modules/_ts_early_child_.html | 2 +- ts/early.child.ts | 7 +++++-- 5 files changed, 27 insertions(+), 7 deletions(-) diff --git a/dist/early.child.js b/dist/early.child.js index 47efdce..dbf7698 100644 --- a/dist/early.child.js +++ b/dist/early.child.js @@ -29,8 +29,11 @@ let logEarly = () => { }, 80); } else { - readline.clearLine(process.stdout, 0); - process.exit(0); + rl.write(null, { ctrl: true, name: 'u' }); + rl.close(); + setTimeout(function () { + process.exit(0); + }, 80); } }; let start = function (moduleNameArg = '', loaderLengthArg = '10') { @@ -42,4 +45,4 @@ process.on('SIGINT', () => { logEarlyAbort = true; }); start(); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWFybHkuY2hpbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9lYXJseS5jaGlsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXVCO0FBQ3ZCLCtCQUErQjtBQUMvQixxQ0FBcUM7QUFDckMsSUFBSSxFQUFFLEdBQUcsUUFBUSxDQUFDLGVBQWUsQ0FBQztJQUM5QixLQUFLLEVBQUUsT0FBTyxDQUFDLEtBQUs7SUFDcEIsTUFBTSxFQUFFLE9BQU8sQ0FBQyxNQUFNO0NBQ3pCLENBQUMsQ0FBQTtBQUVGLElBQUksVUFBa0IsQ0FBQTtBQUN0QixJQUFJLFlBQW9CLENBQUE7QUFDeEIsSUFBSSxZQUFZLEdBQVcsQ0FBQyxDQUFBO0FBRTVCLElBQUksU0FBUyxHQUFHO0lBQ1osSUFBSSxZQUFZLEdBQVcsSUFBSSxLQUFLLENBQUMsS0FBSyxDQUFDLEdBQ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UFVLEdBQUcsYUFBYSxDQUFBO0lBQzFCLFlBQVksR0FBRyxRQUFRLENBQUMsZUFBZSxDQUFDLENBQUE7SUFDeEMsUUFBUSxFQUFFLENBQUE7QUFDZCxDQUFDLENBQUE7QUFFRCxPQUFPLENBQUMsRUFBRSxDQUFDLFFBQVEsRUFBRTtJQUNqQixhQUFhLEdBQUcsSUFBSSxDQUFBO0FBQ3hCLENBQUMsQ0FBQyxDQUFBO0FBRUYsS0FBSyxFQUFFLENBQUEifQ== \ No newline at end of file diff --git a/pages/api/file.json b/pages/api/file.json index 49b8a02..33acc2d 100644 --- a/pages/api/file.json +++ b/pages/api/file.json @@ -227,7 +227,7 @@ "sources": [ { "fileName": "ts/early.child.ts", - "line": 37, + "line": 40, "character": 9 } ] diff --git a/pages/api/index.html b/pages/api/index.html index d7bd993..6a9f1ab 100644 --- a/pages/api/index.html +++ b/pages/api/index.html @@ -67,6 +67,20 @@

early

minimal and fast loading animation for modules that need a little starting time.

+

Availabililty

+

npm + git + git + docs

+

Status for master

+

build status + coverage report + Dependency Status + bitHound Dependencies + bitHound Code + TypeScript + node + JavaScript Style Guide

Usage

// Put the following at the start of your module
 import * as early from "early";
diff --git a/pages/api/modules/_ts_early_child_.html b/pages/api/modules/_ts_early_child_.html
index 2191ec6..da919bf 100644
--- a/pages/api/modules/_ts_early_child_.html
+++ b/pages/api/modules/_ts_early_child_.html
@@ -191,7 +191,7 @@
 						
  • Parameters

    diff --git a/ts/early.child.ts b/ts/early.child.ts index 6afd0c2..3d5a575 100644 --- a/ts/early.child.ts +++ b/ts/early.child.ts @@ -29,8 +29,11 @@ let logEarly = () => { logEarly() }, 80) } else { - readline.clearLine(process.stdout,0) - process.exit(0) + rl.write(null, { ctrl: true, name: 'u' }) + rl.close() + setTimeout(function () { + process.exit(0) + }, 80) } }