muhammara 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +3 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +16 -0
- package/node_modules/@mapbox/node-pre-gyp/package.json +6 -6
- package/node_modules/ansi-regex/index.d.ts +37 -0
- package/node_modules/ansi-regex/index.js +4 -4
- package/node_modules/ansi-regex/package.json +19 -16
- package/node_modules/ansi-regex/readme.md +35 -3
- package/node_modules/debug/LICENSE +10 -9
- package/node_modules/debug/README.md +24 -1
- package/node_modules/debug/package.json +15 -15
- package/node_modules/debug/src/common.js +1 -1
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +23 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +77 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/gauge/LICENSE.md +20 -0
- package/node_modules/gauge/README.md +1 -1
- package/node_modules/gauge/{base-theme.js → lib/base-theme.js} +7 -3
- package/node_modules/gauge/lib/demo.js +45 -0
- package/node_modules/gauge/{error.js → lib/error.js} +0 -0
- package/node_modules/gauge/{has-color.js → lib/has-color.js} +0 -0
- package/node_modules/gauge/{index.js → lib/index.js} +89 -32
- package/node_modules/gauge/{plumbing.js → lib/plumbing.js} +3 -1
- package/node_modules/gauge/{process.js → lib/process.js} +0 -0
- package/node_modules/gauge/{progress-bar.js → lib/progress-bar.js} +11 -5
- package/node_modules/gauge/{render-template.js → lib/render-template.js} +68 -24
- package/node_modules/gauge/{set-immediate.js → lib/set-immediate.js} +0 -0
- package/node_modules/gauge/{set-interval.js → lib/set-interval.js} +0 -0
- package/node_modules/gauge/{spin.js → lib/spin.js} +0 -0
- package/node_modules/gauge/{template-item.js → lib/template-item.js} +21 -6
- package/node_modules/gauge/{theme-set.js → lib/theme-set.js} +31 -23
- package/node_modules/gauge/{themes.js → lib/themes.js} +13 -13
- package/node_modules/gauge/{wide-truncate.js → lib/wide-truncate.js} +9 -3
- package/node_modules/gauge/package.json +39 -44
- package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/node_modules/is-fullwidth-code-point/index.js +25 -21
- package/node_modules/is-fullwidth-code-point/license +4 -16
- package/node_modules/is-fullwidth-code-point/package.json +18 -24
- package/node_modules/is-fullwidth-code-point/readme.md +6 -6
- package/node_modules/node-fetch/lib/index.es.js +1 -1
- package/node_modules/node-fetch/lib/index.js +1 -1
- package/node_modules/node-fetch/lib/index.mjs +1 -1
- package/node_modules/node-fetch/package.json +5 -5
- package/node_modules/npmlog/LICENSE.md +20 -0
- package/node_modules/npmlog/{log.js → lib/log.js} +9 -9
- package/node_modules/npmlog/package.json +31 -20
- package/node_modules/signal-exit/index.js +30 -8
- package/node_modules/signal-exit/package.json +11 -9
- package/node_modules/string-width/index.d.ts +29 -0
- package/node_modules/string-width/index.js +16 -5
- package/node_modules/string-width/package.json +20 -20
- package/node_modules/string-width/readme.md +15 -7
- package/node_modules/strip-ansi/index.d.ts +17 -0
- package/node_modules/strip-ansi/index.js +1 -1
- package/node_modules/strip-ansi/package.json +19 -17
- package/node_modules/strip-ansi/readme.md +12 -5
- package/package.json +1 -1
- package/node_modules/gauge/CHANGELOG.md +0 -163
- package/node_modules/gauge/LICENSE +0 -13
- package/node_modules/npmlog/LICENSE +0 -15
- package/node_modules/object-assign/index.js +0 -90
- package/node_modules/object-assign/license +0 -21
- package/node_modules/object-assign/package.json +0 -74
- package/node_modules/object-assign/readme.md +0 -61
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
module.exports = function () {
|
|
4
|
+
// https://mths.be/emoji
|
|
5
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83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uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
6
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_from": "emoji-regex@^8.0.0",
|
|
3
|
+
"_id": "emoji-regex@8.0.0",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
|
6
|
+
"_location": "/emoji-regex",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "range",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "emoji-regex@^8.0.0",
|
|
12
|
+
"name": "emoji-regex",
|
|
13
|
+
"escapedName": "emoji-regex",
|
|
14
|
+
"rawSpec": "^8.0.0",
|
|
15
|
+
"saveSpec": null,
|
|
16
|
+
"fetchSpec": "^8.0.0"
|
|
17
|
+
},
|
|
18
|
+
"_requiredBy": [
|
|
19
|
+
"/string-width"
|
|
20
|
+
],
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
|
22
|
+
"_shasum": "e818fd69ce5ccfcb404594f842963bf53164cc37",
|
|
23
|
+
"_spec": "emoji-regex@^8.0.0",
|
|
24
|
+
"_where": "/home/runner/work/MuhammaraJS/MuhammaraJS/node_modules/string-width",
|
|
25
|
+
"author": {
|
|
26
|
+
"name": "Mathias Bynens",
|
|
27
|
+
"url": "https://mathiasbynens.be/"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/mathiasbynens/emoji-regex/issues"
|
|
31
|
+
},
|
|
32
|
+
"bundleDependencies": false,
|
|
33
|
+
"deprecated": false,
|
|
34
|
+
"description": "A regular expression to match all Emoji-only symbols as per the Unicode Standard.",
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@babel/cli": "^7.2.3",
|
|
37
|
+
"@babel/core": "^7.3.4",
|
|
38
|
+
"@babel/plugin-proposal-unicode-property-regex": "^7.2.0",
|
|
39
|
+
"@babel/preset-env": "^7.3.4",
|
|
40
|
+
"mocha": "^6.0.2",
|
|
41
|
+
"regexgen": "^1.3.0",
|
|
42
|
+
"unicode-12.0.0": "^0.7.9"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"LICENSE-MIT.txt",
|
|
46
|
+
"index.js",
|
|
47
|
+
"index.d.ts",
|
|
48
|
+
"text.js",
|
|
49
|
+
"es2015/index.js",
|
|
50
|
+
"es2015/text.js"
|
|
51
|
+
],
|
|
52
|
+
"homepage": "https://mths.be/emoji-regex",
|
|
53
|
+
"keywords": [
|
|
54
|
+
"unicode",
|
|
55
|
+
"regex",
|
|
56
|
+
"regexp",
|
|
57
|
+
"regular expressions",
|
|
58
|
+
"code points",
|
|
59
|
+
"symbols",
|
|
60
|
+
"characters",
|
|
61
|
+
"emoji"
|
|
62
|
+
],
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"main": "index.js",
|
|
65
|
+
"name": "emoji-regex",
|
|
66
|
+
"repository": {
|
|
67
|
+
"type": "git",
|
|
68
|
+
"url": "git+https://github.com/mathiasbynens/emoji-regex.git"
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "rm -rf -- es2015; babel src -d .; NODE_ENV=es2015 babel src -d ./es2015; node script/inject-sequences.js",
|
|
72
|
+
"test": "mocha",
|
|
73
|
+
"test:watch": "npm run test -- --watch"
|
|
74
|
+
},
|
|
75
|
+
"types": "index.d.ts",
|
|
76
|
+
"version": "8.0.0"
|
|
77
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
module.exports = function () {
|
|
4
|
+
// https://mths.be/emoji
|
|
5
|
+
return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC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]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F?|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
|
|
6
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
|
|
2
|
+
|
|
3
|
+
ISC License
|
|
4
|
+
|
|
5
|
+
Copyright npm, Inc.
|
|
6
|
+
|
|
7
|
+
Permission to use, copy, modify, and/or distribute this
|
|
8
|
+
software for any purpose with or without fee is hereby
|
|
9
|
+
granted, provided that the above copyright notice and this
|
|
10
|
+
permission notice appear in all copies.
|
|
11
|
+
|
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL
|
|
13
|
+
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
|
|
14
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
|
|
15
|
+
EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
17
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
18
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
19
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
|
|
20
|
+
USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -4,11 +4,15 @@ var progressBar = require('./progress-bar.js')
|
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
activityIndicator: function (values, theme, width) {
|
|
7
|
-
if (values.spun == null)
|
|
7
|
+
if (values.spun == null) {
|
|
8
|
+
return
|
|
9
|
+
}
|
|
8
10
|
return spin(theme, values.spun)
|
|
9
11
|
},
|
|
10
12
|
progressbar: function (values, theme, width) {
|
|
11
|
-
if (values.completed == null)
|
|
13
|
+
if (values.completed == null) {
|
|
14
|
+
return
|
|
15
|
+
}
|
|
12
16
|
return progressBar(theme, width, values.completed)
|
|
13
|
-
}
|
|
17
|
+
},
|
|
14
18
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var Gauge = require('./')
|
|
2
|
+
var gaugeDefault = require('./themes.js')
|
|
3
|
+
var onExit = require('signal-exit')
|
|
4
|
+
|
|
5
|
+
var activeGauge
|
|
6
|
+
|
|
7
|
+
onExit(function () {
|
|
8
|
+
activeGauge.disable()
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
var themes = gaugeDefault.getThemeNames()
|
|
12
|
+
|
|
13
|
+
nextBar()
|
|
14
|
+
function nextBar () {
|
|
15
|
+
var themeName = themes.shift()
|
|
16
|
+
|
|
17
|
+
console.log('Demoing output for ' + themeName)
|
|
18
|
+
|
|
19
|
+
var gt = new Gauge(process.stderr, {
|
|
20
|
+
updateInterval: 50,
|
|
21
|
+
theme: themeName,
|
|
22
|
+
cleanupOnExit: false,
|
|
23
|
+
})
|
|
24
|
+
activeGauge = gt
|
|
25
|
+
|
|
26
|
+
var progress = 0
|
|
27
|
+
|
|
28
|
+
var cnt = 0
|
|
29
|
+
var pulse = setInterval(function () {
|
|
30
|
+
gt.pulse('this is a thing that happened ' + (++cnt))
|
|
31
|
+
}, 110)
|
|
32
|
+
var prog = setInterval(function () {
|
|
33
|
+
progress += 0.04
|
|
34
|
+
gt.show(themeName + ':' + Math.round(progress * 1000), progress)
|
|
35
|
+
if (progress >= 1) {
|
|
36
|
+
clearInterval(prog)
|
|
37
|
+
clearInterval(pulse)
|
|
38
|
+
gt.disable()
|
|
39
|
+
if (themes.length) {
|
|
40
|
+
nextBar()
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}, 100)
|
|
44
|
+
gt.show()
|
|
45
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -32,7 +32,7 @@ function Gauge (arg1, arg2) {
|
|
|
32
32
|
this._status = {
|
|
33
33
|
spun: 0,
|
|
34
34
|
section: '',
|
|
35
|
-
subsection: ''
|
|
35
|
+
subsection: '',
|
|
36
36
|
}
|
|
37
37
|
this._paused = false // are we paused for back pressure?
|
|
38
38
|
this._disabled = true // are all progress bar updates disabled?
|
|
@@ -50,10 +50,10 @@ function Gauge (arg1, arg2) {
|
|
|
50
50
|
this._theme = options.theme
|
|
51
51
|
var theme = this._computeTheme(options.theme)
|
|
52
52
|
var template = options.template || [
|
|
53
|
-
{type: 'progressbar', length: 20},
|
|
54
|
-
{type: 'activityIndicator', kerning: 1, length: 1},
|
|
55
|
-
{type: 'section', kerning: 1, default: ''},
|
|
56
|
-
{type: 'subsection', kerning: 1, default: ''}
|
|
53
|
+
{ type: 'progressbar', length: 20 },
|
|
54
|
+
{ type: 'activityIndicator', kerning: 1, length: 1 },
|
|
55
|
+
{ type: 'section', kerning: 1, default: '' },
|
|
56
|
+
{ type: 'subsection', kerning: 1, default: '' },
|
|
57
57
|
]
|
|
58
58
|
this.setWriteTo(writeTo, options.tty)
|
|
59
59
|
var PlumbingClass = options.Plumbing || Plumbing
|
|
@@ -79,17 +79,28 @@ Gauge.prototype.isEnabled = function () {
|
|
|
79
79
|
|
|
80
80
|
Gauge.prototype.setTemplate = function (template) {
|
|
81
81
|
this._gauge.setTemplate(template)
|
|
82
|
-
if (this._showing)
|
|
82
|
+
if (this._showing) {
|
|
83
|
+
this._requestRedraw()
|
|
84
|
+
}
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
Gauge.prototype._computeTheme = function (theme) {
|
|
86
|
-
if (!theme)
|
|
88
|
+
if (!theme) {
|
|
89
|
+
theme = {}
|
|
90
|
+
}
|
|
87
91
|
if (typeof theme === 'string') {
|
|
88
92
|
theme = this._themes.getTheme(theme)
|
|
89
|
-
} else if (
|
|
93
|
+
} else if (
|
|
94
|
+
theme &&
|
|
95
|
+
(Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor != null)
|
|
96
|
+
) {
|
|
90
97
|
var useUnicode = theme.hasUnicode == null ? hasUnicode() : theme.hasUnicode
|
|
91
98
|
var useColor = theme.hasColor == null ? hasColor : theme.hasColor
|
|
92
|
-
theme = this._themes.getDefault({
|
|
99
|
+
theme = this._themes.getDefault({
|
|
100
|
+
hasUnicode: useUnicode,
|
|
101
|
+
hasColor: useColor,
|
|
102
|
+
platform: theme.platform,
|
|
103
|
+
})
|
|
93
104
|
}
|
|
94
105
|
return theme
|
|
95
106
|
}
|
|
@@ -101,13 +112,17 @@ Gauge.prototype.setThemeset = function (themes) {
|
|
|
101
112
|
|
|
102
113
|
Gauge.prototype.setTheme = function (theme) {
|
|
103
114
|
this._gauge.setTheme(this._computeTheme(theme))
|
|
104
|
-
if (this._showing)
|
|
115
|
+
if (this._showing) {
|
|
116
|
+
this._requestRedraw()
|
|
117
|
+
}
|
|
105
118
|
this._theme = theme
|
|
106
119
|
}
|
|
107
120
|
|
|
108
121
|
Gauge.prototype._requestRedraw = function () {
|
|
109
122
|
this._needsRedraw = true
|
|
110
|
-
if (!this._fixedFramerate)
|
|
123
|
+
if (!this._fixedFramerate) {
|
|
124
|
+
this._doRedraw()
|
|
125
|
+
}
|
|
111
126
|
}
|
|
112
127
|
|
|
113
128
|
Gauge.prototype.getWidth = function () {
|
|
@@ -116,25 +131,39 @@ Gauge.prototype.getWidth = function () {
|
|
|
116
131
|
|
|
117
132
|
Gauge.prototype.setWriteTo = function (writeTo, tty) {
|
|
118
133
|
var enabled = !this._disabled
|
|
119
|
-
if (enabled)
|
|
134
|
+
if (enabled) {
|
|
135
|
+
this.disable()
|
|
136
|
+
}
|
|
120
137
|
this._writeTo = writeTo
|
|
121
138
|
this._tty = tty ||
|
|
122
139
|
(writeTo === process.stderr && process.stdout.isTTY && process.stdout) ||
|
|
123
140
|
(writeTo.isTTY && writeTo) ||
|
|
124
141
|
this._tty
|
|
125
|
-
if (this._gauge)
|
|
126
|
-
|
|
142
|
+
if (this._gauge) {
|
|
143
|
+
this._gauge.setWidth(this.getWidth())
|
|
144
|
+
}
|
|
145
|
+
if (enabled) {
|
|
146
|
+
this.enable()
|
|
147
|
+
}
|
|
127
148
|
}
|
|
128
149
|
|
|
129
150
|
Gauge.prototype.enable = function () {
|
|
130
|
-
if (!this._disabled)
|
|
151
|
+
if (!this._disabled) {
|
|
152
|
+
return
|
|
153
|
+
}
|
|
131
154
|
this._disabled = false
|
|
132
|
-
if (this._tty)
|
|
133
|
-
|
|
155
|
+
if (this._tty) {
|
|
156
|
+
this._enableEvents()
|
|
157
|
+
}
|
|
158
|
+
if (this._showing) {
|
|
159
|
+
this.show()
|
|
160
|
+
}
|
|
134
161
|
}
|
|
135
162
|
|
|
136
163
|
Gauge.prototype.disable = function () {
|
|
137
|
-
if (this._disabled)
|
|
164
|
+
if (this._disabled) {
|
|
165
|
+
return
|
|
166
|
+
}
|
|
138
167
|
if (this._showing) {
|
|
139
168
|
this._lastUpdateAt = null
|
|
140
169
|
this._showing = false
|
|
@@ -142,7 +171,9 @@ Gauge.prototype.disable = function () {
|
|
|
142
171
|
this._showing = true
|
|
143
172
|
}
|
|
144
173
|
this._disabled = true
|
|
145
|
-
if (this._tty)
|
|
174
|
+
if (this._tty) {
|
|
175
|
+
this._disableEvents()
|
|
176
|
+
}
|
|
146
177
|
}
|
|
147
178
|
|
|
148
179
|
Gauge.prototype._enableEvents = function () {
|
|
@@ -152,19 +183,29 @@ Gauge.prototype._enableEvents = function () {
|
|
|
152
183
|
this._tty.on('resize', this._$$handleSizeChange)
|
|
153
184
|
if (this._fixedFramerate) {
|
|
154
185
|
this.redrawTracker = setInterval(this._$$doRedraw, this._updateInterval)
|
|
155
|
-
if (this.redrawTracker.unref)
|
|
186
|
+
if (this.redrawTracker.unref) {
|
|
187
|
+
this.redrawTracker.unref()
|
|
188
|
+
}
|
|
156
189
|
}
|
|
157
190
|
}
|
|
158
191
|
|
|
159
192
|
Gauge.prototype._disableEvents = function () {
|
|
160
193
|
this._tty.removeListener('resize', this._$$handleSizeChange)
|
|
161
|
-
if (this._fixedFramerate)
|
|
162
|
-
|
|
194
|
+
if (this._fixedFramerate) {
|
|
195
|
+
clearInterval(this.redrawTracker)
|
|
196
|
+
}
|
|
197
|
+
if (this._removeOnExit) {
|
|
198
|
+
this._removeOnExit()
|
|
199
|
+
}
|
|
163
200
|
}
|
|
164
201
|
|
|
165
202
|
Gauge.prototype.hide = function (cb) {
|
|
166
|
-
if (this._disabled)
|
|
167
|
-
|
|
203
|
+
if (this._disabled) {
|
|
204
|
+
return cb && process.nextTick(cb)
|
|
205
|
+
}
|
|
206
|
+
if (!this._showing) {
|
|
207
|
+
return cb && process.nextTick(cb)
|
|
208
|
+
}
|
|
168
209
|
this._showing = false
|
|
169
210
|
this._doRedraw()
|
|
170
211
|
cb && setImmediate(cb)
|
|
@@ -181,16 +222,24 @@ Gauge.prototype.show = function (section, completed) {
|
|
|
181
222
|
this._status[key] = section[key]
|
|
182
223
|
}
|
|
183
224
|
}
|
|
184
|
-
if (completed != null)
|
|
185
|
-
|
|
225
|
+
if (completed != null) {
|
|
226
|
+
this._status.completed = completed
|
|
227
|
+
}
|
|
228
|
+
if (this._disabled) {
|
|
229
|
+
return
|
|
230
|
+
}
|
|
186
231
|
this._requestRedraw()
|
|
187
232
|
}
|
|
188
233
|
|
|
189
234
|
Gauge.prototype.pulse = function (subsection) {
|
|
190
235
|
this._status.subsection = subsection || ''
|
|
191
236
|
this._status.spun++
|
|
192
|
-
if (this._disabled)
|
|
193
|
-
|
|
237
|
+
if (this._disabled) {
|
|
238
|
+
return
|
|
239
|
+
}
|
|
240
|
+
if (!this._showing) {
|
|
241
|
+
return
|
|
242
|
+
}
|
|
194
243
|
this._requestRedraw()
|
|
195
244
|
}
|
|
196
245
|
|
|
@@ -200,10 +249,14 @@ Gauge.prototype._handleSizeChange = function () {
|
|
|
200
249
|
}
|
|
201
250
|
|
|
202
251
|
Gauge.prototype._doRedraw = function () {
|
|
203
|
-
if (this._disabled || this._paused)
|
|
252
|
+
if (this._disabled || this._paused) {
|
|
253
|
+
return
|
|
254
|
+
}
|
|
204
255
|
if (!this._fixedFramerate) {
|
|
205
256
|
var now = Date.now()
|
|
206
|
-
if (this._lastUpdateAt && now - this._lastUpdateAt < this._updateInterval)
|
|
257
|
+
if (this._lastUpdateAt && now - this._lastUpdateAt < this._updateInterval) {
|
|
258
|
+
return
|
|
259
|
+
}
|
|
207
260
|
this._lastUpdateAt = now
|
|
208
261
|
}
|
|
209
262
|
if (!this._showing && this._onScreen) {
|
|
@@ -214,7 +267,9 @@ Gauge.prototype._doRedraw = function () {
|
|
|
214
267
|
}
|
|
215
268
|
return this._writeTo.write(result)
|
|
216
269
|
}
|
|
217
|
-
if (!this._showing && !this._onScreen)
|
|
270
|
+
if (!this._showing && !this._onScreen) {
|
|
271
|
+
return
|
|
272
|
+
}
|
|
218
273
|
if (this._showing && !this._onScreen) {
|
|
219
274
|
this._onScreen = true
|
|
220
275
|
this._needsRedraw = true
|
|
@@ -222,7 +277,9 @@ Gauge.prototype._doRedraw = function () {
|
|
|
222
277
|
this._writeTo.write(this._gauge.hideCursor())
|
|
223
278
|
}
|
|
224
279
|
}
|
|
225
|
-
if (!this._needsRedraw)
|
|
280
|
+
if (!this._needsRedraw) {
|
|
281
|
+
return
|
|
282
|
+
}
|
|
226
283
|
if (!this._writeTo.write(this._gauge.show(this._status))) {
|
|
227
284
|
this._paused = true
|
|
228
285
|
this._writeTo.on('drain', callWith(this, function () {
|
|
@@ -4,7 +4,9 @@ var renderTemplate = require('./render-template.js')
|
|
|
4
4
|
var validate = require('aproba')
|
|
5
5
|
|
|
6
6
|
var Plumbing = module.exports = function (theme, template, width) {
|
|
7
|
-
if (!width)
|
|
7
|
+
if (!width) {
|
|
8
|
+
width = 80
|
|
9
|
+
}
|
|
8
10
|
validate('OAN', [theme, template, width])
|
|
9
11
|
this.showing = false
|
|
10
12
|
this.theme = theme
|
|
File without changes
|
|
@@ -6,14 +6,20 @@ var stringWidth = require('string-width')
|
|
|
6
6
|
|
|
7
7
|
module.exports = function (theme, width, completed) {
|
|
8
8
|
validate('ONN', [theme, width, completed])
|
|
9
|
-
if (completed < 0)
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
if (completed < 0) {
|
|
10
|
+
completed = 0
|
|
11
|
+
}
|
|
12
|
+
if (completed > 1) {
|
|
13
|
+
completed = 1
|
|
14
|
+
}
|
|
15
|
+
if (width <= 0) {
|
|
16
|
+
return ''
|
|
17
|
+
}
|
|
12
18
|
var sofar = Math.round(width * completed)
|
|
13
19
|
var rest = width - sofar
|
|
14
20
|
var template = [
|
|
15
|
-
{type: 'complete', value: repeat(theme.complete, sofar), length: sofar},
|
|
16
|
-
{type: 'remaining', value: repeat(theme.remaining, rest), length: rest}
|
|
21
|
+
{ type: 'complete', value: repeat(theme.complete, sofar), length: sofar },
|
|
22
|
+
{ type: 'remaining', value: repeat(theme.remaining, rest), length: rest },
|
|
17
23
|
]
|
|
18
24
|
return renderTemplate(width, template, theme)
|
|
19
25
|
}
|