@gapi/gcli 1.8.267 → 1.8.268
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/release/index.js
CHANGED
|
@@ -15,11 +15,11 @@ var __export = (target, all) => {
|
|
|
15
15
|
for (var name2 in all)
|
|
16
16
|
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
17
17
|
};
|
|
18
|
-
var __copyProps = (to,
|
|
19
|
-
if (
|
|
20
|
-
for (let key of __getOwnPropNames(
|
|
18
|
+
var __copyProps = (to, from17, except, desc) => {
|
|
19
|
+
if (from17 && typeof from17 === "object" || typeof from17 === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from17))
|
|
21
21
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () =>
|
|
22
|
+
__defProp(to, key, { get: () => from17[key], enumerable: !(desc = __getOwnPropDesc(from17, key)) || desc.enumerable });
|
|
23
23
|
}
|
|
24
24
|
return to;
|
|
25
25
|
};
|
|
@@ -8917,9 +8917,9 @@ var require_Subscription = __commonJS({
|
|
|
8917
8917
|
}
|
|
8918
8918
|
return ar;
|
|
8919
8919
|
};
|
|
8920
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
8921
|
-
for (var i2 = 0, il =
|
|
8922
|
-
to[j] =
|
|
8920
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
8921
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
8922
|
+
to[j] = from17[i2];
|
|
8923
8923
|
return to;
|
|
8924
8924
|
};
|
|
8925
8925
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -9100,9 +9100,9 @@ var require_timeoutProvider = __commonJS({
|
|
|
9100
9100
|
}
|
|
9101
9101
|
return ar;
|
|
9102
9102
|
};
|
|
9103
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
9104
|
-
for (var i2 = 0, il =
|
|
9105
|
-
to[j] =
|
|
9103
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
9104
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
9105
|
+
to[j] = from17[i2];
|
|
9106
9106
|
return to;
|
|
9107
9107
|
};
|
|
9108
9108
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -9860,9 +9860,9 @@ var require_animationFrameProvider = __commonJS({
|
|
|
9860
9860
|
}
|
|
9861
9861
|
return ar;
|
|
9862
9862
|
};
|
|
9863
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
9864
|
-
for (var i2 = 0, il =
|
|
9865
|
-
to[j] =
|
|
9863
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
9864
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
9865
|
+
to[j] = from17[i2];
|
|
9866
9866
|
return to;
|
|
9867
9867
|
};
|
|
9868
9868
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -10007,9 +10007,9 @@ var require_Subject = __commonJS({
|
|
|
10007
10007
|
var ObjectUnsubscribedError_1 = require_ObjectUnsubscribedError();
|
|
10008
10008
|
var arrRemove_1 = require_arrRemove();
|
|
10009
10009
|
var errorContext_1 = require_errorContext();
|
|
10010
|
-
var
|
|
10011
|
-
__extends2(
|
|
10012
|
-
function
|
|
10010
|
+
var Subject2 = (function(_super) {
|
|
10011
|
+
__extends2(Subject3, _super);
|
|
10012
|
+
function Subject3() {
|
|
10013
10013
|
var _this = _super.call(this) || this;
|
|
10014
10014
|
_this.closed = false;
|
|
10015
10015
|
_this.currentObservers = null;
|
|
@@ -10019,17 +10019,17 @@ var require_Subject = __commonJS({
|
|
|
10019
10019
|
_this.thrownError = null;
|
|
10020
10020
|
return _this;
|
|
10021
10021
|
}
|
|
10022
|
-
|
|
10022
|
+
Subject3.prototype.lift = function(operator) {
|
|
10023
10023
|
var subject = new AnonymousSubject(this, this);
|
|
10024
10024
|
subject.operator = operator;
|
|
10025
10025
|
return subject;
|
|
10026
10026
|
};
|
|
10027
|
-
|
|
10027
|
+
Subject3.prototype._throwIfClosed = function() {
|
|
10028
10028
|
if (this.closed) {
|
|
10029
10029
|
throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError();
|
|
10030
10030
|
}
|
|
10031
10031
|
};
|
|
10032
|
-
|
|
10032
|
+
Subject3.prototype.next = function(value) {
|
|
10033
10033
|
var _this = this;
|
|
10034
10034
|
errorContext_1.errorContext(function() {
|
|
10035
10035
|
var e_1, _a2;
|
|
@@ -10055,7 +10055,7 @@ var require_Subject = __commonJS({
|
|
|
10055
10055
|
}
|
|
10056
10056
|
});
|
|
10057
10057
|
};
|
|
10058
|
-
|
|
10058
|
+
Subject3.prototype.error = function(err) {
|
|
10059
10059
|
var _this = this;
|
|
10060
10060
|
errorContext_1.errorContext(function() {
|
|
10061
10061
|
_this._throwIfClosed();
|
|
@@ -10069,7 +10069,7 @@ var require_Subject = __commonJS({
|
|
|
10069
10069
|
}
|
|
10070
10070
|
});
|
|
10071
10071
|
};
|
|
10072
|
-
|
|
10072
|
+
Subject3.prototype.complete = function() {
|
|
10073
10073
|
var _this = this;
|
|
10074
10074
|
errorContext_1.errorContext(function() {
|
|
10075
10075
|
_this._throwIfClosed();
|
|
@@ -10082,11 +10082,11 @@ var require_Subject = __commonJS({
|
|
|
10082
10082
|
}
|
|
10083
10083
|
});
|
|
10084
10084
|
};
|
|
10085
|
-
|
|
10085
|
+
Subject3.prototype.unsubscribe = function() {
|
|
10086
10086
|
this.isStopped = this.closed = true;
|
|
10087
10087
|
this.observers = this.currentObservers = null;
|
|
10088
10088
|
};
|
|
10089
|
-
Object.defineProperty(
|
|
10089
|
+
Object.defineProperty(Subject3.prototype, "observed", {
|
|
10090
10090
|
get: function() {
|
|
10091
10091
|
var _a2;
|
|
10092
10092
|
return ((_a2 = this.observers) === null || _a2 === void 0 ? void 0 : _a2.length) > 0;
|
|
@@ -10094,16 +10094,16 @@ var require_Subject = __commonJS({
|
|
|
10094
10094
|
enumerable: false,
|
|
10095
10095
|
configurable: true
|
|
10096
10096
|
});
|
|
10097
|
-
|
|
10097
|
+
Subject3.prototype._trySubscribe = function(subscriber) {
|
|
10098
10098
|
this._throwIfClosed();
|
|
10099
10099
|
return _super.prototype._trySubscribe.call(this, subscriber);
|
|
10100
10100
|
};
|
|
10101
|
-
|
|
10101
|
+
Subject3.prototype._subscribe = function(subscriber) {
|
|
10102
10102
|
this._throwIfClosed();
|
|
10103
10103
|
this._checkFinalizedStatuses(subscriber);
|
|
10104
10104
|
return this._innerSubscribe(subscriber);
|
|
10105
10105
|
};
|
|
10106
|
-
|
|
10106
|
+
Subject3.prototype._innerSubscribe = function(subscriber) {
|
|
10107
10107
|
var _this = this;
|
|
10108
10108
|
var _a2 = this, hasError = _a2.hasError, isStopped = _a2.isStopped, observers = _a2.observers;
|
|
10109
10109
|
if (hasError || isStopped) {
|
|
@@ -10116,7 +10116,7 @@ var require_Subject = __commonJS({
|
|
|
10116
10116
|
arrRemove_1.arrRemove(observers, subscriber);
|
|
10117
10117
|
});
|
|
10118
10118
|
};
|
|
10119
|
-
|
|
10119
|
+
Subject3.prototype._checkFinalizedStatuses = function(subscriber) {
|
|
10120
10120
|
var _a2 = this, hasError = _a2.hasError, thrownError = _a2.thrownError, isStopped = _a2.isStopped;
|
|
10121
10121
|
if (hasError) {
|
|
10122
10122
|
subscriber.error(thrownError);
|
|
@@ -10124,17 +10124,17 @@ var require_Subject = __commonJS({
|
|
|
10124
10124
|
subscriber.complete();
|
|
10125
10125
|
}
|
|
10126
10126
|
};
|
|
10127
|
-
|
|
10127
|
+
Subject3.prototype.asObservable = function() {
|
|
10128
10128
|
var observable = new Observable_1.Observable();
|
|
10129
10129
|
observable.source = this;
|
|
10130
10130
|
return observable;
|
|
10131
10131
|
};
|
|
10132
|
-
|
|
10132
|
+
Subject3.create = function(destination, source) {
|
|
10133
10133
|
return new AnonymousSubject(destination, source);
|
|
10134
10134
|
};
|
|
10135
|
-
return
|
|
10135
|
+
return Subject3;
|
|
10136
10136
|
})(Observable_1.Observable);
|
|
10137
|
-
exports2.Subject =
|
|
10137
|
+
exports2.Subject = Subject2;
|
|
10138
10138
|
var AnonymousSubject = (function(_super) {
|
|
10139
10139
|
__extends2(AnonymousSubject2, _super);
|
|
10140
10140
|
function AnonymousSubject2(destination, source) {
|
|
@@ -10160,7 +10160,7 @@ var require_Subject = __commonJS({
|
|
|
10160
10160
|
return (_b = (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber)) !== null && _b !== void 0 ? _b : Subscription_1.EMPTY_SUBSCRIPTION;
|
|
10161
10161
|
};
|
|
10162
10162
|
return AnonymousSubject2;
|
|
10163
|
-
})(
|
|
10163
|
+
})(Subject2);
|
|
10164
10164
|
exports2.AnonymousSubject = AnonymousSubject;
|
|
10165
10165
|
}
|
|
10166
10166
|
});
|
|
@@ -10460,9 +10460,9 @@ var require_intervalProvider = __commonJS({
|
|
|
10460
10460
|
}
|
|
10461
10461
|
return ar;
|
|
10462
10462
|
};
|
|
10463
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
10464
|
-
for (var i2 = 0, il =
|
|
10465
|
-
to[j] =
|
|
10463
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
10464
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
10465
|
+
to[j] = from17[i2];
|
|
10466
10466
|
return to;
|
|
10467
10467
|
};
|
|
10468
10468
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -10669,9 +10669,9 @@ var require_immediateProvider = __commonJS({
|
|
|
10669
10669
|
}
|
|
10670
10670
|
return ar;
|
|
10671
10671
|
};
|
|
10672
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
10673
|
-
for (var i2 = 0, il =
|
|
10674
|
-
to[j] =
|
|
10672
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
10673
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
10674
|
+
to[j] = from17[i2];
|
|
10675
10675
|
return to;
|
|
10676
10676
|
};
|
|
10677
10677
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -12233,10 +12233,10 @@ var require_from = __commonJS({
|
|
|
12233
12233
|
exports2.from = void 0;
|
|
12234
12234
|
var scheduled_1 = require_scheduled();
|
|
12235
12235
|
var innerFrom_1 = require_innerFrom();
|
|
12236
|
-
function
|
|
12236
|
+
function from17(input, scheduler) {
|
|
12237
12237
|
return scheduler ? scheduled_1.scheduled(input, scheduler) : innerFrom_1.innerFrom(input);
|
|
12238
12238
|
}
|
|
12239
|
-
exports2.from =
|
|
12239
|
+
exports2.from = from17;
|
|
12240
12240
|
}
|
|
12241
12241
|
});
|
|
12242
12242
|
|
|
@@ -12624,9 +12624,9 @@ var require_mapOneOrManyArgs = __commonJS({
|
|
|
12624
12624
|
}
|
|
12625
12625
|
return ar;
|
|
12626
12626
|
};
|
|
12627
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
12628
|
-
for (var i2 = 0, il =
|
|
12629
|
-
to[j] =
|
|
12627
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
12628
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
12629
|
+
to[j] = from17[i2];
|
|
12630
12630
|
return to;
|
|
12631
12631
|
};
|
|
12632
12632
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -12666,9 +12666,9 @@ var require_bindCallbackInternals = __commonJS({
|
|
|
12666
12666
|
}
|
|
12667
12667
|
return ar;
|
|
12668
12668
|
};
|
|
12669
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
12670
|
-
for (var i2 = 0, il =
|
|
12671
|
-
to[j] =
|
|
12669
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
12670
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
12671
|
+
to[j] = from17[i2];
|
|
12672
12672
|
return to;
|
|
12673
12673
|
};
|
|
12674
12674
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -13644,7 +13644,7 @@ var require_filter = __commonJS({
|
|
|
13644
13644
|
exports2.filter = void 0;
|
|
13645
13645
|
var lift_1 = require_lift();
|
|
13646
13646
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
13647
|
-
function
|
|
13647
|
+
function filter5(predicate, thisArg) {
|
|
13648
13648
|
return lift_1.operate(function(source, subscriber) {
|
|
13649
13649
|
var index = 0;
|
|
13650
13650
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
@@ -13652,7 +13652,7 @@ var require_filter = __commonJS({
|
|
|
13652
13652
|
}));
|
|
13653
13653
|
});
|
|
13654
13654
|
}
|
|
13655
|
-
exports2.filter =
|
|
13655
|
+
exports2.filter = filter5;
|
|
13656
13656
|
}
|
|
13657
13657
|
});
|
|
13658
13658
|
|
|
@@ -13800,9 +13800,9 @@ var require_zip = __commonJS({
|
|
|
13800
13800
|
}
|
|
13801
13801
|
return ar;
|
|
13802
13802
|
};
|
|
13803
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
13804
|
-
for (var i2 = 0, il =
|
|
13805
|
-
to[j] =
|
|
13803
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
13804
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
13805
|
+
to[j] = from17[i2];
|
|
13806
13806
|
return to;
|
|
13807
13807
|
};
|
|
13808
13808
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -14090,7 +14090,7 @@ var require_bufferTime = __commonJS({
|
|
|
14090
14090
|
var async_1 = require_async();
|
|
14091
14091
|
var args_1 = require_args();
|
|
14092
14092
|
var executeSchedule_1 = require_executeSchedule();
|
|
14093
|
-
function
|
|
14093
|
+
function bufferTime2(bufferTimeSpan) {
|
|
14094
14094
|
var _a2, _b;
|
|
14095
14095
|
var otherArgs = [];
|
|
14096
14096
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -14162,7 +14162,7 @@ var require_bufferTime = __commonJS({
|
|
|
14162
14162
|
source.subscribe(bufferTimeSubscriber);
|
|
14163
14163
|
});
|
|
14164
14164
|
}
|
|
14165
|
-
exports2.bufferTime =
|
|
14165
|
+
exports2.bufferTime = bufferTime2;
|
|
14166
14166
|
}
|
|
14167
14167
|
});
|
|
14168
14168
|
|
|
@@ -14276,13 +14276,13 @@ var require_catchError = __commonJS({
|
|
|
14276
14276
|
var innerFrom_1 = require_innerFrom();
|
|
14277
14277
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
14278
14278
|
var lift_1 = require_lift();
|
|
14279
|
-
function
|
|
14279
|
+
function catchError15(selector) {
|
|
14280
14280
|
return lift_1.operate(function(source, subscriber) {
|
|
14281
14281
|
var innerSub = null;
|
|
14282
14282
|
var syncUnsub = false;
|
|
14283
14283
|
var handledResult;
|
|
14284
14284
|
innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, void 0, void 0, function(err) {
|
|
14285
|
-
handledResult = innerFrom_1.innerFrom(selector(err,
|
|
14285
|
+
handledResult = innerFrom_1.innerFrom(selector(err, catchError15(selector)(source)));
|
|
14286
14286
|
if (innerSub) {
|
|
14287
14287
|
innerSub.unsubscribe();
|
|
14288
14288
|
innerSub = null;
|
|
@@ -14298,7 +14298,7 @@ var require_catchError = __commonJS({
|
|
|
14298
14298
|
}
|
|
14299
14299
|
});
|
|
14300
14300
|
}
|
|
14301
|
-
exports2.catchError =
|
|
14301
|
+
exports2.catchError = catchError15;
|
|
14302
14302
|
}
|
|
14303
14303
|
});
|
|
14304
14304
|
|
|
@@ -14430,9 +14430,9 @@ var require_combineLatest2 = __commonJS({
|
|
|
14430
14430
|
}
|
|
14431
14431
|
return ar;
|
|
14432
14432
|
};
|
|
14433
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
14434
|
-
for (var i2 = 0, il =
|
|
14435
|
-
to[j] =
|
|
14433
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
14434
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
14435
|
+
to[j] = from17[i2];
|
|
14436
14436
|
return to;
|
|
14437
14437
|
};
|
|
14438
14438
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -14478,9 +14478,9 @@ var require_combineLatestWith = __commonJS({
|
|
|
14478
14478
|
}
|
|
14479
14479
|
return ar;
|
|
14480
14480
|
};
|
|
14481
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
14482
|
-
for (var i2 = 0, il =
|
|
14483
|
-
to[j] =
|
|
14481
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
14482
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
14483
|
+
to[j] = from17[i2];
|
|
14484
14484
|
return to;
|
|
14485
14485
|
};
|
|
14486
14486
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -14505,10 +14505,10 @@ var require_concatMap = __commonJS({
|
|
|
14505
14505
|
exports2.concatMap = void 0;
|
|
14506
14506
|
var mergeMap_1 = require_mergeMap();
|
|
14507
14507
|
var isFunction_1 = require_isFunction();
|
|
14508
|
-
function
|
|
14508
|
+
function concatMap2(project, resultSelector) {
|
|
14509
14509
|
return isFunction_1.isFunction(resultSelector) ? mergeMap_1.mergeMap(project, resultSelector, 1) : mergeMap_1.mergeMap(project, 1);
|
|
14510
14510
|
}
|
|
14511
|
-
exports2.concatMap =
|
|
14511
|
+
exports2.concatMap = concatMap2;
|
|
14512
14512
|
}
|
|
14513
14513
|
});
|
|
14514
14514
|
|
|
@@ -14552,9 +14552,9 @@ var require_concat2 = __commonJS({
|
|
|
14552
14552
|
}
|
|
14553
14553
|
return ar;
|
|
14554
14554
|
};
|
|
14555
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
14556
|
-
for (var i2 = 0, il =
|
|
14557
|
-
to[j] =
|
|
14555
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
14556
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
14557
|
+
to[j] = from17[i2];
|
|
14558
14558
|
return to;
|
|
14559
14559
|
};
|
|
14560
14560
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -14598,9 +14598,9 @@ var require_concatWith = __commonJS({
|
|
|
14598
14598
|
}
|
|
14599
14599
|
return ar;
|
|
14600
14600
|
};
|
|
14601
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
14602
|
-
for (var i2 = 0, il =
|
|
14603
|
-
to[j] =
|
|
14601
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
14602
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
14603
|
+
to[j] = from17[i2];
|
|
14604
14604
|
return to;
|
|
14605
14605
|
};
|
|
14606
14606
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -15091,9 +15091,9 @@ var require_endWith = __commonJS({
|
|
|
15091
15091
|
}
|
|
15092
15092
|
return ar;
|
|
15093
15093
|
};
|
|
15094
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
15095
|
-
for (var i2 = 0, il =
|
|
15096
|
-
to[j] =
|
|
15094
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
15095
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
15096
|
+
to[j] = from17[i2];
|
|
15097
15097
|
return to;
|
|
15098
15098
|
};
|
|
15099
15099
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -15638,9 +15638,9 @@ var require_merge2 = __commonJS({
|
|
|
15638
15638
|
}
|
|
15639
15639
|
return ar;
|
|
15640
15640
|
};
|
|
15641
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
15642
|
-
for (var i2 = 0, il =
|
|
15643
|
-
to[j] =
|
|
15641
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
15642
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
15643
|
+
to[j] = from17[i2];
|
|
15644
15644
|
return to;
|
|
15645
15645
|
};
|
|
15646
15646
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -15685,9 +15685,9 @@ var require_mergeWith = __commonJS({
|
|
|
15685
15685
|
}
|
|
15686
15686
|
return ar;
|
|
15687
15687
|
};
|
|
15688
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
15689
|
-
for (var i2 = 0, il =
|
|
15690
|
-
to[j] =
|
|
15688
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
15689
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
15690
|
+
to[j] = from17[i2];
|
|
15691
15691
|
return to;
|
|
15692
15692
|
};
|
|
15693
15693
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -15770,9 +15770,9 @@ var require_onErrorResumeNextWith = __commonJS({
|
|
|
15770
15770
|
}
|
|
15771
15771
|
return ar;
|
|
15772
15772
|
};
|
|
15773
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
15774
|
-
for (var i2 = 0, il =
|
|
15775
|
-
to[j] =
|
|
15773
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
15774
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
15775
|
+
to[j] = from17[i2];
|
|
15776
15776
|
return to;
|
|
15777
15777
|
};
|
|
15778
15778
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -15954,9 +15954,9 @@ var require_raceWith = __commonJS({
|
|
|
15954
15954
|
}
|
|
15955
15955
|
return ar;
|
|
15956
15956
|
};
|
|
15957
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
15958
|
-
for (var i2 = 0, il =
|
|
15959
|
-
to[j] =
|
|
15957
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
15958
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
15959
|
+
to[j] = from17[i2];
|
|
15960
15960
|
return to;
|
|
15961
15961
|
};
|
|
15962
15962
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -16352,9 +16352,9 @@ var require_share = __commonJS({
|
|
|
16352
16352
|
}
|
|
16353
16353
|
return ar;
|
|
16354
16354
|
};
|
|
16355
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
16356
|
-
for (var i2 = 0, il =
|
|
16357
|
-
to[j] =
|
|
16355
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
16356
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
16357
|
+
to[j] = from17[i2];
|
|
16358
16358
|
return to;
|
|
16359
16359
|
};
|
|
16360
16360
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -17354,9 +17354,9 @@ var require_withLatestFrom = __commonJS({
|
|
|
17354
17354
|
}
|
|
17355
17355
|
return ar;
|
|
17356
17356
|
};
|
|
17357
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
17358
|
-
for (var i2 = 0, il =
|
|
17359
|
-
to[j] =
|
|
17357
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
17358
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
17359
|
+
to[j] = from17[i2];
|
|
17360
17360
|
return to;
|
|
17361
17361
|
};
|
|
17362
17362
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -17440,9 +17440,9 @@ var require_zip2 = __commonJS({
|
|
|
17440
17440
|
}
|
|
17441
17441
|
return ar;
|
|
17442
17442
|
};
|
|
17443
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
17444
|
-
for (var i2 = 0, il =
|
|
17445
|
-
to[j] =
|
|
17443
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
17444
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
17445
|
+
to[j] = from17[i2];
|
|
17446
17446
|
return to;
|
|
17447
17447
|
};
|
|
17448
17448
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -17483,9 +17483,9 @@ var require_zipWith = __commonJS({
|
|
|
17483
17483
|
}
|
|
17484
17484
|
return ar;
|
|
17485
17485
|
};
|
|
17486
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
17487
|
-
for (var i2 = 0, il =
|
|
17488
|
-
to[j] =
|
|
17486
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
17487
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
17488
|
+
to[j] = from17[i2];
|
|
17489
17489
|
return to;
|
|
17490
17490
|
};
|
|
17491
17491
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -18251,9 +18251,9 @@ var require_race2 = __commonJS({
|
|
|
18251
18251
|
}
|
|
18252
18252
|
return ar;
|
|
18253
18253
|
};
|
|
18254
|
-
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to,
|
|
18255
|
-
for (var i2 = 0, il =
|
|
18256
|
-
to[j] =
|
|
18254
|
+
var __spreadArray2 = exports2 && exports2.__spreadArray || function(to, from17) {
|
|
18255
|
+
for (var i2 = 0, il = from17.length, j = to.length; i2 < il; i2++, j++)
|
|
18256
|
+
to[j] = from17[i2];
|
|
18257
18257
|
return to;
|
|
18258
18258
|
};
|
|
18259
18259
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -21369,7 +21369,7 @@ var require_lib = __commonJS({
|
|
|
21369
21369
|
var require_XMLHttpRequest = __commonJS({
|
|
21370
21370
|
"../../node_modules/xmlhttprequest/lib/XMLHttpRequest.js"(exports2) {
|
|
21371
21371
|
var Url = require("url");
|
|
21372
|
-
var
|
|
21372
|
+
var spawn6 = require("child_process").spawn;
|
|
21373
21373
|
var fs3 = require("fs");
|
|
21374
21374
|
exports2.XMLHttpRequest = function() {
|
|
21375
21375
|
"use strict";
|
|
@@ -21639,7 +21639,7 @@ var require_XMLHttpRequest = __commonJS({
|
|
|
21639
21639
|
var syncFile = ".node-xmlhttprequest-sync-" + process.pid;
|
|
21640
21640
|
fs3.writeFileSync(syncFile, "", "utf8");
|
|
21641
21641
|
var execString = "var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http" + (ssl ? "s" : "") + ".request;var options = " + JSON.stringify(options) + ";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('" + contentFile + "', JSON.stringify({err: null, data: {statusCode: response.statusCode, headers: response.headers, text: responseText}}), 'utf8');fs.unlinkSync('" + syncFile + "');});response.on('error', function(error) {fs.writeFileSync('" + contentFile + "', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('" + syncFile + "');});}).on('error', function(error) {fs.writeFileSync('" + contentFile + "', JSON.stringify({err: error}), 'utf8');fs.unlinkSync('" + syncFile + "');});" + (data ? "req.write('" + JSON.stringify(data).slice(1, -1).replace(/'/g, "\\'") + "');" : "") + "req.end();";
|
|
21642
|
-
var syncProc =
|
|
21642
|
+
var syncProc = spawn6(process.argv[0], ["-e", execString]);
|
|
21643
21643
|
while (fs3.existsSync(syncFile)) {
|
|
21644
21644
|
}
|
|
21645
21645
|
var resp = JSON.parse(fs3.readFileSync(contentFile, "utf8"));
|
|
@@ -31385,7 +31385,7 @@ var require_from2 = __commonJS({
|
|
|
31385
31385
|
return obj;
|
|
31386
31386
|
}
|
|
31387
31387
|
var ERR_INVALID_ARG_TYPE = require_errors().codes.ERR_INVALID_ARG_TYPE;
|
|
31388
|
-
function
|
|
31388
|
+
function from17(Readable2, iterable, opts) {
|
|
31389
31389
|
var iterator;
|
|
31390
31390
|
if (iterable && typeof iterable.next === "function") {
|
|
31391
31391
|
iterator = iterable;
|
|
@@ -31424,7 +31424,7 @@ var require_from2 = __commonJS({
|
|
|
31424
31424
|
}
|
|
31425
31425
|
return readable;
|
|
31426
31426
|
}
|
|
31427
|
-
module2.exports =
|
|
31427
|
+
module2.exports = from17;
|
|
31428
31428
|
}
|
|
31429
31429
|
});
|
|
31430
31430
|
|
|
@@ -31468,7 +31468,7 @@ var require_stream_readable = __commonJS({
|
|
|
31468
31468
|
var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
31469
31469
|
var StringDecoder;
|
|
31470
31470
|
var createReadableStreamAsyncIterator;
|
|
31471
|
-
var
|
|
31471
|
+
var from17;
|
|
31472
31472
|
require_inherits()(Readable2, Stream3);
|
|
31473
31473
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
31474
31474
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
@@ -32150,10 +32150,10 @@ var require_stream_readable = __commonJS({
|
|
|
32150
32150
|
}
|
|
32151
32151
|
if (typeof Symbol === "function") {
|
|
32152
32152
|
Readable2.from = function(iterable, opts) {
|
|
32153
|
-
if (
|
|
32154
|
-
|
|
32153
|
+
if (from17 === void 0) {
|
|
32154
|
+
from17 = require_from2();
|
|
32155
32155
|
}
|
|
32156
|
-
return
|
|
32156
|
+
return from17(Readable2, iterable, opts);
|
|
32157
32157
|
};
|
|
32158
32158
|
}
|
|
32159
32159
|
function indexOf(xs, x2) {
|
|
@@ -32333,8 +32333,8 @@ var require_pipeline = __commonJS({
|
|
|
32333
32333
|
function call(fn) {
|
|
32334
32334
|
fn();
|
|
32335
32335
|
}
|
|
32336
|
-
function pipe2(
|
|
32337
|
-
return
|
|
32336
|
+
function pipe2(from17, to) {
|
|
32337
|
+
return from17.pipe(to);
|
|
32338
32338
|
}
|
|
32339
32339
|
function popCallback(streams) {
|
|
32340
32340
|
if (!streams.length) return noop3;
|
|
@@ -34112,7 +34112,7 @@ var require_from3 = __commonJS({
|
|
|
34112
34112
|
return obj;
|
|
34113
34113
|
}
|
|
34114
34114
|
var ERR_INVALID_ARG_TYPE = require_errors2().codes.ERR_INVALID_ARG_TYPE;
|
|
34115
|
-
function
|
|
34115
|
+
function from17(Readable2, iterable, opts) {
|
|
34116
34116
|
var iterator;
|
|
34117
34117
|
if (iterable && typeof iterable.next === "function") {
|
|
34118
34118
|
iterator = iterable;
|
|
@@ -34151,7 +34151,7 @@ var require_from3 = __commonJS({
|
|
|
34151
34151
|
}
|
|
34152
34152
|
return readable;
|
|
34153
34153
|
}
|
|
34154
|
-
module2.exports =
|
|
34154
|
+
module2.exports = from17;
|
|
34155
34155
|
}
|
|
34156
34156
|
});
|
|
34157
34157
|
|
|
@@ -34195,7 +34195,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
34195
34195
|
var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
34196
34196
|
var StringDecoder;
|
|
34197
34197
|
var createReadableStreamAsyncIterator;
|
|
34198
|
-
var
|
|
34198
|
+
var from17;
|
|
34199
34199
|
require_inherits()(Readable2, Stream3);
|
|
34200
34200
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
34201
34201
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
@@ -34877,10 +34877,10 @@ var require_stream_readable2 = __commonJS({
|
|
|
34877
34877
|
}
|
|
34878
34878
|
if (typeof Symbol === "function") {
|
|
34879
34879
|
Readable2.from = function(iterable, opts) {
|
|
34880
|
-
if (
|
|
34881
|
-
|
|
34880
|
+
if (from17 === void 0) {
|
|
34881
|
+
from17 = require_from3();
|
|
34882
34882
|
}
|
|
34883
|
-
return
|
|
34883
|
+
return from17(Readable2, iterable, opts);
|
|
34884
34884
|
};
|
|
34885
34885
|
}
|
|
34886
34886
|
function indexOf(xs, x2) {
|
|
@@ -35060,8 +35060,8 @@ var require_pipeline2 = __commonJS({
|
|
|
35060
35060
|
function call(fn) {
|
|
35061
35061
|
fn();
|
|
35062
35062
|
}
|
|
35063
|
-
function pipe2(
|
|
35064
|
-
return
|
|
35063
|
+
function pipe2(from17, to) {
|
|
35064
|
+
return from17.pipe(to);
|
|
35065
35065
|
}
|
|
35066
35066
|
function popCallback(streams) {
|
|
35067
35067
|
if (!streams.length) return noop3;
|
|
@@ -38497,14 +38497,14 @@ function __spreadArrays() {
|
|
|
38497
38497
|
r2[k] = a[j];
|
|
38498
38498
|
return r2;
|
|
38499
38499
|
}
|
|
38500
|
-
function __spreadArray(to,
|
|
38501
|
-
if (pack || arguments.length === 2) for (var i2 = 0, l =
|
|
38502
|
-
if (ar || !(i2 in
|
|
38503
|
-
if (!ar) ar = Array.prototype.slice.call(
|
|
38504
|
-
ar[i2] =
|
|
38500
|
+
function __spreadArray(to, from17, pack) {
|
|
38501
|
+
if (pack || arguments.length === 2) for (var i2 = 0, l = from17.length, ar; i2 < l; i2++) {
|
|
38502
|
+
if (ar || !(i2 in from17)) {
|
|
38503
|
+
if (!ar) ar = Array.prototype.slice.call(from17, 0, i2);
|
|
38504
|
+
ar[i2] = from17[i2];
|
|
38505
38505
|
}
|
|
38506
38506
|
}
|
|
38507
|
-
return to.concat(ar || Array.prototype.slice.call(
|
|
38507
|
+
return to.concat(ar || Array.prototype.slice.call(from17));
|
|
38508
38508
|
}
|
|
38509
38509
|
function __await(v) {
|
|
38510
38510
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -41028,11 +41028,11 @@ var require_typescript = __commonJS({
|
|
|
41028
41028
|
for (var name2 in all)
|
|
41029
41029
|
__defProp2(target, name2, { get: all[name2], enumerable: true });
|
|
41030
41030
|
};
|
|
41031
|
-
var __copyProps2 = (to,
|
|
41032
|
-
if (
|
|
41033
|
-
for (let key of __getOwnPropNames2(
|
|
41031
|
+
var __copyProps2 = (to, from17, except, desc) => {
|
|
41032
|
+
if (from17 && typeof from17 === "object" || typeof from17 === "function") {
|
|
41033
|
+
for (let key of __getOwnPropNames2(from17))
|
|
41034
41034
|
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
41035
|
-
__defProp2(to, key, { get: () =>
|
|
41035
|
+
__defProp2(to, key, { get: () => from17[key], enumerable: !(desc = __getOwnPropDesc2(from17, key)) || desc.enumerable });
|
|
41036
41036
|
}
|
|
41037
41037
|
return to;
|
|
41038
41038
|
};
|
|
@@ -41552,7 +41552,7 @@ var require_typescript = __commonJS({
|
|
|
41552
41552
|
fileExtensionIsOneOf: () => fileExtensionIsOneOf,
|
|
41553
41553
|
fileIncludeReasonToDiagnostics: () => fileIncludeReasonToDiagnostics,
|
|
41554
41554
|
fileShouldUseJavaScriptRequire: () => fileShouldUseJavaScriptRequire,
|
|
41555
|
-
filter: () =>
|
|
41555
|
+
filter: () => filter5,
|
|
41556
41556
|
filterMutate: () => filterMutate,
|
|
41557
41557
|
filterSemanticDiagnostics: () => filterSemanticDiagnostics,
|
|
41558
41558
|
find: () => find,
|
|
@@ -43449,7 +43449,7 @@ var require_typescript = __commonJS({
|
|
|
43449
43449
|
}
|
|
43450
43450
|
return count;
|
|
43451
43451
|
}
|
|
43452
|
-
function
|
|
43452
|
+
function filter5(array2, f3) {
|
|
43453
43453
|
if (array2 !== void 0) {
|
|
43454
43454
|
const len = array2.length;
|
|
43455
43455
|
let i2 = 0;
|
|
@@ -43876,14 +43876,14 @@ var require_typescript = __commonJS({
|
|
|
43876
43876
|
function toOffset(array2, offset) {
|
|
43877
43877
|
return offset < 0 ? array2.length + offset : offset;
|
|
43878
43878
|
}
|
|
43879
|
-
function addRange(to,
|
|
43880
|
-
if (
|
|
43881
|
-
if (to === void 0) return
|
|
43882
|
-
start3 = start3 === void 0 ? 0 : toOffset(
|
|
43883
|
-
end = end === void 0 ?
|
|
43884
|
-
for (let i2 = start3; i2 < end && i2 <
|
|
43885
|
-
if (
|
|
43886
|
-
to.push(
|
|
43879
|
+
function addRange(to, from17, start3, end) {
|
|
43880
|
+
if (from17 === void 0 || from17.length === 0) return to;
|
|
43881
|
+
if (to === void 0) return from17.slice(start3, end);
|
|
43882
|
+
start3 = start3 === void 0 ? 0 : toOffset(from17, start3);
|
|
43883
|
+
end = end === void 0 ? from17.length : toOffset(from17, end);
|
|
43884
|
+
for (let i2 = start3; i2 < end && i2 < from17.length; i2++) {
|
|
43885
|
+
if (from17[i2] !== void 0) {
|
|
43886
|
+
to.push(from17[i2]);
|
|
43887
43887
|
}
|
|
43888
43888
|
}
|
|
43889
43889
|
return to;
|
|
@@ -50392,8 +50392,8 @@ ${lanes.join("\n")}
|
|
|
50392
50392
|
const canonicalDirectoryName = getCanonicalFileName(directoryName);
|
|
50393
50393
|
return startsWith(canonicalFileName, canonicalDirectoryName + "/") || startsWith(canonicalFileName, canonicalDirectoryName + "\\");
|
|
50394
50394
|
}
|
|
50395
|
-
function getPathComponentsRelativeTo(
|
|
50396
|
-
const fromComponents = reducePathComponents(getPathComponents(
|
|
50395
|
+
function getPathComponentsRelativeTo(from17, to, stringEqualityComparer, getCanonicalFileName) {
|
|
50396
|
+
const fromComponents = reducePathComponents(getPathComponents(from17));
|
|
50397
50397
|
const toComponents = reducePathComponents(getPathComponents(to));
|
|
50398
50398
|
let start3;
|
|
50399
50399
|
for (start3 = 0; start3 < fromComponents.length && start3 < toComponents.length; start3++) {
|
|
@@ -50429,8 +50429,8 @@ ${lanes.join("\n")}
|
|
|
50429
50429
|
false
|
|
50430
50430
|
);
|
|
50431
50431
|
}
|
|
50432
|
-
function getRelativePathFromFile(
|
|
50433
|
-
return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(
|
|
50432
|
+
function getRelativePathFromFile(from17, to, getCanonicalFileName) {
|
|
50433
|
+
return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from17), to, getCanonicalFileName));
|
|
50434
50434
|
}
|
|
50435
50435
|
function getRelativePathToDirectoryOrUrl(directoryPathOrUrl, relativeOrAbsolutePath, currentDirectory, getCanonicalFileName, isAbsolutePathAnUrl) {
|
|
50436
50436
|
const pathComponents2 = getPathComponentsRelativeTo(
|
|
@@ -56528,7 +56528,7 @@ ${lanes.join("\n")}
|
|
|
56528
56528
|
}
|
|
56529
56529
|
function getDecorators(node) {
|
|
56530
56530
|
if (hasDecorators(node)) {
|
|
56531
|
-
return
|
|
56531
|
+
return filter5(node.modifiers, isDecorator);
|
|
56532
56532
|
}
|
|
56533
56533
|
}
|
|
56534
56534
|
function getModifiers(node) {
|
|
@@ -56537,7 +56537,7 @@ ${lanes.join("\n")}
|
|
|
56537
56537
|
98303
|
|
56538
56538
|
/* Modifier */
|
|
56539
56539
|
)) {
|
|
56540
|
-
return
|
|
56540
|
+
return filter5(node.modifiers, isModifier);
|
|
56541
56541
|
}
|
|
56542
56542
|
}
|
|
56543
56543
|
function getJSDocParameterTagsWorker(param, noCache) {
|
|
@@ -57680,7 +57680,7 @@ ${lanes.join("\n")}
|
|
|
57680
57680
|
return void 0;
|
|
57681
57681
|
}
|
|
57682
57682
|
function getDeclarationsOfKind(symbol2, kind) {
|
|
57683
|
-
return
|
|
57683
|
+
return filter5(symbol2.declarations || emptyArray, (d) => d.kind === kind);
|
|
57684
57684
|
}
|
|
57685
57685
|
function createSymbolTable(symbols) {
|
|
57686
57686
|
const result = /* @__PURE__ */ new Map();
|
|
@@ -57981,15 +57981,15 @@ ${lanes.join("\n")}
|
|
|
57981
57981
|
if (!nodeArray || isArray(child) || !isElement(child)) return false;
|
|
57982
57982
|
return contains(nodeArray, child);
|
|
57983
57983
|
}
|
|
57984
|
-
function insertStatementsAfterPrologue(to,
|
|
57985
|
-
if (
|
|
57984
|
+
function insertStatementsAfterPrologue(to, from17, isPrologueDirective2) {
|
|
57985
|
+
if (from17 === void 0 || from17.length === 0) return to;
|
|
57986
57986
|
let statementIndex = 0;
|
|
57987
57987
|
for (; statementIndex < to.length; ++statementIndex) {
|
|
57988
57988
|
if (!isPrologueDirective2(to[statementIndex])) {
|
|
57989
57989
|
break;
|
|
57990
57990
|
}
|
|
57991
57991
|
}
|
|
57992
|
-
to.splice(statementIndex, 0, ...
|
|
57992
|
+
to.splice(statementIndex, 0, ...from17);
|
|
57993
57993
|
return to;
|
|
57994
57994
|
}
|
|
57995
57995
|
function insertStatementAfterPrologue(to, statement, isPrologueDirective2) {
|
|
@@ -58006,11 +58006,11 @@ ${lanes.join("\n")}
|
|
|
58006
58006
|
function isAnyPrologueDirective(node) {
|
|
58007
58007
|
return isPrologueDirective(node) || !!(getEmitFlags(node) & 2097152);
|
|
58008
58008
|
}
|
|
58009
|
-
function insertStatementsAfterStandardPrologue(to,
|
|
58010
|
-
return insertStatementsAfterPrologue(to,
|
|
58009
|
+
function insertStatementsAfterStandardPrologue(to, from17) {
|
|
58010
|
+
return insertStatementsAfterPrologue(to, from17, isPrologueDirective);
|
|
58011
58011
|
}
|
|
58012
|
-
function insertStatementsAfterCustomPrologue(to,
|
|
58013
|
-
return insertStatementsAfterPrologue(to,
|
|
58012
|
+
function insertStatementsAfterCustomPrologue(to, from17) {
|
|
58013
|
+
return insertStatementsAfterPrologue(to, from17, isAnyPrologueDirective);
|
|
58014
58014
|
}
|
|
58015
58015
|
function insertStatementAfterStandardPrologue(to, statement) {
|
|
58016
58016
|
return insertStatementAfterPrologue(to, statement, isPrologueDirective);
|
|
@@ -59274,7 +59274,7 @@ ${lanes.join("\n")}
|
|
|
59274
59274
|
}
|
|
59275
59275
|
function getJSDocCommentRanges(node, text) {
|
|
59276
59276
|
const commentRanges = node.kind === 170 || node.kind === 169 || node.kind === 219 || node.kind === 220 || node.kind === 218 || node.kind === 261 || node.kind === 282 ? concatenate(getTrailingCommentRanges(text, node.pos), getLeadingCommentRanges(text, node.pos)) : getLeadingCommentRanges(text, node.pos);
|
|
59277
|
-
return
|
|
59277
|
+
return filter5(
|
|
59278
59278
|
commentRanges,
|
|
59279
59279
|
(comment) => comment.end <= node.end && // Due to parse errors sometime empty parameter may get comments assigned to it that end up not in parameter range
|
|
59280
59280
|
text.charCodeAt(comment.pos + 1) === 42 && text.charCodeAt(comment.pos + 2) === 42 && text.charCodeAt(comment.pos + 3) !== 47
|
|
@@ -60576,10 +60576,10 @@ ${lanes.join("\n")}
|
|
|
60576
60576
|
const lastJsDoc = last(comments);
|
|
60577
60577
|
return flatMap(comments, (jsDoc) => {
|
|
60578
60578
|
if (jsDoc === lastJsDoc) {
|
|
60579
|
-
const ownedTags =
|
|
60579
|
+
const ownedTags = filter5(jsDoc.tags, (tag) => ownsJSDocTag(hostNode, tag));
|
|
60580
60580
|
return jsDoc.tags === ownedTags ? [jsDoc] : ownedTags;
|
|
60581
60581
|
} else {
|
|
60582
|
-
return
|
|
60582
|
+
return filter5(jsDoc.tags, isJSDocOverloadTag);
|
|
60583
60583
|
}
|
|
60584
60584
|
});
|
|
60585
60585
|
}
|
|
@@ -61423,7 +61423,7 @@ ${lanes.join("\n")}
|
|
|
61423
61423
|
return -1;
|
|
61424
61424
|
}
|
|
61425
61425
|
function getSemanticJsxChildren(children) {
|
|
61426
|
-
return
|
|
61426
|
+
return filter5(children, (i2) => {
|
|
61427
61427
|
switch (i2.kind) {
|
|
61428
61428
|
case 295:
|
|
61429
61429
|
return !!i2.expression;
|
|
@@ -61884,13 +61884,13 @@ ${lanes.join("\n")}
|
|
|
61884
61884
|
if (options.outFile) {
|
|
61885
61885
|
const moduleKind = getEmitModuleKind(options);
|
|
61886
61886
|
const moduleEmitEnabled = options.emitDeclarationOnly || moduleKind === 2 || moduleKind === 4;
|
|
61887
|
-
return
|
|
61887
|
+
return filter5(
|
|
61888
61888
|
host.getSourceFiles(),
|
|
61889
61889
|
(sourceFile) => (moduleEmitEnabled || !isExternalModule(sourceFile)) && sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit)
|
|
61890
61890
|
);
|
|
61891
61891
|
} else {
|
|
61892
61892
|
const sourceFiles = targetSourceFile === void 0 ? host.getSourceFiles() : [targetSourceFile];
|
|
61893
|
-
return
|
|
61893
|
+
return filter5(
|
|
61894
61894
|
sourceFiles,
|
|
61895
61895
|
(sourceFile) => sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit)
|
|
61896
61896
|
);
|
|
@@ -62108,7 +62108,7 @@ ${lanes.join("\n")}
|
|
|
62108
62108
|
let currentDetachedCommentInfo;
|
|
62109
62109
|
if (removeComments) {
|
|
62110
62110
|
if (node.pos === 0) {
|
|
62111
|
-
leadingComments =
|
|
62111
|
+
leadingComments = filter5(getLeadingCommentRanges(text, node.pos), isPinnedCommentLocal);
|
|
62112
62112
|
}
|
|
62113
62113
|
} else {
|
|
62114
62114
|
leadingComments = getLeadingCommentRanges(text, node.pos);
|
|
@@ -62814,7 +62814,7 @@ ${lanes.join("\n")}
|
|
|
62814
62814
|
return false;
|
|
62815
62815
|
}
|
|
62816
62816
|
function getInitializedVariables(node) {
|
|
62817
|
-
return
|
|
62817
|
+
return filter5(node.declarations, isInitializedVariable);
|
|
62818
62818
|
}
|
|
62819
62819
|
function isInitializedVariable(node) {
|
|
62820
62820
|
return isVariableDeclaration(node) && node.initializer !== void 0;
|
|
@@ -72489,13 +72489,13 @@ ${lanes.join("\n")}
|
|
|
72489
72489
|
[cooked, raw]
|
|
72490
72490
|
);
|
|
72491
72491
|
}
|
|
72492
|
-
function createSpreadArrayHelper(to,
|
|
72492
|
+
function createSpreadArrayHelper(to, from17, packFrom) {
|
|
72493
72493
|
context.requestEmitHelper(spreadArrayHelper);
|
|
72494
72494
|
return factory2.createCallExpression(
|
|
72495
72495
|
getUnscopedHelperName("__spreadArray"),
|
|
72496
72496
|
/*typeArguments*/
|
|
72497
72497
|
void 0,
|
|
72498
|
-
[to,
|
|
72498
|
+
[to, from17, packFrom ? immutableTrue() : immutableFalse()]
|
|
72499
72499
|
);
|
|
72500
72500
|
}
|
|
72501
72501
|
function createPropKeyHelper(expr) {
|
|
@@ -74406,7 +74406,7 @@ ${lanes.join("\n")}
|
|
|
74406
74406
|
}
|
|
74407
74407
|
}
|
|
74408
74408
|
function getImportedHelpers(sourceFile) {
|
|
74409
|
-
return
|
|
74409
|
+
return filter5(getEmitHelpers(sourceFile), (helper) => !helper.scoped);
|
|
74410
74410
|
}
|
|
74411
74411
|
function getOrCreateExternalHelpersModuleNameIfNeeded(factory2, node, compilerOptions, helpers, hasExportStarsToExportValues, hasImportStarOrImportDefault) {
|
|
74412
74412
|
const externalHelpersModuleName = getExternalHelpersModuleName(node);
|
|
@@ -86835,7 +86835,7 @@ ${lanes.join("\n")}
|
|
|
86835
86835
|
elements.forEach((element) => convertPropertyValueToJson(element, elementOption));
|
|
86836
86836
|
return void 0;
|
|
86837
86837
|
}
|
|
86838
|
-
return
|
|
86838
|
+
return filter5(elements.map((element) => convertPropertyValueToJson(element, elementOption)), (v) => v !== void 0);
|
|
86839
86839
|
}
|
|
86840
86840
|
function convertPropertyValueToJson(valueExpression, option) {
|
|
86841
86841
|
switch (valueExpression.kind) {
|
|
@@ -86899,7 +86899,7 @@ ${lanes.join("\n")}
|
|
|
86899
86899
|
var _a2, _b, _c;
|
|
86900
86900
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
|
86901
86901
|
const files = map32(
|
|
86902
|
-
|
|
86902
|
+
filter5(
|
|
86903
86903
|
configParseResult.fileNames,
|
|
86904
86904
|
!((_b = (_a2 = configParseResult.options.configFile) == null ? void 0 : _a2.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs) ? returnTrue : matchesSpecs(
|
|
86905
86905
|
configFileName,
|
|
@@ -87372,7 +87372,7 @@ ${lanes.join("\n")}
|
|
|
87372
87372
|
const outDir = options.outDir;
|
|
87373
87373
|
const declarationDir = options.declarationDir;
|
|
87374
87374
|
if (outDir || declarationDir) {
|
|
87375
|
-
excludeSpecs =
|
|
87375
|
+
excludeSpecs = filter5([outDir, declarationDir], (d) => !!d);
|
|
87376
87376
|
}
|
|
87377
87377
|
}
|
|
87378
87378
|
if (filesSpecs === void 0 && includeSpecs === void 0) {
|
|
@@ -87409,7 +87409,7 @@ ${lanes.join("\n")}
|
|
|
87409
87409
|
basePathForFileNames
|
|
87410
87410
|
) || validatedExcludeSpecsBeforeSubstitution;
|
|
87411
87411
|
}
|
|
87412
|
-
const validatedFilesSpecBeforeSubstitution =
|
|
87412
|
+
const validatedFilesSpecBeforeSubstitution = filter5(filesSpecs, isString);
|
|
87413
87413
|
const validatedFilesSpec = getSubstitutedStringArrayWithConfigDirTemplate(
|
|
87414
87414
|
validatedFilesSpecBeforeSubstitution,
|
|
87415
87415
|
basePathForFileNames
|
|
@@ -87926,7 +87926,7 @@ ${lanes.join("\n")}
|
|
|
87926
87926
|
}
|
|
87927
87927
|
}
|
|
87928
87928
|
function convertJsonOptionOfListType(option, values, basePath, errors, propertyAssignment, valueExpression, sourceFile) {
|
|
87929
|
-
return
|
|
87929
|
+
return filter5(map32(values, (v, index) => convertJsonOption(option.element, v, basePath, errors, propertyAssignment, valueExpression == null ? void 0 : valueExpression.elements[index], sourceFile)), (v) => option.listPreserveFalsyValues ? true : !!v);
|
|
87930
87930
|
}
|
|
87931
87931
|
var invalidTrailingRecursionPattern = /(?:^|\/)\*\*\/?$/;
|
|
87932
87932
|
var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/;
|
|
@@ -88015,7 +88015,7 @@ ${lanes.join("\n")}
|
|
|
88015
88015
|
function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) {
|
|
88016
88016
|
return matchesExcludeWorker(
|
|
88017
88017
|
pathToCheck,
|
|
88018
|
-
|
|
88018
|
+
filter5(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)),
|
|
88019
88019
|
useCaseSensitiveFileNames2,
|
|
88020
88020
|
currentDirectory
|
|
88021
88021
|
);
|
|
@@ -88979,11 +88979,11 @@ ${lanes.join("\n")}
|
|
|
88979
88979
|
if (i2 < rootLength) {
|
|
88980
88980
|
return void 0;
|
|
88981
88981
|
}
|
|
88982
|
-
const
|
|
88983
|
-
if (
|
|
88982
|
+
const sep3 = directory.lastIndexOf(directorySeparator, i2 - 1);
|
|
88983
|
+
if (sep3 === -1) {
|
|
88984
88984
|
return void 0;
|
|
88985
88985
|
}
|
|
88986
|
-
return directory.substr(0, Math.max(
|
|
88986
|
+
return directory.substr(0, Math.max(sep3, rootLength));
|
|
88987
88987
|
}
|
|
88988
88988
|
}
|
|
88989
88989
|
}
|
|
@@ -90242,7 +90242,7 @@ ${lanes.join("\n")}
|
|
|
90242
90242
|
moduleName
|
|
90243
90243
|
);
|
|
90244
90244
|
}
|
|
90245
|
-
const expandingKeys = toSorted(
|
|
90245
|
+
const expandingKeys = toSorted(filter5(getOwnKeys(lookupTable), (k) => hasOneAsterisk(k) || endsWith(k, "/")), comparePatternKeys);
|
|
90246
90246
|
for (const potentialTarget of expandingKeys) {
|
|
90247
90247
|
if (state.features & 16 && matchesPatternWithTrailer(potentialTarget, moduleName)) {
|
|
90248
90248
|
const target = lookupTable[potentialTarget];
|
|
@@ -97379,7 +97379,7 @@ ${lanes.join("\n")}
|
|
|
97379
97379
|
const propName = declaration2.name;
|
|
97380
97380
|
if (isIdentifier(propName) || isPrivateIdentifier(propName)) {
|
|
97381
97381
|
const type = getTypeOfSymbol(getSymbolOfDeclaration(declaration2));
|
|
97382
|
-
const staticBlocks =
|
|
97382
|
+
const staticBlocks = filter5(declaration2.parent.members, isClassStaticBlockDeclaration);
|
|
97383
97383
|
if (isPropertyInitializedInStaticBlocks(propName, type, staticBlocks, declaration2.parent.pos, current.pos)) {
|
|
97384
97384
|
return true;
|
|
97385
97385
|
}
|
|
@@ -99602,7 +99602,7 @@ ${lanes.join("\n")}
|
|
|
99602
99602
|
function getResolvedTypeWithoutAbstractConstructSignatures(type) {
|
|
99603
99603
|
if (type.constructSignatures.length === 0) return type;
|
|
99604
99604
|
if (type.objectTypeWithoutAbstractConstructSignatures) return type.objectTypeWithoutAbstractConstructSignatures;
|
|
99605
|
-
const constructSignatures =
|
|
99605
|
+
const constructSignatures = filter5(type.constructSignatures, (signature) => !(signature.flags & 4));
|
|
99606
99606
|
if (type.constructSignatures === constructSignatures) return type;
|
|
99607
99607
|
const typeCopy = createAnonymousType(
|
|
99608
99608
|
type.symbol,
|
|
@@ -99952,7 +99952,7 @@ ${lanes.join("\n")}
|
|
|
99952
99952
|
}
|
|
99953
99953
|
function hasVisibleDeclarations(symbol2, shouldComputeAliasToMakeVisible) {
|
|
99954
99954
|
let aliasesToMakeVisible;
|
|
99955
|
-
if (!every(
|
|
99955
|
+
if (!every(filter5(
|
|
99956
99956
|
symbol2.declarations,
|
|
99957
99957
|
(d) => d.kind !== 80
|
|
99958
99958
|
/* Identifier */
|
|
@@ -100608,7 +100608,7 @@ ${lanes.join("\n")}
|
|
|
100608
100608
|
});
|
|
100609
100609
|
}
|
|
100610
100610
|
function simplifyClassDeclaration(classDecl, symbol2) {
|
|
100611
|
-
const classDeclarations =
|
|
100611
|
+
const classDeclarations = filter5(symbol2.declarations, isClassLike);
|
|
100612
100612
|
const originalClassDecl = classDeclarations && classDeclarations.length > 0 ? classDeclarations[0] : classDecl;
|
|
100613
100613
|
const modifiers = getEffectiveModifierFlags(originalClassDecl) & ~(32 | 128);
|
|
100614
100614
|
const isAnonymous = isClassExpression(originalClassDecl);
|
|
@@ -100626,7 +100626,7 @@ ${lanes.join("\n")}
|
|
|
100626
100626
|
return factory.replaceModifiers(classDecl, modifiers);
|
|
100627
100627
|
}
|
|
100628
100628
|
function simplifyModifiers(newDecl, isDeclKind, symbol2) {
|
|
100629
|
-
const decls =
|
|
100629
|
+
const decls = filter5(symbol2.declarations, isDeclKind);
|
|
100630
100630
|
const declWithModifiers = decls && decls.length > 0 ? decls[0] : newDecl;
|
|
100631
100631
|
const modifiers = getEffectiveModifierFlags(declWithModifiers) & ~(32 | 128);
|
|
100632
100632
|
return factory.replaceModifiers(newDecl, modifiers);
|
|
@@ -101459,7 +101459,7 @@ ${lanes.join("\n")}
|
|
|
101459
101459
|
return signatureNode;
|
|
101460
101460
|
}
|
|
101461
101461
|
}
|
|
101462
|
-
const abstractSignatures =
|
|
101462
|
+
const abstractSignatures = filter5(resolved.constructSignatures, (signature) => !!(signature.flags & 4));
|
|
101463
101463
|
if (some(abstractSignatures)) {
|
|
101464
101464
|
const types3 = map32(abstractSignatures, getOrCreateTypeFromSignature);
|
|
101465
101465
|
const typeElementCount = resolved.callSignatures.length + (resolved.constructSignatures.length - abstractSignatures.length) + resolved.indexInfos.length + // exclude `prototype` when writing a class expression as a type literal, as per
|
|
@@ -101676,7 +101676,7 @@ ${lanes.join("\n")}
|
|
|
101676
101676
|
)) == null ? void 0 : _a22.accessibility) === 0);
|
|
101677
101677
|
});
|
|
101678
101678
|
if (allComponentComputedNamesSerializable) {
|
|
101679
|
-
const newComponents =
|
|
101679
|
+
const newComponents = filter5(indexInfo.components, (e2) => {
|
|
101680
101680
|
return !hasLateBindableName(e2);
|
|
101681
101681
|
});
|
|
101682
101682
|
return map32(newComponents, (e2) => {
|
|
@@ -103534,16 +103534,16 @@ ${lanes.join("\n")}
|
|
|
103534
103534
|
}
|
|
103535
103535
|
function getNamesOfDeclaration(statement) {
|
|
103536
103536
|
if (isVariableStatement(statement)) {
|
|
103537
|
-
return
|
|
103537
|
+
return filter5(map32(statement.declarationList.declarations, getNameOfDeclaration), isIdentifierAndNotUndefined);
|
|
103538
103538
|
}
|
|
103539
|
-
return
|
|
103539
|
+
return filter5([getNameOfDeclaration(statement)], isIdentifierAndNotUndefined);
|
|
103540
103540
|
}
|
|
103541
103541
|
function flattenExportAssignedNamespace(statements) {
|
|
103542
103542
|
const exportAssignment = find(statements, isExportAssignment);
|
|
103543
103543
|
const nsIndex = findIndex(statements, isModuleDeclaration);
|
|
103544
103544
|
let ns = nsIndex !== -1 ? statements[nsIndex] : void 0;
|
|
103545
103545
|
if (ns && exportAssignment && exportAssignment.isExportEquals && isIdentifier(exportAssignment.expression) && isIdentifier(ns.name) && idText(ns.name) === idText(exportAssignment.expression) && ns.body && isModuleBlock(ns.body)) {
|
|
103546
|
-
const excessExports =
|
|
103546
|
+
const excessExports = filter5(statements, (s2) => !!(getEffectiveModifierFlags(s2) & 32));
|
|
103547
103547
|
const name2 = ns.name;
|
|
103548
103548
|
let body = ns.body;
|
|
103549
103549
|
if (length(excessExports)) {
|
|
@@ -103589,15 +103589,15 @@ ${lanes.join("\n")}
|
|
|
103589
103589
|
/* None */
|
|
103590
103590
|
);
|
|
103591
103591
|
});
|
|
103592
|
-
statements = [...
|
|
103592
|
+
statements = [...filter5(statements, (s2) => s2 !== ns && s2 !== exportAssignment), ...results];
|
|
103593
103593
|
}
|
|
103594
103594
|
}
|
|
103595
103595
|
return statements;
|
|
103596
103596
|
}
|
|
103597
103597
|
function mergeExportDeclarations(statements) {
|
|
103598
|
-
const exports22 =
|
|
103598
|
+
const exports22 = filter5(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause));
|
|
103599
103599
|
if (length(exports22) > 1) {
|
|
103600
|
-
const nonExports =
|
|
103600
|
+
const nonExports = filter5(statements, (d) => !isExportDeclaration(d) || !!d.moduleSpecifier || !d.exportClause);
|
|
103601
103601
|
statements = [
|
|
103602
103602
|
...nonExports,
|
|
103603
103603
|
factory.createExportDeclaration(
|
|
@@ -103611,14 +103611,14 @@ ${lanes.join("\n")}
|
|
|
103611
103611
|
)
|
|
103612
103612
|
];
|
|
103613
103613
|
}
|
|
103614
|
-
const reexports =
|
|
103614
|
+
const reexports = filter5(statements, (d) => isExportDeclaration(d) && !!d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause));
|
|
103615
103615
|
if (length(reexports) > 1) {
|
|
103616
103616
|
const groups = group(reexports, (decl) => isStringLiteral(decl.moduleSpecifier) ? ">" + decl.moduleSpecifier.text : ">");
|
|
103617
103617
|
if (groups.length !== reexports.length) {
|
|
103618
103618
|
for (const group2 of groups) {
|
|
103619
103619
|
if (group2.length > 1) {
|
|
103620
103620
|
statements = [
|
|
103621
|
-
...
|
|
103621
|
+
...filter5(statements, (s2) => !group2.includes(s2)),
|
|
103622
103622
|
factory.createExportDeclaration(
|
|
103623
103623
|
/*modifiers*/
|
|
103624
103624
|
void 0,
|
|
@@ -103642,7 +103642,7 @@ ${lanes.join("\n")}
|
|
|
103642
103642
|
if (!e2.propertyName && e2.name.kind !== 11) {
|
|
103643
103643
|
const name2 = e2.name;
|
|
103644
103644
|
const indices = indicesOf(statements);
|
|
103645
|
-
const associatedIndices =
|
|
103645
|
+
const associatedIndices = filter5(indices, (i2) => nodeHasName(statements[i2], name2));
|
|
103646
103646
|
if (length(associatedIndices) && every(associatedIndices, (i2) => canHaveExportModifier(statements[i2]))) {
|
|
103647
103647
|
for (const index2 of associatedIndices) {
|
|
103648
103648
|
statements[index2] = addExportModifier(statements[index2]);
|
|
@@ -104115,7 +104115,7 @@ ${lanes.join("\n")}
|
|
|
104115
104115
|
}
|
|
104116
104116
|
exports22 = arrayFrom(membersSet);
|
|
104117
104117
|
}
|
|
104118
|
-
return
|
|
104118
|
+
return filter5(exports22, (m2) => isNamespaceMember(m2) && isIdentifierText(
|
|
104119
104119
|
m2.escapedName,
|
|
104120
104120
|
99
|
|
104121
104121
|
/* ESNext */
|
|
@@ -104158,7 +104158,7 @@ ${lanes.join("\n")}
|
|
|
104158
104158
|
void 0,
|
|
104159
104159
|
/*isTypeOnly*/
|
|
104160
104160
|
false,
|
|
104161
|
-
factory.createNamedExports(mapDefined(
|
|
104161
|
+
factory.createNamedExports(mapDefined(filter5(
|
|
104162
104162
|
mergedMembers,
|
|
104163
104163
|
(n) => n.escapedName !== "export="
|
|
104164
104164
|
/* ExportEquals */
|
|
@@ -104204,7 +104204,7 @@ ${lanes.join("\n")}
|
|
|
104204
104204
|
const internalSymbolName = getInternalSymbolName(symbol2, symbolName2);
|
|
104205
104205
|
context.approximateLength += 9 + internalSymbolName.length;
|
|
104206
104206
|
const members = [];
|
|
104207
|
-
const memberProps =
|
|
104207
|
+
const memberProps = filter5(getPropertiesOfType(getTypeOfSymbol(symbol2)), (p) => !!(p.flags & 8));
|
|
104208
104208
|
let i2 = 0;
|
|
104209
104209
|
for (const p of memberProps) {
|
|
104210
104210
|
i2++;
|
|
@@ -104262,7 +104262,7 @@ ${lanes.join("\n")}
|
|
|
104262
104262
|
addResult(setTextRange2(context, decl, getSignatureTextRangeLocation(sig)), modifierFlags);
|
|
104263
104263
|
}
|
|
104264
104264
|
if (!(symbol2.flags & (512 | 1024) && !!symbol2.exports && !!symbol2.exports.size)) {
|
|
104265
|
-
const props =
|
|
104265
|
+
const props = filter5(getPropertiesOfType(type), isNamespaceMember);
|
|
104266
104266
|
context.approximateLength += localName.length;
|
|
104267
104267
|
serializeAsNamespaceDeclaration(
|
|
104268
104268
|
props,
|
|
@@ -104425,10 +104425,10 @@ ${lanes.join("\n")}
|
|
|
104425
104425
|
...!length(implementsExpressions) ? [] : [factory.createHeritageClause(119, implementsExpressions)]
|
|
104426
104426
|
];
|
|
104427
104427
|
const symbolProps = getNonInheritedProperties(classType, baseTypes, getPropertiesOfType(classType));
|
|
104428
|
-
const publicSymbolProps =
|
|
104428
|
+
const publicSymbolProps = filter5(symbolProps, (s2) => !isHashPrivate(s2));
|
|
104429
104429
|
const hasPrivateIdentifier = some(symbolProps, isHashPrivate);
|
|
104430
104430
|
const privateProperties = hasPrivateIdentifier ? isExpanding(context) ? serializePropertySymbolsForClassOrInterface(
|
|
104431
|
-
|
|
104431
|
+
filter5(symbolProps, isHashPrivate),
|
|
104432
104432
|
/*isClass*/
|
|
104433
104433
|
true,
|
|
104434
104434
|
baseTypes[0],
|
|
@@ -104457,7 +104457,7 @@ ${lanes.join("\n")}
|
|
|
104457
104457
|
false
|
|
104458
104458
|
);
|
|
104459
104459
|
const staticMembers = serializePropertySymbolsForClassOrInterface(
|
|
104460
|
-
|
|
104460
|
+
filter5(getPropertiesOfType(staticType), (p) => !(p.flags & 4194304) && p.escapedName !== "prototype" && !isNamespaceMember(p)),
|
|
104461
104461
|
/*isClass*/
|
|
104462
104462
|
true,
|
|
104463
104463
|
staticBaseType,
|
|
@@ -104498,7 +104498,7 @@ ${lanes.join("\n")}
|
|
|
104498
104498
|
heritageClauses,
|
|
104499
104499
|
[...indexSignatures, ...staticMembers, ...constructors, ...publicProperties, ...privateProperties]
|
|
104500
104500
|
),
|
|
104501
|
-
symbol2.declarations &&
|
|
104501
|
+
symbol2.declarations && filter5(symbol2.declarations, (d) => isClassDeclaration(d) || isClassExpression(d))[0]
|
|
104502
104502
|
),
|
|
104503
104503
|
modifierFlags
|
|
104504
104504
|
);
|
|
@@ -104929,7 +104929,7 @@ ${lanes.join("\n")}
|
|
|
104929
104929
|
const ctxSrc = getSourceFileOfNode(context.enclosingDeclaration);
|
|
104930
104930
|
return getObjectFlags(typeToSerialize) & (16 | 32) && !some((_a22 = typeToSerialize.symbol) == null ? void 0 : _a22.declarations, isTypeNode) && // If the type comes straight from a type node, we shouldn't try to break it up
|
|
104931
104931
|
!length(getIndexInfosOfType(typeToSerialize)) && !isClassInstanceSide(typeToSerialize) && // While a class instance is potentially representable as a NS, prefer printing a reference to the instance type and serializing the class
|
|
104932
|
-
!!(length(
|
|
104932
|
+
!!(length(filter5(getPropertiesOfType(typeToSerialize), isNamespaceMember)) || length(getSignaturesOfType(
|
|
104933
104933
|
typeToSerialize,
|
|
104934
104934
|
0
|
|
104935
104935
|
/* Call */
|
|
@@ -106071,7 +106071,7 @@ ${lanes.join("\n")}
|
|
|
106071
106071
|
isOptional
|
|
106072
106072
|
);
|
|
106073
106073
|
} else {
|
|
106074
|
-
const staticBlocks =
|
|
106074
|
+
const staticBlocks = filter5(declaration.parent.members, isClassStaticBlockDeclaration);
|
|
106075
106075
|
const type = staticBlocks.length ? getFlowTypeInStaticBlocks(declaration.symbol, staticBlocks) : getEffectiveModifierFlags(declaration) & 128 ? getTypeOfPropertyInBaseClass(declaration.symbol) : void 0;
|
|
106076
106076
|
return type && addOptionality(
|
|
106077
106077
|
type,
|
|
@@ -107164,7 +107164,7 @@ ${lanes.join("\n")}
|
|
|
107164
107164
|
function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {
|
|
107165
107165
|
const typeArgCount = length(typeArgumentNodes);
|
|
107166
107166
|
const isJavascript = isInJSFile(location);
|
|
107167
|
-
return
|
|
107167
|
+
return filter5(getSignaturesOfType(
|
|
107168
107168
|
type,
|
|
107169
107169
|
1
|
|
107170
107170
|
/* Construct */
|
|
@@ -107920,7 +107920,7 @@ ${lanes.join("\n")}
|
|
|
107920
107920
|
/* Construct */
|
|
107921
107921
|
));
|
|
107922
107922
|
const inheritedIndexInfos = instantiatedBaseType !== anyType2 ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo];
|
|
107923
|
-
indexInfos = concatenate(indexInfos,
|
|
107923
|
+
indexInfos = concatenate(indexInfos, filter5(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType)));
|
|
107924
107924
|
}
|
|
107925
107925
|
}
|
|
107926
107926
|
setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos);
|
|
@@ -110260,7 +110260,7 @@ ${lanes.join("\n")}
|
|
|
110260
110260
|
}
|
|
110261
110261
|
}
|
|
110262
110262
|
}
|
|
110263
|
-
const allPropertySymbols = concatenate(computedPropertySymbols,
|
|
110263
|
+
const allPropertySymbols = concatenate(computedPropertySymbols, filter5(siblingSymbols, (s2) => s2 !== indexSymbol));
|
|
110264
110264
|
if (hasComputedStringProperty && !findIndexInfo(indexInfos, stringType2)) indexInfos.push(getObjectLiteralIndexInfo(readonlyComputedStringProperty, 0, allPropertySymbols, stringType2));
|
|
110265
110265
|
if (hasComputedNumberProperty && !findIndexInfo(indexInfos, numberType2)) indexInfos.push(getObjectLiteralIndexInfo(readonlyComputedNumberProperty, 0, allPropertySymbols, numberType2));
|
|
110266
110266
|
if (hasComputedSymbolProperty && !findIndexInfo(indexInfos, esSymbolType)) indexInfos.push(getObjectLiteralIndexInfo(readonlyComputedSymbolProperty, 0, allPropertySymbols, esSymbolType));
|
|
@@ -110272,7 +110272,7 @@ ${lanes.join("\n")}
|
|
|
110272
110272
|
return !!(type.flags & (4 | 8 | 4096)) || isPatternLiteralType(type) || !!(type.flags & 2097152) && !isGenericType(type) && some(type.types, isValidIndexKeyType);
|
|
110273
110273
|
}
|
|
110274
110274
|
function getConstraintDeclaration(type) {
|
|
110275
|
-
return mapDefined(
|
|
110275
|
+
return mapDefined(filter5(type.symbol && type.symbol.declarations, isTypeParameterDeclaration), getEffectiveConstraintOfTypeParameter)[0];
|
|
110276
110276
|
}
|
|
110277
110277
|
function getInferredTypeParameterConstraint(typeParameter, omitTypeReferences) {
|
|
110278
110278
|
var _a2;
|
|
@@ -111699,7 +111699,7 @@ ${lanes.join("\n")}
|
|
|
111699
111699
|
}
|
|
111700
111700
|
}
|
|
111701
111701
|
function removeStringLiteralsMatchedByTemplateLiterals(types3) {
|
|
111702
|
-
const templates =
|
|
111702
|
+
const templates = filter5(types3, isPatternLiteralType);
|
|
111703
111703
|
if (templates.length) {
|
|
111704
111704
|
let i2 = types3.length;
|
|
111705
111705
|
while (i2 > 0) {
|
|
@@ -111984,7 +111984,7 @@ ${lanes.join("\n")}
|
|
|
111984
111984
|
}
|
|
111985
111985
|
function extractRedundantTemplateLiterals(types3) {
|
|
111986
111986
|
let i2 = types3.length;
|
|
111987
|
-
const literals =
|
|
111987
|
+
const literals = filter5(types3, (t2) => !!(t2.flags & 128));
|
|
111988
111988
|
while (i2 > 0) {
|
|
111989
111989
|
i2--;
|
|
111990
111990
|
const t2 = types3[i2];
|
|
@@ -113129,7 +113129,7 @@ ${lanes.join("\n")}
|
|
|
113129
113129
|
/*includeThisTypes*/
|
|
113130
113130
|
true
|
|
113131
113131
|
);
|
|
113132
|
-
const outerTypeParameters = aliasTypeArguments ? allOuterTypeParameters :
|
|
113132
|
+
const outerTypeParameters = aliasTypeArguments ? allOuterTypeParameters : filter5(allOuterTypeParameters, (tp) => isTypeParameterPossiblyReferenced(tp, node));
|
|
113133
113133
|
const root = {
|
|
113134
113134
|
node,
|
|
113135
113135
|
checkType,
|
|
@@ -113836,7 +113836,7 @@ ${lanes.join("\n")}
|
|
|
113836
113836
|
}
|
|
113837
113837
|
typeParameters = outerTypeParameters || emptyArray;
|
|
113838
113838
|
const allDeclarations = type.objectFlags & (4 | 8388608) ? [declaration] : type.symbol.declarations;
|
|
113839
|
-
typeParameters = (target.objectFlags & (4 | 8388608) || target.symbol.flags & 8192 || target.symbol.flags & 2048) && !target.aliasTypeArguments ?
|
|
113839
|
+
typeParameters = (target.objectFlags & (4 | 8388608) || target.symbol.flags & 8192 || target.symbol.flags & 2048) && !target.aliasTypeArguments ? filter5(typeParameters, (tp) => some(allDeclarations, (d) => isTypeParameterPossiblyReferenced(tp, d))) : typeParameters;
|
|
113840
113840
|
links.outerTypeParameters = typeParameters;
|
|
113841
113841
|
}
|
|
113842
113842
|
if (typeParameters.length) {
|
|
@@ -118926,7 +118926,7 @@ ${lanes.join("\n")}
|
|
|
118926
118926
|
};
|
|
118927
118927
|
}
|
|
118928
118928
|
function cloneInferredPartOfContext(context) {
|
|
118929
|
-
const inferences =
|
|
118929
|
+
const inferences = filter5(context.inferences, hasInferenceCandidates);
|
|
118930
118930
|
return inferences.length ? createInferenceContextWorker(map32(inferences, cloneInferenceInfo), context.signature, context.flags, context.compareTypes) : void 0;
|
|
118931
118931
|
}
|
|
118932
118932
|
function getMapperFromContext(context) {
|
|
@@ -119500,8 +119500,8 @@ ${lanes.join("\n")}
|
|
|
119500
119500
|
}
|
|
119501
119501
|
}
|
|
119502
119502
|
return [
|
|
119503
|
-
matchedSources ?
|
|
119504
|
-
matchedTargets ?
|
|
119503
|
+
matchedSources ? filter5(sources, (t2) => !contains(matchedSources, t2)) : sources,
|
|
119504
|
+
matchedTargets ? filter5(targets, (t2) => !contains(matchedTargets, t2)) : targets
|
|
119505
119505
|
];
|
|
119506
119506
|
}
|
|
119507
119507
|
function inferFromTypeArguments(sourceTypes, targetTypes, variances) {
|
|
@@ -119927,14 +119927,14 @@ ${lanes.join("\n")}
|
|
|
119927
119927
|
}
|
|
119928
119928
|
function unionObjectAndArrayLiteralCandidates(candidates) {
|
|
119929
119929
|
if (candidates.length > 1) {
|
|
119930
|
-
const objectLiterals =
|
|
119930
|
+
const objectLiterals = filter5(candidates, isObjectOrArrayLiteralType);
|
|
119931
119931
|
if (objectLiterals.length) {
|
|
119932
119932
|
const literalsType = getUnionType(
|
|
119933
119933
|
objectLiterals,
|
|
119934
119934
|
2
|
|
119935
119935
|
/* Subtype */
|
|
119936
119936
|
);
|
|
119937
|
-
return concatenate(
|
|
119937
|
+
return concatenate(filter5(candidates, (t2) => !isObjectOrArrayLiteralType(t2)), [literalsType]);
|
|
119938
119938
|
}
|
|
119939
119939
|
}
|
|
119940
119940
|
return candidates;
|
|
@@ -120674,7 +120674,7 @@ ${lanes.join("\n")}
|
|
|
120674
120674
|
function filterType(type, f3) {
|
|
120675
120675
|
if (type.flags & 1048576) {
|
|
120676
120676
|
const types3 = type.types;
|
|
120677
|
-
const filtered =
|
|
120677
|
+
const filtered = filter5(types3, f3);
|
|
120678
120678
|
if (filtered === types3) {
|
|
120679
120679
|
return type;
|
|
120680
120680
|
}
|
|
@@ -120682,7 +120682,7 @@ ${lanes.join("\n")}
|
|
|
120682
120682
|
let newOrigin;
|
|
120683
120683
|
if (origin && origin.flags & 1048576) {
|
|
120684
120684
|
const originTypes = origin.types;
|
|
120685
|
-
const originFiltered =
|
|
120685
|
+
const originFiltered = filter5(originTypes, (t2) => !!(t2.flags & 1048576) || f3(t2));
|
|
120686
120686
|
if (originTypes.length - originFiltered.length === types3.length - filtered.length) {
|
|
120687
120687
|
if (originFiltered.length === 1) {
|
|
120688
120688
|
return originFiltered[0];
|
|
@@ -124325,7 +124325,7 @@ ${lanes.join("\n")}
|
|
|
124325
124325
|
contextualType,
|
|
124326
124326
|
concatenate(
|
|
124327
124327
|
map32(
|
|
124328
|
-
|
|
124328
|
+
filter5(node.properties, (p) => {
|
|
124329
124329
|
if (!p.symbol) {
|
|
124330
124330
|
return false;
|
|
124331
124331
|
}
|
|
@@ -124340,7 +124340,7 @@ ${lanes.join("\n")}
|
|
|
124340
124340
|
(prop) => [() => getContextFreeTypeOfExpression(prop.kind === 304 ? prop.initializer : prop.name), prop.symbol.escapedName]
|
|
124341
124341
|
),
|
|
124342
124342
|
map32(
|
|
124343
|
-
|
|
124343
|
+
filter5(getPropertiesOfType(contextualType), (s2) => {
|
|
124344
124344
|
var _a2;
|
|
124345
124345
|
return !!(s2.flags & 16777216) && !!((_a2 = node == null ? void 0 : node.symbol) == null ? void 0 : _a2.members) && !node.symbol.members.has(s2.escapedName) && isDiscriminantProperty(contextualType, s2.escapedName);
|
|
124346
124346
|
}),
|
|
@@ -124362,11 +124362,11 @@ ${lanes.join("\n")}
|
|
|
124362
124362
|
contextualType,
|
|
124363
124363
|
concatenate(
|
|
124364
124364
|
map32(
|
|
124365
|
-
|
|
124365
|
+
filter5(node.properties, (p) => !!p.symbol && p.kind === 292 && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))),
|
|
124366
124366
|
(prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName]
|
|
124367
124367
|
),
|
|
124368
124368
|
map32(
|
|
124369
|
-
|
|
124369
|
+
filter5(getPropertiesOfType(contextualType), (s2) => {
|
|
124370
124370
|
var _a2;
|
|
124371
124371
|
if (!(s2.flags & 16777216) || !((_a2 = node == null ? void 0 : node.symbol) == null ? void 0 : _a2.members)) {
|
|
124372
124372
|
return false;
|
|
@@ -124807,7 +124807,7 @@ ${lanes.join("\n")}
|
|
|
124807
124807
|
0
|
|
124808
124808
|
/* Call */
|
|
124809
124809
|
);
|
|
124810
|
-
const applicableByArity =
|
|
124810
|
+
const applicableByArity = filter5(signatures, (s2) => !isAritySmaller(s2, node));
|
|
124811
124811
|
return applicableByArity.length === 1 ? applicableByArity[0] : getIntersectedSignatures(applicableByArity);
|
|
124812
124812
|
}
|
|
124813
124813
|
function isAritySmaller(signature, target) {
|
|
@@ -126623,7 +126623,7 @@ ${lanes.join("\n")}
|
|
|
126623
126623
|
if (typeof name2 !== "string") {
|
|
126624
126624
|
const parent2 = name2.parent;
|
|
126625
126625
|
if (isPropertyAccessExpression(parent2)) {
|
|
126626
|
-
props =
|
|
126626
|
+
props = filter5(props, (prop) => isValidPropertyAccessForCompletions(parent2, containingType, prop));
|
|
126627
126627
|
}
|
|
126628
126628
|
name2 = idText(name2);
|
|
126629
126629
|
}
|
|
@@ -127943,7 +127943,7 @@ ${lanes.join("\n")}
|
|
|
127943
127943
|
headMessage
|
|
127944
127944
|
);
|
|
127945
127945
|
} else if (!isJsxOpenFragment) {
|
|
127946
|
-
const signaturesWithCorrectTypeArgumentArity =
|
|
127946
|
+
const signaturesWithCorrectTypeArgumentArity = filter5(signatures, (s2) => hasCorrectTypeArgumentArity(s2, typeArguments));
|
|
127947
127947
|
if (signaturesWithCorrectTypeArgumentArity.length === 0) {
|
|
127948
127948
|
diagnostics.add(getTypeArgumentArityError(node, signatures, typeArguments, headMessage));
|
|
127949
127949
|
} else {
|
|
@@ -129394,7 +129394,7 @@ ${lanes.join("\n")}
|
|
|
129394
129394
|
}
|
|
129395
129395
|
}
|
|
129396
129396
|
function getInstantiatedSignatures(signatures) {
|
|
129397
|
-
const applicableSignatures =
|
|
129397
|
+
const applicableSignatures = filter5(signatures, (sig) => !!sig.typeParameters && hasCorrectTypeArgumentArity(sig, typeArguments));
|
|
129398
129398
|
return sameMap(applicableSignatures, (sig) => {
|
|
129399
129399
|
const typeArgumentTypes = checkTypeArguments(
|
|
129400
129400
|
sig,
|
|
@@ -133872,7 +133872,7 @@ ${lanes.join("\n")}
|
|
|
133872
133872
|
});
|
|
133873
133873
|
}
|
|
133874
133874
|
if (hasNonAmbientClass && !isConstructor && symbol2.flags & 16 && declarations) {
|
|
133875
|
-
const relatedDiagnostics =
|
|
133875
|
+
const relatedDiagnostics = filter5(
|
|
133876
133876
|
declarations,
|
|
133877
133877
|
(d) => d.kind === 264
|
|
133878
133878
|
/* ClassDeclaration */
|
|
@@ -135765,7 +135765,7 @@ ${lanes.join("\n")}
|
|
|
135765
135765
|
if (use & 4) {
|
|
135766
135766
|
if (arrayType2.flags & 1048576) {
|
|
135767
135767
|
const arrayTypes = inputType.types;
|
|
135768
|
-
const filteredTypes =
|
|
135768
|
+
const filteredTypes = filter5(arrayTypes, (t2) => !(t2.flags & 402653316));
|
|
135769
135769
|
if (filteredTypes !== arrayTypes) {
|
|
135770
135770
|
arrayType2 = getUnionType(
|
|
135771
135771
|
filteredTypes,
|
|
@@ -136076,7 +136076,7 @@ ${lanes.join("\n")}
|
|
|
136076
136076
|
0
|
|
136077
136077
|
/* Call */
|
|
136078
136078
|
) : void 0;
|
|
136079
|
-
const validSignatures =
|
|
136079
|
+
const validSignatures = filter5(allSignatures, (sig) => getMinArgumentCount(sig) === 0);
|
|
136080
136080
|
if (!some(validSignatures)) {
|
|
136081
136081
|
if (errorNode && some(allSignatures)) {
|
|
136082
136082
|
checkTypeAssignableTo(
|
|
@@ -136660,7 +136660,7 @@ ${lanes.join("\n")}
|
|
|
136660
136660
|
}
|
|
136661
136661
|
}
|
|
136662
136662
|
function checkUnmatchedJSDocParameters(node) {
|
|
136663
|
-
const jsdocParameters =
|
|
136663
|
+
const jsdocParameters = filter5(getJSDocTags(node), isJSDocParameterTag);
|
|
136664
136664
|
if (!length(jsdocParameters)) return;
|
|
136665
136665
|
const isJs = isInJSFile(node);
|
|
136666
136666
|
const parameters = /* @__PURE__ */ new Set();
|
|
@@ -137219,7 +137219,7 @@ ${lanes.join("\n")}
|
|
|
137219
137219
|
return getCheckFlags(s2) & 1 ? s2.links.target : s2;
|
|
137220
137220
|
}
|
|
137221
137221
|
function getClassOrInterfaceDeclarationsOfSymbol(symbol2) {
|
|
137222
|
-
return
|
|
137222
|
+
return filter5(
|
|
137223
137223
|
symbol2.declarations,
|
|
137224
137224
|
(d) => d.kind === 264 || d.kind === 265
|
|
137225
137225
|
/* InterfaceDeclaration */
|
|
@@ -139610,7 +139610,7 @@ ${lanes.join("\n")}
|
|
|
139610
139610
|
const keyType = getLiteralTypeFromPropertyName(node);
|
|
139611
139611
|
const objectType2 = getTypeOfExpression(node.parent.expression);
|
|
139612
139612
|
const objectTypes = objectType2.flags & 1048576 ? objectType2.types : [objectType2];
|
|
139613
|
-
return flatMap(objectTypes, (t2) =>
|
|
139613
|
+
return flatMap(objectTypes, (t2) => filter5(getIndexInfosOfType(t2), (info) => isApplicableIndexType(keyType, info.keyType)));
|
|
139614
139614
|
}
|
|
139615
139615
|
return void 0;
|
|
139616
139616
|
}
|
|
@@ -140495,7 +140495,7 @@ ${lanes.join("\n")}
|
|
|
140495
140495
|
if (reference) {
|
|
140496
140496
|
const symbol2 = getReferencedValueSymbol(reference);
|
|
140497
140497
|
if (symbol2) {
|
|
140498
|
-
return
|
|
140498
|
+
return filter5(getExportSymbolOfValueSymbolIfExported(symbol2).declarations, (declaration) => {
|
|
140499
140499
|
switch (declaration.kind) {
|
|
140500
140500
|
case 261:
|
|
140501
140501
|
case 170:
|
|
@@ -140690,7 +140690,7 @@ ${lanes.join("\n")}
|
|
|
140690
140690
|
)) == null ? void 0 : _a2.accessibility) === 0);
|
|
140691
140691
|
});
|
|
140692
140692
|
if (allComponentComputedNamesSerializable) {
|
|
140693
|
-
const newComponents =
|
|
140693
|
+
const newComponents = filter5(info.components, (e2) => {
|
|
140694
140694
|
return !hasLateBindableName(e2);
|
|
140695
140695
|
});
|
|
140696
140696
|
result.push(...map32(newComponents, (e2) => {
|
|
@@ -141536,7 +141536,7 @@ ${lanes.join("\n")}
|
|
|
141536
141536
|
}
|
|
141537
141537
|
}
|
|
141538
141538
|
function getNonSimpleParameters(parameters) {
|
|
141539
|
-
return
|
|
141539
|
+
return filter5(parameters, (parameter) => !!parameter.initializer || isBindingPattern(parameter.name) || isRestParameter(parameter));
|
|
141540
141540
|
}
|
|
141541
141541
|
function checkGrammarForUseStrictSimpleParameterList(node) {
|
|
141542
141542
|
if (languageVersion >= 3) {
|
|
@@ -145507,13 +145507,13 @@ ${lanes.join("\n")}
|
|
|
145507
145507
|
return indices;
|
|
145508
145508
|
}
|
|
145509
145509
|
function getProperties(node, requireInitializer, isStatic2) {
|
|
145510
|
-
return
|
|
145510
|
+
return filter5(node.members, (m2) => isInitializedOrStaticProperty(m2, requireInitializer, isStatic2));
|
|
145511
145511
|
}
|
|
145512
145512
|
function isStaticPropertyDeclarationOrClassStaticBlockDeclaration(element) {
|
|
145513
145513
|
return isStaticPropertyDeclaration(element) || isClassStaticBlockDeclaration(element);
|
|
145514
145514
|
}
|
|
145515
145515
|
function getStaticPropertiesAndClassStaticBlock(node) {
|
|
145516
|
-
return
|
|
145516
|
+
return filter5(node.members, isStaticPropertyDeclarationOrClassStaticBlockDeclaration);
|
|
145517
145517
|
}
|
|
145518
145518
|
function isInitializedOrStaticProperty(member, requireInitializer, isStatic2) {
|
|
145519
145519
|
return isPropertyDeclaration(member) && (!!member.initializer || !requireInitializer) && hasStaticModifier(member) === isStatic2;
|
|
@@ -147025,7 +147025,7 @@ ${lanes.join("\n")}
|
|
|
147025
147025
|
const members = visitNodes2(node.members, getClassElementVisitor(node), isClassElement);
|
|
147026
147026
|
let newMembers;
|
|
147027
147027
|
const constructor = getFirstConstructorWithBody(node);
|
|
147028
|
-
const parametersWithPropertyAssignments = constructor &&
|
|
147028
|
+
const parametersWithPropertyAssignments = constructor && filter5(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor));
|
|
147029
147029
|
if (parametersWithPropertyAssignments) {
|
|
147030
147030
|
for (const parameter of parametersWithPropertyAssignments) {
|
|
147031
147031
|
const parameterProperty = factory2.createPropertyDeclaration(
|
|
@@ -147058,9 +147058,9 @@ ${lanes.join("\n")}
|
|
|
147058
147058
|
if (some(metadata)) {
|
|
147059
147059
|
const modifiersArray = [];
|
|
147060
147060
|
addRange(modifiersArray, takeWhile(modifiers, isExportOrDefaultModifier));
|
|
147061
|
-
addRange(modifiersArray,
|
|
147061
|
+
addRange(modifiersArray, filter5(modifiers, isDecorator));
|
|
147062
147062
|
addRange(modifiersArray, metadata);
|
|
147063
|
-
addRange(modifiersArray,
|
|
147063
|
+
addRange(modifiersArray, filter5(skipWhile(modifiers, isExportOrDefaultModifier), isModifier));
|
|
147064
147064
|
modifiers = setTextRange(factory2.createNodeArray(modifiersArray), modifiers);
|
|
147065
147065
|
}
|
|
147066
147066
|
return modifiers;
|
|
@@ -147070,9 +147070,9 @@ ${lanes.join("\n")}
|
|
|
147070
147070
|
const metadata = getTypeMetadata(node, container);
|
|
147071
147071
|
if (some(metadata)) {
|
|
147072
147072
|
const modifiersArray = [];
|
|
147073
|
-
addRange(modifiersArray,
|
|
147073
|
+
addRange(modifiersArray, filter5(modifiers, isDecorator));
|
|
147074
147074
|
addRange(modifiersArray, metadata);
|
|
147075
|
-
addRange(modifiersArray,
|
|
147075
|
+
addRange(modifiersArray, filter5(modifiers, isModifier));
|
|
147076
147076
|
modifiers = setTextRange(factory2.createNodeArray(modifiersArray), modifiers);
|
|
147077
147077
|
}
|
|
147078
147078
|
}
|
|
@@ -147306,7 +147306,7 @@ ${lanes.join("\n")}
|
|
|
147306
147306
|
addRange(statementsOut, visitNodes2(statementsIn, visitor, isStatement, superStatementIndex + 1));
|
|
147307
147307
|
}
|
|
147308
147308
|
function transformConstructorBody(body, constructor) {
|
|
147309
|
-
const parametersWithPropertyAssignments = constructor &&
|
|
147309
|
+
const parametersWithPropertyAssignments = constructor && filter5(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor));
|
|
147310
147310
|
if (!some(parametersWithPropertyAssignments)) {
|
|
147311
147311
|
return visitFunctionBody(body, visitor, context);
|
|
147312
147312
|
}
|
|
@@ -148738,7 +148738,7 @@ ${lanes.join("\n")}
|
|
|
148738
148738
|
factory2.createAssignment(
|
|
148739
148739
|
functionName,
|
|
148740
148740
|
factory2.createFunctionExpression(
|
|
148741
|
-
|
|
148741
|
+
filter5(node.modifiers, (m2) => isModifier(m2) && !isStaticModifier(m2) && !isAccessorModifier(m2)),
|
|
148742
148742
|
node.asteriskToken,
|
|
148743
148743
|
functionName,
|
|
148744
148744
|
/*typeParameters*/
|
|
@@ -149386,7 +149386,7 @@ ${lanes.join("\n")}
|
|
|
149386
149386
|
}
|
|
149387
149387
|
}
|
|
149388
149388
|
function getPrivateInstanceMethodsAndAccessors(node) {
|
|
149389
|
-
return
|
|
149389
|
+
return filter5(node.members, isNonStaticMethodOrAccessorWithPrivateName);
|
|
149390
149390
|
}
|
|
149391
149391
|
function getClassFacts(node) {
|
|
149392
149392
|
var _a2;
|
|
@@ -149800,7 +149800,7 @@ ${lanes.join("\n")}
|
|
|
149800
149800
|
membersArray = append(membersArray, classNamedEvaluationHelperBlock);
|
|
149801
149801
|
membersArray = append(membersArray, syntheticConstructor);
|
|
149802
149802
|
membersArray = append(membersArray, syntheticStaticBlock);
|
|
149803
|
-
const remainingMembers = classThisAssignmentBlock || classNamedEvaluationHelperBlock ?
|
|
149803
|
+
const remainingMembers = classThisAssignmentBlock || classNamedEvaluationHelperBlock ? filter5(members, (member) => member !== classThisAssignmentBlock && member !== classNamedEvaluationHelperBlock) : members;
|
|
149804
149804
|
membersArray = addRange(membersArray, remainingMembers);
|
|
149805
149805
|
members = setTextRange(
|
|
149806
149806
|
factory2.createNodeArray(membersArray),
|
|
@@ -149912,7 +149912,7 @@ ${lanes.join("\n")}
|
|
|
149912
149912
|
);
|
|
149913
149913
|
let properties = instanceProperties;
|
|
149914
149914
|
if (!useDefineForClassFields) {
|
|
149915
|
-
properties =
|
|
149915
|
+
properties = filter5(properties, (property) => !!property.initializer || isPrivateIdentifier(property.name) || hasAccessorModifier(property));
|
|
149916
149916
|
}
|
|
149917
149917
|
const privateMethodsAndAccessors = getPrivateInstanceMethodsAndAccessors(node);
|
|
149918
149918
|
const needsConstructorBody = some(properties) || some(privateMethodsAndAccessors);
|
|
@@ -149932,8 +149932,8 @@ ${lanes.join("\n")}
|
|
|
149932
149932
|
const receiver = factory2.createThis();
|
|
149933
149933
|
addInstanceMethodStatements(initializerStatements, privateMethodsAndAccessors, receiver);
|
|
149934
149934
|
if (constructor) {
|
|
149935
|
-
const parameterProperties =
|
|
149936
|
-
const nonParameterProperties =
|
|
149935
|
+
const parameterProperties = filter5(instanceProperties, (prop) => isParameterPropertyDeclaration(getOriginalNode(prop), constructor));
|
|
149936
|
+
const nonParameterProperties = filter5(properties, (prop) => !isParameterPropertyDeclaration(getOriginalNode(prop), constructor));
|
|
149937
149937
|
addPropertyOrClassStaticBlockStatements(initializerStatements, parameterProperties, receiver);
|
|
149938
149938
|
addPropertyOrClassStaticBlockStatements(initializerStatements, nonParameterProperties, receiver);
|
|
149939
149939
|
} else {
|
|
@@ -151470,7 +151470,7 @@ ${lanes.join("\n")}
|
|
|
151470
151470
|
) && isStaticElement === isStatic(member);
|
|
151471
151471
|
}
|
|
151472
151472
|
function getDecoratedClassElements(node, isStatic2) {
|
|
151473
|
-
return
|
|
151473
|
+
return filter5(node.members, (m2) => isDecoratedClassElement(m2, isStatic2, node));
|
|
151474
151474
|
}
|
|
151475
151475
|
function generateClassElementDecorationExpressions(node, isStatic2) {
|
|
151476
151476
|
const members = getDecoratedClassElements(node, isStatic2);
|
|
@@ -157335,7 +157335,7 @@ ${lanes.join("\n")}
|
|
|
157335
157335
|
const tagName = getTagName(node);
|
|
157336
157336
|
const childrenProp = children && children.length ? convertJsxChildrenToChildrenPropAssignment(children) : void 0;
|
|
157337
157337
|
const keyAttr = find(node.attributes.properties, (p) => !!p.name && isIdentifier(p.name) && p.name.escapedText === "key");
|
|
157338
|
-
const attrs = keyAttr ?
|
|
157338
|
+
const attrs = keyAttr ? filter5(node.attributes.properties, (p) => p !== keyAttr) : node.attributes.properties;
|
|
157339
157339
|
const objectProperties = length(attrs) ? transformJsxAttributesToObjectProps(attrs, childrenProp) : factory2.createObjectLiteralExpression(childrenProp ? [childrenProp] : emptyArray);
|
|
157340
157340
|
return visitJsxOpeningLikeElementOrFragmentJSX(
|
|
157341
157341
|
tagName,
|
|
@@ -161254,8 +161254,8 @@ ${lanes.join("\n")}
|
|
|
161254
161254
|
convertedLoopState = void 0;
|
|
161255
161255
|
const bodyStatements = visitNodes2(body.statements, classWrapperStatementVisitor, isStatement);
|
|
161256
161256
|
convertedLoopState = savedConvertedLoopState;
|
|
161257
|
-
const classStatements =
|
|
161258
|
-
const remainingStatements =
|
|
161257
|
+
const classStatements = filter5(bodyStatements, isVariableStatementWithInitializer);
|
|
161258
|
+
const remainingStatements = filter5(bodyStatements, (stmt) => !isVariableStatementWithInitializer(stmt));
|
|
161259
161259
|
const varStatement = cast(first2(classStatements), isVariableStatement);
|
|
161260
161260
|
const variable = varStatement.declarationList.declarations[0];
|
|
161261
161261
|
const initializer3 = skipOuterExpressions(variable.initializer);
|
|
@@ -168185,7 +168185,7 @@ ${lanes.join("\n")}
|
|
|
168185
168185
|
}
|
|
168186
168186
|
function getDeclarationDiagnostics(host, resolver, file2) {
|
|
168187
168187
|
const compilerOptions = host.getCompilerOptions();
|
|
168188
|
-
const files =
|
|
168188
|
+
const files = filter5(getSourceFilesToEmit(host, file2), isSourceFileNotJson);
|
|
168189
168189
|
return contains(files, file2) ? transformNodes(
|
|
168190
168190
|
resolver,
|
|
168191
168191
|
host,
|
|
@@ -168346,7 +168346,7 @@ ${lanes.join("\n")}
|
|
|
168346
168346
|
function reportNonlocalAugmentation(containingFile, parentSymbol, symbol2) {
|
|
168347
168347
|
var _a2;
|
|
168348
168348
|
const primaryDeclaration = (_a2 = parentSymbol.declarations) == null ? void 0 : _a2.find((d) => getSourceFileOfNode(d) === containingFile);
|
|
168349
|
-
const augmentingDeclarations =
|
|
168349
|
+
const augmentingDeclarations = filter5(symbol2.declarations, (d) => getSourceFileOfNode(d) !== containingFile);
|
|
168350
168350
|
if (primaryDeclaration && augmentingDeclarations) {
|
|
168351
168351
|
for (const augmentations of augmentingDeclarations) {
|
|
168352
168352
|
context.addDiagnostic(addRelatedInfo(
|
|
@@ -169675,7 +169675,7 @@ ${lanes.join("\n")}
|
|
|
169675
169675
|
getSymbolAccessibilityDiagnostic = oldDiag2;
|
|
169676
169676
|
return newClause;
|
|
169677
169677
|
}
|
|
169678
|
-
return factory2.updateHeritageClause(clause, visitNodes2(factory2.createNodeArray(
|
|
169678
|
+
return factory2.updateHeritageClause(clause, visitNodes2(factory2.createNodeArray(filter5(
|
|
169679
169679
|
clause.types,
|
|
169680
169680
|
(t2) => isEntityNameExpression(t2.expression) || t2.expression.kind === 106
|
|
169681
169681
|
/* NullKeyword */
|
|
@@ -169832,11 +169832,11 @@ ${lanes.join("\n")}
|
|
|
169832
169832
|
return maskModifierFlags(node, mask2, additions);
|
|
169833
169833
|
}
|
|
169834
169834
|
function transformHeritageClauses(nodes) {
|
|
169835
|
-
return factory2.createNodeArray(
|
|
169835
|
+
return factory2.createNodeArray(filter5(
|
|
169836
169836
|
map32(nodes, (clause) => factory2.updateHeritageClause(
|
|
169837
169837
|
clause,
|
|
169838
169838
|
visitNodes2(
|
|
169839
|
-
factory2.createNodeArray(
|
|
169839
|
+
factory2.createNodeArray(filter5(clause.types, (t2) => {
|
|
169840
169840
|
return isEntityNameExpression(t2.expression) || clause.token === 96 && t2.expression.kind === 106;
|
|
169841
169841
|
})),
|
|
169842
169842
|
visitDeclarationSubtree,
|
|
@@ -170571,7 +170571,7 @@ ${lanes.join("\n")}
|
|
|
170571
170571
|
function getCommonSourceDirectoryOfConfig({ options, fileNames }, ignoreCase) {
|
|
170572
170572
|
return getCommonSourceDirectory(
|
|
170573
170573
|
options,
|
|
170574
|
-
() =>
|
|
170574
|
+
() => filter5(fileNames, (file2) => !(options.noEmitForJsFiles && fileExtensionIsOneOf(file2, supportedJSExtensionsFlat)) && !isDeclarationFileName(file2)),
|
|
170575
170575
|
getDirectoryPath(normalizeSlashes(Debug.checkDefined(options.configFilePath))),
|
|
170576
170576
|
createGetCanonicalFileName(!ignoreCase)
|
|
170577
170577
|
);
|
|
@@ -170695,7 +170695,7 @@ ${lanes.join("\n")}
|
|
|
170695
170695
|
emitSkipped = true;
|
|
170696
170696
|
return;
|
|
170697
170697
|
}
|
|
170698
|
-
(isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] :
|
|
170698
|
+
(isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : filter5(sourceFileOrBundle.sourceFiles, isSourceFileNotJson)).forEach(
|
|
170699
170699
|
(sourceFile) => {
|
|
170700
170700
|
if (compilerOptions.noCheck || !canIncludeBindAndCheckDiagnostics(sourceFile, compilerOptions)) markLinkedReferences(sourceFile);
|
|
170701
170701
|
}
|
|
@@ -170747,7 +170747,7 @@ ${lanes.join("\n")}
|
|
|
170747
170747
|
return;
|
|
170748
170748
|
}
|
|
170749
170749
|
const sourceFiles = isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;
|
|
170750
|
-
const filesForEmit = forceDtsEmit ? sourceFiles :
|
|
170750
|
+
const filesForEmit = forceDtsEmit ? sourceFiles : filter5(sourceFiles, isSourceFileNotJson);
|
|
170751
170751
|
const inputListOrBundle = compilerOptions.outFile ? [factory.createBundle(filesForEmit)] : filesForEmit;
|
|
170752
170752
|
filesForEmit.forEach((sourceFile) => {
|
|
170753
170753
|
if (emitOnly && !getEmitDeclarations(compilerOptions) || compilerOptions.noCheck || emitResolverSkipsTypeChecking(emitOnly, forceDtsEmit) || !canIncludeBindAndCheckDiagnostics(sourceFile, compilerOptions)) {
|
|
@@ -177580,7 +177580,7 @@ ${lanes.join("\n")}
|
|
|
177580
177580
|
if (commonSourceDirectory !== void 0) {
|
|
177581
177581
|
return commonSourceDirectory;
|
|
177582
177582
|
}
|
|
177583
|
-
const emittedFiles =
|
|
177583
|
+
const emittedFiles = filter5(files, (file2) => sourceFileMayBeEmitted(file2, program2));
|
|
177584
177584
|
commonSourceDirectory = getCommonSourceDirectory(
|
|
177585
177585
|
options,
|
|
177586
177586
|
() => mapDefined(emittedFiles, (file2) => file2.isDeclarationFile ? void 0 : file2.fileName),
|
|
@@ -178177,8 +178177,8 @@ ${lanes.join("\n")}
|
|
|
178177
178177
|
let bindDiagnostics = sourceFile.bindDiagnostics;
|
|
178178
178178
|
let checkDiagnostics = typeChecker2.getDiagnostics(sourceFile, cancellationToken, nodesToCheck);
|
|
178179
178179
|
if (isPlainJs) {
|
|
178180
|
-
bindDiagnostics =
|
|
178181
|
-
checkDiagnostics =
|
|
178180
|
+
bindDiagnostics = filter5(bindDiagnostics, (d) => plainJSErrors.has(d.code));
|
|
178181
|
+
checkDiagnostics = filter5(checkDiagnostics, (d) => plainJSErrors.has(d.code));
|
|
178182
178182
|
}
|
|
178183
178183
|
return getMergedBindAndCheckDiagnostics(
|
|
178184
178184
|
sourceFile,
|
|
@@ -180068,7 +180068,7 @@ ${lanes.join("\n")}
|
|
|
180068
180068
|
return { diagnostics, sourceMaps: void 0, emittedFiles, emitSkipped: true };
|
|
180069
180069
|
}
|
|
180070
180070
|
function filterSemanticDiagnostics(diagnostic, option) {
|
|
180071
|
-
return
|
|
180071
|
+
return filter5(diagnostic, (d) => !d.skippedOn || !option[d.skippedOn]);
|
|
180072
180072
|
}
|
|
180073
180073
|
function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host) {
|
|
180074
180074
|
return {
|
|
@@ -183610,7 +183610,7 @@ ${lanes.join("\n")}
|
|
|
183610
183610
|
);
|
|
183611
183611
|
}
|
|
183612
183612
|
function getFilesInErrorForSummary(diagnostics) {
|
|
183613
|
-
const filesInError =
|
|
183613
|
+
const filesInError = filter5(
|
|
183614
183614
|
diagnostics,
|
|
183615
183615
|
(diagnostic) => diagnostic.category === 1
|
|
183616
183616
|
/* Error */
|
|
@@ -185045,7 +185045,7 @@ ${lanes.join("\n")}
|
|
|
185045
185045
|
baseWatchOptions
|
|
185046
185046
|
);
|
|
185047
185047
|
}
|
|
185048
|
-
function createSolutionBuilderState(
|
|
185048
|
+
function createSolutionBuilderState(watch3, hostOrHostWithWatch, rootNames, options, baseWatchOptions) {
|
|
185049
185049
|
const host = hostOrHostWithWatch;
|
|
185050
185050
|
const hostWithWatch = hostOrHostWithWatch;
|
|
185051
185051
|
const baseCompilerOptions = getCompilerOptionsOfBuildOptions(options);
|
|
@@ -185149,9 +185149,9 @@ ${lanes.join("\n")}
|
|
|
185149
185149
|
cache: void 0,
|
|
185150
185150
|
allProjectBuildPending: true,
|
|
185151
185151
|
needsSummary: true,
|
|
185152
|
-
watchAllProjectsPending:
|
|
185152
|
+
watchAllProjectsPending: watch3,
|
|
185153
185153
|
// Watch state
|
|
185154
|
-
watch:
|
|
185154
|
+
watch: watch3,
|
|
185155
185155
|
allWatchedWildcardDirectories: /* @__PURE__ */ new Map(),
|
|
185156
185156
|
allWatchedInputFiles: /* @__PURE__ */ new Map(),
|
|
185157
185157
|
allWatchedConfigFiles: /* @__PURE__ */ new Map(),
|
|
@@ -186524,8 +186524,8 @@ ${lanes.join("\n")}
|
|
|
186524
186524
|
clearMap(state.allWatchedInputFiles, (watchedWildcardDirectories) => clearMap(watchedWildcardDirectories, closeFileWatcher));
|
|
186525
186525
|
clearMap(state.allWatchedPackageJsonFiles, (watchedPacageJsonFiles) => clearMap(watchedPacageJsonFiles, closeFileWatcher));
|
|
186526
186526
|
}
|
|
186527
|
-
function createSolutionBuilderWorker(
|
|
186528
|
-
const state = createSolutionBuilderState(
|
|
186527
|
+
function createSolutionBuilderWorker(watch3, hostOrHostWithWatch, rootNames, options, baseWatchOptions) {
|
|
186528
|
+
const state = createSolutionBuilderState(watch3, hostOrHostWithWatch, rootNames, options, baseWatchOptions);
|
|
186529
186529
|
return {
|
|
186530
186530
|
build: (project, cancellationToken, writeFile22, getCustomTransformers) => build2(state, project, cancellationToken, writeFile22, getCustomTransformers),
|
|
186531
186531
|
clean: (project) => clean(state, project),
|
|
@@ -186820,7 +186820,7 @@ ${lanes.join("\n")}
|
|
|
186820
186820
|
return options.pretty;
|
|
186821
186821
|
}
|
|
186822
186822
|
function getOptionsForHelp(commandLine) {
|
|
186823
|
-
return !!commandLine.options.all ? toSorted(optionDeclarations.concat(tscBuildOption), (a, b) => compareStringsCaseInsensitive(a.name, b.name)) :
|
|
186823
|
+
return !!commandLine.options.all ? toSorted(optionDeclarations.concat(tscBuildOption), (a, b) => compareStringsCaseInsensitive(a.name, b.name)) : filter5(optionDeclarations.concat(tscBuildOption), (v) => !!v.showInSimplifiedHelpView);
|
|
186824
186824
|
}
|
|
186825
186825
|
function printVersion(sys2) {
|
|
186826
186826
|
sys2.write(getDiagnosticText(Diagnostics.Version_0, version3) + sys2.newLine);
|
|
@@ -187144,7 +187144,7 @@ ${lanes.join("\n")}
|
|
|
187144
187144
|
output = [...output, ...generateSectionOptionsOutput(
|
|
187145
187145
|
sys2,
|
|
187146
187146
|
getDiagnosticText(Diagnostics.BUILD_OPTIONS),
|
|
187147
|
-
|
|
187147
|
+
filter5(buildOptions, (option) => option !== tscBuildOption),
|
|
187148
187148
|
/*subCategory*/
|
|
187149
187149
|
false,
|
|
187150
187150
|
formatMessage(Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")
|
|
@@ -187158,7 +187158,7 @@ ${lanes.join("\n")}
|
|
|
187158
187158
|
output = [...output, ...generateSectionOptionsOutput(
|
|
187159
187159
|
sys2,
|
|
187160
187160
|
getDiagnosticText(Diagnostics.BUILD_OPTIONS),
|
|
187161
|
-
|
|
187161
|
+
filter5(buildOptions, (option) => option !== tscBuildOption),
|
|
187162
187162
|
/*subCategory*/
|
|
187163
187163
|
false,
|
|
187164
187164
|
formatMessage(Diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0, "https://aka.ms/tsc-composite-builds")
|
|
@@ -191418,7 +191418,7 @@ ${lanes.join("\n")}
|
|
|
191418
191418
|
var _a2;
|
|
191419
191419
|
const decl = isArray(imports) ? imports[0] : imports;
|
|
191420
191420
|
const importKindPredicate = decl.kind === 244 ? isRequireVariableStatement : isAnyImportSyntax;
|
|
191421
|
-
const existingImportStatements =
|
|
191421
|
+
const existingImportStatements = filter5(sourceFile.statements, importKindPredicate);
|
|
191422
191422
|
const { comparer, isSorted } = ts_OrganizeImports_exports.getOrganizeImportsStringComparerWithDetection(existingImportStatements, preferences);
|
|
191423
191423
|
const sortedNewImports = isArray(imports) ? toSorted(imports, (a, b) => ts_OrganizeImports_exports.compareImportsOrRequireStatements(a, b, comparer)) : [imports];
|
|
191424
191424
|
if (!(existingImportStatements == null ? void 0 : existingImportStatements.length)) {
|
|
@@ -196256,7 +196256,7 @@ interface Symbol {
|
|
|
196256
196256
|
}
|
|
196257
196257
|
var commandLineOptionsStringToEnum;
|
|
196258
196258
|
function fixupCompilerOptions(options, diagnostics) {
|
|
196259
|
-
commandLineOptionsStringToEnum = commandLineOptionsStringToEnum ||
|
|
196259
|
+
commandLineOptionsStringToEnum = commandLineOptionsStringToEnum || filter5(optionDeclarations, (o) => typeof o.type === "object" && !forEachEntry(o.type, (v) => typeof v !== "number"));
|
|
196260
196260
|
options = cloneCompilerOptions(options);
|
|
196261
196261
|
for (const opt of commandLineOptionsStringToEnum) {
|
|
196262
196262
|
if (!hasProperty(options, opt.name)) {
|
|
@@ -198843,7 +198843,7 @@ interface Symbol {
|
|
|
198843
198843
|
for (const [exportDeclaration, topLevelDeclarations] of arrayFrom(targetToSourceExports)) {
|
|
198844
198844
|
if (exportDeclaration.exportClause && isNamedExports(exportDeclaration.exportClause) && length(exportDeclaration.exportClause.elements)) {
|
|
198845
198845
|
const elements = exportDeclaration.exportClause.elements;
|
|
198846
|
-
const updatedElements =
|
|
198846
|
+
const updatedElements = filter5(elements, (elem) => find(skipAlias(elem.symbol, checker).declarations, (d) => isTopLevelDeclaration(d) && topLevelDeclarations.has(d)) === void 0);
|
|
198847
198847
|
if (length(updatedElements) === 0) {
|
|
198848
198848
|
changes.deleteNode(targetFile, exportDeclaration);
|
|
198849
198849
|
removedExports.add(exportDeclaration);
|
|
@@ -203136,7 +203136,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
203136
203136
|
if (isGetAccessor(context)) {
|
|
203137
203137
|
if (!this.contextualGetAccessorDocumentationComment) {
|
|
203138
203138
|
this.contextualGetAccessorDocumentationComment = emptyArray;
|
|
203139
|
-
this.contextualGetAccessorDocumentationComment = getDocumentationComment(
|
|
203139
|
+
this.contextualGetAccessorDocumentationComment = getDocumentationComment(filter5(this.declarations, isGetAccessor), checker);
|
|
203140
203140
|
}
|
|
203141
203141
|
if (length(this.contextualGetAccessorDocumentationComment)) {
|
|
203142
203142
|
return this.contextualGetAccessorDocumentationComment;
|
|
@@ -203145,7 +203145,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
203145
203145
|
if (isSetAccessor(context)) {
|
|
203146
203146
|
if (!this.contextualSetAccessorDocumentationComment) {
|
|
203147
203147
|
this.contextualSetAccessorDocumentationComment = emptyArray;
|
|
203148
|
-
this.contextualSetAccessorDocumentationComment = getDocumentationComment(
|
|
203148
|
+
this.contextualSetAccessorDocumentationComment = getDocumentationComment(filter5(this.declarations, isSetAccessor), checker);
|
|
203149
203149
|
}
|
|
203150
203150
|
if (length(this.contextualSetAccessorDocumentationComment)) {
|
|
203151
203151
|
return this.contextualSetAccessorDocumentationComment;
|
|
@@ -203166,7 +203166,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
203166
203166
|
if (isGetAccessor(context)) {
|
|
203167
203167
|
if (!this.contextualGetAccessorTags) {
|
|
203168
203168
|
this.contextualGetAccessorTags = emptyArray;
|
|
203169
|
-
this.contextualGetAccessorTags = getJsDocTagsOfDeclarations(
|
|
203169
|
+
this.contextualGetAccessorTags = getJsDocTagsOfDeclarations(filter5(this.declarations, isGetAccessor), checker);
|
|
203170
203170
|
}
|
|
203171
203171
|
if (length(this.contextualGetAccessorTags)) {
|
|
203172
203172
|
return this.contextualGetAccessorTags;
|
|
@@ -203175,7 +203175,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
203175
203175
|
if (isSetAccessor(context)) {
|
|
203176
203176
|
if (!this.contextualSetAccessorTags) {
|
|
203177
203177
|
this.contextualSetAccessorTags = emptyArray;
|
|
203178
|
-
this.contextualSetAccessorTags = getJsDocTagsOfDeclarations(
|
|
203178
|
+
this.contextualSetAccessorTags = getJsDocTagsOfDeclarations(filter5(this.declarations, isSetAccessor), checker);
|
|
203179
203179
|
}
|
|
203180
203180
|
if (length(this.contextualSetAccessorTags)) {
|
|
203181
203181
|
return this.contextualSetAccessorTags;
|
|
@@ -204859,8 +204859,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
204859
204859
|
}
|
|
204860
204860
|
} else {
|
|
204861
204861
|
for (const pos2 of positions) {
|
|
204862
|
-
const
|
|
204863
|
-
const offset = text.substr(
|
|
204862
|
+
const from17 = pos2 - closeMultiline.length > 0 ? pos2 - closeMultiline.length : 0;
|
|
204863
|
+
const offset = text.substr(from17, closeMultiline.length) === closeMultiline ? closeMultiline.length : 0;
|
|
204864
204864
|
textChanges2.push({
|
|
204865
204865
|
newText: "",
|
|
204866
204866
|
span: {
|
|
@@ -205248,7 +205248,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
205248
205248
|
const symbol2 = contextualType.getProperty(name2);
|
|
205249
205249
|
return symbol2 ? [symbol2] : emptyArray;
|
|
205250
205250
|
}
|
|
205251
|
-
const filteredTypes = isObjectLiteralExpression(node.parent) || isJsxAttributes(node.parent) ?
|
|
205251
|
+
const filteredTypes = isObjectLiteralExpression(node.parent) || isJsxAttributes(node.parent) ? filter5(contextualType.types, (t2) => !checker.isTypeInvalidDueToUnionDiscriminant(t2, node.parent)) : contextualType.types;
|
|
205252
205252
|
const discriminatedPropertySymbols = mapDefined(filteredTypes, (t2) => t2.getProperty(name2));
|
|
205253
205253
|
if (unionSymbolOk && (discriminatedPropertySymbols.length === 0 || discriminatedPropertySymbols.length === contextualType.types.length)) {
|
|
205254
205254
|
const symbol2 = contextualType.getProperty(name2);
|
|
@@ -206045,8 +206045,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
206045
206045
|
function getCallSiteGroupKey(entry) {
|
|
206046
206046
|
return getNodeId(entry.declaration);
|
|
206047
206047
|
}
|
|
206048
|
-
function createCallHierarchyIncomingCall(
|
|
206049
|
-
return { from:
|
|
206048
|
+
function createCallHierarchyIncomingCall(from17, fromSpans) {
|
|
206049
|
+
return { from: from17, fromSpans };
|
|
206050
206050
|
}
|
|
206051
206051
|
function convertCallSiteGroupToIncomingCall(program2, entries) {
|
|
206052
206052
|
return createCallHierarchyIncomingCall(createCallHierarchyItem(program2, entries[0].declaration), map32(entries, (entry) => createTextSpanFromRange(entry.range)));
|
|
@@ -206056,7 +206056,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
206056
206056
|
return [];
|
|
206057
206057
|
}
|
|
206058
206058
|
const location = getCallHierarchyDeclarationReferenceNode(declaration);
|
|
206059
|
-
const calls =
|
|
206059
|
+
const calls = filter5(ts_FindAllReferences_exports.findReferenceOrRenameEntries(
|
|
206060
206060
|
program2,
|
|
206061
206061
|
cancellationToken,
|
|
206062
206062
|
program2.getSourceFiles(),
|
|
@@ -207563,7 +207563,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
207563
207563
|
}
|
|
207564
207564
|
}
|
|
207565
207565
|
function getModifierKindFromSource(source, kind) {
|
|
207566
|
-
return canHaveModifiers(source) ?
|
|
207566
|
+
return canHaveModifiers(source) ? filter5(source.modifiers, (modifier) => modifier.kind === kind) : void 0;
|
|
207567
207567
|
}
|
|
207568
207568
|
function isConstructorAssignment(x2) {
|
|
207569
207569
|
if (!x2.name) return false;
|
|
@@ -208363,13 +208363,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
208363
208363
|
convertExportsAccesses(sourceFile, exports22, changes);
|
|
208364
208364
|
let moduleExportsChangedToDefault = false;
|
|
208365
208365
|
let useSitesToUnqualify;
|
|
208366
|
-
for (const statement of
|
|
208366
|
+
for (const statement of filter5(sourceFile.statements, isVariableStatement)) {
|
|
208367
208367
|
const newUseSites = convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference);
|
|
208368
208368
|
if (newUseSites) {
|
|
208369
208369
|
copyEntries(newUseSites, useSitesToUnqualify ?? (useSitesToUnqualify = /* @__PURE__ */ new Map()));
|
|
208370
208370
|
}
|
|
208371
208371
|
}
|
|
208372
|
-
for (const statement of
|
|
208372
|
+
for (const statement of filter5(sourceFile.statements, (s2) => !isVariableStatement(s2))) {
|
|
208373
208373
|
const moduleExportsChanged = convertStatement(sourceFile, statement, checker, changes, identifiers, target, exports22, useSitesToUnqualify, quotePreference);
|
|
208374
208374
|
moduleExportsChangedToDefault = moduleExportsChangedToDefault || moduleExportsChanged;
|
|
208375
208375
|
}
|
|
@@ -208948,7 +208948,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
208948
208948
|
exportDeclaration.modifiers,
|
|
208949
208949
|
/*isTypeOnly*/
|
|
208950
208950
|
false,
|
|
208951
|
-
factory.updateNamedExports(exportClause,
|
|
208951
|
+
factory.updateNamedExports(exportClause, filter5(exportClause.elements, (e2) => !contains(typeExportSpecifiers, e2))),
|
|
208952
208952
|
exportDeclaration.moduleSpecifier,
|
|
208953
208953
|
/*attributes*/
|
|
208954
208954
|
void 0
|
|
@@ -208979,7 +208979,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
208979
208979
|
createTextSpanFromNode(exportClause),
|
|
208980
208980
|
context.program.getSemanticDiagnostics(context.sourceFile, context.cancellationToken)
|
|
208981
208981
|
);
|
|
208982
|
-
return
|
|
208982
|
+
return filter5(exportClause.elements, (element) => {
|
|
208983
208983
|
var _a2;
|
|
208984
208984
|
return element === originExportSpecifier || ((_a2 = findDiagnosticForNode(element, diagnostics)) == null ? void 0 : _a2.code) === errorCodes14[0];
|
|
208985
208985
|
});
|
|
@@ -209220,11 +209220,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
209220
209220
|
const rightSibling = currentNodeIndex < maxChildIndex ? commentNode.getChildAt(currentNodeIndex + 1) : void 0;
|
|
209221
209221
|
return { leftSibling, rightSibling };
|
|
209222
209222
|
}
|
|
209223
|
-
function findEndOfTextBetween(jsDocComment,
|
|
209224
|
-
const comment = jsDocComment.getText().substring(
|
|
209223
|
+
function findEndOfTextBetween(jsDocComment, from17, to) {
|
|
209224
|
+
const comment = jsDocComment.getText().substring(from17 - jsDocComment.getStart(), to - jsDocComment.getStart());
|
|
209225
209225
|
for (let i2 = comment.length; i2 > 0; i2--) {
|
|
209226
209226
|
if (!/[*/\s]/.test(comment.substring(i2 - 1, i2))) {
|
|
209227
|
-
return
|
|
209227
|
+
return from17 + i2;
|
|
209228
209228
|
}
|
|
209229
209229
|
}
|
|
209230
209230
|
return to;
|
|
@@ -212644,7 +212644,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
212644
212644
|
}
|
|
212645
212645
|
}
|
|
212646
212646
|
}
|
|
212647
|
-
return
|
|
212647
|
+
return filter5(targetProps, (targetProp) => isIdentifierText(
|
|
212648
212648
|
targetProp.name,
|
|
212649
212649
|
target,
|
|
212650
212650
|
1
|
|
@@ -212786,7 +212786,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
212786
212786
|
}
|
|
212787
212787
|
const checker = program2.getTypeChecker();
|
|
212788
212788
|
const type = checker.getTypeAtLocation(callExpression.expression);
|
|
212789
|
-
const convertibleSignatureDeclarations =
|
|
212789
|
+
const convertibleSignatureDeclarations = filter5(type.symbol.declarations, isConvertibleSignatureDeclaration);
|
|
212790
212790
|
if (convertibleSignatureDeclarations === void 0) {
|
|
212791
212791
|
return void 0;
|
|
212792
212792
|
}
|
|
@@ -219593,7 +219593,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
219593
219593
|
/* Subtype */
|
|
219594
219594
|
) : type;
|
|
219595
219595
|
if (effectiveType.flags & 1048576) {
|
|
219596
|
-
const functionTypes =
|
|
219596
|
+
const functionTypes = filter5(effectiveType.types, (type2) => checker.getSignaturesOfType(
|
|
219597
219597
|
type2,
|
|
219598
219598
|
0
|
|
219599
219599
|
/* Call */
|
|
@@ -220759,7 +220759,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
220759
220759
|
}
|
|
220760
220760
|
}
|
|
220761
220761
|
} else {
|
|
220762
|
-
symbols.push(...
|
|
220762
|
+
symbols.push(...filter5(getPropertiesForCompletion(type, typeChecker), (s2) => typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, s2)));
|
|
220763
220763
|
}
|
|
220764
220764
|
if (insertAwait && preferences.includeCompletionsWithInsertText) {
|
|
220765
220765
|
const promiseType2 = typeChecker.getPromisedTypeOfPromise(type);
|
|
@@ -221034,7 +221034,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
221034
221034
|
if (detailsEntryId && !some(info, (i2) => detailsEntryId.source === stripQuotes(i2.moduleSymbol.name))) {
|
|
221035
221035
|
return;
|
|
221036
221036
|
}
|
|
221037
|
-
info =
|
|
221037
|
+
info = filter5(info, isImportableExportInfo);
|
|
221038
221038
|
if (!info.length) {
|
|
221039
221039
|
return;
|
|
221040
221040
|
}
|
|
@@ -221295,7 +221295,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
221295
221295
|
const existingMembers = getPropertiesForCompletion(containerActualType, typeChecker);
|
|
221296
221296
|
const existingMemberEscapedNames = /* @__PURE__ */ new Set();
|
|
221297
221297
|
existingMembers.forEach((s2) => existingMemberEscapedNames.add(s2.escapedName));
|
|
221298
|
-
symbols = concatenate(symbols,
|
|
221298
|
+
symbols = concatenate(symbols, filter5(members, (s2) => !existingMemberEscapedNames.has(s2.escapedName)));
|
|
221299
221299
|
completionKind = 0;
|
|
221300
221300
|
isNewIdentifierLocation = true;
|
|
221301
221301
|
return 1;
|
|
@@ -221408,7 +221408,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
221408
221408
|
const importAttributes = contextToken.kind === 19 || contextToken.kind === 28 ? tryCast(contextToken.parent, isImportAttributes) : contextToken.kind === 59 ? tryCast(contextToken.parent.parent, isImportAttributes) : void 0;
|
|
221409
221409
|
if (importAttributes === void 0) return 0;
|
|
221410
221410
|
const existing = new Set(importAttributes.elements.map(getNameFromImportAttribute));
|
|
221411
|
-
symbols =
|
|
221411
|
+
symbols = filter5(typeChecker.getTypeAtLocation(importAttributes).getApparentProperties(), (attr) => !existing.has(attr.escapedName));
|
|
221412
221412
|
return 1;
|
|
221413
221413
|
}
|
|
221414
221414
|
function tryGetLocalNamedExportCompletionSymbols() {
|
|
@@ -222057,14 +222057,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
222057
222057
|
function getPropertiesForObjectExpression(contextualType, completionsType, obj, checker) {
|
|
222058
222058
|
const hasCompletionsType = completionsType && completionsType !== contextualType;
|
|
222059
222059
|
const promiseFilteredContextualType = checker.getUnionType(
|
|
222060
|
-
|
|
222060
|
+
filter5(
|
|
222061
222061
|
contextualType.flags & 1048576 ? contextualType.types : [contextualType],
|
|
222062
222062
|
(t2) => !checker.getPromisedTypeOfPromise(t2)
|
|
222063
222063
|
)
|
|
222064
222064
|
);
|
|
222065
222065
|
const type = hasCompletionsType && !(completionsType.flags & 3) ? checker.getUnionType([promiseFilteredContextualType, completionsType]) : promiseFilteredContextualType;
|
|
222066
222066
|
const properties = getApparentProperties(type, obj, checker);
|
|
222067
|
-
return type.isClass() && containsNonPublicProperties(properties) ? [] : hasCompletionsType ?
|
|
222067
|
+
return type.isClass() && containsNonPublicProperties(properties) ? [] : hasCompletionsType ? filter5(properties, hasDeclarationOtherThanSelf) : properties;
|
|
222068
222068
|
function hasDeclarationOtherThanSelf(member) {
|
|
222069
222069
|
if (!length(member.declarations)) return true;
|
|
222070
222070
|
return some(member.declarations, (decl) => decl.parent !== obj);
|
|
@@ -222072,7 +222072,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
222072
222072
|
}
|
|
222073
222073
|
function getApparentProperties(type, node, checker) {
|
|
222074
222074
|
if (!type.isUnion()) return type.getApparentProperties();
|
|
222075
|
-
return checker.getAllPossiblePropertiesOfTypes(
|
|
222075
|
+
return checker.getAllPossiblePropertiesOfTypes(filter5(type.types, (memberType) => !(memberType.flags & 402784252 || checker.isArrayLikeType(memberType) || checker.isTypeInvalidDueToUnionDiscriminant(memberType, node) || checker.typeHasCallOrConstructSignatures(memberType) || memberType.isClass() && containsNonPublicProperties(memberType.getApparentProperties()))));
|
|
222076
222076
|
}
|
|
222077
222077
|
function containsNonPublicProperties(props) {
|
|
222078
222078
|
return some(props, (p) => !!(getDeclarationModifierFlagsFromSymbol(p) & 6));
|
|
@@ -222783,7 +222783,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
222783
222783
|
function stringLiteralCompletionsFromProperties(type) {
|
|
222784
222784
|
return type && {
|
|
222785
222785
|
kind: 1,
|
|
222786
|
-
symbols:
|
|
222786
|
+
symbols: filter5(type.getApparentProperties(), (prop) => !(prop.valueDeclaration && isPrivateIdentifierClassElementDeclaration(prop.valueDeclaration))),
|
|
222787
222787
|
hasIndexSignature: hasIndexSignature(type)
|
|
222788
222788
|
};
|
|
222789
222789
|
}
|
|
@@ -225210,7 +225210,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
225210
225210
|
}
|
|
225211
225211
|
Core2.eachSymbolReferenceInFile = eachSymbolReferenceInFile;
|
|
225212
225212
|
function getTopMostDeclarationNamesInFile(declarationName, sourceFile) {
|
|
225213
|
-
const candidates =
|
|
225213
|
+
const candidates = filter5(getPossibleSymbolReferenceNodes(sourceFile, declarationName), (name2) => !!getDeclarationFromName(name2));
|
|
225214
225214
|
return candidates.reduce((topMost, decl) => {
|
|
225215
225215
|
const depth = getDepth(decl);
|
|
225216
225216
|
if (!some(topMost.declarationNames) || depth === topMost.depth) {
|
|
@@ -226147,7 +226147,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
226147
226147
|
if (isStaticModifier(node) && isClassStaticBlockDeclaration(node.parent)) {
|
|
226148
226148
|
const classDecl = node.parent.parent;
|
|
226149
226149
|
const { symbol: symbol22, failedAliasResolution: failedAliasResolution2 } = getSymbol(classDecl, typeChecker, stopAtAlias);
|
|
226150
|
-
const staticBlocks =
|
|
226150
|
+
const staticBlocks = filter5(classDecl.members, isClassStaticBlockDeclaration);
|
|
226151
226151
|
const containerName = symbol22 ? typeChecker.symbolToString(symbol22, classDecl) : "";
|
|
226152
226152
|
const sourceFile2 = node.getSourceFile();
|
|
226153
226153
|
return map32(staticBlocks, (staticBlock) => {
|
|
@@ -226483,12 +226483,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
226483
226483
|
return !!containingAssignment && getAssignmentDeclarationKind(containingAssignment) === 5;
|
|
226484
226484
|
}
|
|
226485
226485
|
function getDefinitionFromSymbol(typeChecker, symbol2, node, failedAliasResolution, declarationFilter) {
|
|
226486
|
-
const filteredDeclarations = declarationFilter !== void 0 ?
|
|
226486
|
+
const filteredDeclarations = declarationFilter !== void 0 ? filter5(symbol2.declarations, declarationFilter) : symbol2.declarations;
|
|
226487
226487
|
const signatureDefinition = !declarationFilter && (getConstructSignatureDefinition() || getCallSignatureDefinition());
|
|
226488
226488
|
if (signatureDefinition) {
|
|
226489
226489
|
return signatureDefinition;
|
|
226490
226490
|
}
|
|
226491
|
-
const withoutExpandos =
|
|
226491
|
+
const withoutExpandos = filter5(filteredDeclarations, (d) => !isExpandoDeclaration(d));
|
|
226492
226492
|
const results = some(withoutExpandos) ? withoutExpandos : filteredDeclarations;
|
|
226493
226493
|
return map32(results, (declaration) => createDefinitionInfo(
|
|
226494
226494
|
declaration,
|
|
@@ -231474,7 +231474,7 @@ ${content}
|
|
|
231474
231474
|
this.replaceJSDocComment(sourceFile, parent2, [...oldTags, ...unmergedNewTags]);
|
|
231475
231475
|
}
|
|
231476
231476
|
filterJSDocTags(sourceFile, parent2, predicate) {
|
|
231477
|
-
this.replaceJSDocComment(sourceFile, parent2,
|
|
231477
|
+
this.replaceJSDocComment(sourceFile, parent2, filter5(flatMapToMutable(parent2.jsDoc, (j) => j.tags), predicate));
|
|
231478
231478
|
}
|
|
231479
231479
|
replaceRangeWithText(sourceFile, range, text) {
|
|
231480
231480
|
this.changes.push({ kind: 3, sourceFile, range, text });
|
|
@@ -234300,9 +234300,9 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
234300
234300
|
function toTokenRange(arg) {
|
|
234301
234301
|
return typeof arg === "number" ? tokenRangeFrom([arg]) : isArray(arg) ? tokenRangeFrom(arg) : arg;
|
|
234302
234302
|
}
|
|
234303
|
-
function tokenRangeFromRange(
|
|
234303
|
+
function tokenRangeFromRange(from17, to, except = []) {
|
|
234304
234304
|
const tokens = [];
|
|
234305
|
-
for (let token =
|
|
234305
|
+
for (let token = from17; token <= to; token++) {
|
|
234306
234306
|
if (!contains(except, token)) {
|
|
234307
234307
|
tokens.push(token);
|
|
234308
234308
|
}
|
|
@@ -237055,7 +237055,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
237055
237055
|
fileExtensionIsOneOf: () => fileExtensionIsOneOf,
|
|
237056
237056
|
fileIncludeReasonToDiagnostics: () => fileIncludeReasonToDiagnostics,
|
|
237057
237057
|
fileShouldUseJavaScriptRequire: () => fileShouldUseJavaScriptRequire,
|
|
237058
|
-
filter: () =>
|
|
237058
|
+
filter: () => filter5,
|
|
237059
237059
|
filterMutate: () => filterMutate,
|
|
237060
237060
|
filterSemanticDiagnostics: () => filterSemanticDiagnostics,
|
|
237061
237061
|
find: () => find,
|
|
@@ -240337,8 +240337,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
240337
240337
|
/* Tsx */
|
|
240338
240338
|
));
|
|
240339
240339
|
}
|
|
240340
|
-
function isGeneratedFileWatcher(
|
|
240341
|
-
return
|
|
240340
|
+
function isGeneratedFileWatcher(watch3) {
|
|
240341
|
+
return watch3.generatedFilePath !== void 0;
|
|
240342
240342
|
}
|
|
240343
240343
|
function setIsEqualTo(arr1, arr2) {
|
|
240344
240344
|
if (arr1 === arr2) {
|
|
@@ -240767,7 +240767,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
240767
240767
|
* Get the errors that dont have any file name associated
|
|
240768
240768
|
*/
|
|
240769
240769
|
getGlobalProjectErrors() {
|
|
240770
|
-
return
|
|
240770
|
+
return filter5(this.projectErrors, (diagnostic) => !diagnostic.file) || emptyArray2;
|
|
240771
240771
|
}
|
|
240772
240772
|
/**
|
|
240773
240773
|
* Get all the project errors
|
|
@@ -241352,8 +241352,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
241352
241352
|
/* DirectoryWatcher */
|
|
241353
241353
|
);
|
|
241354
241354
|
}
|
|
241355
|
-
toRemove.forEach((
|
|
241356
|
-
|
|
241355
|
+
toRemove.forEach((watch3, path2) => {
|
|
241356
|
+
watch3.close();
|
|
241357
241357
|
this.typingWatchers.delete(path2);
|
|
241358
241358
|
});
|
|
241359
241359
|
}
|
|
@@ -241364,7 +241364,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
241364
241364
|
removeExistingTypings(include) {
|
|
241365
241365
|
if (!include.length) return include;
|
|
241366
241366
|
const existing = getAutomaticTypeDirectiveNames(this.getCompilerOptions(), this);
|
|
241367
|
-
return
|
|
241367
|
+
return filter5(include, (i2) => !existing.includes(i2));
|
|
241368
241368
|
}
|
|
241369
241369
|
updateGraphWorker() {
|
|
241370
241370
|
var _a2, _b;
|
|
@@ -242595,7 +242595,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
242595
242595
|
* Get the errors that dont have any file name associated
|
|
242596
242596
|
*/
|
|
242597
242597
|
getGlobalProjectErrors() {
|
|
242598
|
-
return
|
|
242598
|
+
return filter5(this.projectErrors, (diagnostic) => !diagnostic.file) || emptyArray2;
|
|
242599
242599
|
}
|
|
242600
242600
|
/**
|
|
242601
242601
|
* Get all the project errors
|
|
@@ -248806,7 +248806,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
248806
248806
|
getConfigFileDiagnostics(configFile, project, includeLinePosition) {
|
|
248807
248807
|
const projectErrors = project.getAllProjectErrors();
|
|
248808
248808
|
const optionsErrors = project.getLanguageService().getCompilerOptionsDiagnostics();
|
|
248809
|
-
const diagnosticsForConfigFile =
|
|
248809
|
+
const diagnosticsForConfigFile = filter5(
|
|
248810
248810
|
concatenate(projectErrors, optionsErrors),
|
|
248811
248811
|
(diagnostic) => !!diagnostic.file && diagnostic.file.fileName === configFile
|
|
248812
248812
|
);
|
|
@@ -248841,7 +248841,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
248841
248841
|
getCompilerOptionsDiagnostics(args) {
|
|
248842
248842
|
const project = this.getProject(args.projectFileName);
|
|
248843
248843
|
return this.convertToDiagnosticsWithLinePosition(
|
|
248844
|
-
|
|
248844
|
+
filter5(
|
|
248845
248845
|
project.getLanguageService().getCompilerOptionsDiagnostics(),
|
|
248846
248846
|
(diagnostic) => !diagnostic.file
|
|
248847
248847
|
),
|
|
@@ -249389,7 +249389,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
249389
249389
|
projects = scriptInfo.containingProjects;
|
|
249390
249390
|
symLinkedProjects = this.projectService.getSymlinkedProjects(scriptInfo);
|
|
249391
249391
|
}
|
|
249392
|
-
projects =
|
|
249392
|
+
projects = filter5(projects, (p) => p.languageServiceEnabled && !p.isOrphan());
|
|
249393
249393
|
if (!ignoreNoProjectError && (!projects || !projects.length) && !symLinkedProjects) {
|
|
249394
249394
|
this.projectService.logErrorForScriptInfoNotFound(args.file ?? args.projectFileName);
|
|
249395
249395
|
return Errors.ThrowNoProject();
|
|
@@ -250002,7 +250002,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
|
|
|
250002
250002
|
/*excludeLibFiles*/
|
|
250003
250003
|
preferences.excludeLibrarySymbolsInNavTo
|
|
250004
250004
|
);
|
|
250005
|
-
const unseenItems =
|
|
250005
|
+
const unseenItems = filter5(projectItems, (item) => tryAddSeenItem(item) && !getMappedLocationForProject(documentSpanLocation(item), project));
|
|
250006
250006
|
if (unseenItems.length) {
|
|
250007
250007
|
outputs.push({ project, navigateToItems: unseenItems });
|
|
250008
250008
|
}
|
|
@@ -254074,8 +254074,8 @@ function writeFlowMapping(state, level, node) {
|
|
|
254074
254074
|
if (explicitPair) pairBuffer += "? ";
|
|
254075
254075
|
else if (state.quoteFlowKeys) pairBuffer += '"';
|
|
254076
254076
|
const valueText = writeNode(state, level, value, {});
|
|
254077
|
-
const
|
|
254078
|
-
pairBuffer += `${keyText}${state.quoteFlowKeys && !explicitPair ? '"' : ""}:${
|
|
254077
|
+
const sep3 = state.flowSkipColonSpace || valueText === "" ? "" : " ";
|
|
254078
|
+
pairBuffer += `${keyText}${state.quoteFlowKeys && !explicitPair ? '"' : ""}:${sep3}${valueText}`;
|
|
254079
254079
|
result += pairBuffer;
|
|
254080
254080
|
}
|
|
254081
254081
|
const pad = state.flowBracketPadding && result !== "" ? " " : "";
|
|
@@ -254172,8 +254172,8 @@ function writeNode(state, level, node, ctx) {
|
|
|
254172
254172
|
if (anchor !== null) props.push(anchor);
|
|
254173
254173
|
if (tag !== null) props.push(tag);
|
|
254174
254174
|
}
|
|
254175
|
-
const
|
|
254176
|
-
body = `${props.join(" ")}${
|
|
254175
|
+
const sep3 = body === "" || body.charCodeAt(0) === CHAR_LINE_FEED ? "" : " ";
|
|
254176
|
+
body = `${props.join(" ")}${sep3}${body}`;
|
|
254177
254177
|
}
|
|
254178
254178
|
return body;
|
|
254179
254179
|
}
|
|
@@ -254218,8 +254218,8 @@ function present(documents, options) {
|
|
|
254218
254218
|
block: true,
|
|
254219
254219
|
compact: true
|
|
254220
254220
|
});
|
|
254221
|
-
const
|
|
254222
|
-
result += `---${
|
|
254221
|
+
const sep3 = body === "" ? "" : hasDirectives || rootStartsOwnLine(doc.contents) ? "\n" : " ";
|
|
254222
|
+
result += `---${sep3}${body}
|
|
254223
254223
|
`;
|
|
254224
254224
|
} else result += writeNode(state, 0, doc.contents, {
|
|
254225
254225
|
block: true,
|
|
@@ -266123,9 +266123,9 @@ var require_mime_types = __commonJS({
|
|
|
266123
266123
|
for (var i2 = 0; i2 < exts.length; i2++) {
|
|
266124
266124
|
var extension2 = exts[i2];
|
|
266125
266125
|
if (types3[extension2]) {
|
|
266126
|
-
var
|
|
266126
|
+
var from17 = preference.indexOf(db[types3[extension2]].source);
|
|
266127
266127
|
var to = preference.indexOf(mime.source);
|
|
266128
|
-
if (types3[extension2] !== "application/octet-stream" && (
|
|
266128
|
+
if (types3[extension2] !== "application/octet-stream" && (from17 > to || from17 === to && types3[extension2].substr(0, 12) === "application/")) {
|
|
266129
266129
|
continue;
|
|
266130
266130
|
}
|
|
266131
266131
|
}
|
|
@@ -267872,7 +267872,7 @@ var require_balanced_match = __commonJS({
|
|
|
267872
267872
|
// ../../node_modules/brace-expansion/index.js
|
|
267873
267873
|
var require_brace_expansion = __commonJS({
|
|
267874
267874
|
"../../node_modules/brace-expansion/index.js"(exports2, module2) {
|
|
267875
|
-
var
|
|
267875
|
+
var concatMap2 = require_concat_map();
|
|
267876
267876
|
var balanced = require_balanced_match();
|
|
267877
267877
|
module2.exports = expandTop;
|
|
267878
267878
|
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
@@ -267997,7 +267997,7 @@ var require_brace_expansion = __commonJS({
|
|
|
267997
267997
|
N.push(c);
|
|
267998
267998
|
}
|
|
267999
267999
|
} else {
|
|
268000
|
-
N =
|
|
268000
|
+
N = concatMap2(n, function(el) {
|
|
268001
268001
|
return expand(el, false);
|
|
268002
268002
|
});
|
|
268003
268003
|
}
|
|
@@ -268044,8 +268044,8 @@ var require_minimatch = __commonJS({
|
|
|
268044
268044
|
}, {});
|
|
268045
268045
|
}
|
|
268046
268046
|
var slashSplit = /\/+/;
|
|
268047
|
-
minimatch.filter =
|
|
268048
|
-
function
|
|
268047
|
+
minimatch.filter = filter5;
|
|
268048
|
+
function filter5(pattern, options) {
|
|
268049
268049
|
options = options || {};
|
|
268050
268050
|
return function(p, i2, list) {
|
|
268051
268051
|
return minimatch(p, pattern, options);
|
|
@@ -269851,13 +269851,13 @@ var require_async3 = __commonJS({
|
|
|
269851
269851
|
});
|
|
269852
269852
|
}
|
|
269853
269853
|
function _filter(eachfn, coll, iteratee, callback) {
|
|
269854
|
-
var
|
|
269855
|
-
return
|
|
269854
|
+
var filter6 = isArrayLike(coll) ? filterArray : filterGeneric;
|
|
269855
|
+
return filter6(eachfn, coll, wrapAsync(iteratee), callback);
|
|
269856
269856
|
}
|
|
269857
|
-
function
|
|
269857
|
+
function filter5(coll, iteratee, callback) {
|
|
269858
269858
|
return _filter(eachOf$1, coll, iteratee, callback);
|
|
269859
269859
|
}
|
|
269860
|
-
var filter$1 = awaitify(
|
|
269860
|
+
var filter$1 = awaitify(filter5, 3);
|
|
269861
269861
|
function filterLimit(coll, limit, iteratee, callback) {
|
|
269862
269862
|
return _filter(eachOfLimit(limit), coll, iteratee, callback);
|
|
269863
269863
|
}
|
|
@@ -270681,15 +270681,15 @@ var require_polyfills = __commonJS({
|
|
|
270681
270681
|
}
|
|
270682
270682
|
if (platform2 === "win32") {
|
|
270683
270683
|
fs3.rename = /* @__PURE__ */ (function(fs$rename) {
|
|
270684
|
-
return function(
|
|
270684
|
+
return function(from17, to, cb) {
|
|
270685
270685
|
var start3 = Date.now();
|
|
270686
270686
|
var backoff = 0;
|
|
270687
|
-
fs$rename(
|
|
270687
|
+
fs$rename(from17, to, function CB(er) {
|
|
270688
270688
|
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start3 < 6e4) {
|
|
270689
270689
|
setTimeout(function() {
|
|
270690
270690
|
fs3.stat(to, function(stater, st) {
|
|
270691
270691
|
if (stater && stater.code === "ENOENT")
|
|
270692
|
-
fs$rename(
|
|
270692
|
+
fs$rename(from17, to, CB);
|
|
270693
270693
|
else
|
|
270694
270694
|
cb(er);
|
|
270695
270695
|
});
|
|
@@ -277597,7 +277597,7 @@ var require_from4 = __commonJS({
|
|
|
277597
277597
|
return obj;
|
|
277598
277598
|
}
|
|
277599
277599
|
var ERR_INVALID_ARG_TYPE = require_errors3().codes.ERR_INVALID_ARG_TYPE;
|
|
277600
|
-
function
|
|
277600
|
+
function from17(Readable2, iterable, opts) {
|
|
277601
277601
|
var iterator;
|
|
277602
277602
|
if (iterable && typeof iterable.next === "function") {
|
|
277603
277603
|
iterator = iterable;
|
|
@@ -277636,7 +277636,7 @@ var require_from4 = __commonJS({
|
|
|
277636
277636
|
}
|
|
277637
277637
|
return readable;
|
|
277638
277638
|
}
|
|
277639
|
-
module2.exports =
|
|
277639
|
+
module2.exports = from17;
|
|
277640
277640
|
}
|
|
277641
277641
|
});
|
|
277642
277642
|
|
|
@@ -277680,7 +277680,7 @@ var require_stream_readable4 = __commonJS({
|
|
|
277680
277680
|
var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
277681
277681
|
var StringDecoder;
|
|
277682
277682
|
var createReadableStreamAsyncIterator;
|
|
277683
|
-
var
|
|
277683
|
+
var from17;
|
|
277684
277684
|
require_inherits()(Readable2, Stream3);
|
|
277685
277685
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
277686
277686
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
@@ -278362,10 +278362,10 @@ var require_stream_readable4 = __commonJS({
|
|
|
278362
278362
|
}
|
|
278363
278363
|
if (typeof Symbol === "function") {
|
|
278364
278364
|
Readable2.from = function(iterable, opts) {
|
|
278365
|
-
if (
|
|
278366
|
-
|
|
278365
|
+
if (from17 === void 0) {
|
|
278366
|
+
from17 = require_from4();
|
|
278367
278367
|
}
|
|
278368
|
-
return
|
|
278368
|
+
return from17(Readable2, iterable, opts);
|
|
278369
278369
|
};
|
|
278370
278370
|
}
|
|
278371
278371
|
function indexOf(xs, x2) {
|
|
@@ -278545,8 +278545,8 @@ var require_pipeline3 = __commonJS({
|
|
|
278545
278545
|
function call(fn) {
|
|
278546
278546
|
fn();
|
|
278547
278547
|
}
|
|
278548
|
-
function pipe2(
|
|
278549
|
-
return
|
|
278548
|
+
function pipe2(from17, to) {
|
|
278549
|
+
return from17.pipe(to);
|
|
278550
278550
|
}
|
|
278551
278551
|
function popCallback(streams) {
|
|
278552
278552
|
if (!streams.length) return noop3;
|
|
@@ -280939,7 +280939,7 @@ var require_from5 = __commonJS({
|
|
|
280939
280939
|
return obj;
|
|
280940
280940
|
}
|
|
280941
280941
|
var ERR_INVALID_ARG_TYPE = require_errors4().codes.ERR_INVALID_ARG_TYPE;
|
|
280942
|
-
function
|
|
280942
|
+
function from17(Readable2, iterable, opts) {
|
|
280943
280943
|
var iterator;
|
|
280944
280944
|
if (iterable && typeof iterable.next === "function") {
|
|
280945
280945
|
iterator = iterable;
|
|
@@ -280978,7 +280978,7 @@ var require_from5 = __commonJS({
|
|
|
280978
280978
|
}
|
|
280979
280979
|
return readable;
|
|
280980
280980
|
}
|
|
280981
|
-
module2.exports =
|
|
280981
|
+
module2.exports = from17;
|
|
280982
280982
|
}
|
|
280983
280983
|
});
|
|
280984
280984
|
|
|
@@ -281022,7 +281022,7 @@ var require_stream_readable5 = __commonJS({
|
|
|
281022
281022
|
var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
281023
281023
|
var StringDecoder;
|
|
281024
281024
|
var createReadableStreamAsyncIterator;
|
|
281025
|
-
var
|
|
281025
|
+
var from17;
|
|
281026
281026
|
require_inherits()(Readable2, Stream3);
|
|
281027
281027
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
281028
281028
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
@@ -281704,10 +281704,10 @@ var require_stream_readable5 = __commonJS({
|
|
|
281704
281704
|
}
|
|
281705
281705
|
if (typeof Symbol === "function") {
|
|
281706
281706
|
Readable2.from = function(iterable, opts) {
|
|
281707
|
-
if (
|
|
281708
|
-
|
|
281707
|
+
if (from17 === void 0) {
|
|
281708
|
+
from17 = require_from5();
|
|
281709
281709
|
}
|
|
281710
|
-
return
|
|
281710
|
+
return from17(Readable2, iterable, opts);
|
|
281711
281711
|
};
|
|
281712
281712
|
}
|
|
281713
281713
|
function indexOf(xs, x2) {
|
|
@@ -281887,8 +281887,8 @@ var require_pipeline4 = __commonJS({
|
|
|
281887
281887
|
function call(fn) {
|
|
281888
281888
|
fn();
|
|
281889
281889
|
}
|
|
281890
|
-
function pipe2(
|
|
281891
|
-
return
|
|
281890
|
+
function pipe2(from17, to) {
|
|
281891
|
+
return from17.pipe(to);
|
|
281892
281892
|
}
|
|
281893
281893
|
function popCallback(streams) {
|
|
281894
281894
|
if (!streams.length) return noop3;
|
|
@@ -283711,7 +283711,7 @@ var require_from6 = __commonJS({
|
|
|
283711
283711
|
return obj;
|
|
283712
283712
|
}
|
|
283713
283713
|
var ERR_INVALID_ARG_TYPE = require_errors5().codes.ERR_INVALID_ARG_TYPE;
|
|
283714
|
-
function
|
|
283714
|
+
function from17(Readable2, iterable, opts) {
|
|
283715
283715
|
var iterator;
|
|
283716
283716
|
if (iterable && typeof iterable.next === "function") {
|
|
283717
283717
|
iterator = iterable;
|
|
@@ -283750,7 +283750,7 @@ var require_from6 = __commonJS({
|
|
|
283750
283750
|
}
|
|
283751
283751
|
return readable;
|
|
283752
283752
|
}
|
|
283753
|
-
module2.exports =
|
|
283753
|
+
module2.exports = from17;
|
|
283754
283754
|
}
|
|
283755
283755
|
});
|
|
283756
283756
|
|
|
@@ -283794,7 +283794,7 @@ var require_stream_readable6 = __commonJS({
|
|
|
283794
283794
|
var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
283795
283795
|
var StringDecoder;
|
|
283796
283796
|
var createReadableStreamAsyncIterator;
|
|
283797
|
-
var
|
|
283797
|
+
var from17;
|
|
283798
283798
|
require_inherits()(Readable2, Stream3);
|
|
283799
283799
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
283800
283800
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
@@ -284476,10 +284476,10 @@ var require_stream_readable6 = __commonJS({
|
|
|
284476
284476
|
}
|
|
284477
284477
|
if (typeof Symbol === "function") {
|
|
284478
284478
|
Readable2.from = function(iterable, opts) {
|
|
284479
|
-
if (
|
|
284480
|
-
|
|
284479
|
+
if (from17 === void 0) {
|
|
284480
|
+
from17 = require_from6();
|
|
284481
284481
|
}
|
|
284482
|
-
return
|
|
284482
|
+
return from17(Readable2, iterable, opts);
|
|
284483
284483
|
};
|
|
284484
284484
|
}
|
|
284485
284485
|
function indexOf(xs, x2) {
|
|
@@ -284659,8 +284659,8 @@ var require_pipeline5 = __commonJS({
|
|
|
284659
284659
|
function call(fn) {
|
|
284660
284660
|
fn();
|
|
284661
284661
|
}
|
|
284662
|
-
function pipe2(
|
|
284663
|
-
return
|
|
284662
|
+
function pipe2(from17, to) {
|
|
284663
|
+
return from17.pipe(to);
|
|
284664
284664
|
}
|
|
284665
284665
|
function popCallback(streams) {
|
|
284666
284666
|
if (!streams.length) return noop3;
|
|
@@ -286948,7 +286948,7 @@ var require_from7 = __commonJS({
|
|
|
286948
286948
|
return obj;
|
|
286949
286949
|
}
|
|
286950
286950
|
var ERR_INVALID_ARG_TYPE = require_errors6().codes.ERR_INVALID_ARG_TYPE;
|
|
286951
|
-
function
|
|
286951
|
+
function from17(Readable2, iterable, opts) {
|
|
286952
286952
|
var iterator;
|
|
286953
286953
|
if (iterable && typeof iterable.next === "function") {
|
|
286954
286954
|
iterator = iterable;
|
|
@@ -286987,7 +286987,7 @@ var require_from7 = __commonJS({
|
|
|
286987
286987
|
}
|
|
286988
286988
|
return readable;
|
|
286989
286989
|
}
|
|
286990
|
-
module2.exports =
|
|
286990
|
+
module2.exports = from17;
|
|
286991
286991
|
}
|
|
286992
286992
|
});
|
|
286993
286993
|
|
|
@@ -287031,7 +287031,7 @@ var require_stream_readable7 = __commonJS({
|
|
|
287031
287031
|
var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
287032
287032
|
var StringDecoder;
|
|
287033
287033
|
var createReadableStreamAsyncIterator;
|
|
287034
|
-
var
|
|
287034
|
+
var from17;
|
|
287035
287035
|
require_inherits()(Readable2, Stream3);
|
|
287036
287036
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
287037
287037
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
@@ -287713,10 +287713,10 @@ var require_stream_readable7 = __commonJS({
|
|
|
287713
287713
|
}
|
|
287714
287714
|
if (typeof Symbol === "function") {
|
|
287715
287715
|
Readable2.from = function(iterable, opts) {
|
|
287716
|
-
if (
|
|
287717
|
-
|
|
287716
|
+
if (from17 === void 0) {
|
|
287717
|
+
from17 = require_from7();
|
|
287718
287718
|
}
|
|
287719
|
-
return
|
|
287719
|
+
return from17(Readable2, iterable, opts);
|
|
287720
287720
|
};
|
|
287721
287721
|
}
|
|
287722
287722
|
function indexOf(xs, x2) {
|
|
@@ -287896,8 +287896,8 @@ var require_pipeline6 = __commonJS({
|
|
|
287896
287896
|
function call(fn) {
|
|
287897
287897
|
fn();
|
|
287898
287898
|
}
|
|
287899
|
-
function pipe2(
|
|
287900
|
-
return
|
|
287899
|
+
function pipe2(from17, to) {
|
|
287900
|
+
return from17.pipe(to);
|
|
287901
287901
|
}
|
|
287902
287902
|
function popCallback(streams) {
|
|
287903
287903
|
if (!streams.length) return noop3;
|
|
@@ -311356,17 +311356,17 @@ var require_codegen = __commonJS({
|
|
|
311356
311356
|
}
|
|
311357
311357
|
};
|
|
311358
311358
|
var ForRange = class extends For {
|
|
311359
|
-
constructor(varKind, name2,
|
|
311359
|
+
constructor(varKind, name2, from17, to) {
|
|
311360
311360
|
super();
|
|
311361
311361
|
this.varKind = varKind;
|
|
311362
311362
|
this.name = name2;
|
|
311363
|
-
this.from =
|
|
311363
|
+
this.from = from17;
|
|
311364
311364
|
this.to = to;
|
|
311365
311365
|
}
|
|
311366
311366
|
render(opts) {
|
|
311367
311367
|
const varKind = opts.es5 ? scope_1.varKinds.var : this.varKind;
|
|
311368
|
-
const { name: name2, from:
|
|
311369
|
-
return `for(${varKind} ${name2}=${
|
|
311368
|
+
const { name: name2, from: from17, to } = this;
|
|
311369
|
+
return `for(${varKind} ${name2}=${from17}; ${name2}<${to}; ${name2}++)` + super.render(opts);
|
|
311370
311370
|
}
|
|
311371
311371
|
get names() {
|
|
311372
311372
|
const names = addExprNames(super.names, this.from);
|
|
@@ -311585,9 +311585,9 @@ var require_codegen = __commonJS({
|
|
|
311585
311585
|
return this._for(new ForLoop(iteration), forBody);
|
|
311586
311586
|
}
|
|
311587
311587
|
// `for` statement for a range of values
|
|
311588
|
-
forRange(nameOrPrefix,
|
|
311588
|
+
forRange(nameOrPrefix, from17, to, forBody, varKind = this.opts.es5 ? scope_1.varKinds.var : scope_1.varKinds.let) {
|
|
311589
311589
|
const name2 = this._scope.toName(nameOrPrefix);
|
|
311590
|
-
return this._for(new ForRange(varKind, name2,
|
|
311590
|
+
return this._for(new ForRange(varKind, name2, from17, to), () => forBody(name2));
|
|
311591
311591
|
}
|
|
311592
311592
|
// `for-of` statement (in es5 mode replace with a normal for loop)
|
|
311593
311593
|
forOf(nameOrPrefix, iterable, forBody, varKind = scope_1.varKinds.const) {
|
|
@@ -311726,13 +311726,13 @@ var require_codegen = __commonJS({
|
|
|
311726
311726
|
}
|
|
311727
311727
|
};
|
|
311728
311728
|
exports2.CodeGen = CodeGen;
|
|
311729
|
-
function addNames(names,
|
|
311730
|
-
for (const n in
|
|
311731
|
-
names[n] = (names[n] || 0) + (
|
|
311729
|
+
function addNames(names, from17) {
|
|
311730
|
+
for (const n in from17)
|
|
311731
|
+
names[n] = (names[n] || 0) + (from17[n] || 0);
|
|
311732
311732
|
return names;
|
|
311733
311733
|
}
|
|
311734
|
-
function addExprNames(names,
|
|
311735
|
-
return
|
|
311734
|
+
function addExprNames(names, from17) {
|
|
311735
|
+
return from17 instanceof code_1._CodeOrName ? addNames(names, from17.names) : names;
|
|
311736
311736
|
}
|
|
311737
311737
|
function optimizeExpr(expr, names, constants) {
|
|
311738
311738
|
if (expr instanceof code_1.Name)
|
|
@@ -311759,9 +311759,9 @@ var require_codegen = __commonJS({
|
|
|
311759
311759
|
return e2 instanceof code_1._Code && e2._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== void 0);
|
|
311760
311760
|
}
|
|
311761
311761
|
}
|
|
311762
|
-
function subtractNames(names,
|
|
311763
|
-
for (const n in
|
|
311764
|
-
names[n] = (names[n] || 0) - (
|
|
311762
|
+
function subtractNames(names, from17) {
|
|
311763
|
+
for (const n in from17)
|
|
311764
|
+
names[n] = (names[n] || 0) - (from17[n] || 0);
|
|
311765
311765
|
}
|
|
311766
311766
|
function not(x2) {
|
|
311767
311767
|
return typeof x2 == "boolean" || typeof x2 == "number" || x2 === null ? !x2 : (0, code_1._)`!${par(x2)}`;
|
|
@@ -311879,31 +311879,31 @@ var require_util5 = __commonJS({
|
|
|
311879
311879
|
}
|
|
311880
311880
|
exports2.eachItem = eachItem;
|
|
311881
311881
|
function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues3, resultToName }) {
|
|
311882
|
-
return (gen,
|
|
311883
|
-
const res = to === void 0 ?
|
|
311882
|
+
return (gen, from17, to, toName) => {
|
|
311883
|
+
const res = to === void 0 ? from17 : to instanceof codegen_1.Name ? (from17 instanceof codegen_1.Name ? mergeNames(gen, from17, to) : mergeToName(gen, from17, to), to) : from17 instanceof codegen_1.Name ? (mergeToName(gen, to, from17), from17) : mergeValues3(from17, to);
|
|
311884
311884
|
return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
|
|
311885
311885
|
};
|
|
311886
311886
|
}
|
|
311887
311887
|
exports2.mergeEvaluated = {
|
|
311888
311888
|
props: makeMergeEvaluated({
|
|
311889
|
-
mergeNames: (gen,
|
|
311890
|
-
gen.if((0, codegen_1._)`${
|
|
311889
|
+
mergeNames: (gen, from17, to) => gen.if((0, codegen_1._)`${to} !== true && ${from17} !== undefined`, () => {
|
|
311890
|
+
gen.if((0, codegen_1._)`${from17} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._)`${to} || {}`).code((0, codegen_1._)`Object.assign(${to}, ${from17})`));
|
|
311891
311891
|
}),
|
|
311892
|
-
mergeToName: (gen,
|
|
311893
|
-
if (
|
|
311892
|
+
mergeToName: (gen, from17, to) => gen.if((0, codegen_1._)`${to} !== true`, () => {
|
|
311893
|
+
if (from17 === true) {
|
|
311894
311894
|
gen.assign(to, true);
|
|
311895
311895
|
} else {
|
|
311896
311896
|
gen.assign(to, (0, codegen_1._)`${to} || {}`);
|
|
311897
|
-
setEvaluated(gen, to,
|
|
311897
|
+
setEvaluated(gen, to, from17);
|
|
311898
311898
|
}
|
|
311899
311899
|
}),
|
|
311900
|
-
mergeValues: (
|
|
311900
|
+
mergeValues: (from17, to) => from17 === true ? true : { ...from17, ...to },
|
|
311901
311901
|
resultToName: evaluatedPropsToName
|
|
311902
311902
|
}),
|
|
311903
311903
|
items: makeMergeEvaluated({
|
|
311904
|
-
mergeNames: (gen,
|
|
311905
|
-
mergeToName: (gen,
|
|
311906
|
-
mergeValues: (
|
|
311904
|
+
mergeNames: (gen, from17, to) => gen.if((0, codegen_1._)`${to} !== true && ${from17} !== undefined`, () => gen.assign(to, (0, codegen_1._)`${from17} === true ? true : ${to} > ${from17} ? ${to} : ${from17}`)),
|
|
311905
|
+
mergeToName: (gen, from17, to) => gen.if((0, codegen_1._)`${to} !== true`, () => gen.assign(to, from17 === true ? true : (0, codegen_1._)`${to} > ${from17} ? ${to} : ${from17}`)),
|
|
311906
|
+
mergeValues: (from17, to) => from17 === true ? true : Math.max(from17, to),
|
|
311907
311907
|
resultToName: (gen, items) => gen.var("items", items)
|
|
311908
311908
|
})
|
|
311909
311909
|
};
|
|
@@ -324457,15 +324457,141 @@ ${this.text}` : this.text;
|
|
|
324457
324457
|
}
|
|
324458
324458
|
});
|
|
324459
324459
|
|
|
324460
|
+
// src/commands/workspace/terminals.ts
|
|
324461
|
+
function shellCommand() {
|
|
324462
|
+
if (process.platform === "win32") {
|
|
324463
|
+
return [process.env.ComSpec || "cmd.exe", []];
|
|
324464
|
+
}
|
|
324465
|
+
const shell = process.env.SHELL || "/bin/sh";
|
|
324466
|
+
if ((0, import_child_process8.spawnSync)("script", ["--version"]).error) {
|
|
324467
|
+
return [shell, ["-i"]];
|
|
324468
|
+
}
|
|
324469
|
+
return process.platform === "darwin" ? ["script", ["-q", "/dev/null", shell, "-i"]] : ["script", ["-qfec", `${shell} -i`, "/dev/null"]];
|
|
324470
|
+
}
|
|
324471
|
+
function kill(child) {
|
|
324472
|
+
try {
|
|
324473
|
+
if (child.pid && process.platform !== "win32") {
|
|
324474
|
+
process.kill(-child.pid, "SIGTERM");
|
|
324475
|
+
} else {
|
|
324476
|
+
child.kill("SIGTERM");
|
|
324477
|
+
}
|
|
324478
|
+
} catch {
|
|
324479
|
+
}
|
|
324480
|
+
}
|
|
324481
|
+
var import_child_process8, import_crypto3, import_fs12, import_path7, import_rxjs70, IGNORED, MAX_SESSIONS, TerminalManager;
|
|
324482
|
+
var init_terminals = __esm({
|
|
324483
|
+
"src/commands/workspace/terminals.ts"() {
|
|
324484
|
+
import_child_process8 = require("child_process");
|
|
324485
|
+
import_crypto3 = require("crypto");
|
|
324486
|
+
import_fs12 = require("fs");
|
|
324487
|
+
import_path7 = require("path");
|
|
324488
|
+
import_rxjs70 = __toESM(require_cjs());
|
|
324489
|
+
init_files();
|
|
324490
|
+
IGNORED = /* @__PURE__ */ new Set(["node_modules", ".git"]);
|
|
324491
|
+
MAX_SESSIONS = 4;
|
|
324492
|
+
TerminalManager = class {
|
|
324493
|
+
constructor(root, env) {
|
|
324494
|
+
this.root = root;
|
|
324495
|
+
this.env = env;
|
|
324496
|
+
this.events$ = new import_rxjs70.Subject();
|
|
324497
|
+
this.sessions = /* @__PURE__ */ new Map();
|
|
324498
|
+
}
|
|
324499
|
+
open(size) {
|
|
324500
|
+
if (this.sessions.size >= MAX_SESSIONS) {
|
|
324501
|
+
throw new WorkspaceError(
|
|
324502
|
+
`At most ${MAX_SESSIONS} browser terminals at a time - close one first.`,
|
|
324503
|
+
429
|
|
324504
|
+
);
|
|
324505
|
+
}
|
|
324506
|
+
const sessionId = (0, import_crypto3.randomUUID)();
|
|
324507
|
+
const [command, args] = shellCommand();
|
|
324508
|
+
const child = (0, import_child_process8.spawn)(command, args, {
|
|
324509
|
+
cwd: this.root,
|
|
324510
|
+
env: {
|
|
324511
|
+
...this.env(),
|
|
324512
|
+
TERM: "xterm-256color",
|
|
324513
|
+
COLUMNS: String(size.cols ?? 80),
|
|
324514
|
+
LINES: String(size.rows ?? 24)
|
|
324515
|
+
},
|
|
324516
|
+
stdio: "pipe",
|
|
324517
|
+
// its own process group: closing kills everything started in it
|
|
324518
|
+
detached: process.platform !== "win32"
|
|
324519
|
+
});
|
|
324520
|
+
const emit = (event) => this.events$.next({ sessionId, ...event });
|
|
324521
|
+
const print = (chunk) => emit({ kind: "output", data: chunk.toString("utf8") });
|
|
324522
|
+
child.stdout?.on("data", print);
|
|
324523
|
+
child.stderr?.on("data", print);
|
|
324524
|
+
child.on("exit", (code) => {
|
|
324525
|
+
emit({ kind: "exit", exitCode: code });
|
|
324526
|
+
this.forget(sessionId);
|
|
324527
|
+
});
|
|
324528
|
+
child.on(
|
|
324529
|
+
"error",
|
|
324530
|
+
(e2) => emit({ kind: "output", data: `\r
|
|
324531
|
+
${e2.message}\r
|
|
324532
|
+
` })
|
|
324533
|
+
);
|
|
324534
|
+
this.sessions.set(sessionId, {
|
|
324535
|
+
child,
|
|
324536
|
+
watcher: this.watchRoot((path2) => emit({ kind: "changed", data: path2 }))
|
|
324537
|
+
});
|
|
324538
|
+
return { sessionId, pty: command === "script" };
|
|
324539
|
+
}
|
|
324540
|
+
input(sessionId, data) {
|
|
324541
|
+
this.session(sessionId).child.stdin?.write(data);
|
|
324542
|
+
return { written: data.length };
|
|
324543
|
+
}
|
|
324544
|
+
close(sessionId) {
|
|
324545
|
+
const session = this.sessions.get(sessionId);
|
|
324546
|
+
if (session) {
|
|
324547
|
+
kill(session.child);
|
|
324548
|
+
this.forget(sessionId);
|
|
324549
|
+
}
|
|
324550
|
+
return { closed: !!session };
|
|
324551
|
+
}
|
|
324552
|
+
closeAll() {
|
|
324553
|
+
[...this.sessions.keys()].forEach((id) => this.close(id));
|
|
324554
|
+
}
|
|
324555
|
+
session(sessionId) {
|
|
324556
|
+
const session = this.sessions.get(sessionId);
|
|
324557
|
+
if (!session) {
|
|
324558
|
+
throw new WorkspaceError("This terminal is closed.", 404);
|
|
324559
|
+
}
|
|
324560
|
+
return session;
|
|
324561
|
+
}
|
|
324562
|
+
forget(sessionId) {
|
|
324563
|
+
this.sessions.get(sessionId)?.watcher?.close();
|
|
324564
|
+
this.sessions.delete(sessionId);
|
|
324565
|
+
}
|
|
324566
|
+
/** Recursive watch of the root (Node >= 20 on Linux, macOS, Windows). */
|
|
324567
|
+
watchRoot(onChange) {
|
|
324568
|
+
try {
|
|
324569
|
+
return (0, import_fs12.watch)(this.root, { recursive: true }, (_event, filename) => {
|
|
324570
|
+
const path2 = filename?.toString().split(import_path7.sep).join("/");
|
|
324571
|
+
if (path2 && !path2.split("/").some((part) => IGNORED.has(part))) {
|
|
324572
|
+
onChange(path2);
|
|
324573
|
+
}
|
|
324574
|
+
});
|
|
324575
|
+
} catch {
|
|
324576
|
+
return null;
|
|
324577
|
+
}
|
|
324578
|
+
}
|
|
324579
|
+
};
|
|
324580
|
+
}
|
|
324581
|
+
});
|
|
324582
|
+
|
|
324460
324583
|
// src/commands/workspace/connection.ts
|
|
324461
|
-
var import_os7, WORKSPACE_PATH_PREFIX, WORKSPACE_OPS, HEARTBEAT_MUTATION2, REQUEST_APPROVAL_MUTATION, SETTLE_APPROVAL_MUTATION, str, num2, short, WorkspaceConnection;
|
|
324584
|
+
var import_os7, import_rxjs71, import_operators59, WORKSPACE_PATH_PREFIX, WORKSPACE_OPS, HEARTBEAT_MUTATION2, REQUEST_APPROVAL_MUTATION, PUSH_TERMINAL_MUTATION, SETTLE_APPROVAL_MUTATION, str, num2, short, WorkspaceConnection;
|
|
324462
324585
|
var init_connection2 = __esm({
|
|
324463
324586
|
"src/commands/workspace/connection.ts"() {
|
|
324464
324587
|
import_os7 = require("os");
|
|
324588
|
+
import_rxjs71 = __toESM(require_cjs());
|
|
324589
|
+
import_operators59 = __toESM(require_operators());
|
|
324465
324590
|
init_tunnel();
|
|
324466
324591
|
init_approvals();
|
|
324467
324592
|
init_files();
|
|
324468
324593
|
init_processes();
|
|
324594
|
+
init_terminals();
|
|
324469
324595
|
WORKSPACE_PATH_PREFIX = "/workspace/";
|
|
324470
324596
|
WORKSPACE_OPS = [
|
|
324471
324597
|
"info",
|
|
@@ -324479,13 +324605,20 @@ var init_connection2 = __esm({
|
|
|
324479
324605
|
"process/start",
|
|
324480
324606
|
"process/list",
|
|
324481
324607
|
"process/logs",
|
|
324482
|
-
"process/stop"
|
|
324608
|
+
"process/stop",
|
|
324609
|
+
// browser terminals (--allow-terminal, plan 36)
|
|
324610
|
+
"terminal/open",
|
|
324611
|
+
"terminal/input",
|
|
324612
|
+
"terminal/close"
|
|
324483
324613
|
];
|
|
324484
324614
|
HEARTBEAT_MUTATION2 = `mutation localWorkspaceHeartbeat($info: LocalWorkspaceHeartbeatInput) {
|
|
324485
324615
|
localWorkspaceHeartbeat(info: $info) { id name }
|
|
324486
324616
|
}`;
|
|
324487
324617
|
REQUEST_APPROVAL_MUTATION = `mutation requestLocalWorkspaceApproval($command: String!, $cwd: String, $chatId: String) {
|
|
324488
324618
|
requestLocalWorkspaceApproval(command: $command, cwd: $cwd, chatId: $chatId) { id }
|
|
324619
|
+
}`;
|
|
324620
|
+
PUSH_TERMINAL_MUTATION = `mutation pushLocalWorkspaceTerminalEvents($events: [LocalWorkspaceTerminalEventInput]!) {
|
|
324621
|
+
pushLocalWorkspaceTerminalEvents(events: $events) { status }
|
|
324489
324622
|
}`;
|
|
324490
324623
|
SETTLE_APPROVAL_MUTATION = `mutation settleLocalWorkspaceApproval($approvalId: String!, $decision: String!) {
|
|
324491
324624
|
settleLocalWorkspaceApproval(approvalId: $approvalId, decision: $decision) { status }
|
|
@@ -324497,6 +324630,16 @@ var init_connection2 = __esm({
|
|
|
324497
324630
|
constructor(options) {
|
|
324498
324631
|
super(options);
|
|
324499
324632
|
this.options = options;
|
|
324633
|
+
this.terminals = new TerminalManager(options.root, () => buildEnv(options));
|
|
324634
|
+
this.terminals.events$.pipe(
|
|
324635
|
+
(0, import_operators59.bufferTime)(40),
|
|
324636
|
+
(0, import_operators59.filter)((events) => events.length > 0),
|
|
324637
|
+
(0, import_operators59.concatMap)(
|
|
324638
|
+
(events) => (0, import_rxjs71.from)(this.operation(PUSH_TERMINAL_MUTATION, { events })).pipe(
|
|
324639
|
+
(0, import_operators59.catchError)(() => import_rxjs71.EMPTY)
|
|
324640
|
+
)
|
|
324641
|
+
)
|
|
324642
|
+
).subscribe();
|
|
324500
324643
|
this.files = new WorkspaceFiles(options.root, {
|
|
324501
324644
|
allowSecrets: options.allowSecrets
|
|
324502
324645
|
});
|
|
@@ -324681,6 +324824,22 @@ var init_connection2 = __esm({
|
|
|
324681
324824
|
tail: num2(args.tail),
|
|
324682
324825
|
sinceLine: num2(args.sinceLine)
|
|
324683
324826
|
});
|
|
324827
|
+
case "terminal/open":
|
|
324828
|
+
this.requireTerminal();
|
|
324829
|
+
log2("\u25A3 terminal opened from the browser");
|
|
324830
|
+
return this.terminals.open({
|
|
324831
|
+
cols: num2(args.cols),
|
|
324832
|
+
rows: num2(args.rows)
|
|
324833
|
+
});
|
|
324834
|
+
case "terminal/input":
|
|
324835
|
+
this.requireTerminal();
|
|
324836
|
+
return this.terminals.input(
|
|
324837
|
+
str(args.sessionId) ?? "",
|
|
324838
|
+
str(args.data) ?? ""
|
|
324839
|
+
);
|
|
324840
|
+
case "terminal/close":
|
|
324841
|
+
log2("\u25A3 terminal closed");
|
|
324842
|
+
return this.terminals.close(str(args.sessionId) ?? "");
|
|
324684
324843
|
case "process/stop": {
|
|
324685
324844
|
const result = await this.processes.stop({
|
|
324686
324845
|
processId: str(args.processId)
|
|
@@ -324692,6 +324851,14 @@ var init_connection2 = __esm({
|
|
|
324692
324851
|
throw new WorkspaceError(`unknown operation ${op}`, 404);
|
|
324693
324852
|
}
|
|
324694
324853
|
}
|
|
324854
|
+
requireTerminal() {
|
|
324855
|
+
if (!this.options.allowTerminal) {
|
|
324856
|
+
throw new WorkspaceError(
|
|
324857
|
+
"Browser terminals are off for this workspace - restart it with `gcli workspace:start --allow-terminal`.",
|
|
324858
|
+
403
|
|
324859
|
+
);
|
|
324860
|
+
}
|
|
324861
|
+
}
|
|
324695
324862
|
async commandTarget(args) {
|
|
324696
324863
|
const command = str(args.command)?.trim();
|
|
324697
324864
|
if (!command) throw new WorkspaceError("command is required");
|
|
@@ -324750,6 +324917,7 @@ var init_connection2 = __esm({
|
|
|
324750
324917
|
}
|
|
324751
324918
|
stop() {
|
|
324752
324919
|
this.processes.stopAll();
|
|
324920
|
+
this.terminals.closeAll();
|
|
324753
324921
|
super.stop();
|
|
324754
324922
|
}
|
|
324755
324923
|
};
|
|
@@ -324856,12 +325024,12 @@ __export(start_exports4, {
|
|
|
324856
325024
|
WORKSPACE_VERSION: () => WORKSPACE_VERSION,
|
|
324857
325025
|
default: () => start_default2
|
|
324858
325026
|
});
|
|
324859
|
-
var import_promises12,
|
|
325027
|
+
var import_promises12, import_path8, import_rxjs72, WORKSPACE_VERSION, csv, resolveWorkspace, start_default2;
|
|
324860
325028
|
var init_start4 = __esm({
|
|
324861
325029
|
"src/commands/workspace/start.ts"() {
|
|
324862
325030
|
import_promises12 = require("fs/promises");
|
|
324863
|
-
|
|
324864
|
-
|
|
325031
|
+
import_path8 = require("path");
|
|
325032
|
+
import_rxjs72 = __toESM(require_cjs());
|
|
324865
325033
|
init_helpers();
|
|
324866
325034
|
init_gql_client();
|
|
324867
325035
|
init_log();
|
|
@@ -324878,7 +325046,7 @@ var init_start4 = __esm({
|
|
|
324878
325046
|
if (cmd.token) {
|
|
324879
325047
|
return {
|
|
324880
325048
|
id: "(from --token)",
|
|
324881
|
-
name: cmd.name ?? (0,
|
|
325049
|
+
name: cmd.name ?? (0, import_path8.basename)(root),
|
|
324882
325050
|
token: cmd.token,
|
|
324883
325051
|
projectId: cmd.project ?? "",
|
|
324884
325052
|
root
|
|
@@ -324891,16 +325059,16 @@ var init_start4 = __esm({
|
|
|
324891
325059
|
if (saved && (!cmd.project || cmd.project === saved.projectId)) {
|
|
324892
325060
|
return saved;
|
|
324893
325061
|
}
|
|
324894
|
-
const projectId = await (0,
|
|
325062
|
+
const projectId = await (0, import_rxjs72.lastValueFrom)(parseProjectId(cmd.project)).catch(
|
|
324895
325063
|
() => {
|
|
324896
325064
|
throw new Error(
|
|
324897
325065
|
"No project selected. Pass --project <projectId> or run `gcli project:use <projectId>` first."
|
|
324898
325066
|
);
|
|
324899
325067
|
}
|
|
324900
325068
|
);
|
|
324901
|
-
const name2 = cmd.name || (0,
|
|
325069
|
+
const name2 = cmd.name || (0, import_path8.basename)(root);
|
|
324902
325070
|
Logger.info(`Registering ${root} as local workspace "${name2}"...`);
|
|
324903
|
-
const { workspace, token } = await (0,
|
|
325071
|
+
const { workspace, token } = await (0, import_rxjs72.lastValueFrom)(
|
|
324904
325072
|
GraphqlClienAPI.createLocalWorkspace(projectId, name2)
|
|
324905
325073
|
).catch((e2) => {
|
|
324906
325074
|
throw new Error(
|
|
@@ -324949,6 +325117,11 @@ var init_start4 = __esm({
|
|
|
324949
325117
|
"--allow-secrets: .env files and keys are readable by the chat."
|
|
324950
325118
|
);
|
|
324951
325119
|
}
|
|
325120
|
+
if (cmd.allowTerminal) {
|
|
325121
|
+
Logger.warn(
|
|
325122
|
+
"--allow-terminal: you can open a shell in this directory from the Lambforge editor."
|
|
325123
|
+
);
|
|
325124
|
+
}
|
|
324952
325125
|
Logger.info(
|
|
324953
325126
|
"Press Ctrl+C to disconnect (stops every process the chat started)."
|
|
324954
325127
|
);
|
|
@@ -324961,6 +325134,7 @@ var init_start4 = __esm({
|
|
|
324961
325134
|
logger: Logger,
|
|
324962
325135
|
policy,
|
|
324963
325136
|
allowSecrets: cmd.allowSecrets,
|
|
325137
|
+
allowTerminal: cmd.allowTerminal,
|
|
324964
325138
|
inheritEnv: cmd.inheritEnv,
|
|
324965
325139
|
passEnv: csv(cmd.env),
|
|
324966
325140
|
prompt: terminal
|
|
@@ -324971,7 +325145,10 @@ var init_start4 = __esm({
|
|
|
324971
325145
|
};
|
|
324972
325146
|
process.once("SIGINT", shutdown);
|
|
324973
325147
|
process.once("SIGTERM", shutdown);
|
|
324974
|
-
process.once("exit", () =>
|
|
325148
|
+
process.once("exit", () => {
|
|
325149
|
+
connection.processes.stopAll();
|
|
325150
|
+
connection.terminals.closeAll();
|
|
325151
|
+
});
|
|
324975
325152
|
try {
|
|
324976
325153
|
await connection.run();
|
|
324977
325154
|
} catch (e2) {
|
|
@@ -324991,16 +325168,16 @@ var list_exports9 = {};
|
|
|
324991
325168
|
__export(list_exports9, {
|
|
324992
325169
|
default: () => list_default9
|
|
324993
325170
|
});
|
|
324994
|
-
var
|
|
325171
|
+
var import_rxjs73, list_default9;
|
|
324995
325172
|
var init_list9 = __esm({
|
|
324996
325173
|
"src/commands/workspace/list.ts"() {
|
|
324997
|
-
|
|
325174
|
+
import_rxjs73 = __toESM(require_cjs());
|
|
324998
325175
|
init_gql_client();
|
|
324999
325176
|
init_log();
|
|
325000
325177
|
init_config2();
|
|
325001
325178
|
list_default9 = async (cmd) => {
|
|
325002
325179
|
const [workspaces, saved] = await Promise.all([
|
|
325003
|
-
(0,
|
|
325180
|
+
(0, import_rxjs73.lastValueFrom)(GraphqlClienAPI.listLocalWorkspaces(cmd.project)),
|
|
325004
325181
|
readSavedWorkspaces()
|
|
325005
325182
|
]);
|
|
325006
325183
|
const onThisMachine = new Set(Object.values(saved).map((w) => w.id));
|
|
@@ -325034,11 +325211,11 @@ var delete_exports6 = {};
|
|
|
325034
325211
|
__export(delete_exports6, {
|
|
325035
325212
|
default: () => delete_default6
|
|
325036
325213
|
});
|
|
325037
|
-
var import_promises13,
|
|
325214
|
+
var import_promises13, import_rxjs74, delete_default6;
|
|
325038
325215
|
var init_delete6 = __esm({
|
|
325039
325216
|
"src/commands/workspace/delete.ts"() {
|
|
325040
325217
|
import_promises13 = require("fs/promises");
|
|
325041
|
-
|
|
325218
|
+
import_rxjs74 = __toESM(require_cjs());
|
|
325042
325219
|
init_gql_client();
|
|
325043
325220
|
init_log();
|
|
325044
325221
|
init_config2();
|
|
@@ -325050,7 +325227,7 @@ var init_delete6 = __esm({
|
|
|
325050
325227
|
"No workspace registered for this directory - pass --id (see `gcli workspace:list`)."
|
|
325051
325228
|
);
|
|
325052
325229
|
}
|
|
325053
|
-
await (0,
|
|
325230
|
+
await (0, import_rxjs74.lastValueFrom)(GraphqlClienAPI.deleteLocalWorkspace(workspaceId));
|
|
325054
325231
|
await forgetWorkspace({ id: workspaceId });
|
|
325055
325232
|
Logger.log(
|
|
325056
325233
|
`Local workspace ${workspaceId} deleted; its token no longer works.`
|
|
@@ -325738,6 +325915,9 @@ function registerWorkspaceCommands(program2) {
|
|
|
325738
325915
|
"--env <names>",
|
|
325739
325916
|
"Comma-separated environment variables to pass to commands (default: a minimal environment)"
|
|
325740
325917
|
).option("--inherit-env", "Pass your whole shell environment to commands").option(
|
|
325918
|
+
"--allow-terminal",
|
|
325919
|
+
"Let you open a terminal on this machine from the Lambforge editor"
|
|
325920
|
+
).option(
|
|
325741
325921
|
"--allow-secrets",
|
|
325742
325922
|
"Let the chat read/write .env files, keys and other secrets files"
|
|
325743
325923
|
).option("--wsUrl <url>", "Lambforge subscriptions endpoint override").option(
|
|
@@ -325798,7 +325978,7 @@ if (!isWebContainer) {
|
|
|
325798
325978
|
} else {
|
|
325799
325979
|
}
|
|
325800
325980
|
}
|
|
325801
|
-
var version2 = true ? "1.8.
|
|
325981
|
+
var version2 = true ? "1.8.267" : "development";
|
|
325802
325982
|
var main = (argv) => {
|
|
325803
325983
|
import_commander.program.name("gcli").version(version2);
|
|
325804
325984
|
commands.map((command) => command(import_commander.program));
|