@effect/language-service 0.83.0 → 0.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/cli.js +664 -180
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +353 -62
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +357 -66
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/schema.json +109 -1
- package/transform.js +353 -62
- package/transform.js.map +1 -1
package/cli.js
CHANGED
|
@@ -12333,7 +12333,7 @@ var require_dist3 = __commonJS({
|
|
|
12333
12333
|
}
|
|
12334
12334
|
});
|
|
12335
12335
|
|
|
12336
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12336
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Pipeable.js
|
|
12337
12337
|
var pipeArguments = (self, args3) => {
|
|
12338
12338
|
switch (args3.length) {
|
|
12339
12339
|
case 0:
|
|
@@ -12377,7 +12377,7 @@ var Class = /* @__PURE__ */ (function() {
|
|
|
12377
12377
|
return PipeableBase;
|
|
12378
12378
|
})();
|
|
12379
12379
|
|
|
12380
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12380
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Function.js
|
|
12381
12381
|
var dual = function(arity, body) {
|
|
12382
12382
|
if (typeof arity === "function") {
|
|
12383
12383
|
return function() {
|
|
@@ -12439,7 +12439,7 @@ function memoize(f) {
|
|
|
12439
12439
|
};
|
|
12440
12440
|
}
|
|
12441
12441
|
|
|
12442
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12442
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/equal.js
|
|
12443
12443
|
var getAllObjectKeys = (obj) => {
|
|
12444
12444
|
const keys2 = new Set(Reflect.ownKeys(obj));
|
|
12445
12445
|
if (obj.constructor === Object) return keys2;
|
|
@@ -12462,7 +12462,7 @@ var getAllObjectKeys = (obj) => {
|
|
|
12462
12462
|
};
|
|
12463
12463
|
var byReferenceInstances = /* @__PURE__ */ new WeakSet();
|
|
12464
12464
|
|
|
12465
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12465
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Predicate.js
|
|
12466
12466
|
function isString(input) {
|
|
12467
12467
|
return typeof input === "string";
|
|
12468
12468
|
}
|
|
@@ -12511,7 +12511,7 @@ function isIterable(input) {
|
|
|
12511
12511
|
return hasProperty(input, Symbol.iterator) || isString(input);
|
|
12512
12512
|
}
|
|
12513
12513
|
|
|
12514
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12514
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Hash.js
|
|
12515
12515
|
var symbol = "~effect/interfaces/Hash";
|
|
12516
12516
|
var hash = (self) => {
|
|
12517
12517
|
switch (typeof self) {
|
|
@@ -12630,7 +12630,7 @@ function withVisitedTracking(obj, fn4) {
|
|
|
12630
12630
|
return result3;
|
|
12631
12631
|
}
|
|
12632
12632
|
|
|
12633
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12633
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Equal.js
|
|
12634
12634
|
var symbol2 = "~effect/interfaces/Equal";
|
|
12635
12635
|
function equals() {
|
|
12636
12636
|
if (arguments.length === 1) {
|
|
@@ -12792,7 +12792,7 @@ var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
|
|
|
12792
12792
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
12793
12793
|
var asEquivalence = () => equals;
|
|
12794
12794
|
|
|
12795
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12795
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Redactable.js
|
|
12796
12796
|
var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Inspectable/redactable");
|
|
12797
12797
|
var isRedactable = (u) => hasProperty(u, symbolRedactable);
|
|
12798
12798
|
function redact(u) {
|
|
@@ -12811,7 +12811,7 @@ var emptyServiceMap = {
|
|
|
12811
12811
|
}
|
|
12812
12812
|
};
|
|
12813
12813
|
|
|
12814
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12814
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Formatter.js
|
|
12815
12815
|
function format(input, options) {
|
|
12816
12816
|
const space = options?.space ?? 0;
|
|
12817
12817
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -12899,7 +12899,7 @@ function formatJson(input, options) {
|
|
|
12899
12899
|
return out;
|
|
12900
12900
|
}
|
|
12901
12901
|
|
|
12902
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12902
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Inspectable.js
|
|
12903
12903
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
12904
12904
|
var toJson = (input) => {
|
|
12905
12905
|
try {
|
|
@@ -12959,7 +12959,7 @@ var Class2 = class {
|
|
|
12959
12959
|
}
|
|
12960
12960
|
};
|
|
12961
12961
|
|
|
12962
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
12962
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Utils.js
|
|
12963
12963
|
var SingleShotGen = class _SingleShotGen {
|
|
12964
12964
|
called = false;
|
|
12965
12965
|
self;
|
|
@@ -13002,7 +13002,7 @@ var forced = {
|
|
|
13002
13002
|
var isNotOptimizedAway = /* @__PURE__ */ standard[InternalTypeId](() => new Error().stack)?.includes(InternalTypeId) === true;
|
|
13003
13003
|
var internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[InternalTypeId];
|
|
13004
13004
|
|
|
13005
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13005
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/core.js
|
|
13006
13006
|
var EffectTypeId = `~effect/Effect`;
|
|
13007
13007
|
var ExitTypeId = `~effect/Exit`;
|
|
13008
13008
|
var effectVariance = {
|
|
@@ -13371,10 +13371,10 @@ var done = (value2) => {
|
|
|
13371
13371
|
return exitFail(Done(value2));
|
|
13372
13372
|
};
|
|
13373
13373
|
|
|
13374
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13374
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/array.js
|
|
13375
13375
|
var isArrayNonEmpty = (self) => self.length > 0;
|
|
13376
13376
|
|
|
13377
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13377
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/option.js
|
|
13378
13378
|
var TypeId = "~effect/data/Option";
|
|
13379
13379
|
var CommonProto = {
|
|
13380
13380
|
[TypeId]: {
|
|
@@ -13445,7 +13445,7 @@ var some = (value2) => {
|
|
|
13445
13445
|
return a;
|
|
13446
13446
|
};
|
|
13447
13447
|
|
|
13448
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13448
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/result.js
|
|
13449
13449
|
var TypeId2 = "~effect/data/Result";
|
|
13450
13450
|
var CommonProto2 = {
|
|
13451
13451
|
[TypeId2]: {
|
|
@@ -13516,7 +13516,7 @@ var succeed = (success) => {
|
|
|
13516
13516
|
return a;
|
|
13517
13517
|
};
|
|
13518
13518
|
|
|
13519
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13519
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Order.js
|
|
13520
13520
|
function make(compare) {
|
|
13521
13521
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
13522
13522
|
}
|
|
@@ -13540,7 +13540,7 @@ var combine2 = /* @__PURE__ */ dual(2, (self, that) => make((a1, a2) => {
|
|
|
13540
13540
|
var mapInput = /* @__PURE__ */ dual(2, (self, f) => make((b1, b2) => self(f(b1), f(b2))));
|
|
13541
13541
|
var isGreaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
13542
13542
|
|
|
13543
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13543
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Option.js
|
|
13544
13544
|
var none2 = () => none;
|
|
13545
13545
|
var some2 = some;
|
|
13546
13546
|
var isNone2 = isNone;
|
|
@@ -13559,7 +13559,7 @@ var flatMap = /* @__PURE__ */ dual(2, (self, f) => isNone2(self) ? none2() : f(s
|
|
|
13559
13559
|
var filter = /* @__PURE__ */ dual(2, (self, predicate) => isNone2(self) ? none2() : predicate(self.value) ? some2(self.value) : none2());
|
|
13560
13560
|
var liftPredicate = /* @__PURE__ */ dual(2, (b, predicate) => predicate(b) ? some2(b) : none2());
|
|
13561
13561
|
|
|
13562
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13562
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Result.js
|
|
13563
13563
|
var succeed2 = succeed;
|
|
13564
13564
|
var fail2 = fail;
|
|
13565
13565
|
var isFailure2 = isFailure;
|
|
@@ -13572,7 +13572,7 @@ var match2 = /* @__PURE__ */ dual(2, (self, {
|
|
|
13572
13572
|
}) => isFailure2(self) ? onFailure(self.failure) : onSuccess(self.success));
|
|
13573
13573
|
var getOrElse2 = /* @__PURE__ */ dual(2, (self, onFailure) => isFailure2(self) ? onFailure(self.failure) : self.success);
|
|
13574
13574
|
|
|
13575
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13575
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Iterable.js
|
|
13576
13576
|
var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
13577
13577
|
let i = 0;
|
|
13578
13578
|
for (const a of self) {
|
|
@@ -13591,7 +13591,7 @@ var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
13591
13591
|
return none2();
|
|
13592
13592
|
});
|
|
13593
13593
|
|
|
13594
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13594
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Record.js
|
|
13595
13595
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
13596
13596
|
const out = {
|
|
13597
13597
|
...self
|
|
@@ -13603,7 +13603,7 @@ var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
13603
13603
|
});
|
|
13604
13604
|
var keys = (self) => Object.keys(self);
|
|
13605
13605
|
|
|
13606
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13606
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Array.js
|
|
13607
13607
|
var Array2 = globalThis.Array;
|
|
13608
13608
|
var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
|
|
13609
13609
|
var match3 = /* @__PURE__ */ dual(2, (self, {
|
|
@@ -13742,7 +13742,7 @@ var dedupeWith = /* @__PURE__ */ dual(2, (self, isEquivalent) => {
|
|
|
13742
13742
|
var dedupe = (self) => dedupeWith(self, asEquivalence());
|
|
13743
13743
|
var join = /* @__PURE__ */ dual(2, (self, sep) => fromIterable(self).join(sep));
|
|
13744
13744
|
|
|
13745
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13745
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Duration.js
|
|
13746
13746
|
var TypeId3 = "~effect/time/Duration";
|
|
13747
13747
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
13748
13748
|
var bigint1e3 = /* @__PURE__ */ BigInt(1e3);
|
|
@@ -13973,7 +13973,7 @@ var Equivalence = (self, that) => matchPair(self, that, {
|
|
|
13973
13973
|
});
|
|
13974
13974
|
var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
|
|
13975
13975
|
|
|
13976
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13976
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Filter.js
|
|
13977
13977
|
var composePassthrough = /* @__PURE__ */ dual(2, (left, right) => (input) => {
|
|
13978
13978
|
const leftOut = left(input);
|
|
13979
13979
|
if (isFailure2(leftOut)) return fail2(input);
|
|
@@ -13986,7 +13986,7 @@ var toOption = (self) => (input) => {
|
|
|
13986
13986
|
return isFailure2(result3) ? none2() : some2(result3.success);
|
|
13987
13987
|
};
|
|
13988
13988
|
|
|
13989
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
13989
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/ServiceMap.js
|
|
13990
13990
|
var ServiceTypeId = "~effect/ServiceMap/Service";
|
|
13991
13991
|
var Service = function() {
|
|
13992
13992
|
const prevLimit = Error.stackTraceLimit;
|
|
@@ -14171,7 +14171,7 @@ var withMapUnsafe = (self, f) => {
|
|
|
14171
14171
|
};
|
|
14172
14172
|
var Reference = Service;
|
|
14173
14173
|
|
|
14174
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14174
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Scheduler.js
|
|
14175
14175
|
var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
|
|
14176
14176
|
defaultValue: () => new MixedScheduler()
|
|
14177
14177
|
});
|
|
@@ -14282,7 +14282,7 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
|
|
|
14282
14282
|
defaultValue: () => false
|
|
14283
14283
|
});
|
|
14284
14284
|
|
|
14285
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14285
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Tracer.js
|
|
14286
14286
|
var ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
14287
14287
|
var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey)) {
|
|
14288
14288
|
};
|
|
@@ -14362,7 +14362,7 @@ var randomHexString = /* @__PURE__ */ (function() {
|
|
|
14362
14362
|
};
|
|
14363
14363
|
})();
|
|
14364
14364
|
|
|
14365
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14365
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/References.js
|
|
14366
14366
|
var CurrentConcurrency = /* @__PURE__ */ Reference("effect/References/CurrentConcurrency", {
|
|
14367
14367
|
defaultValue: () => "unbounded"
|
|
14368
14368
|
});
|
|
@@ -14394,10 +14394,10 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
|
|
|
14394
14394
|
defaultValue: () => []
|
|
14395
14395
|
});
|
|
14396
14396
|
|
|
14397
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14397
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/metric.js
|
|
14398
14398
|
var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
|
|
14399
14399
|
|
|
14400
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14400
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/tracer.js
|
|
14401
14401
|
var makeStackCleaner = (line) => (stack) => {
|
|
14402
14402
|
let cache;
|
|
14403
14403
|
return () => {
|
|
@@ -14412,10 +14412,10 @@ var makeStackCleaner = (line) => (stack) => {
|
|
|
14412
14412
|
};
|
|
14413
14413
|
};
|
|
14414
14414
|
|
|
14415
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14415
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/version.js
|
|
14416
14416
|
var version = "dev";
|
|
14417
14417
|
|
|
14418
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
14418
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/effect.js
|
|
14419
14419
|
var Interrupt = class extends ReasonBase {
|
|
14420
14420
|
fiberId;
|
|
14421
14421
|
constructor(fiberId2, annotations = constEmptyAnnotations) {
|
|
@@ -16129,7 +16129,7 @@ var tracerLogger = /* @__PURE__ */ loggerMake(({
|
|
|
16129
16129
|
span.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clock.currentTimeNanosUnsafe(), attributes);
|
|
16130
16130
|
});
|
|
16131
16131
|
|
|
16132
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16132
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Cause.js
|
|
16133
16133
|
var fail4 = causeFail;
|
|
16134
16134
|
var hasInterruptsOnly2 = hasInterruptsOnly;
|
|
16135
16135
|
var squash = causeSquash;
|
|
@@ -16142,7 +16142,7 @@ var Done2 = Done;
|
|
|
16142
16142
|
var done2 = done;
|
|
16143
16143
|
var UnknownError2 = UnknownError;
|
|
16144
16144
|
|
|
16145
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16145
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Exit.js
|
|
16146
16146
|
var succeed4 = exitSucceed;
|
|
16147
16147
|
var failCause2 = exitFailCause;
|
|
16148
16148
|
var fail5 = exitFail;
|
|
@@ -16151,7 +16151,7 @@ var isSuccess3 = exitIsSuccess;
|
|
|
16151
16151
|
var match6 = exitMatch;
|
|
16152
16152
|
var getSuccess2 = exitGetSuccess;
|
|
16153
16153
|
|
|
16154
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16154
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Deferred.js
|
|
16155
16155
|
var TypeId5 = "~effect/Deferred";
|
|
16156
16156
|
var DeferredProto = {
|
|
16157
16157
|
[TypeId5]: {
|
|
@@ -16193,7 +16193,7 @@ var doneUnsafe = (self, effect2) => {
|
|
|
16193
16193
|
return true;
|
|
16194
16194
|
};
|
|
16195
16195
|
|
|
16196
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16196
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Scope.js
|
|
16197
16197
|
var Scope = scopeTag;
|
|
16198
16198
|
var makeUnsafe3 = scopeMakeUnsafe;
|
|
16199
16199
|
var provide = provideScope;
|
|
@@ -16202,7 +16202,7 @@ var addFinalizer2 = scopeAddFinalizer;
|
|
|
16202
16202
|
var forkUnsafe2 = scopeForkUnsafe;
|
|
16203
16203
|
var close = scopeClose;
|
|
16204
16204
|
|
|
16205
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16205
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Layer.js
|
|
16206
16206
|
var TypeId6 = "~effect/Layer";
|
|
16207
16207
|
var MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
16208
16208
|
var LayerProto = {
|
|
@@ -16292,7 +16292,7 @@ var merge2 = /* @__PURE__ */ dual(2, (self, that) => mergeAll2(self, ...Array.is
|
|
|
16292
16292
|
var provideWith = (self, that, f) => fromBuild((memoMap, scope3) => flatMap3(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context) => self.build(memoMap, scope3).pipe(provideServices(context), map5((merged) => f(merged, context)))));
|
|
16293
16293
|
var provideMerge = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, (self2, that2) => merge(that2, self2)));
|
|
16294
16294
|
|
|
16295
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16295
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Data.js
|
|
16296
16296
|
var Class3 = class extends Class {
|
|
16297
16297
|
constructor(props) {
|
|
16298
16298
|
super();
|
|
@@ -16328,15 +16328,15 @@ function taggedMatch() {
|
|
|
16328
16328
|
var Error3 = Error2;
|
|
16329
16329
|
var TaggedError2 = TaggedError;
|
|
16330
16330
|
|
|
16331
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16331
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Number.js
|
|
16332
16332
|
var Number3 = globalThis.Number;
|
|
16333
16333
|
var Order = Number2;
|
|
16334
16334
|
|
|
16335
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16335
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/String.js
|
|
16336
16336
|
var String3 = globalThis.String;
|
|
16337
16337
|
var Order2 = String2;
|
|
16338
16338
|
|
|
16339
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16339
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Pull.js
|
|
16340
16340
|
var catchDone = /* @__PURE__ */ dual(2, (effect2, f) => catchCauseFilter(effect2, filterDoneLeftover, (l) => f(l)));
|
|
16341
16341
|
var isDoneCause = (cause) => cause.reasons.some(isDoneFailure);
|
|
16342
16342
|
var isDoneFailure = (failure) => failure._tag === "Fail" && isDone2(failure.error);
|
|
@@ -16347,11 +16347,11 @@ var doneExitFromCause = (cause) => {
|
|
|
16347
16347
|
return !isFailure2(halt) ? succeed4(halt.success.value) : failCause2(halt.failure);
|
|
16348
16348
|
};
|
|
16349
16349
|
|
|
16350
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16350
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/layer.js
|
|
16351
16351
|
var provideLayer = (self, layer11, options) => scopedWith((scope3) => flatMap3(options?.local ? buildWithMemoMap(layer11, makeMemoMapUnsafe(), scope3) : buildWithScope(layer11, scope3), (context) => provideServices(self, context)));
|
|
16352
16352
|
var provide2 = /* @__PURE__ */ dual((args3) => isEffect(args3[0]), (self, source, options) => isServiceMap(source) ? provideServices(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
|
|
16353
16353
|
|
|
16354
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16354
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Effect.js
|
|
16355
16355
|
var isEffect2 = isEffect;
|
|
16356
16356
|
var forEach2 = forEach;
|
|
16357
16357
|
var whileLoop2 = whileLoop;
|
|
@@ -16442,7 +16442,7 @@ var flatMapEager2 = flatMapEager;
|
|
|
16442
16442
|
var catchEager2 = catchEager;
|
|
16443
16443
|
var fnUntracedEager2 = fnUntracedEager;
|
|
16444
16444
|
|
|
16445
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16445
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Runtime.js
|
|
16446
16446
|
var defaultTeardown = (exit3, onExit4) => {
|
|
16447
16447
|
if (isSuccess3(exit3)) return onExit4(0);
|
|
16448
16448
|
if (hasInterruptsOnly2(exit3.cause)) return onExit4(130);
|
|
@@ -16488,7 +16488,7 @@ var getErrorReported = (u) => {
|
|
|
16488
16488
|
return true;
|
|
16489
16489
|
};
|
|
16490
16490
|
|
|
16491
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
16491
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/NodeRuntime.js
|
|
16492
16492
|
var runMain = /* @__PURE__ */ makeRunMain(({
|
|
16493
16493
|
fiber: fiber2,
|
|
16494
16494
|
teardown
|
|
@@ -16515,10 +16515,10 @@ var runMain = /* @__PURE__ */ makeRunMain(({
|
|
|
16515
16515
|
process.on("SIGTERM", onSigint);
|
|
16516
16516
|
});
|
|
16517
16517
|
|
|
16518
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
16518
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.38_effect@4.0.0-beta.38_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
16519
16519
|
var runMain2 = runMain;
|
|
16520
16520
|
|
|
16521
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16521
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/record.js
|
|
16522
16522
|
function set(self, key, value2) {
|
|
16523
16523
|
if (key === "__proto__") {
|
|
16524
16524
|
Object.defineProperty(self, key, {
|
|
@@ -16533,7 +16533,7 @@ function set(self, key, value2) {
|
|
|
16533
16533
|
return self;
|
|
16534
16534
|
}
|
|
16535
16535
|
|
|
16536
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16536
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/schema/annotations.js
|
|
16537
16537
|
function resolve(ast) {
|
|
16538
16538
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
16539
16539
|
}
|
|
@@ -16547,11 +16547,11 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
|
|
|
16547
16547
|
return ast.getExpected(getExpected);
|
|
16548
16548
|
});
|
|
16549
16549
|
|
|
16550
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16550
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/RegExp.js
|
|
16551
16551
|
var RegExp2 = globalThis.RegExp;
|
|
16552
16552
|
var escape = (string6) => string6.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
16553
16553
|
|
|
16554
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16554
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Encoding.js
|
|
16555
16555
|
var EncodingErrorTypeId = "~effect/encoding/EncodingError";
|
|
16556
16556
|
var EncodingError = class extends (/* @__PURE__ */ TaggedError2("EncodingError")) {
|
|
16557
16557
|
/**
|
|
@@ -16637,10 +16637,10 @@ function getBase64Code(charCode) {
|
|
|
16637
16637
|
var base64abc = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/"];
|
|
16638
16638
|
var base64codes = [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, 255, 255, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 0, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51];
|
|
16639
16639
|
|
|
16640
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16640
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/redacted.js
|
|
16641
16641
|
var redactedRegistry = /* @__PURE__ */ new WeakMap();
|
|
16642
16642
|
|
|
16643
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16643
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Redacted.js
|
|
16644
16644
|
var TypeId7 = "~effect/data/Redacted";
|
|
16645
16645
|
var isRedacted = (u) => hasProperty(u, TypeId7);
|
|
16646
16646
|
var make5 = (value2, options) => {
|
|
@@ -16671,7 +16671,7 @@ var Proto2 = {
|
|
|
16671
16671
|
}
|
|
16672
16672
|
};
|
|
16673
16673
|
|
|
16674
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
16674
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/SchemaIssue.js
|
|
16675
16675
|
var TypeId8 = "~effect/SchemaIssue/Issue";
|
|
16676
16676
|
function isIssue(u) {
|
|
16677
16677
|
return hasProperty(u, TypeId8);
|
|
@@ -17005,7 +17005,7 @@ function formatOption(actual) {
|
|
|
17005
17005
|
return format(actual.value);
|
|
17006
17006
|
}
|
|
17007
17007
|
|
|
17008
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17008
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/SchemaGetter.js
|
|
17009
17009
|
var Getter = class _Getter extends Class {
|
|
17010
17010
|
run;
|
|
17011
17011
|
constructor(run6) {
|
|
@@ -17079,7 +17079,7 @@ function decodeBase642() {
|
|
|
17079
17079
|
})).asEffect());
|
|
17080
17080
|
}
|
|
17081
17081
|
|
|
17082
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17082
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/SchemaTransformation.js
|
|
17083
17083
|
var TypeId9 = "~effect/SchemaTransformation/Transformation";
|
|
17084
17084
|
var Transformation = class _Transformation {
|
|
17085
17085
|
[TypeId9] = TypeId9;
|
|
@@ -17147,7 +17147,7 @@ var urlFromString = /* @__PURE__ */ transformOrFail2({
|
|
|
17147
17147
|
var uint8ArrayFromBase64String = /* @__PURE__ */ new Transformation(/* @__PURE__ */ decodeBase642(), /* @__PURE__ */ encodeBase642());
|
|
17148
17148
|
var fromJsonString = /* @__PURE__ */ new Transformation(/* @__PURE__ */ parseJson(), /* @__PURE__ */ stringifyJson());
|
|
17149
17149
|
|
|
17150
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
17150
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/SchemaAST.js
|
|
17151
17151
|
function makeGuard(tag2) {
|
|
17152
17152
|
return (ast) => ast._tag === tag2;
|
|
17153
17153
|
}
|
|
@@ -18408,7 +18408,7 @@ var StringTree = /* @__PURE__ */ new Declaration([], () => (input, ast) => isStr
|
|
|
18408
18408
|
});
|
|
18409
18409
|
var unknownToStringTree = /* @__PURE__ */ new Link(StringTree, /* @__PURE__ */ passthrough2());
|
|
18410
18410
|
|
|
18411
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18411
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Brand.js
|
|
18412
18412
|
function nominal() {
|
|
18413
18413
|
return Object.assign((input) => input, {
|
|
18414
18414
|
option: (input) => some2(input),
|
|
@@ -18417,7 +18417,7 @@ function nominal() {
|
|
|
18417
18417
|
});
|
|
18418
18418
|
}
|
|
18419
18419
|
|
|
18420
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18420
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/PlatformError.js
|
|
18421
18421
|
var TypeId11 = "~effect/platform/PlatformError";
|
|
18422
18422
|
var BadArgument = class extends (/* @__PURE__ */ TaggedError2("BadArgument")) {
|
|
18423
18423
|
/**
|
|
@@ -18459,15 +18459,15 @@ var PlatformError = class extends (/* @__PURE__ */ TaggedError2("PlatformError")
|
|
|
18459
18459
|
var systemError = (options) => new PlatformError(new SystemError(options));
|
|
18460
18460
|
var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
18461
18461
|
|
|
18462
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18462
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Fiber.js
|
|
18463
18463
|
var TypeId12 = `~effect/Fiber/${version}`;
|
|
18464
18464
|
var interrupt3 = fiberInterrupt;
|
|
18465
18465
|
var runIn = fiberRunIn;
|
|
18466
18466
|
|
|
18467
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18467
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Latch.js
|
|
18468
18468
|
var makeUnsafe4 = makeLatchUnsafe;
|
|
18469
18469
|
|
|
18470
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18470
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/MutableList.js
|
|
18471
18471
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
18472
18472
|
var make8 = () => ({
|
|
18473
18473
|
head: void 0,
|
|
@@ -18538,7 +18538,7 @@ var take = (self) => {
|
|
|
18538
18538
|
return message;
|
|
18539
18539
|
};
|
|
18540
18540
|
|
|
18541
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18541
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/MutableRef.js
|
|
18542
18542
|
var TypeId13 = "~effect/MutableRef";
|
|
18543
18543
|
var MutableRefProto = {
|
|
18544
18544
|
[TypeId13]: TypeId13,
|
|
@@ -18556,7 +18556,7 @@ var make9 = (value2) => {
|
|
|
18556
18556
|
return ref;
|
|
18557
18557
|
};
|
|
18558
18558
|
|
|
18559
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18559
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Queue.js
|
|
18560
18560
|
var TypeId14 = "~effect/Queue";
|
|
18561
18561
|
var EnqueueTypeId = "~effect/Queue/Enqueue";
|
|
18562
18562
|
var DequeueTypeId = "~effect/Queue/Dequeue";
|
|
@@ -18820,7 +18820,7 @@ var finalize = (self, exit3) => {
|
|
|
18820
18820
|
openState.awaiters.clear();
|
|
18821
18821
|
};
|
|
18822
18822
|
|
|
18823
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18823
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Semaphore.js
|
|
18824
18824
|
var makeUnsafe5 = (permits) => new SemaphoreImpl(permits);
|
|
18825
18825
|
var SemaphoreImpl = class {
|
|
18826
18826
|
waiters = /* @__PURE__ */ new Set();
|
|
@@ -18905,7 +18905,7 @@ var SemaphoreImpl = class {
|
|
|
18905
18905
|
}
|
|
18906
18906
|
};
|
|
18907
18907
|
|
|
18908
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
18908
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Channel.js
|
|
18909
18909
|
var TypeId15 = "~effect/Channel";
|
|
18910
18910
|
var isChannel = (u) => hasProperty(u, TypeId15);
|
|
18911
18911
|
var ChannelProto = {
|
|
@@ -19068,7 +19068,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f) => suspend2(() => {
|
|
|
19068
19068
|
}));
|
|
19069
19069
|
var toPullScoped = (self, scope3) => toTransform(self)(done2(), scope3);
|
|
19070
19070
|
|
|
19071
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19071
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/stream.js
|
|
19072
19072
|
var TypeId16 = "~effect/Stream";
|
|
19073
19073
|
var streamVariance = {
|
|
19074
19074
|
_R: identity,
|
|
@@ -19087,7 +19087,7 @@ var fromChannel = (channel) => {
|
|
|
19087
19087
|
return self;
|
|
19088
19088
|
};
|
|
19089
19089
|
|
|
19090
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19090
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Sink.js
|
|
19091
19091
|
var TypeId17 = "~effect/Sink";
|
|
19092
19092
|
var endVoid = /* @__PURE__ */ succeed6([void 0]);
|
|
19093
19093
|
var sinkVariance = {
|
|
@@ -19124,7 +19124,7 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap4(f)
|
|
|
19124
19124
|
}), catchDone(() => endVoid)));
|
|
19125
19125
|
var unwrap2 = (effect2) => fromChannel2(unwrap(map6(effect2, toChannel)));
|
|
19126
19126
|
|
|
19127
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19127
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/rcRef.js
|
|
19128
19128
|
var TypeId18 = "~effect/RcRef";
|
|
19129
19129
|
var stateEmpty = {
|
|
19130
19130
|
_tag: "Empty"
|
|
@@ -19222,11 +19222,11 @@ var get3 = /* @__PURE__ */ fnUntraced2(function* (self_) {
|
|
|
19222
19222
|
return state.value;
|
|
19223
19223
|
});
|
|
19224
19224
|
|
|
19225
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19225
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/RcRef.js
|
|
19226
19226
|
var make12 = make11;
|
|
19227
19227
|
var get4 = get3;
|
|
19228
19228
|
|
|
19229
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19229
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Stream.js
|
|
19230
19230
|
var TypeId19 = "~effect/Stream";
|
|
19231
19231
|
var isStream = (u) => hasProperty(u, TypeId19);
|
|
19232
19232
|
var fromChannel3 = fromChannel;
|
|
@@ -19278,7 +19278,7 @@ var runCollect = (self) => runFold(self.channel, () => [], (acc, chunk) => {
|
|
|
19278
19278
|
});
|
|
19279
19279
|
var mkString = (self) => runFold(self.channel, () => "", (acc, chunk) => acc + chunk.join(""));
|
|
19280
19280
|
|
|
19281
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19281
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/FileSystem.js
|
|
19282
19282
|
var TypeId20 = "~effect/platform/FileSystem";
|
|
19283
19283
|
var Size = (bytes) => typeof bytes === "bigint" ? bytes : BigInt(bytes);
|
|
19284
19284
|
var bigint1024 = /* @__PURE__ */ BigInt(1024);
|
|
@@ -19340,7 +19340,7 @@ var FileDescriptor = /* @__PURE__ */ nominal();
|
|
|
19340
19340
|
var WatchBackend = class extends (/* @__PURE__ */ Service()("effect/platform/FileSystem/WatchBackend")) {
|
|
19341
19341
|
};
|
|
19342
19342
|
|
|
19343
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19343
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Path.js
|
|
19344
19344
|
var TypeId21 = "~effect/platform/Path";
|
|
19345
19345
|
var Path = /* @__PURE__ */ Service("effect/Path");
|
|
19346
19346
|
function normalizeStringPosix(path4, allowAboveRoot) {
|
|
@@ -19808,7 +19808,7 @@ var posixImpl = /* @__PURE__ */ Path.of({
|
|
|
19808
19808
|
toNamespacedPath: identity
|
|
19809
19809
|
});
|
|
19810
19810
|
|
|
19811
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19811
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/process/ChildProcessSpawner.js
|
|
19812
19812
|
var ExitCode = /* @__PURE__ */ nominal();
|
|
19813
19813
|
var ProcessId = /* @__PURE__ */ nominal();
|
|
19814
19814
|
var HandleTypeId = "~effect/ChildProcessSpawner/ChildProcessHandle";
|
|
@@ -19838,7 +19838,7 @@ var make14 = (spawn2) => {
|
|
|
19838
19838
|
var ChildProcessSpawner = class extends (/* @__PURE__ */ Service()("effect/process/ChildProcessSpawner")) {
|
|
19839
19839
|
};
|
|
19840
19840
|
|
|
19841
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
19841
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/process/ChildProcess.js
|
|
19842
19842
|
var TypeId22 = "~effect/unstable/process/ChildProcess";
|
|
19843
19843
|
var Proto3 = {
|
|
19844
19844
|
...PipeInspectableProto,
|
|
@@ -19961,10 +19961,10 @@ var splitByWhitespaces = (template, rawTemplate) => {
|
|
|
19961
19961
|
};
|
|
19962
19962
|
var concatTokens = (prevTokens, nextTokens, isSeparated) => isSeparated || prevTokens.length === 0 || nextTokens.length === 0 ? [...prevTokens, ...nextTokens] : [...prevTokens.slice(0, -1), `${prevTokens.at(-1)}${nextTokens.at(0)}`, ...nextTokens.slice(1)];
|
|
19963
19963
|
|
|
19964
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
19964
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
19965
19965
|
var NodeChildProcess = __toESM(require("child_process"), 1);
|
|
19966
19966
|
|
|
19967
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
19967
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/internal/utils.js
|
|
19968
19968
|
var handleErrnoException = (module2, method) => (err, [path4]) => {
|
|
19969
19969
|
let reason = "Unknown";
|
|
19970
19970
|
switch (err.code) {
|
|
@@ -20000,7 +20000,7 @@ var handleErrnoException = (module2, method) => (err, [path4]) => {
|
|
|
20000
20000
|
});
|
|
20001
20001
|
};
|
|
20002
20002
|
|
|
20003
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
20003
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/NodeSink.js
|
|
20004
20004
|
var fromWritable = (options) => fromChannel2(mapDone(fromWritableChannel(options), (_) => [_]));
|
|
20005
20005
|
var fromWritableChannel = (options) => fromTransform((pull) => {
|
|
20006
20006
|
const writable = options.evaluate();
|
|
@@ -20040,7 +20040,7 @@ var pullIntoWritable = (options) => options.pull.pipe(flatMap4((chunk) => {
|
|
|
20040
20040
|
});
|
|
20041
20041
|
}) : identity);
|
|
20042
20042
|
|
|
20043
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
20043
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/NodeStream.js
|
|
20044
20044
|
var import_node_stream = require("stream");
|
|
20045
20045
|
var fromReadable = (options) => fromChannel3(fromReadableChannel(options));
|
|
20046
20046
|
var fromReadableChannel = (options) => fromTransform((_, scope3) => readableToPullUnsafe({
|
|
@@ -20098,7 +20098,7 @@ var readableToPullUnsafe = (options) => {
|
|
|
20098
20098
|
};
|
|
20099
20099
|
var defaultOnError = (error2) => new UnknownError2(error2);
|
|
20100
20100
|
|
|
20101
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
20101
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js
|
|
20102
20102
|
var toError = (error2) => error2 instanceof globalThis.Error ? error2 : new globalThis.Error(String(error2));
|
|
20103
20103
|
var toPlatformError = (method, error2, command) => {
|
|
20104
20104
|
const {
|
|
@@ -20510,7 +20510,7 @@ var flattenCommand = (command) => {
|
|
|
20510
20510
|
};
|
|
20511
20511
|
};
|
|
20512
20512
|
|
|
20513
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
20513
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/NodeFileSystem.js
|
|
20514
20514
|
var Crypto = __toESM(require("crypto"), 1);
|
|
20515
20515
|
var NFS = __toESM(require("fs"), 1);
|
|
20516
20516
|
var OS = __toESM(require("os"), 1);
|
|
@@ -20885,10 +20885,10 @@ var makeFileSystem = /* @__PURE__ */ map6(/* @__PURE__ */ serviceOption2(WatchBa
|
|
|
20885
20885
|
}));
|
|
20886
20886
|
var layer2 = /* @__PURE__ */ effect(FileSystem)(makeFileSystem);
|
|
20887
20887
|
|
|
20888
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
20888
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.38_effect@4.0.0-beta.38_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
20889
20889
|
var layer3 = layer2;
|
|
20890
20890
|
|
|
20891
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
20891
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/NodePath.js
|
|
20892
20892
|
var NodePath = __toESM(require("path"), 1);
|
|
20893
20893
|
var NodeUrl = __toESM(require("url"), 1);
|
|
20894
20894
|
var fromFileUrl2 = (url) => try_2({
|
|
@@ -20926,10 +20926,10 @@ var layer4 = /* @__PURE__ */ succeed5(Path)({
|
|
|
20926
20926
|
toFileUrl: toFileUrl2
|
|
20927
20927
|
});
|
|
20928
20928
|
|
|
20929
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
20929
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.38_effect@4.0.0-beta.38_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodePath.js
|
|
20930
20930
|
var layer5 = layer4;
|
|
20931
20931
|
|
|
20932
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20932
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Stdio.js
|
|
20933
20933
|
var TypeId23 = "~effect/Stdio";
|
|
20934
20934
|
var Stdio = /* @__PURE__ */ Service(TypeId23);
|
|
20935
20935
|
var make18 = (options) => ({
|
|
@@ -20937,7 +20937,7 @@ var make18 = (options) => ({
|
|
|
20937
20937
|
...options
|
|
20938
20938
|
});
|
|
20939
20939
|
|
|
20940
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
20940
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
|
|
20941
20941
|
var layer6 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make18({
|
|
20942
20942
|
args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
|
|
20943
20943
|
stdout: (options) => fromWritable({
|
|
@@ -20972,13 +20972,13 @@ var layer6 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make18({
|
|
|
20972
20972
|
})
|
|
20973
20973
|
}));
|
|
20974
20974
|
|
|
20975
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
20975
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.38_effect@4.0.0-beta.38_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
20976
20976
|
var layer7 = layer6;
|
|
20977
20977
|
|
|
20978
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20978
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Struct.js
|
|
20979
20979
|
var lambda = (f) => f;
|
|
20980
20980
|
|
|
20981
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
20981
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/SchemaParser.js
|
|
20982
20982
|
var recurDefaults = /* @__PURE__ */ memoize((ast) => {
|
|
20983
20983
|
switch (ast._tag) {
|
|
20984
20984
|
case "Declaration": {
|
|
@@ -21009,7 +21009,12 @@ function makeEffect(schema) {
|
|
|
21009
21009
|
const ast = recurDefaults(toType(schema.ast));
|
|
21010
21010
|
const parser = run2(ast);
|
|
21011
21011
|
return (input, options) => {
|
|
21012
|
-
return parser(input, options?.parseOptions
|
|
21012
|
+
return parser(input, options?.disableChecks ? options?.parseOptions ? {
|
|
21013
|
+
...options.parseOptions,
|
|
21014
|
+
disableChecks: true
|
|
21015
|
+
} : {
|
|
21016
|
+
disableChecks: true
|
|
21017
|
+
} : options?.parseOptions);
|
|
21013
21018
|
};
|
|
21014
21019
|
}
|
|
21015
21020
|
function makeOption(schema) {
|
|
@@ -21085,7 +21090,7 @@ var recur = /* @__PURE__ */ memoize((ast) => {
|
|
|
21085
21090
|
}
|
|
21086
21091
|
parser ??= ast.getParser(recur);
|
|
21087
21092
|
let sroa = srou ? flatMapEager2(srou, (ou2) => parser(ou2, options)) : parser(ou, options);
|
|
21088
|
-
if (ast.checks) {
|
|
21093
|
+
if (ast.checks && !options?.disableChecks) {
|
|
21089
21094
|
const checks = ast.checks;
|
|
21090
21095
|
if (options?.errors === "all" && isStructural && isSome2(ou)) {
|
|
21091
21096
|
sroa = catchEager2(sroa, (issue) => {
|
|
@@ -21111,7 +21116,7 @@ var recur = /* @__PURE__ */ memoize((ast) => {
|
|
|
21111
21116
|
};
|
|
21112
21117
|
});
|
|
21113
21118
|
|
|
21114
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21119
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/schema/schema.js
|
|
21115
21120
|
var TypeId24 = "~effect/Schema/Schema";
|
|
21116
21121
|
var SchemaProto = {
|
|
21117
21122
|
[TypeId24]: TypeId24,
|
|
@@ -21140,7 +21145,7 @@ function make19(ast, options) {
|
|
|
21140
21145
|
return self;
|
|
21141
21146
|
}
|
|
21142
21147
|
|
|
21143
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21148
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/schema/to-codec.js
|
|
21144
21149
|
function makeReorder(getPriority) {
|
|
21145
21150
|
return (types) => {
|
|
21146
21151
|
const indexMap = /* @__PURE__ */ new Map();
|
|
@@ -21161,7 +21166,7 @@ function makeReorder(getPriority) {
|
|
|
21161
21166
|
};
|
|
21162
21167
|
}
|
|
21163
21168
|
|
|
21164
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21169
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Schema.js
|
|
21165
21170
|
var TypeId25 = TypeId24;
|
|
21166
21171
|
function declareConstructor() {
|
|
21167
21172
|
return (typeParameters, run6, annotations) => {
|
|
@@ -21624,18 +21629,14 @@ function makeClass(Inherited, identifier2, struct2, annotations) {
|
|
|
21624
21629
|
return class extends Inherited {
|
|
21625
21630
|
constructor(...[input, options]) {
|
|
21626
21631
|
const props = input ?? {};
|
|
21627
|
-
|
|
21628
|
-
|
|
21629
|
-
|
|
21630
|
-
|
|
21631
|
-
|
|
21632
|
-
|
|
21633
|
-
|
|
21634
|
-
|
|
21635
|
-
...options,
|
|
21636
|
-
disableValidation: true
|
|
21637
|
-
});
|
|
21638
|
-
}
|
|
21632
|
+
const validated = struct2.makeUnsafe(props, options);
|
|
21633
|
+
super({
|
|
21634
|
+
...props,
|
|
21635
|
+
...validated
|
|
21636
|
+
}, {
|
|
21637
|
+
...options,
|
|
21638
|
+
disableChecks: true
|
|
21639
|
+
});
|
|
21639
21640
|
}
|
|
21640
21641
|
toString() {
|
|
21641
21642
|
return `${identifier2}(${format({
|
|
@@ -21837,7 +21838,7 @@ function onSerializerEnsureArray(ast) {
|
|
|
21837
21838
|
}
|
|
21838
21839
|
}
|
|
21839
21840
|
|
|
21840
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21841
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Terminal.js
|
|
21841
21842
|
var TypeId26 = "~effect/platform/Terminal";
|
|
21842
21843
|
var QuitErrorTypeId = "effect/platform/Terminal/QuitError";
|
|
21843
21844
|
var QuitError = class extends (/* @__PURE__ */ ErrorClass("QuitError")({
|
|
@@ -21855,7 +21856,7 @@ var make21 = (impl) => Terminal.of({
|
|
|
21855
21856
|
[TypeId26]: TypeId26
|
|
21856
21857
|
});
|
|
21857
21858
|
|
|
21858
|
-
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.
|
|
21859
|
+
// ../../node_modules/.pnpm/@effect+platform-node-shared@4.0.0-beta.38_effect@4.0.0-beta.38/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
21859
21860
|
var readline = __toESM(require("readline"), 1);
|
|
21860
21861
|
var make22 = /* @__PURE__ */ fnUntraced2(function* (shouldQuit = defaultShouldQuit) {
|
|
21861
21862
|
const stdin = process.stdin;
|
|
@@ -21926,13 +21927,13 @@ function defaultShouldQuit(input) {
|
|
|
21926
21927
|
return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
|
|
21927
21928
|
}
|
|
21928
21929
|
|
|
21929
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
21930
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.38_effect@4.0.0-beta.38_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeTerminal.js
|
|
21930
21931
|
var layer9 = layer8;
|
|
21931
21932
|
|
|
21932
|
-
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.
|
|
21933
|
+
// ../../node_modules/.pnpm/@effect+platform-node@4.0.0-beta.38_effect@4.0.0-beta.38_ioredis@5.10.0/node_modules/@effect/platform-node/dist/NodeServices.js
|
|
21933
21934
|
var layer10 = /* @__PURE__ */ provideMerge(layer, /* @__PURE__ */ mergeAll2(layer3, layer5, layer7, layer9));
|
|
21934
21935
|
|
|
21935
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21936
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Console.js
|
|
21936
21937
|
var Console = ConsoleRef;
|
|
21937
21938
|
var consoleWith = (f) => withFiber((fiber2) => f(fiber2.getRef(Console)));
|
|
21938
21939
|
var error = (...args3) => consoleWith((console2) => sync(() => {
|
|
@@ -21942,7 +21943,7 @@ var log = (...args3) => consoleWith((console2) => sync(() => {
|
|
|
21942
21943
|
console2.log(...args3);
|
|
21943
21944
|
}));
|
|
21944
21945
|
|
|
21945
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
21946
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/ConfigProvider.js
|
|
21946
21947
|
var import_meta = {};
|
|
21947
21948
|
function makeValue(value2) {
|
|
21948
21949
|
return {
|
|
@@ -22035,7 +22036,7 @@ function trieNodeAt(root, path4) {
|
|
|
22035
22036
|
return node;
|
|
22036
22037
|
}
|
|
22037
22038
|
|
|
22038
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22039
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Config.js
|
|
22039
22040
|
var TypeId27 = "~effect/Config";
|
|
22040
22041
|
var ConfigError = class {
|
|
22041
22042
|
_tag = "ConfigError";
|
|
@@ -22123,7 +22124,7 @@ function succeed8(value2) {
|
|
|
22123
22124
|
return make24(() => succeed6(value2));
|
|
22124
22125
|
}
|
|
22125
22126
|
|
|
22126
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22127
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/CliError.js
|
|
22127
22128
|
var CliError_exports = {};
|
|
22128
22129
|
__export(CliError_exports, {
|
|
22129
22130
|
DuplicateOption: () => DuplicateOption,
|
|
@@ -22272,7 +22273,7 @@ var ShowHelp = class extends (/* @__PURE__ */ ErrorClass(`${TypeId28}/ShowHelp`)
|
|
|
22272
22273
|
}
|
|
22273
22274
|
};
|
|
22274
22275
|
|
|
22275
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22276
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/Primitive.js
|
|
22276
22277
|
var Ini = __toESM(require_ini(), 1);
|
|
22277
22278
|
var Toml = __toESM(require_toml(), 1);
|
|
22278
22279
|
var Yaml = __toESM(require_dist(), 1);
|
|
@@ -22423,7 +22424,7 @@ var getTypeName = (primitive) => {
|
|
|
22423
22424
|
};
|
|
22424
22425
|
var getChoiceKeys = (primitive) => primitive._tag === "Choice" ? primitive.choiceKeys : void 0;
|
|
22425
22426
|
|
|
22426
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22427
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/ansi.js
|
|
22427
22428
|
var ESC = "\x1B[";
|
|
22428
22429
|
var BEL = "\x07";
|
|
22429
22430
|
var SEP = ";";
|
|
@@ -22480,7 +22481,7 @@ var eraseLines = (rows) => {
|
|
|
22480
22481
|
return command;
|
|
22481
22482
|
};
|
|
22482
22483
|
|
|
22483
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
22484
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/Prompt.js
|
|
22484
22485
|
var TypeId30 = "~effect/cli/Prompt";
|
|
22485
22486
|
var defaultFigures = {
|
|
22486
22487
|
arrowUp: "\u2191",
|
|
@@ -23485,7 +23486,7 @@ var entriesToDisplay = (cursor, total, maxVisible) => {
|
|
|
23485
23486
|
};
|
|
23486
23487
|
};
|
|
23487
23488
|
|
|
23488
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23489
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/Param.js
|
|
23489
23490
|
var TypeId31 = "~effect/cli/Param";
|
|
23490
23491
|
var argumentKind = "argument";
|
|
23491
23492
|
var flagKind = "flag";
|
|
@@ -23913,7 +23914,7 @@ var getParamMetadata = (param) => {
|
|
|
23913
23914
|
});
|
|
23914
23915
|
};
|
|
23915
23916
|
|
|
23916
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
23917
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/CliOutput.js
|
|
23917
23918
|
var Formatter = /* @__PURE__ */ Reference("effect/cli/CliOutput", {
|
|
23918
23919
|
defaultValue: () => defaultFormatter2()
|
|
23919
23920
|
});
|
|
@@ -24105,7 +24106,7 @@ var formatHelpDocImpl = (doc, colors2) => {
|
|
|
24105
24106
|
return sections.join("\n");
|
|
24106
24107
|
};
|
|
24107
24108
|
|
|
24108
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24109
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/Command.js
|
|
24109
24110
|
var Command_exports = {};
|
|
24110
24111
|
__export(Command_exports, {
|
|
24111
24112
|
annotate: () => annotate3,
|
|
@@ -24128,7 +24129,7 @@ __export(Command_exports, {
|
|
|
24128
24129
|
withSubcommands: () => withSubcommands
|
|
24129
24130
|
});
|
|
24130
24131
|
|
|
24131
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24132
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/completions/bash.js
|
|
24132
24133
|
var escapeForBash = (s) => s.replace(/'/g, "'\\''");
|
|
24133
24134
|
var sanitizeFunctionName = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
24134
24135
|
var flagNamesForWordlist = (flag) => {
|
|
@@ -24290,7 +24291,7 @@ var generate = (executableName, descriptor) => {
|
|
|
24290
24291
|
return lines2.join("\n");
|
|
24291
24292
|
};
|
|
24292
24293
|
|
|
24293
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24294
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/completions/fish.js
|
|
24294
24295
|
var escapeFishString = (s) => s.replace(/'/g, "\\'");
|
|
24295
24296
|
var subcommandCondition = (parentPath, childSubcommandNames) => {
|
|
24296
24297
|
if (parentPath.length === 0) {
|
|
@@ -24458,7 +24459,7 @@ var generate2 = (executableName, descriptor) => {
|
|
|
24458
24459
|
return lines2.join("\n");
|
|
24459
24460
|
};
|
|
24460
24461
|
|
|
24461
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24462
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/completions/zsh.js
|
|
24462
24463
|
var escapeZsh = (s) => s.replace(/\\/g, "\\\\").replace(/'/g, "'\\''").replace(/:/g, "\\:");
|
|
24463
24464
|
var sanitize = (s) => s.replace(/[^a-zA-Z0-9_]/g, "_");
|
|
24464
24465
|
var allForms = (flag) => {
|
|
@@ -24616,7 +24617,7 @@ var generate3 = (executableName, descriptor) => {
|
|
|
24616
24617
|
return lines2.join("\n");
|
|
24617
24618
|
};
|
|
24618
24619
|
|
|
24619
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24620
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/Completions.js
|
|
24620
24621
|
var generate4 = (executableName, shell, descriptor) => {
|
|
24621
24622
|
switch (shell) {
|
|
24622
24623
|
case "bash":
|
|
@@ -24628,7 +24629,7 @@ var generate4 = (executableName, shell, descriptor) => {
|
|
|
24628
24629
|
}
|
|
24629
24630
|
};
|
|
24630
24631
|
|
|
24631
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24632
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/Flag.js
|
|
24632
24633
|
var Flag_exports = {};
|
|
24633
24634
|
__export(Flag_exports, {
|
|
24634
24635
|
atLeast: () => atLeast2,
|
|
@@ -24701,7 +24702,7 @@ var orElse4 = /* @__PURE__ */ dual(2, (self, that) => orElse3(self, that));
|
|
|
24701
24702
|
var orElseResult2 = /* @__PURE__ */ dual(2, (self, that) => orElseResult(self, that));
|
|
24702
24703
|
var withSchema2 = /* @__PURE__ */ dual(2, (self, schema) => withSchema(self, schema));
|
|
24703
24704
|
|
|
24704
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24705
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/config.js
|
|
24705
24706
|
var ConfigInternalTypeId = "~effect/cli/Command/Config/Internal";
|
|
24706
24707
|
var parseConfig = (config2) => {
|
|
24707
24708
|
const orderedParams = [];
|
|
@@ -24805,7 +24806,7 @@ var reconstructTree = (tree, results) => {
|
|
|
24805
24806
|
}
|
|
24806
24807
|
};
|
|
24807
24808
|
|
|
24808
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24809
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/command.js
|
|
24809
24810
|
var TypeId32 = "~effect/cli/Command";
|
|
24810
24811
|
var toImpl = (self) => self;
|
|
24811
24812
|
var Proto8 = {
|
|
@@ -24975,7 +24976,7 @@ var checkForDuplicateFlags = (parent, subcommands, options) => {
|
|
|
24975
24976
|
}
|
|
24976
24977
|
};
|
|
24977
24978
|
|
|
24978
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
24979
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/completions/CommandDescriptor.js
|
|
24979
24980
|
var toFlagType = (single) => {
|
|
24980
24981
|
const tag2 = single.primitiveType._tag;
|
|
24981
24982
|
switch (tag2) {
|
|
@@ -25098,7 +25099,7 @@ var fromCommand = (cmd) => {
|
|
|
25098
25099
|
};
|
|
25099
25100
|
};
|
|
25100
25101
|
|
|
25101
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25102
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/help.js
|
|
25102
25103
|
var dedupeGlobalFlags = (flags) => {
|
|
25103
25104
|
const seen = /* @__PURE__ */ new Set();
|
|
25104
25105
|
const deduped = [];
|
|
@@ -25197,7 +25198,7 @@ var getHelpForCommandPath = (command, commandPath, builtIns) => gen2(function* (
|
|
|
25197
25198
|
};
|
|
25198
25199
|
});
|
|
25199
25200
|
|
|
25200
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25201
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/GlobalFlag.js
|
|
25201
25202
|
var action = (options) => ({
|
|
25202
25203
|
_tag: "Action",
|
|
25203
25204
|
flag: options.flag,
|
|
@@ -25249,7 +25250,7 @@ var LogLevel = /* @__PURE__ */ setting("log-level")({
|
|
|
25249
25250
|
});
|
|
25250
25251
|
var BuiltIns = [Help, Version, Completions, LogLevel];
|
|
25251
25252
|
|
|
25252
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25253
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/lexer.js
|
|
25253
25254
|
function lex(argv) {
|
|
25254
25255
|
const endIndex = argv.indexOf("--");
|
|
25255
25256
|
if (endIndex === -1) {
|
|
@@ -25310,7 +25311,7 @@ var lexTokens = (args3) => {
|
|
|
25310
25311
|
return tokens;
|
|
25311
25312
|
};
|
|
25312
25313
|
|
|
25313
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25314
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/auto-suggest.js
|
|
25314
25315
|
var levenshtein = (a, b) => {
|
|
25315
25316
|
const m = a.length;
|
|
25316
25317
|
const n = b.length;
|
|
@@ -25334,7 +25335,7 @@ var suggest = (input, candidates) => {
|
|
|
25334
25335
|
return distances.filter(([d]) => d === minDistance).map(([, c]) => c);
|
|
25335
25336
|
};
|
|
25336
25337
|
|
|
25337
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25338
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/internal/parser.js
|
|
25338
25339
|
var getCommandPath = (parsedInput) => match(parsedInput.subcommand, {
|
|
25339
25340
|
onNone: () => [],
|
|
25340
25341
|
onSome: (subcommand) => [subcommand.name, ...getCommandPath(subcommand.parsedInput)]
|
|
@@ -25618,7 +25619,7 @@ var scanCommandLevel = (tokens, context) => {
|
|
|
25618
25619
|
return toLeafResult(state);
|
|
25619
25620
|
};
|
|
25620
25621
|
|
|
25621
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25622
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/unstable/cli/Command.js
|
|
25622
25623
|
var isCommand = (u) => hasProperty(u, TypeId32);
|
|
25623
25624
|
var make25 = (name, config2, handler) => {
|
|
25624
25625
|
const parsedConfig = parseConfig(config2 ?? {});
|
|
@@ -25941,7 +25942,7 @@ var runWith2 = (command, config2) => {
|
|
|
25941
25942
|
// package.json
|
|
25942
25943
|
var package_default = {
|
|
25943
25944
|
name: "@effect/language-service",
|
|
25944
|
-
version: "0.
|
|
25945
|
+
version: "0.84.0",
|
|
25945
25946
|
publishConfig: {
|
|
25946
25947
|
access: "public",
|
|
25947
25948
|
directory: "dist"
|
|
@@ -25984,16 +25985,16 @@ var package_default = {
|
|
|
25984
25985
|
perf: "tsx test/perf.ts"
|
|
25985
25986
|
},
|
|
25986
25987
|
devDependencies: {
|
|
25987
|
-
"@effect/platform-node": "^4.0.0-beta.
|
|
25988
|
+
"@effect/platform-node": "^4.0.0-beta.38",
|
|
25988
25989
|
"@types/pako": "^2.0.4",
|
|
25989
25990
|
"@typescript-eslint/project-service": "^8.52.0",
|
|
25990
|
-
effect: "^4.0.0-beta.
|
|
25991
|
+
effect: "^4.0.0-beta.38",
|
|
25991
25992
|
pako: "^2.1.0",
|
|
25992
25993
|
"ts-patch": "^3.3.0"
|
|
25993
25994
|
}
|
|
25994
25995
|
};
|
|
25995
25996
|
|
|
25996
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
25997
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Graph.js
|
|
25997
25998
|
var TypeId33 = "~effect/collections/Graph";
|
|
25998
25999
|
var Edge = class extends Class3 {
|
|
25999
26000
|
};
|
|
@@ -28668,6 +28669,25 @@ function makeTypeCheckerUtils(ts, typeChecker, tsUtils) {
|
|
|
28668
28669
|
return typeChecker.getTypeAtLocation(node);
|
|
28669
28670
|
}
|
|
28670
28671
|
}
|
|
28672
|
+
function resolveToGlobalSymbol(symbol4) {
|
|
28673
|
+
if (symbol4.flags & ts.SymbolFlags.Alias) {
|
|
28674
|
+
symbol4 = typeChecker.getAliasedSymbol(symbol4);
|
|
28675
|
+
}
|
|
28676
|
+
let depth = 0;
|
|
28677
|
+
while (depth < 2 && symbol4.valueDeclaration && ts.isVariableDeclaration(symbol4.valueDeclaration)) {
|
|
28678
|
+
const initializer = symbol4.valueDeclaration.initializer;
|
|
28679
|
+
if (!initializer) break;
|
|
28680
|
+
let nextSymbol = typeChecker.getSymbolAtLocation(initializer);
|
|
28681
|
+
if (!nextSymbol) break;
|
|
28682
|
+
if (nextSymbol.flags & ts.SymbolFlags.Alias) {
|
|
28683
|
+
nextSymbol = typeChecker.getAliasedSymbol(nextSymbol);
|
|
28684
|
+
}
|
|
28685
|
+
if (nextSymbol === symbol4) break;
|
|
28686
|
+
symbol4 = nextSymbol;
|
|
28687
|
+
depth++;
|
|
28688
|
+
}
|
|
28689
|
+
return symbol4;
|
|
28690
|
+
}
|
|
28671
28691
|
return {
|
|
28672
28692
|
isUnion: isUnion2,
|
|
28673
28693
|
isReadonlyArrayType,
|
|
@@ -28681,7 +28701,8 @@ function makeTypeCheckerUtils(ts, typeChecker, tsUtils) {
|
|
|
28681
28701
|
expectedAndRealType,
|
|
28682
28702
|
typeToSimplifiedTypeNode,
|
|
28683
28703
|
isGlobalErrorType,
|
|
28684
|
-
getTypeAtLocation
|
|
28704
|
+
getTypeAtLocation,
|
|
28705
|
+
resolveToGlobalSymbol
|
|
28685
28706
|
};
|
|
28686
28707
|
}
|
|
28687
28708
|
|
|
@@ -29369,7 +29390,11 @@ function make26(ts, tsUtils, typeChecker, typeCheckerUtils, program) {
|
|
|
29369
29390
|
}
|
|
29370
29391
|
currentParent = nodeToCheck.parent;
|
|
29371
29392
|
}
|
|
29372
|
-
return {
|
|
29393
|
+
return {
|
|
29394
|
+
inEffect: effectGenResult !== void 0 && effectGenResult.body.statements.length > 0 && scopeNode === effectGenResult.generatorFunction,
|
|
29395
|
+
scopeNode,
|
|
29396
|
+
effectGen: effectGenResult
|
|
29397
|
+
};
|
|
29373
29398
|
});
|
|
29374
29399
|
const effectFn = cachedBy(
|
|
29375
29400
|
function(node) {
|
|
@@ -35019,6 +35044,128 @@ var genericEffectServices = createDiagnostic({
|
|
|
35019
35044
|
})
|
|
35020
35045
|
});
|
|
35021
35046
|
|
|
35047
|
+
// src/diagnostics/globalConsoleInEffect.ts
|
|
35048
|
+
var consoleMethodAlternatives = {
|
|
35049
|
+
"log": "Effect.log or Logger",
|
|
35050
|
+
"warn": "Effect.logWarning or Logger",
|
|
35051
|
+
"error": "Effect.logError or Logger",
|
|
35052
|
+
"info": "Effect.logInfo or Logger",
|
|
35053
|
+
"debug": "Effect.logDebug or Logger",
|
|
35054
|
+
"trace": "Effect.logTrace or Logger"
|
|
35055
|
+
};
|
|
35056
|
+
var makeGlobalConsoleApply = (checkInEffect) => fn3(`globalConsole${checkInEffect ? "InEffect" : ""}.apply`)(function* (sourceFile, report) {
|
|
35057
|
+
const ts = yield* service2(TypeScriptApi);
|
|
35058
|
+
const typeChecker = yield* service2(TypeCheckerApi);
|
|
35059
|
+
const typeCheckerUtils = yield* service2(TypeCheckerUtils);
|
|
35060
|
+
const typeParser = yield* service2(TypeParser);
|
|
35061
|
+
const consoleSymbol = typeChecker.resolveName("console", void 0, ts.SymbolFlags.Value, false);
|
|
35062
|
+
if (!consoleSymbol) return;
|
|
35063
|
+
const nodeToVisit = [];
|
|
35064
|
+
const appendNodeToVisit = (node) => {
|
|
35065
|
+
nodeToVisit.push(node);
|
|
35066
|
+
return void 0;
|
|
35067
|
+
};
|
|
35068
|
+
ts.forEachChild(sourceFile, appendNodeToVisit);
|
|
35069
|
+
while (nodeToVisit.length > 0) {
|
|
35070
|
+
const node = nodeToVisit.shift();
|
|
35071
|
+
ts.forEachChild(node, appendNodeToVisit);
|
|
35072
|
+
if (!ts.isCallExpression(node) || !ts.isPropertyAccessExpression(node.expression)) continue;
|
|
35073
|
+
const method = ts.idText(node.expression.name);
|
|
35074
|
+
const alternative = consoleMethodAlternatives[method];
|
|
35075
|
+
if (!alternative) continue;
|
|
35076
|
+
const symbol4 = typeChecker.getSymbolAtLocation(node.expression.expression);
|
|
35077
|
+
if (!symbol4) continue;
|
|
35078
|
+
if (typeCheckerUtils.resolveToGlobalSymbol(symbol4) !== consoleSymbol) continue;
|
|
35079
|
+
const { inEffect } = yield* typeParser.findEnclosingScopes(node);
|
|
35080
|
+
if (inEffect !== checkInEffect) continue;
|
|
35081
|
+
report({
|
|
35082
|
+
location: node,
|
|
35083
|
+
messageText: checkInEffect ? `Prefer using ${alternative} instead of console.${method} inside Effect generators.` : `Prefer using ${alternative} instead of console.${method}.`,
|
|
35084
|
+
fixes: []
|
|
35085
|
+
});
|
|
35086
|
+
}
|
|
35087
|
+
});
|
|
35088
|
+
var globalConsoleInEffect = createDiagnostic({
|
|
35089
|
+
name: "globalConsoleInEffect",
|
|
35090
|
+
code: 56,
|
|
35091
|
+
description: "Warns when using console methods inside Effect generators instead of Effect.log/Logger",
|
|
35092
|
+
group: "effectNative",
|
|
35093
|
+
severity: "off",
|
|
35094
|
+
fixable: false,
|
|
35095
|
+
supportedEffect: ["v3", "v4"],
|
|
35096
|
+
apply: makeGlobalConsoleApply(true)
|
|
35097
|
+
});
|
|
35098
|
+
|
|
35099
|
+
// src/diagnostics/globalConsole.ts
|
|
35100
|
+
var globalConsole = createDiagnostic({
|
|
35101
|
+
name: "globalConsole",
|
|
35102
|
+
code: 60,
|
|
35103
|
+
description: "Warns when using console methods outside Effect generators instead of Effect.log/Logger",
|
|
35104
|
+
group: "effectNative",
|
|
35105
|
+
severity: "off",
|
|
35106
|
+
fixable: false,
|
|
35107
|
+
supportedEffect: ["v3", "v4"],
|
|
35108
|
+
apply: makeGlobalConsoleApply(false)
|
|
35109
|
+
});
|
|
35110
|
+
|
|
35111
|
+
// src/diagnostics/globalDateInEffect.ts
|
|
35112
|
+
var makeGlobalDateApply = (checkInEffect) => fn3(`globalDate${checkInEffect ? "InEffect" : ""}.apply`)(function* (sourceFile, report) {
|
|
35113
|
+
const ts = yield* service2(TypeScriptApi);
|
|
35114
|
+
const typeChecker = yield* service2(TypeCheckerApi);
|
|
35115
|
+
const typeCheckerUtils = yield* service2(TypeCheckerUtils);
|
|
35116
|
+
const typeParser = yield* service2(TypeParser);
|
|
35117
|
+
const dateSymbol = typeChecker.resolveName("Date", void 0, ts.SymbolFlags.Value, false);
|
|
35118
|
+
if (!dateSymbol) return;
|
|
35119
|
+
const nodeToVisit = [];
|
|
35120
|
+
const appendNodeToVisit = (node) => {
|
|
35121
|
+
nodeToVisit.push(node);
|
|
35122
|
+
return void 0;
|
|
35123
|
+
};
|
|
35124
|
+
ts.forEachChild(sourceFile, appendNodeToVisit);
|
|
35125
|
+
while (nodeToVisit.length > 0) {
|
|
35126
|
+
const node = nodeToVisit.shift();
|
|
35127
|
+
ts.forEachChild(node, appendNodeToVisit);
|
|
35128
|
+
let messageText;
|
|
35129
|
+
let objectNode;
|
|
35130
|
+
if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression) && ts.idText(node.expression.name) === "now") {
|
|
35131
|
+
objectNode = node.expression.expression;
|
|
35132
|
+
messageText = checkInEffect ? "Prefer using Clock or DateTime from Effect instead of Date.now() inside Effect generators." : "Prefer using Clock or DateTime from Effect instead of Date.now().";
|
|
35133
|
+
} else if (ts.isNewExpression(node)) {
|
|
35134
|
+
objectNode = node.expression;
|
|
35135
|
+
messageText = checkInEffect ? "Prefer using DateTime from Effect instead of new Date() inside Effect generators." : "Prefer using DateTime from Effect instead of new Date().";
|
|
35136
|
+
}
|
|
35137
|
+
if (!messageText || !objectNode) continue;
|
|
35138
|
+
const symbol4 = typeChecker.getSymbolAtLocation(objectNode);
|
|
35139
|
+
if (!symbol4) continue;
|
|
35140
|
+
if (typeCheckerUtils.resolveToGlobalSymbol(symbol4) !== dateSymbol) continue;
|
|
35141
|
+
const { inEffect } = yield* typeParser.findEnclosingScopes(node);
|
|
35142
|
+
if (inEffect !== checkInEffect) continue;
|
|
35143
|
+
report({ location: node, messageText, fixes: [] });
|
|
35144
|
+
}
|
|
35145
|
+
});
|
|
35146
|
+
var globalDateInEffect = createDiagnostic({
|
|
35147
|
+
name: "globalDateInEffect",
|
|
35148
|
+
code: 55,
|
|
35149
|
+
description: "Warns when using Date.now() or new Date() inside Effect generators instead of Clock/DateTime",
|
|
35150
|
+
group: "effectNative",
|
|
35151
|
+
severity: "off",
|
|
35152
|
+
fixable: false,
|
|
35153
|
+
supportedEffect: ["v3", "v4"],
|
|
35154
|
+
apply: makeGlobalDateApply(true)
|
|
35155
|
+
});
|
|
35156
|
+
|
|
35157
|
+
// src/diagnostics/globalDate.ts
|
|
35158
|
+
var globalDate = createDiagnostic({
|
|
35159
|
+
name: "globalDate",
|
|
35160
|
+
code: 59,
|
|
35161
|
+
description: "Warns when using Date.now() or new Date() outside Effect generators instead of Clock/DateTime",
|
|
35162
|
+
group: "effectNative",
|
|
35163
|
+
severity: "off",
|
|
35164
|
+
fixable: false,
|
|
35165
|
+
supportedEffect: ["v3", "v4"],
|
|
35166
|
+
apply: makeGlobalDateApply(false)
|
|
35167
|
+
});
|
|
35168
|
+
|
|
35022
35169
|
// src/diagnostics/globalErrorInEffectCatch.ts
|
|
35023
35170
|
var globalErrorInEffectCatch = createDiagnostic({
|
|
35024
35171
|
name: "globalErrorInEffectCatch",
|
|
@@ -35138,46 +35285,186 @@ var globalErrorInEffectFailure = createDiagnostic({
|
|
|
35138
35285
|
})
|
|
35139
35286
|
});
|
|
35140
35287
|
|
|
35288
|
+
// src/diagnostics/globalFetchInEffect.ts
|
|
35289
|
+
var makeGlobalFetchApply = (checkInEffect) => fn3(`globalFetch${checkInEffect ? "InEffect" : ""}.apply`)(function* (sourceFile, report) {
|
|
35290
|
+
const ts = yield* service2(TypeScriptApi);
|
|
35291
|
+
const typeChecker = yield* service2(TypeCheckerApi);
|
|
35292
|
+
const typeCheckerUtils = yield* service2(TypeCheckerUtils);
|
|
35293
|
+
const typeParser = yield* service2(TypeParser);
|
|
35294
|
+
const fetchSymbol = typeChecker.resolveName("fetch", void 0, ts.SymbolFlags.Value, false);
|
|
35295
|
+
if (!fetchSymbol) return;
|
|
35296
|
+
const effectVersion = typeParser.supportedEffect();
|
|
35297
|
+
const packageName = effectVersion === "v3" ? "@effect/platform" : "effect/unstable/http";
|
|
35298
|
+
const messageText = checkInEffect ? `Prefer using HttpClient from ${packageName} instead of the global 'fetch' function inside Effect generators.` : `Prefer using HttpClient from ${packageName} instead of the global 'fetch' function.`;
|
|
35299
|
+
const nodeToVisit = [];
|
|
35300
|
+
const appendNodeToVisit = (node) => {
|
|
35301
|
+
nodeToVisit.push(node);
|
|
35302
|
+
return void 0;
|
|
35303
|
+
};
|
|
35304
|
+
ts.forEachChild(sourceFile, appendNodeToVisit);
|
|
35305
|
+
while (nodeToVisit.length > 0) {
|
|
35306
|
+
const node = nodeToVisit.shift();
|
|
35307
|
+
if (ts.isCallExpression(node)) {
|
|
35308
|
+
const symbol4 = typeChecker.getSymbolAtLocation(node.expression);
|
|
35309
|
+
if (symbol4 && typeCheckerUtils.resolveToGlobalSymbol(symbol4) === fetchSymbol) {
|
|
35310
|
+
const { inEffect } = yield* typeParser.findEnclosingScopes(node);
|
|
35311
|
+
if (inEffect === checkInEffect) {
|
|
35312
|
+
report({
|
|
35313
|
+
location: node.expression,
|
|
35314
|
+
messageText,
|
|
35315
|
+
fixes: []
|
|
35316
|
+
});
|
|
35317
|
+
}
|
|
35318
|
+
}
|
|
35319
|
+
}
|
|
35320
|
+
ts.forEachChild(node, appendNodeToVisit);
|
|
35321
|
+
}
|
|
35322
|
+
});
|
|
35323
|
+
var globalFetchInEffect = createDiagnostic({
|
|
35324
|
+
name: "globalFetchInEffect",
|
|
35325
|
+
code: 63,
|
|
35326
|
+
description: "Warns when using the global fetch function inside Effect generators instead of the Effect HTTP client",
|
|
35327
|
+
group: "effectNative",
|
|
35328
|
+
severity: "off",
|
|
35329
|
+
fixable: false,
|
|
35330
|
+
supportedEffect: ["v3", "v4"],
|
|
35331
|
+
apply: makeGlobalFetchApply(true)
|
|
35332
|
+
});
|
|
35333
|
+
|
|
35141
35334
|
// src/diagnostics/globalFetch.ts
|
|
35142
35335
|
var globalFetch = createDiagnostic({
|
|
35143
35336
|
name: "globalFetch",
|
|
35144
35337
|
code: 53,
|
|
35145
|
-
description: "Warns when using the global fetch function instead of the Effect HTTP client",
|
|
35338
|
+
description: "Warns when using the global fetch function outside Effect generators instead of the Effect HTTP client",
|
|
35146
35339
|
group: "effectNative",
|
|
35147
35340
|
severity: "off",
|
|
35148
35341
|
fixable: false,
|
|
35149
35342
|
supportedEffect: ["v3", "v4"],
|
|
35150
|
-
apply:
|
|
35151
|
-
|
|
35152
|
-
|
|
35153
|
-
|
|
35154
|
-
|
|
35155
|
-
|
|
35156
|
-
|
|
35157
|
-
|
|
35158
|
-
|
|
35159
|
-
|
|
35160
|
-
|
|
35161
|
-
|
|
35162
|
-
|
|
35163
|
-
|
|
35164
|
-
|
|
35165
|
-
|
|
35166
|
-
|
|
35167
|
-
|
|
35168
|
-
|
|
35169
|
-
|
|
35170
|
-
|
|
35171
|
-
|
|
35172
|
-
|
|
35173
|
-
|
|
35174
|
-
|
|
35175
|
-
|
|
35176
|
-
|
|
35343
|
+
apply: makeGlobalFetchApply(false)
|
|
35344
|
+
});
|
|
35345
|
+
|
|
35346
|
+
// src/diagnostics/globalRandomInEffect.ts
|
|
35347
|
+
var makeGlobalRandomApply = (checkInEffect) => fn3(`globalRandom${checkInEffect ? "InEffect" : ""}.apply`)(function* (sourceFile, report) {
|
|
35348
|
+
const ts = yield* service2(TypeScriptApi);
|
|
35349
|
+
const typeChecker = yield* service2(TypeCheckerApi);
|
|
35350
|
+
const typeCheckerUtils = yield* service2(TypeCheckerUtils);
|
|
35351
|
+
const typeParser = yield* service2(TypeParser);
|
|
35352
|
+
const mathSymbol = typeChecker.resolveName("Math", void 0, ts.SymbolFlags.Value, false);
|
|
35353
|
+
if (!mathSymbol) return;
|
|
35354
|
+
const nodeToVisit = [];
|
|
35355
|
+
const appendNodeToVisit = (node) => {
|
|
35356
|
+
nodeToVisit.push(node);
|
|
35357
|
+
return void 0;
|
|
35358
|
+
};
|
|
35359
|
+
ts.forEachChild(sourceFile, appendNodeToVisit);
|
|
35360
|
+
while (nodeToVisit.length > 0) {
|
|
35361
|
+
const node = nodeToVisit.shift();
|
|
35362
|
+
ts.forEachChild(node, appendNodeToVisit);
|
|
35363
|
+
if (!ts.isCallExpression(node) || !ts.isPropertyAccessExpression(node.expression) || ts.idText(node.expression.name) !== "random") continue;
|
|
35364
|
+
const symbol4 = typeChecker.getSymbolAtLocation(node.expression.expression);
|
|
35365
|
+
if (!symbol4) continue;
|
|
35366
|
+
if (typeCheckerUtils.resolveToGlobalSymbol(symbol4) !== mathSymbol) continue;
|
|
35367
|
+
const { inEffect } = yield* typeParser.findEnclosingScopes(node);
|
|
35368
|
+
if (inEffect !== checkInEffect) continue;
|
|
35369
|
+
report({
|
|
35370
|
+
location: node,
|
|
35371
|
+
messageText: checkInEffect ? "Prefer using the Random service from Effect instead of Math.random() inside Effect generators." : "Prefer using the Random service from Effect instead of Math.random().",
|
|
35372
|
+
fixes: []
|
|
35373
|
+
});
|
|
35374
|
+
}
|
|
35375
|
+
});
|
|
35376
|
+
var globalRandomInEffect = createDiagnostic({
|
|
35377
|
+
name: "globalRandomInEffect",
|
|
35378
|
+
code: 57,
|
|
35379
|
+
description: "Warns when using Math.random() inside Effect generators instead of the Random service",
|
|
35380
|
+
group: "effectNative",
|
|
35381
|
+
severity: "off",
|
|
35382
|
+
fixable: false,
|
|
35383
|
+
supportedEffect: ["v3", "v4"],
|
|
35384
|
+
apply: makeGlobalRandomApply(true)
|
|
35385
|
+
});
|
|
35386
|
+
|
|
35387
|
+
// src/diagnostics/globalRandom.ts
|
|
35388
|
+
var globalRandom = createDiagnostic({
|
|
35389
|
+
name: "globalRandom",
|
|
35390
|
+
code: 61,
|
|
35391
|
+
description: "Warns when using Math.random() outside Effect generators instead of the Random service",
|
|
35392
|
+
group: "effectNative",
|
|
35393
|
+
severity: "off",
|
|
35394
|
+
fixable: false,
|
|
35395
|
+
supportedEffect: ["v3", "v4"],
|
|
35396
|
+
apply: makeGlobalRandomApply(false)
|
|
35397
|
+
});
|
|
35398
|
+
|
|
35399
|
+
// src/diagnostics/globalTimersInEffect.ts
|
|
35400
|
+
var timerAlternatives = {
|
|
35401
|
+
"setTimeout": {
|
|
35402
|
+
inEffect: "Prefer using Effect.sleep or Schedule from Effect instead of setTimeout inside Effect generators.",
|
|
35403
|
+
outsideEffect: "Prefer using Effect.sleep or Schedule from Effect instead of setTimeout."
|
|
35404
|
+
},
|
|
35405
|
+
"setInterval": {
|
|
35406
|
+
inEffect: "Prefer using Schedule or Effect.repeat from Effect instead of setInterval inside Effect generators.",
|
|
35407
|
+
outsideEffect: "Prefer using Schedule or Effect.repeat from Effect instead of setInterval."
|
|
35408
|
+
}
|
|
35409
|
+
};
|
|
35410
|
+
var makeGlobalTimersApply = (checkInEffect) => fn3(`globalTimers${checkInEffect ? "InEffect" : ""}.apply`)(function* (sourceFile, report) {
|
|
35411
|
+
const ts = yield* service2(TypeScriptApi);
|
|
35412
|
+
const typeChecker = yield* service2(TypeCheckerApi);
|
|
35413
|
+
const typeCheckerUtils = yield* service2(TypeCheckerUtils);
|
|
35414
|
+
const typeParser = yield* service2(TypeParser);
|
|
35415
|
+
const globalSymbols = /* @__PURE__ */ new Map();
|
|
35416
|
+
for (const name of Object.keys(timerAlternatives)) {
|
|
35417
|
+
const symbol4 = typeChecker.resolveName(name, void 0, ts.SymbolFlags.Value, false);
|
|
35418
|
+
if (symbol4) globalSymbols.set(name, symbol4);
|
|
35419
|
+
}
|
|
35420
|
+
if (globalSymbols.size === 0) return;
|
|
35421
|
+
const nodeToVisit = [];
|
|
35422
|
+
const appendNodeToVisit = (node) => {
|
|
35423
|
+
nodeToVisit.push(node);
|
|
35424
|
+
return void 0;
|
|
35425
|
+
};
|
|
35426
|
+
ts.forEachChild(sourceFile, appendNodeToVisit);
|
|
35427
|
+
while (nodeToVisit.length > 0) {
|
|
35428
|
+
const node = nodeToVisit.shift();
|
|
35429
|
+
ts.forEachChild(node, appendNodeToVisit);
|
|
35430
|
+
if (!ts.isCallExpression(node)) continue;
|
|
35431
|
+
const symbol4 = typeChecker.getSymbolAtLocation(node.expression);
|
|
35432
|
+
if (!symbol4) continue;
|
|
35433
|
+
const resolvedSymbol = typeCheckerUtils.resolveToGlobalSymbol(symbol4);
|
|
35434
|
+
let messageText;
|
|
35435
|
+
for (const [name, symbol5] of globalSymbols) {
|
|
35436
|
+
if (resolvedSymbol === symbol5) {
|
|
35437
|
+
messageText = checkInEffect ? timerAlternatives[name].inEffect : timerAlternatives[name].outsideEffect;
|
|
35438
|
+
break;
|
|
35177
35439
|
}
|
|
35178
|
-
ts.forEachChild(node, appendNodeToVisit);
|
|
35179
35440
|
}
|
|
35180
|
-
|
|
35441
|
+
if (!messageText) continue;
|
|
35442
|
+
const { inEffect } = yield* typeParser.findEnclosingScopes(node);
|
|
35443
|
+
if (inEffect !== checkInEffect) continue;
|
|
35444
|
+
report({ location: node, messageText, fixes: [] });
|
|
35445
|
+
}
|
|
35446
|
+
});
|
|
35447
|
+
var globalTimersInEffect = createDiagnostic({
|
|
35448
|
+
name: "globalTimersInEffect",
|
|
35449
|
+
code: 58,
|
|
35450
|
+
description: "Warns when using setTimeout/setInterval inside Effect generators instead of Effect.sleep/Schedule",
|
|
35451
|
+
group: "effectNative",
|
|
35452
|
+
severity: "off",
|
|
35453
|
+
fixable: false,
|
|
35454
|
+
supportedEffect: ["v3", "v4"],
|
|
35455
|
+
apply: makeGlobalTimersApply(true)
|
|
35456
|
+
});
|
|
35457
|
+
|
|
35458
|
+
// src/diagnostics/globalTimers.ts
|
|
35459
|
+
var globalTimers = createDiagnostic({
|
|
35460
|
+
name: "globalTimers",
|
|
35461
|
+
code: 62,
|
|
35462
|
+
description: "Warns when using setTimeout/setInterval outside Effect generators instead of Effect.sleep/Schedule",
|
|
35463
|
+
group: "effectNative",
|
|
35464
|
+
severity: "off",
|
|
35465
|
+
fixable: false,
|
|
35466
|
+
supportedEffect: ["v3", "v4"],
|
|
35467
|
+
apply: makeGlobalTimersApply(false)
|
|
35181
35468
|
});
|
|
35182
35469
|
|
|
35183
35470
|
// src/diagnostics/importFromBarrel.ts
|
|
@@ -36242,8 +36529,8 @@ var missingReturnYieldStar = createDiagnostic({
|
|
|
36242
36529
|
if (!type) continue;
|
|
36243
36530
|
const maybeEffect = yield* option4(typeParser.effectYieldableType(type, unwrapped.expression));
|
|
36244
36531
|
if (!(isSome2(maybeEffect) && maybeEffect.value.A.flags & ts.TypeFlags.Never)) continue;
|
|
36245
|
-
const {
|
|
36246
|
-
if (!
|
|
36532
|
+
const { inEffect } = yield* typeParser.findEnclosingScopes(node);
|
|
36533
|
+
if (!inEffect) continue;
|
|
36247
36534
|
const fix = [{
|
|
36248
36535
|
fixName: "missingReturnYieldStar_fix",
|
|
36249
36536
|
description: "Add return statement",
|
|
@@ -37637,11 +37924,8 @@ var preferSchemaOverJson = createDiagnostic({
|
|
|
37637
37924
|
});
|
|
37638
37925
|
const jsonMethodInEffectGen = fn3("preferSchemaOverJson.jsonMethodInEffectGen")(
|
|
37639
37926
|
function* (jsonCall) {
|
|
37640
|
-
const {
|
|
37641
|
-
if (!
|
|
37642
|
-
return yield* TypeParserIssue.issue;
|
|
37643
|
-
}
|
|
37644
|
-
if (scopeNode && scopeNode !== effectGen.generatorFunction) {
|
|
37927
|
+
const { inEffect } = yield* typeParser.findEnclosingScopes(jsonCall);
|
|
37928
|
+
if (!inEffect) {
|
|
37645
37929
|
return yield* TypeParserIssue.issue;
|
|
37646
37930
|
}
|
|
37647
37931
|
return jsonCall;
|
|
@@ -38057,9 +38341,8 @@ var schemaSyncInEffect = createDiagnostic({
|
|
|
38057
38341
|
option4
|
|
38058
38342
|
);
|
|
38059
38343
|
if (isNone2(isSchemaSyncCall)) continue;
|
|
38060
|
-
const {
|
|
38061
|
-
if (!
|
|
38062
|
-
if (scopeNode && scopeNode !== effectGen.generatorFunction) continue;
|
|
38344
|
+
const { inEffect } = yield* typeParser.findEnclosingScopes(node);
|
|
38345
|
+
if (!inEffect) continue;
|
|
38063
38346
|
const nodeText = sourceFile.text.substring(
|
|
38064
38347
|
ts.getTokenPosOfNode(node.expression, sourceFile),
|
|
38065
38348
|
node.expression.end
|
|
@@ -38901,6 +39184,7 @@ var diagnostics = [
|
|
|
38901
39184
|
unnecessaryPipe,
|
|
38902
39185
|
genericEffectServices,
|
|
38903
39186
|
globalFetch,
|
|
39187
|
+
globalFetchInEffect,
|
|
38904
39188
|
returnEffectInGen,
|
|
38905
39189
|
tryCatchInEffectGen,
|
|
38906
39190
|
importFromBarrel,
|
|
@@ -38932,7 +39216,15 @@ var diagnostics = [
|
|
|
38932
39216
|
preferSchemaOverJson,
|
|
38933
39217
|
extendsNativeError,
|
|
38934
39218
|
serviceNotAsClass,
|
|
38935
|
-
nodeBuiltinImport
|
|
39219
|
+
nodeBuiltinImport,
|
|
39220
|
+
globalDate,
|
|
39221
|
+
globalDateInEffect,
|
|
39222
|
+
globalConsole,
|
|
39223
|
+
globalConsoleInEffect,
|
|
39224
|
+
globalRandom,
|
|
39225
|
+
globalRandomInEffect,
|
|
39226
|
+
globalTimers,
|
|
39227
|
+
globalTimersInEffect
|
|
38936
39228
|
];
|
|
38937
39229
|
|
|
38938
39230
|
// src/metadata.json
|
|
@@ -38966,9 +39258,18 @@ var metadata_default = {
|
|
|
38966
39258
|
diagnosticSeverity: {
|
|
38967
39259
|
instanceOfSchema: "warning",
|
|
38968
39260
|
globalFetch: "warning",
|
|
39261
|
+
globalFetchInEffect: "warning",
|
|
38969
39262
|
preferSchemaOverJson: "warning",
|
|
38970
39263
|
extendsNativeError: "warning",
|
|
38971
|
-
nodeBuiltinImport: "warning"
|
|
39264
|
+
nodeBuiltinImport: "warning",
|
|
39265
|
+
globalDate: "warning",
|
|
39266
|
+
globalDateInEffect: "warning",
|
|
39267
|
+
globalConsole: "warning",
|
|
39268
|
+
globalConsoleInEffect: "warning",
|
|
39269
|
+
globalRandom: "warning",
|
|
39270
|
+
globalRandomInEffect: "warning",
|
|
39271
|
+
globalTimers: "warning",
|
|
39272
|
+
globalTimersInEffect: "warning"
|
|
38972
39273
|
}
|
|
38973
39274
|
}
|
|
38974
39275
|
],
|
|
@@ -39701,10 +40002,94 @@ var metadata_default = {
|
|
|
39701
40002
|
]
|
|
39702
40003
|
}
|
|
39703
40004
|
},
|
|
40005
|
+
{
|
|
40006
|
+
name: "globalConsole",
|
|
40007
|
+
group: "effectNative",
|
|
40008
|
+
description: "Warns when using console methods outside Effect generators instead of Effect.log/Logger",
|
|
40009
|
+
defaultSeverity: "off",
|
|
40010
|
+
fixable: false,
|
|
40011
|
+
supportedEffect: [
|
|
40012
|
+
"v3",
|
|
40013
|
+
"v4"
|
|
40014
|
+
],
|
|
40015
|
+
preview: {
|
|
40016
|
+
sourceText: '\nconsole.log("preview")\n',
|
|
40017
|
+
diagnostics: [
|
|
40018
|
+
{
|
|
40019
|
+
start: 1,
|
|
40020
|
+
end: 23,
|
|
40021
|
+
text: "Prefer using Effect.log or Logger instead of console.log. effect(globalConsole)"
|
|
40022
|
+
}
|
|
40023
|
+
]
|
|
40024
|
+
}
|
|
40025
|
+
},
|
|
40026
|
+
{
|
|
40027
|
+
name: "globalConsoleInEffect",
|
|
40028
|
+
group: "effectNative",
|
|
40029
|
+
description: "Warns when using console methods inside Effect generators instead of Effect.log/Logger",
|
|
40030
|
+
defaultSeverity: "off",
|
|
40031
|
+
fixable: false,
|
|
40032
|
+
supportedEffect: [
|
|
40033
|
+
"v3",
|
|
40034
|
+
"v4"
|
|
40035
|
+
],
|
|
40036
|
+
preview: {
|
|
40037
|
+
sourceText: 'import { Effect } from "effect"\n\nexport const preview = Effect.gen(function*() {\n console.log("hello")\n})\n',
|
|
40038
|
+
diagnostics: [
|
|
40039
|
+
{
|
|
40040
|
+
start: 83,
|
|
40041
|
+
end: 103,
|
|
40042
|
+
text: "Prefer using Effect.log or Logger instead of console.log inside Effect generators. effect(globalConsoleInEffect)"
|
|
40043
|
+
}
|
|
40044
|
+
]
|
|
40045
|
+
}
|
|
40046
|
+
},
|
|
40047
|
+
{
|
|
40048
|
+
name: "globalDate",
|
|
40049
|
+
group: "effectNative",
|
|
40050
|
+
description: "Warns when using Date.now() or new Date() outside Effect generators instead of Clock/DateTime",
|
|
40051
|
+
defaultSeverity: "off",
|
|
40052
|
+
fixable: false,
|
|
40053
|
+
supportedEffect: [
|
|
40054
|
+
"v3",
|
|
40055
|
+
"v4"
|
|
40056
|
+
],
|
|
40057
|
+
preview: {
|
|
40058
|
+
sourceText: "\nexport const preview = Date.now()\n",
|
|
40059
|
+
diagnostics: [
|
|
40060
|
+
{
|
|
40061
|
+
start: 24,
|
|
40062
|
+
end: 34,
|
|
40063
|
+
text: "Prefer using Clock or DateTime from Effect instead of Date.now(). effect(globalDate)"
|
|
40064
|
+
}
|
|
40065
|
+
]
|
|
40066
|
+
}
|
|
40067
|
+
},
|
|
40068
|
+
{
|
|
40069
|
+
name: "globalDateInEffect",
|
|
40070
|
+
group: "effectNative",
|
|
40071
|
+
description: "Warns when using Date.now() or new Date() inside Effect generators instead of Clock/DateTime",
|
|
40072
|
+
defaultSeverity: "off",
|
|
40073
|
+
fixable: false,
|
|
40074
|
+
supportedEffect: [
|
|
40075
|
+
"v3",
|
|
40076
|
+
"v4"
|
|
40077
|
+
],
|
|
40078
|
+
preview: {
|
|
40079
|
+
sourceText: 'import { Effect } from "effect"\n\nexport const preview = Effect.gen(function*() {\n const now = Date.now()\n return now\n})\n',
|
|
40080
|
+
diagnostics: [
|
|
40081
|
+
{
|
|
40082
|
+
start: 95,
|
|
40083
|
+
end: 105,
|
|
40084
|
+
text: "Prefer using Clock or DateTime from Effect instead of Date.now() inside Effect generators. effect(globalDateInEffect)"
|
|
40085
|
+
}
|
|
40086
|
+
]
|
|
40087
|
+
}
|
|
40088
|
+
},
|
|
39704
40089
|
{
|
|
39705
40090
|
name: "globalFetch",
|
|
39706
40091
|
group: "effectNative",
|
|
39707
|
-
description: "Warns when using the global fetch function instead of the Effect HTTP client",
|
|
40092
|
+
description: "Warns when using the global fetch function outside Effect generators instead of the Effect HTTP client",
|
|
39708
40093
|
defaultSeverity: "off",
|
|
39709
40094
|
fixable: false,
|
|
39710
40095
|
supportedEffect: [
|
|
@@ -39722,6 +40107,105 @@ var metadata_default = {
|
|
|
39722
40107
|
]
|
|
39723
40108
|
}
|
|
39724
40109
|
},
|
|
40110
|
+
{
|
|
40111
|
+
name: "globalFetchInEffect",
|
|
40112
|
+
group: "effectNative",
|
|
40113
|
+
description: "Warns when using the global fetch function inside Effect generators instead of the Effect HTTP client",
|
|
40114
|
+
defaultSeverity: "off",
|
|
40115
|
+
fixable: false,
|
|
40116
|
+
supportedEffect: [
|
|
40117
|
+
"v3",
|
|
40118
|
+
"v4"
|
|
40119
|
+
],
|
|
40120
|
+
preview: {
|
|
40121
|
+
sourceText: 'import { Effect } from "effect"\n\nexport const preview = Effect.gen(function*() {\n return yield* Effect.promise(() => fetch("https://example.com"))\n})\n',
|
|
40122
|
+
diagnostics: []
|
|
40123
|
+
}
|
|
40124
|
+
},
|
|
40125
|
+
{
|
|
40126
|
+
name: "globalRandom",
|
|
40127
|
+
group: "effectNative",
|
|
40128
|
+
description: "Warns when using Math.random() outside Effect generators instead of the Random service",
|
|
40129
|
+
defaultSeverity: "off",
|
|
40130
|
+
fixable: false,
|
|
40131
|
+
supportedEffect: [
|
|
40132
|
+
"v3",
|
|
40133
|
+
"v4"
|
|
40134
|
+
],
|
|
40135
|
+
preview: {
|
|
40136
|
+
sourceText: "\nexport const preview = Math.random()\n",
|
|
40137
|
+
diagnostics: [
|
|
40138
|
+
{
|
|
40139
|
+
start: 24,
|
|
40140
|
+
end: 37,
|
|
40141
|
+
text: "Prefer using the Random service from Effect instead of Math.random(). effect(globalRandom)"
|
|
40142
|
+
}
|
|
40143
|
+
]
|
|
40144
|
+
}
|
|
40145
|
+
},
|
|
40146
|
+
{
|
|
40147
|
+
name: "globalRandomInEffect",
|
|
40148
|
+
group: "effectNative",
|
|
40149
|
+
description: "Warns when using Math.random() inside Effect generators instead of the Random service",
|
|
40150
|
+
defaultSeverity: "off",
|
|
40151
|
+
fixable: false,
|
|
40152
|
+
supportedEffect: [
|
|
40153
|
+
"v3",
|
|
40154
|
+
"v4"
|
|
40155
|
+
],
|
|
40156
|
+
preview: {
|
|
40157
|
+
sourceText: 'import { Effect } from "effect"\n\nexport const preview = Effect.gen(function*() {\n const r = Math.random()\n return r\n})\n',
|
|
40158
|
+
diagnostics: [
|
|
40159
|
+
{
|
|
40160
|
+
start: 93,
|
|
40161
|
+
end: 106,
|
|
40162
|
+
text: "Prefer using the Random service from Effect instead of Math.random() inside Effect generators. effect(globalRandomInEffect)"
|
|
40163
|
+
}
|
|
40164
|
+
]
|
|
40165
|
+
}
|
|
40166
|
+
},
|
|
40167
|
+
{
|
|
40168
|
+
name: "globalTimers",
|
|
40169
|
+
group: "effectNative",
|
|
40170
|
+
description: "Warns when using setTimeout/setInterval outside Effect generators instead of Effect.sleep/Schedule",
|
|
40171
|
+
defaultSeverity: "off",
|
|
40172
|
+
fixable: false,
|
|
40173
|
+
supportedEffect: [
|
|
40174
|
+
"v3",
|
|
40175
|
+
"v4"
|
|
40176
|
+
],
|
|
40177
|
+
preview: {
|
|
40178
|
+
sourceText: "\nsetTimeout(() => {}, 100)\n",
|
|
40179
|
+
diagnostics: [
|
|
40180
|
+
{
|
|
40181
|
+
start: 1,
|
|
40182
|
+
end: 26,
|
|
40183
|
+
text: "Prefer using Effect.sleep or Schedule from Effect instead of setTimeout. effect(globalTimers)"
|
|
40184
|
+
}
|
|
40185
|
+
]
|
|
40186
|
+
}
|
|
40187
|
+
},
|
|
40188
|
+
{
|
|
40189
|
+
name: "globalTimersInEffect",
|
|
40190
|
+
group: "effectNative",
|
|
40191
|
+
description: "Warns when using setTimeout/setInterval inside Effect generators instead of Effect.sleep/Schedule",
|
|
40192
|
+
defaultSeverity: "off",
|
|
40193
|
+
fixable: false,
|
|
40194
|
+
supportedEffect: [
|
|
40195
|
+
"v3",
|
|
40196
|
+
"v4"
|
|
40197
|
+
],
|
|
40198
|
+
preview: {
|
|
40199
|
+
sourceText: 'import { Effect } from "effect"\n\nexport const preview = Effect.gen(function*() {\n setTimeout(() => {}, 100)\n})\n',
|
|
40200
|
+
diagnostics: [
|
|
40201
|
+
{
|
|
40202
|
+
start: 83,
|
|
40203
|
+
end: 108,
|
|
40204
|
+
text: "Prefer using Effect.sleep or Schedule from Effect instead of setTimeout inside Effect generators. effect(globalTimersInEffect)"
|
|
40205
|
+
}
|
|
40206
|
+
]
|
|
40207
|
+
}
|
|
40208
|
+
},
|
|
39725
40209
|
{
|
|
39726
40210
|
name: "instanceOfSchema",
|
|
39727
40211
|
group: "effectNative",
|