pnpm 6.22.2 → 6.23.3

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.
Files changed (116) hide show
  1. package/dist/node_modules/ansi-regex/index.js +8 -2
  2. package/dist/node_modules/ansi-regex/license +4 -16
  3. package/dist/node_modules/ansi-regex/package.json +53 -62
  4. package/dist/node_modules/aproba/index.js +33 -33
  5. package/dist/node_modules/aproba/package.json +5 -4
  6. package/dist/node_modules/are-we-there-yet/{index.js → lib/index.js} +0 -0
  7. package/dist/node_modules/are-we-there-yet/{tracker-base.js → lib/tracker-base.js} +0 -0
  8. package/dist/node_modules/are-we-there-yet/{tracker-group.js → lib/tracker-group.js} +14 -5
  9. package/dist/node_modules/are-we-there-yet/{tracker-stream.js → lib/tracker-stream.js} +0 -0
  10. package/dist/node_modules/are-we-there-yet/{tracker.js → lib/tracker.js} +3 -1
  11. package/dist/node_modules/are-we-there-yet/package.json +35 -17
  12. package/dist/node_modules/{npmlog → color-support}/LICENSE +0 -0
  13. package/dist/node_modules/color-support/bin.js +3 -0
  14. package/dist/node_modules/color-support/browser.js +14 -0
  15. package/dist/node_modules/color-support/index.js +134 -0
  16. package/dist/node_modules/color-support/package.json +36 -0
  17. package/dist/node_modules/debug/LICENSE +10 -9
  18. package/dist/node_modules/debug/package.json +6 -6
  19. package/dist/node_modules/debug/src/common.js +1 -1
  20. package/dist/node_modules/gauge/{base-theme.js → lib/base-theme.js} +7 -3
  21. package/dist/node_modules/gauge/lib/demo.js +45 -0
  22. package/dist/node_modules/gauge/{error.js → lib/error.js} +0 -0
  23. package/dist/node_modules/gauge/lib/has-color.js +4 -0
  24. package/dist/node_modules/gauge/{index.js → lib/index.js} +90 -33
  25. package/dist/node_modules/gauge/{plumbing.js → lib/plumbing.js} +3 -1
  26. package/dist/node_modules/gauge/{process.js → lib/process.js} +0 -0
  27. package/dist/node_modules/gauge/{progress-bar.js → lib/progress-bar.js} +12 -6
  28. package/dist/node_modules/gauge/{render-template.js → lib/render-template.js} +69 -28
  29. package/dist/node_modules/gauge/{set-immediate.js → lib/set-immediate.js} +0 -0
  30. package/dist/node_modules/gauge/{set-interval.js → lib/set-interval.js} +0 -0
  31. package/dist/node_modules/gauge/{spin.js → lib/spin.js} +0 -0
  32. package/dist/node_modules/gauge/{template-item.js → lib/template-item.js} +21 -7
  33. package/dist/node_modules/gauge/{theme-set.js → lib/theme-set.js} +31 -24
  34. package/dist/node_modules/gauge/lib/themes.js +56 -0
  35. package/dist/node_modules/gauge/{wide-truncate.js → lib/wide-truncate.js} +9 -3
  36. package/dist/node_modules/gauge/package.json +39 -40
  37. package/dist/node_modules/is-fullwidth-code-point/index.js +40 -36
  38. package/dist/node_modules/is-fullwidth-code-point/license +4 -16
  39. package/dist/node_modules/is-fullwidth-code-point/package.json +40 -43
  40. package/dist/node_modules/node-gyp/package.json +2 -2
  41. package/dist/node_modules/npmlog/{log.js → lib/log.js} +148 -54
  42. package/dist/node_modules/npmlog/package.json +30 -12
  43. package/dist/node_modules/readable-stream/errors-browser.js +127 -0
  44. package/dist/node_modules/readable-stream/errors.js +116 -0
  45. package/dist/node_modules/readable-stream/experimentalWarning.js +17 -0
  46. package/dist/node_modules/readable-stream/lib/_stream_duplex.js +52 -44
  47. package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +1 -9
  48. package/dist/node_modules/readable-stream/lib/_stream_readable.js +446 -341
  49. package/dist/node_modules/readable-stream/lib/_stream_transform.js +29 -42
  50. package/dist/node_modules/readable-stream/lib/_stream_writable.js +200 -190
  51. package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
  52. package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
  53. package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +48 -17
  54. package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
  55. package/dist/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  56. package/dist/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
  57. package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
  58. package/dist/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
  59. package/dist/node_modules/readable-stream/package.json +35 -19
  60. package/dist/node_modules/readable-stream/readable-browser.js +2 -0
  61. package/dist/node_modules/readable-stream/readable.js +5 -8
  62. package/dist/node_modules/safe-buffer/index.js +3 -0
  63. package/dist/node_modules/safe-buffer/package.json +18 -4
  64. package/dist/node_modules/signal-exit/index.js +30 -8
  65. package/dist/node_modules/signal-exit/package.json +7 -5
  66. package/dist/node_modules/socks-proxy-agent/package.json +2 -2
  67. package/dist/node_modules/string-width/index.js +29 -19
  68. package/dist/node_modules/string-width/license +4 -16
  69. package/dist/node_modules/string-width/package.json +54 -54
  70. package/dist/node_modules/string_decoder/package.json +5 -2
  71. package/dist/node_modules/strip-ansi/index.js +2 -4
  72. package/dist/node_modules/strip-ansi/license +4 -16
  73. package/dist/node_modules/strip-ansi/package.json +52 -55
  74. package/dist/pnpm.cjs +52779 -4337
  75. package/package.json +18 -18
  76. package/dist/node_modules/are-we-there-yet/LICENSE +0 -5
  77. package/dist/node_modules/code-point-at/index.js +0 -32
  78. package/dist/node_modules/code-point-at/license +0 -21
  79. package/dist/node_modules/code-point-at/package.json +0 -38
  80. package/dist/node_modules/core-util-is/LICENSE +0 -19
  81. package/dist/node_modules/core-util-is/lib/util.js +0 -107
  82. package/dist/node_modules/core-util-is/package.json +0 -38
  83. package/dist/node_modules/gauge/LICENSE +0 -13
  84. package/dist/node_modules/gauge/has-color.js +0 -12
  85. package/dist/node_modules/gauge/themes.js +0 -54
  86. package/dist/node_modules/isarray/component.json +0 -19
  87. package/dist/node_modules/isarray/index.js +0 -5
  88. package/dist/node_modules/isarray/package.json +0 -45
  89. package/dist/node_modules/isarray/test.js +0 -20
  90. package/dist/node_modules/number-is-nan/index.js +0 -4
  91. package/dist/node_modules/number-is-nan/license +0 -21
  92. package/dist/node_modules/number-is-nan/package.json +0 -35
  93. package/dist/node_modules/object-assign/index.js +0 -90
  94. package/dist/node_modules/object-assign/license +0 -21
  95. package/dist/node_modules/object-assign/package.json +0 -42
  96. package/dist/node_modules/process-nextick-args/index.js +0 -45
  97. package/dist/node_modules/process-nextick-args/package.json +0 -25
  98. package/dist/node_modules/readable-stream/duplex-browser.js +0 -1
  99. package/dist/node_modules/readable-stream/duplex.js +0 -1
  100. package/dist/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
  101. package/dist/node_modules/readable-stream/passthrough.js +0 -1
  102. package/dist/node_modules/readable-stream/transform.js +0 -1
  103. package/dist/node_modules/readable-stream/writable-browser.js +0 -1
  104. package/dist/node_modules/readable-stream/writable.js +0 -8
  105. package/dist/node_modules/wide-align/node_modules/ansi-regex/index.js +0 -10
  106. package/dist/node_modules/wide-align/node_modules/ansi-regex/license +0 -9
  107. package/dist/node_modules/wide-align/node_modules/ansi-regex/package.json +0 -55
  108. package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/index.js +0 -50
  109. package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/license +0 -9
  110. package/dist/node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json +0 -42
  111. package/dist/node_modules/wide-align/node_modules/string-width/index.js +0 -47
  112. package/dist/node_modules/wide-align/node_modules/string-width/license +0 -9
  113. package/dist/node_modules/wide-align/node_modules/string-width/package.json +0 -56
  114. package/dist/node_modules/wide-align/node_modules/strip-ansi/index.js +0 -4
  115. package/dist/node_modules/wide-align/node_modules/strip-ansi/license +0 -9
  116. package/dist/node_modules/wide-align/node_modules/strip-ansi/package.json +0 -54
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,42 +0,0 @@
1
- {
2
- "name": "object-assign",
3
- "version": "4.1.1",
4
- "description": "ES2015 `Object.assign()` ponyfill",
5
- "license": "MIT",
6
- "repository": "sindresorhus/object-assign",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=0.10.0"
14
- },
15
- "scripts": {
16
- "test": "xo && ava",
17
- "bench": "matcha bench.js"
18
- },
19
- "files": [
20
- "index.js"
21
- ],
22
- "keywords": [
23
- "object",
24
- "assign",
25
- "extend",
26
- "properties",
27
- "es2015",
28
- "ecmascript",
29
- "harmony",
30
- "ponyfill",
31
- "prollyfill",
32
- "polyfill",
33
- "shim",
34
- "browser"
35
- ],
36
- "devDependencies": {
37
- "ava": "^0.16.0",
38
- "lodash": "^4.16.4",
39
- "matcha": "^0.7.0",
40
- "xo": "^0.16.0"
41
- }
42
- }
@@ -1,45 +0,0 @@
1
- 'use strict';
2
-
3
- if (typeof process === 'undefined' ||
4
- !process.version ||
5
- process.version.indexOf('v0.') === 0 ||
6
- process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
7
- module.exports = { nextTick: nextTick };
8
- } else {
9
- module.exports = process
10
- }
11
-
12
- function nextTick(fn, arg1, arg2, arg3) {
13
- if (typeof fn !== 'function') {
14
- throw new TypeError('"callback" argument must be a function');
15
- }
16
- var len = arguments.length;
17
- var args, i;
18
- switch (len) {
19
- case 0:
20
- case 1:
21
- return process.nextTick(fn);
22
- case 2:
23
- return process.nextTick(function afterTickOne() {
24
- fn.call(null, arg1);
25
- });
26
- case 3:
27
- return process.nextTick(function afterTickTwo() {
28
- fn.call(null, arg1, arg2);
29
- });
30
- case 4:
31
- return process.nextTick(function afterTickThree() {
32
- fn.call(null, arg1, arg2, arg3);
33
- });
34
- default:
35
- args = new Array(len - 1);
36
- i = 0;
37
- while (i < args.length) {
38
- args[i++] = arguments[i];
39
- }
40
- return process.nextTick(function afterTick() {
41
- fn.apply(null, args);
42
- });
43
- }
44
- }
45
-
@@ -1,25 +0,0 @@
1
- {
2
- "name": "process-nextick-args",
3
- "version": "2.0.1",
4
- "description": "process.nextTick but always with args",
5
- "main": "index.js",
6
- "files": [
7
- "index.js"
8
- ],
9
- "scripts": {
10
- "test": "node test.js"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/calvinmetcalf/process-nextick-args.git"
15
- },
16
- "author": "",
17
- "license": "MIT",
18
- "bugs": {
19
- "url": "https://github.com/calvinmetcalf/process-nextick-args/issues"
20
- },
21
- "homepage": "https://github.com/calvinmetcalf/process-nextick-args",
22
- "devDependencies": {
23
- "tap": "~0.2.6"
24
- }
25
- }
@@ -1 +0,0 @@
1
- module.exports = require('./lib/_stream_duplex.js');
@@ -1 +0,0 @@
1
- module.exports = require('./readable').Duplex
@@ -1,79 +0,0 @@
1
- 'use strict';
2
-
3
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4
-
5
- var Buffer = require('safe-buffer').Buffer;
6
- var util = require('util');
7
-
8
- function copyBuffer(src, target, offset) {
9
- src.copy(target, offset);
10
- }
11
-
12
- module.exports = function () {
13
- function BufferList() {
14
- _classCallCheck(this, BufferList);
15
-
16
- this.head = null;
17
- this.tail = null;
18
- this.length = 0;
19
- }
20
-
21
- BufferList.prototype.push = function push(v) {
22
- var entry = { data: v, next: null };
23
- if (this.length > 0) this.tail.next = entry;else this.head = entry;
24
- this.tail = entry;
25
- ++this.length;
26
- };
27
-
28
- BufferList.prototype.unshift = function unshift(v) {
29
- var entry = { data: v, next: this.head };
30
- if (this.length === 0) this.tail = entry;
31
- this.head = entry;
32
- ++this.length;
33
- };
34
-
35
- BufferList.prototype.shift = function shift() {
36
- if (this.length === 0) return;
37
- var ret = this.head.data;
38
- if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
39
- --this.length;
40
- return ret;
41
- };
42
-
43
- BufferList.prototype.clear = function clear() {
44
- this.head = this.tail = null;
45
- this.length = 0;
46
- };
47
-
48
- BufferList.prototype.join = function join(s) {
49
- if (this.length === 0) return '';
50
- var p = this.head;
51
- var ret = '' + p.data;
52
- while (p = p.next) {
53
- ret += s + p.data;
54
- }return ret;
55
- };
56
-
57
- BufferList.prototype.concat = function concat(n) {
58
- if (this.length === 0) return Buffer.alloc(0);
59
- if (this.length === 1) return this.head.data;
60
- var ret = Buffer.allocUnsafe(n >>> 0);
61
- var p = this.head;
62
- var i = 0;
63
- while (p) {
64
- copyBuffer(p.data, ret, i);
65
- i += p.data.length;
66
- p = p.next;
67
- }
68
- return ret;
69
- };
70
-
71
- return BufferList;
72
- }();
73
-
74
- if (util && util.inspect && util.inspect.custom) {
75
- module.exports.prototype[util.inspect.custom] = function () {
76
- var obj = util.inspect({ length: this.length });
77
- return this.constructor.name + ' ' + obj;
78
- };
79
- }
@@ -1 +0,0 @@
1
- module.exports = require('./readable').PassThrough
@@ -1 +0,0 @@
1
- module.exports = require('./readable').Transform
@@ -1 +0,0 @@
1
- module.exports = require('./lib/_stream_writable.js');
@@ -1,8 +0,0 @@
1
- var Stream = require("stream")
2
- var Writable = require("./lib/_stream_writable.js")
3
-
4
- if (process.env.READABLE_STREAM === 'disable') {
5
- module.exports = Stream && Stream.Writable || Writable
6
- } else {
7
- module.exports = Writable
8
- }
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = ({onlyFirst = false} = {}) => {
4
- const pattern = [
5
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
6
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
7
- ].join('|');
8
-
9
- return new RegExp(pattern, onlyFirst ? undefined : 'g');
10
- };
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,55 +0,0 @@
1
- {
2
- "name": "ansi-regex",
3
- "version": "5.0.1",
4
- "description": "Regular expression for matching ANSI escape codes",
5
- "license": "MIT",
6
- "repository": "chalk/ansi-regex",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=8"
14
- },
15
- "scripts": {
16
- "test": "xo && ava && tsd",
17
- "view-supported": "node fixtures/view-codes.js"
18
- },
19
- "files": [
20
- "index.js",
21
- "index.d.ts"
22
- ],
23
- "keywords": [
24
- "ansi",
25
- "styles",
26
- "color",
27
- "colour",
28
- "colors",
29
- "terminal",
30
- "console",
31
- "cli",
32
- "string",
33
- "tty",
34
- "escape",
35
- "formatting",
36
- "rgb",
37
- "256",
38
- "shell",
39
- "xterm",
40
- "command-line",
41
- "text",
42
- "regex",
43
- "regexp",
44
- "re",
45
- "match",
46
- "test",
47
- "find",
48
- "pattern"
49
- ],
50
- "devDependencies": {
51
- "ava": "^2.4.0",
52
- "tsd": "^0.9.0",
53
- "xo": "^0.25.3"
54
- }
55
- }
@@ -1,50 +0,0 @@
1
- /* eslint-disable yoda */
2
- 'use strict';
3
-
4
- const isFullwidthCodePoint = codePoint => {
5
- if (Number.isNaN(codePoint)) {
6
- return false;
7
- }
8
-
9
- // Code points are derived from:
10
- // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
11
- if (
12
- codePoint >= 0x1100 && (
13
- codePoint <= 0x115F || // Hangul Jamo
14
- codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
15
- codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
16
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
17
- (0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
18
- // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
19
- (0x3250 <= codePoint && codePoint <= 0x4DBF) ||
20
- // CJK Unified Ideographs .. Yi Radicals
21
- (0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
22
- // Hangul Jamo Extended-A
23
- (0xA960 <= codePoint && codePoint <= 0xA97C) ||
24
- // Hangul Syllables
25
- (0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
26
- // CJK Compatibility Ideographs
27
- (0xF900 <= codePoint && codePoint <= 0xFAFF) ||
28
- // Vertical Forms
29
- (0xFE10 <= codePoint && codePoint <= 0xFE19) ||
30
- // CJK Compatibility Forms .. Small Form Variants
31
- (0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
32
- // Halfwidth and Fullwidth Forms
33
- (0xFF01 <= codePoint && codePoint <= 0xFF60) ||
34
- (0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
35
- // Kana Supplement
36
- (0x1B000 <= codePoint && codePoint <= 0x1B001) ||
37
- // Enclosed Ideographic Supplement
38
- (0x1F200 <= codePoint && codePoint <= 0x1F251) ||
39
- // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
40
- (0x20000 <= codePoint && codePoint <= 0x3FFFD)
41
- )
42
- ) {
43
- return true;
44
- }
45
-
46
- return false;
47
- };
48
-
49
- module.exports = isFullwidthCodePoint;
50
- module.exports.default = isFullwidthCodePoint;
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,42 +0,0 @@
1
- {
2
- "name": "is-fullwidth-code-point",
3
- "version": "3.0.0",
4
- "description": "Check if the character represented by a given Unicode code point is fullwidth",
5
- "license": "MIT",
6
- "repository": "sindresorhus/is-fullwidth-code-point",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=8"
14
- },
15
- "scripts": {
16
- "test": "xo && ava && tsd-check"
17
- },
18
- "files": [
19
- "index.js",
20
- "index.d.ts"
21
- ],
22
- "keywords": [
23
- "fullwidth",
24
- "full-width",
25
- "full",
26
- "width",
27
- "unicode",
28
- "character",
29
- "string",
30
- "codepoint",
31
- "code",
32
- "point",
33
- "is",
34
- "detect",
35
- "check"
36
- ],
37
- "devDependencies": {
38
- "ava": "^1.3.1",
39
- "tsd-check": "^0.5.0",
40
- "xo": "^0.24.0"
41
- }
42
- }
@@ -1,47 +0,0 @@
1
- 'use strict';
2
- const stripAnsi = require('strip-ansi');
3
- const isFullwidthCodePoint = require('is-fullwidth-code-point');
4
- const emojiRegex = require('emoji-regex');
5
-
6
- const stringWidth = string => {
7
- if (typeof string !== 'string' || string.length === 0) {
8
- return 0;
9
- }
10
-
11
- string = stripAnsi(string);
12
-
13
- if (string.length === 0) {
14
- return 0;
15
- }
16
-
17
- string = string.replace(emojiRegex(), ' ');
18
-
19
- let width = 0;
20
-
21
- for (let i = 0; i < string.length; i++) {
22
- const code = string.codePointAt(i);
23
-
24
- // Ignore control characters
25
- if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
26
- continue;
27
- }
28
-
29
- // Ignore combining characters
30
- if (code >= 0x300 && code <= 0x36F) {
31
- continue;
32
- }
33
-
34
- // Surrogates
35
- if (code > 0xFFFF) {
36
- i++;
37
- }
38
-
39
- width += isFullwidthCodePoint(code) ? 2 : 1;
40
- }
41
-
42
- return width;
43
- };
44
-
45
- module.exports = stringWidth;
46
- // TODO: remove this in the next major version
47
- module.exports.default = stringWidth;
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,56 +0,0 @@
1
- {
2
- "name": "string-width",
3
- "version": "4.2.3",
4
- "description": "Get the visual width of a string - the number of columns required to display it",
5
- "license": "MIT",
6
- "repository": "sindresorhus/string-width",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=8"
14
- },
15
- "scripts": {
16
- "test": "xo && ava && tsd"
17
- },
18
- "files": [
19
- "index.js",
20
- "index.d.ts"
21
- ],
22
- "keywords": [
23
- "string",
24
- "character",
25
- "unicode",
26
- "width",
27
- "visual",
28
- "column",
29
- "columns",
30
- "fullwidth",
31
- "full-width",
32
- "full",
33
- "ansi",
34
- "escape",
35
- "codes",
36
- "cli",
37
- "command-line",
38
- "terminal",
39
- "console",
40
- "cjk",
41
- "chinese",
42
- "japanese",
43
- "korean",
44
- "fixed-width"
45
- ],
46
- "dependencies": {
47
- "emoji-regex": "^8.0.0",
48
- "is-fullwidth-code-point": "^3.0.0",
49
- "strip-ansi": "^6.0.1"
50
- },
51
- "devDependencies": {
52
- "ava": "^1.4.1",
53
- "tsd": "^0.7.1",
54
- "xo": "^0.24.0"
55
- }
56
- }
@@ -1,4 +0,0 @@
1
- 'use strict';
2
- const ansiRegex = require('ansi-regex');
3
-
4
- module.exports = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,54 +0,0 @@
1
- {
2
- "name": "strip-ansi",
3
- "version": "6.0.1",
4
- "description": "Strip ANSI escape codes from a string",
5
- "license": "MIT",
6
- "repository": "chalk/strip-ansi",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=8"
14
- },
15
- "scripts": {
16
- "test": "xo && ava && tsd"
17
- },
18
- "files": [
19
- "index.js",
20
- "index.d.ts"
21
- ],
22
- "keywords": [
23
- "strip",
24
- "trim",
25
- "remove",
26
- "ansi",
27
- "styles",
28
- "color",
29
- "colour",
30
- "colors",
31
- "terminal",
32
- "console",
33
- "string",
34
- "tty",
35
- "escape",
36
- "formatting",
37
- "rgb",
38
- "256",
39
- "shell",
40
- "xterm",
41
- "log",
42
- "logging",
43
- "command-line",
44
- "text"
45
- ],
46
- "dependencies": {
47
- "ansi-regex": "^5.0.1"
48
- },
49
- "devDependencies": {
50
- "ava": "^2.4.0",
51
- "tsd": "^0.10.0",
52
- "xo": "^0.25.3"
53
- }
54
- }