spawn-term 0.1.54 → 0.1.55
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/assets/ink.cjs +1530 -1533
- package/assets/intl-adapter.cjs +44 -44
- package/package.json +2 -2
package/assets/intl-adapter.cjs
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: function
|
|
7
|
+
get: function() {
|
|
8
8
|
return intlAdapter;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
@@ -16,7 +16,7 @@ function _class_call_check(instance, Constructor) {
|
|
|
16
16
|
function _ts_generator(thisArg, body) {
|
|
17
17
|
var f, y, t, g, _ = {
|
|
18
18
|
label: 0,
|
|
19
|
-
sent: function
|
|
19
|
+
sent: function() {
|
|
20
20
|
if (t[0] & 1) throw t[1];
|
|
21
21
|
return t[1];
|
|
22
22
|
},
|
|
@@ -27,11 +27,11 @@ function _ts_generator(thisArg, body) {
|
|
|
27
27
|
next: verb(0),
|
|
28
28
|
"throw": verb(1),
|
|
29
29
|
"return": verb(2)
|
|
30
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function
|
|
30
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
31
31
|
return this;
|
|
32
32
|
}), g;
|
|
33
33
|
function verb(n) {
|
|
34
|
-
return function
|
|
34
|
+
return function(v) {
|
|
35
35
|
return step([
|
|
36
36
|
n,
|
|
37
37
|
v
|
|
@@ -40,13 +40,13 @@ function _ts_generator(thisArg, body) {
|
|
|
40
40
|
}
|
|
41
41
|
function step(op) {
|
|
42
42
|
if (f) throw new TypeError("Generator is already executing.");
|
|
43
|
-
while
|
|
43
|
+
while(_)try {
|
|
44
44
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
45
45
|
if (y = 0, t) op = [
|
|
46
46
|
op[0] & 2,
|
|
47
47
|
t.value
|
|
48
48
|
];
|
|
49
|
-
switch
|
|
49
|
+
switch(op[0]){
|
|
50
50
|
case 0:
|
|
51
51
|
case 1:
|
|
52
52
|
t = op;
|
|
@@ -98,9 +98,9 @@ function _ts_generator(thisArg, body) {
|
|
|
98
98
|
e
|
|
99
99
|
];
|
|
100
100
|
y = 0;
|
|
101
|
-
} finally
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
} finally{
|
|
102
|
+
f = t = 0;
|
|
103
|
+
}
|
|
104
104
|
if (op[0] & 5) throw op[1];
|
|
105
105
|
return {
|
|
106
106
|
value: op[0] ? op[1] : void 0,
|
|
@@ -175,7 +175,7 @@ function requireCore() {
|
|
|
175
175
|
var sliceFrom = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, sliceTo = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : buffer.length;
|
|
176
176
|
var lo = sliceFrom;
|
|
177
177
|
var hi = sliceTo - 2;
|
|
178
|
-
while
|
|
178
|
+
while(lo <= hi){
|
|
179
179
|
var mid = lo + hi >> 1 & -2;
|
|
180
180
|
var l = buffer[mid], h = buffer[mid + 1];
|
|
181
181
|
if (l <= x && x <= h) {
|
|
@@ -195,10 +195,10 @@ function requireCore() {
|
|
|
195
195
|
* @return {LookupTableBuffer}
|
|
196
196
|
*/ function initLookupTableBuffer(buffer, value) {
|
|
197
197
|
var sep = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : '';
|
|
198
|
-
var nums = value.split(sep).map(function
|
|
198
|
+
var nums = value.split(sep).map(function(s) {
|
|
199
199
|
return s ? parseInt(s, 36) : 0;
|
|
200
200
|
});
|
|
201
|
-
for
|
|
201
|
+
for(var i = 0; i < nums.length; i++)buffer[i] = nums[i];
|
|
202
202
|
return /** @type {LookupTableBuffer} */ buffer;
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
@@ -206,10 +206,10 @@ function requireCore() {
|
|
|
206
206
|
* @param {UnicodeRangeEncoding} value
|
|
207
207
|
* @return {UnicodeRangeBuffer}
|
|
208
208
|
*/ function initUnicodeRangeBuffer(buffer, value) {
|
|
209
|
-
var nums = value.split(',').map(function
|
|
209
|
+
var nums = value.split(',').map(function(s) {
|
|
210
210
|
return s ? parseInt(s, 36) : 0;
|
|
211
211
|
});
|
|
212
|
-
for
|
|
212
|
+
for(var i = 0, n = 0; i < nums.length; i++)buffer[i] = i % 2 ? n + nums[i] : n = nums[i];
|
|
213
213
|
return /** @type {UnicodeRangeBuffer} */ buffer;
|
|
214
214
|
}
|
|
215
215
|
return core;
|
|
@@ -518,7 +518,7 @@ function requireGrapheme() {
|
|
|
518
518
|
return [
|
|
519
519
|
0,
|
|
520
520
|
0,
|
|
521
|
-
0 /* GC_Any */
|
|
521
|
+
0 /* GC_Any */
|
|
522
522
|
];
|
|
523
523
|
}
|
|
524
524
|
return [
|
|
@@ -537,8 +537,8 @@ function requireGrapheme() {
|
|
|
537
537
|
* @return {GraphemeSegmenter} iterator for grapheme cluster segments
|
|
538
538
|
*/ function graphemeSegments(input) {
|
|
539
539
|
var cursor, len, catBefore, catAfter, catBegin, cache, risCount, emoji, consonant, linker, incb, cp, index, segment;
|
|
540
|
-
return _ts_generator(this, function
|
|
541
|
-
switch
|
|
540
|
+
return _ts_generator(this, function(_state) {
|
|
541
|
+
switch(_state.label){
|
|
542
542
|
case 0:
|
|
543
543
|
// do nothing on empty string
|
|
544
544
|
if (input === '') {
|
|
@@ -554,7 +554,7 @@ function requireGrapheme() {
|
|
|
554
554
|
/** @type {import('./_grapheme_data.js').GraphemeCategoryRange} */ cache = [
|
|
555
555
|
0,
|
|
556
556
|
0,
|
|
557
|
-
2 /* GC_Control */
|
|
557
|
+
2 /* GC_Control */
|
|
558
558
|
];
|
|
559
559
|
/** @type {number} The number of RIS codepoints preceding `cursor`. */ risCount = 0;
|
|
560
560
|
/** Emoji state */ emoji = false;
|
|
@@ -585,7 +585,7 @@ function requireGrapheme() {
|
|
|
585
585
|
// which is a extra overhead only for Hindi text.
|
|
586
586
|
if (!consonant && catBefore === 0) {
|
|
587
587
|
consonant = isIndicConjunctCosonant(cp);
|
|
588
|
-
} else if (catBefore === 3 /* Extend */) {
|
|
588
|
+
} else if (catBefore === 3 /* Extend */ ) {
|
|
589
589
|
// Note: \p{InCB=Linker} is a subset of \p{Extend}
|
|
590
590
|
linker = isIndicConjunctLinker(cp);
|
|
591
591
|
}
|
|
@@ -616,13 +616,13 @@ function requireGrapheme() {
|
|
|
616
616
|
2
|
|
617
617
|
];
|
|
618
618
|
case 4:
|
|
619
|
-
if (catBefore === 10 /* Regional_Indicator */) {
|
|
619
|
+
if (catBefore === 10 /* Regional_Indicator */ ) {
|
|
620
620
|
risCount += 1;
|
|
621
621
|
} else {
|
|
622
622
|
risCount = 0;
|
|
623
|
-
if (catAfter === 14 /* ZWJ */
|
|
623
|
+
if (catAfter === 14 /* ZWJ */ && (catBefore === 3 /* Extend */ || catBefore === 4 /* Extended_Pictographic */ )) {
|
|
624
624
|
emoji = true;
|
|
625
|
-
} else if (catAfter === 0 /* Any */) {
|
|
625
|
+
} else if (catAfter === 0 /* Any */ ) {
|
|
626
626
|
// Note: Put GB9c rule checking here to reduce.
|
|
627
627
|
incb = consonant && linker && (consonant = isIndicConjunctCosonant(cp));
|
|
628
628
|
// It cannot be both a linker and a consonant.
|
|
@@ -680,19 +680,19 @@ function requireGrapheme() {
|
|
|
680
680
|
var count = 0;
|
|
681
681
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
682
682
|
try {
|
|
683
|
-
for
|
|
683
|
+
for(var _iterator = graphemeSegments(text)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
684
684
|
var _ = _step.value;
|
|
685
685
|
count += 1;
|
|
686
686
|
}
|
|
687
687
|
} catch (err) {
|
|
688
688
|
_didIteratorError = true;
|
|
689
689
|
_iteratorError = err;
|
|
690
|
-
} finally
|
|
690
|
+
} finally{
|
|
691
691
|
try {
|
|
692
692
|
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
693
693
|
_iterator.return();
|
|
694
694
|
}
|
|
695
|
-
} finally
|
|
695
|
+
} finally{
|
|
696
696
|
if (_didIteratorError) {
|
|
697
697
|
throw _iteratorError;
|
|
698
698
|
}
|
|
@@ -712,8 +712,8 @@ function requireGrapheme() {
|
|
|
712
712
|
* [...splitGraphemes('abc')] // => ['a', 'b', 'c']
|
|
713
713
|
*/ function splitGraphemes(text) {
|
|
714
714
|
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, s, err;
|
|
715
|
-
return _ts_generator(this, function
|
|
716
|
-
switch
|
|
715
|
+
return _ts_generator(this, function(_state) {
|
|
716
|
+
switch(_state.label){
|
|
717
717
|
case 0:
|
|
718
718
|
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
719
719
|
_state.label = 1;
|
|
@@ -763,7 +763,7 @@ function requireGrapheme() {
|
|
|
763
763
|
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
764
764
|
_iterator.return();
|
|
765
765
|
}
|
|
766
|
-
} finally
|
|
766
|
+
} finally{
|
|
767
767
|
if (_didIteratorError) {
|
|
768
768
|
throw _iteratorError;
|
|
769
769
|
}
|
|
@@ -793,13 +793,13 @@ function requireGrapheme() {
|
|
|
793
793
|
// due to use of punctuation and white space characters from the
|
|
794
794
|
// ascii range.
|
|
795
795
|
if (cp >= 32) {
|
|
796
|
-
return 0 /* GC_Any
|
|
796
|
+
return 0 /* GC_Any */ ;
|
|
797
797
|
} else if (cp === 10) {
|
|
798
|
-
return 6 /* GC_LF
|
|
798
|
+
return 6 /* GC_LF */ ;
|
|
799
799
|
} else if (cp === 13) {
|
|
800
|
-
return 1 /* GC_CR
|
|
800
|
+
return 1 /* GC_CR */ ;
|
|
801
801
|
} else {
|
|
802
|
-
return 2 /* GC_Control
|
|
802
|
+
return 2 /* GC_Control */ ;
|
|
803
803
|
}
|
|
804
804
|
} else {
|
|
805
805
|
// If this char isn't within the cached range, update the cache to the
|
|
@@ -826,7 +826,7 @@ function requireGrapheme() {
|
|
|
826
826
|
* @param {number} cp
|
|
827
827
|
* @return {boolean}
|
|
828
828
|
*/ function isIndicConjunctLinker(cp) {
|
|
829
|
-
return cp === 2381 /* 0x094D */
|
|
829
|
+
return cp === 2381 /* 0x094D */ || cp === 2509 /* 0x09CD */ || cp === 2765 /* 0x0ACD */ || cp === 2893 /* 0x0B4D */ || cp === 3149 /* 0x0C4D */ || cp === 3405 /* 0x0D4D */ ;
|
|
830
830
|
}
|
|
831
831
|
/**
|
|
832
832
|
* @param {GraphemeCategoryNum} catBefore
|
|
@@ -906,13 +906,13 @@ function requireIntlAdapter() {
|
|
|
906
906
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter
|
|
907
907
|
*
|
|
908
908
|
* @implements {IntlSegmenter}
|
|
909
|
-
*/ var Segmenter = /*#__PURE__*/ function
|
|
909
|
+
*/ var Segmenter = /*#__PURE__*/ function() {
|
|
910
910
|
"use strict";
|
|
911
911
|
function Segmenter(locale) {
|
|
912
912
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
913
913
|
_class_call_check(this, Segmenter);
|
|
914
914
|
var _options_granularity = options.granularity, granularity = _options_granularity === void 0 ? 'grapheme' : _options_granularity;
|
|
915
|
-
switch
|
|
915
|
+
switch(granularity){
|
|
916
916
|
case 'grapheme':
|
|
917
917
|
break;
|
|
918
918
|
case 'word':
|
|
@@ -953,7 +953,7 @@ function requireIntlAdapter() {
|
|
|
953
953
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments
|
|
954
954
|
* @implements {Intl.Segments}
|
|
955
955
|
*/ intlAdapter$1.Segmenter = Segmenter;
|
|
956
|
-
var SegmentsAdapter = /*#__PURE__*/ function
|
|
956
|
+
var SegmentsAdapter = /*#__PURE__*/ function() {
|
|
957
957
|
"use strict";
|
|
958
958
|
function SegmentsAdapter(input) {
|
|
959
959
|
_class_call_check(this, SegmentsAdapter);
|
|
@@ -962,10 +962,10 @@ function requireIntlAdapter() {
|
|
|
962
962
|
var _proto = SegmentsAdapter.prototype;
|
|
963
963
|
/**
|
|
964
964
|
* @return {Intl.SegmentIterator<Intl.SegmentData>}
|
|
965
|
-
*/ _proto[Symbol.iterator] = function
|
|
965
|
+
*/ _proto[Symbol.iterator] = function() {
|
|
966
966
|
var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, _step_value, segment, index, input, err;
|
|
967
|
-
return _ts_generator(this, function
|
|
968
|
-
switch
|
|
967
|
+
return _ts_generator(this, function(_state) {
|
|
968
|
+
switch(_state.label){
|
|
969
969
|
case 0:
|
|
970
970
|
_iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
971
971
|
_state.label = 1;
|
|
@@ -1019,7 +1019,7 @@ function requireIntlAdapter() {
|
|
|
1019
1019
|
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1020
1020
|
_iterator.return();
|
|
1021
1021
|
}
|
|
1022
|
-
} finally
|
|
1022
|
+
} finally{
|
|
1023
1023
|
if (_didIteratorError) {
|
|
1024
1024
|
throw _iteratorError;
|
|
1025
1025
|
}
|
|
@@ -1047,7 +1047,7 @@ function requireIntlAdapter() {
|
|
|
1047
1047
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1048
1048
|
try {
|
|
1049
1049
|
// only grapheme segmenter is currently provided
|
|
1050
|
-
for
|
|
1050
|
+
for(var _iterator = (0, _grapheme.graphemeSegments)(this.input)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1051
1051
|
var x = _step.value;
|
|
1052
1052
|
offset += x.segment.length;
|
|
1053
1053
|
if (codeUnitIndex < offset) {
|
|
@@ -1057,12 +1057,12 @@ function requireIntlAdapter() {
|
|
|
1057
1057
|
} catch (err) {
|
|
1058
1058
|
_didIteratorError = true;
|
|
1059
1059
|
_iteratorError = err;
|
|
1060
|
-
} finally
|
|
1060
|
+
} finally{
|
|
1061
1061
|
try {
|
|
1062
1062
|
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1063
1063
|
_iterator.return();
|
|
1064
1064
|
}
|
|
1065
|
-
} finally
|
|
1065
|
+
} finally{
|
|
1066
1066
|
if (_didIteratorError) {
|
|
1067
1067
|
throw _iteratorError;
|
|
1068
1068
|
}
|
|
@@ -1080,4 +1080,4 @@ function requireIntlAdapter() {
|
|
|
1080
1080
|
var intlAdapterExports = requireIntlAdapter();
|
|
1081
1081
|
var intlAdapter = /*@__PURE__*/ getDefaultExportFromCjs(intlAdapterExports);
|
|
1082
1082
|
|
|
1083
|
-
|
|
1083
|
+
/* CJS INTEROP */ if (exports.__esModule && exports.default) { try { Object.defineProperty(exports.default, '__esModule', { value: true }); for (var key in exports) { exports.default[key] = exports[key]; } } catch (_) { }; module.exports = exports.default; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spawn-term",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55",
|
|
4
4
|
"description": "Formats spawn with for terminal grouping",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"spawn",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"ansi-colors": "^4.1.3",
|
|
44
44
|
"core-js": "^3.42.0",
|
|
45
|
-
"cross-spawn-cb": "^2.2.
|
|
45
|
+
"cross-spawn-cb": "^2.2.3",
|
|
46
46
|
"lil-uuid": "^0.1.1",
|
|
47
47
|
"on-one": "^0.1.6",
|
|
48
48
|
"queue-cb": "^1.5.0",
|