@effect/language-service 0.82.0 → 0.83.1
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 +3 -0
- package/cli.js +10404 -10018
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +26 -45
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +37 -56
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +26 -45
- package/transform.js.map +1 -1
|
@@ -27,7 +27,7 @@ __export(effect_lsp_patch_utils_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(effect_lsp_patch_utils_exports);
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
30
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Pipeable.js
|
|
31
31
|
var pipeArguments = (self, args3) => {
|
|
32
32
|
switch (args3.length) {
|
|
33
33
|
case 0:
|
|
@@ -60,7 +60,7 @@ var pipeArguments = (self, args3) => {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
63
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Function.js
|
|
64
64
|
var dual = function(arity, body) {
|
|
65
65
|
if (typeof arity === "function") {
|
|
66
66
|
return function() {
|
|
@@ -108,7 +108,7 @@ function pipe(a, ...args3) {
|
|
|
108
108
|
return pipeArguments(a, args3);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
111
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/equal.js
|
|
112
112
|
var getAllObjectKeys = (obj) => {
|
|
113
113
|
const keys2 = new Set(Reflect.ownKeys(obj));
|
|
114
114
|
if (obj.constructor === Object) return keys2;
|
|
@@ -131,7 +131,7 @@ var getAllObjectKeys = (obj) => {
|
|
|
131
131
|
};
|
|
132
132
|
var byReferenceInstances = /* @__PURE__ */ new WeakSet();
|
|
133
133
|
|
|
134
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
134
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Predicate.js
|
|
135
135
|
function isString(input) {
|
|
136
136
|
return typeof input === "string";
|
|
137
137
|
}
|
|
@@ -152,7 +152,7 @@ function isObjectKeyword(input) {
|
|
|
152
152
|
}
|
|
153
153
|
var hasProperty = /* @__PURE__ */ dual(2, (self, property) => isObjectKeyword(self) && property in self);
|
|
154
154
|
|
|
155
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
155
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Hash.js
|
|
156
156
|
var symbol = "~effect/interfaces/Hash";
|
|
157
157
|
var hash = (self) => {
|
|
158
158
|
switch (typeof self) {
|
|
@@ -271,7 +271,7 @@ function withVisitedTracking(obj, fn2) {
|
|
|
271
271
|
return result;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
274
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Equal.js
|
|
275
275
|
var symbol2 = "~effect/interfaces/Equal";
|
|
276
276
|
function equals() {
|
|
277
277
|
if (arguments.length === 1) {
|
|
@@ -433,10 +433,10 @@ var compareSets = /* @__PURE__ */ makeCompareSet(compareBoth);
|
|
|
433
433
|
var isEqual = (u) => hasProperty(u, symbol2);
|
|
434
434
|
var asEquivalence = () => equals;
|
|
435
435
|
|
|
436
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
436
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/array.js
|
|
437
437
|
var isArrayNonEmpty = (self) => self.length > 0;
|
|
438
438
|
|
|
439
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
439
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Redactable.js
|
|
440
440
|
var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Inspectable/redactable");
|
|
441
441
|
var isRedactable = (u) => hasProperty(u, symbolRedactable);
|
|
442
442
|
function redact(u) {
|
|
@@ -455,7 +455,7 @@ var emptyServiceMap = {
|
|
|
455
455
|
}
|
|
456
456
|
};
|
|
457
457
|
|
|
458
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
458
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Formatter.js
|
|
459
459
|
function format(input, options) {
|
|
460
460
|
const space = options?.space ?? 0;
|
|
461
461
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -534,7 +534,7 @@ function safeToString(input) {
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
537
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Inspectable.js
|
|
538
538
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
539
539
|
var toJson = (input) => {
|
|
540
540
|
try {
|
|
@@ -578,30 +578,7 @@ var Class = class {
|
|
|
578
578
|
}
|
|
579
579
|
};
|
|
580
580
|
|
|
581
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
582
|
-
var GenKindTypeId = "~effect/Utils/GenKind";
|
|
583
|
-
var GenKindImpl = class {
|
|
584
|
-
value;
|
|
585
|
-
constructor(value) {
|
|
586
|
-
this.value = value;
|
|
587
|
-
}
|
|
588
|
-
get _F() {
|
|
589
|
-
return identity;
|
|
590
|
-
}
|
|
591
|
-
get _R() {
|
|
592
|
-
return (_) => _;
|
|
593
|
-
}
|
|
594
|
-
get _O() {
|
|
595
|
-
return (_) => _;
|
|
596
|
-
}
|
|
597
|
-
get _E() {
|
|
598
|
-
return (_) => _;
|
|
599
|
-
}
|
|
600
|
-
[GenKindTypeId] = GenKindTypeId;
|
|
601
|
-
[Symbol.iterator]() {
|
|
602
|
-
return new SingleShotGen(this);
|
|
603
|
-
}
|
|
604
|
-
};
|
|
581
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Utils.js
|
|
605
582
|
var SingleShotGen = class _SingleShotGen {
|
|
606
583
|
called = false;
|
|
607
584
|
self;
|
|
@@ -627,7 +604,7 @@ var SingleShotGen = class _SingleShotGen {
|
|
|
627
604
|
return new _SingleShotGen(this.self);
|
|
628
605
|
}
|
|
629
606
|
};
|
|
630
|
-
var InternalTypeId = "~effect/
|
|
607
|
+
var InternalTypeId = "~effect/Utils/internal";
|
|
631
608
|
var standard = {
|
|
632
609
|
[InternalTypeId]: (body) => {
|
|
633
610
|
return body();
|
|
@@ -643,10 +620,8 @@ var forced = {
|
|
|
643
620
|
};
|
|
644
621
|
var isNotOptimizedAway = /* @__PURE__ */ standard[InternalTypeId](() => new Error().stack)?.includes(InternalTypeId) === true;
|
|
645
622
|
var internalCall = isNotOptimizedAway ? standard[InternalTypeId] : forced[InternalTypeId];
|
|
646
|
-
var genConstructor = function* () {
|
|
647
|
-
}.constructor;
|
|
648
623
|
|
|
649
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
624
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/core.js
|
|
650
625
|
var EffectTypeId = `~effect/Effect`;
|
|
651
626
|
var ExitTypeId = `~effect/Exit`;
|
|
652
627
|
var effectVariance = {
|
|
@@ -993,7 +968,7 @@ var DoneVoid = {
|
|
|
993
968
|
value: void 0
|
|
994
969
|
};
|
|
995
970
|
|
|
996
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
971
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/option.js
|
|
997
972
|
var TypeId = "~effect/data/Option";
|
|
998
973
|
var CommonProto = {
|
|
999
974
|
[TypeId]: {
|
|
@@ -1025,10 +1000,16 @@ var SomeProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(Comm
|
|
|
1025
1000
|
return exitSucceed(this.value);
|
|
1026
1001
|
}
|
|
1027
1002
|
});
|
|
1003
|
+
Object.defineProperty(SomeProto, "valueOrUndefined", {
|
|
1004
|
+
get() {
|
|
1005
|
+
return this.value;
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1028
1008
|
var NoneHash = /* @__PURE__ */ hash("None");
|
|
1029
1009
|
var NoneProto = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(CommonProto), {
|
|
1030
1010
|
_tag: "None",
|
|
1031
1011
|
_op: "None",
|
|
1012
|
+
valueOrUndefined: void 0,
|
|
1032
1013
|
[symbol2](that) {
|
|
1033
1014
|
return isOption(that) && isNone(that);
|
|
1034
1015
|
},
|
|
@@ -1058,7 +1039,7 @@ var some = (value) => {
|
|
|
1058
1039
|
return a;
|
|
1059
1040
|
};
|
|
1060
1041
|
|
|
1061
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
1042
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/internal/result.js
|
|
1062
1043
|
var TypeId2 = "~effect/data/Result";
|
|
1063
1044
|
var CommonProto2 = {
|
|
1064
1045
|
[TypeId2]: {
|
|
@@ -1129,13 +1110,13 @@ var succeed = (success) => {
|
|
|
1129
1110
|
return a;
|
|
1130
1111
|
};
|
|
1131
1112
|
|
|
1132
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
1113
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Order.js
|
|
1133
1114
|
function make(compare) {
|
|
1134
1115
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
1135
1116
|
}
|
|
1136
1117
|
var String2 = /* @__PURE__ */ make((self, that) => self < that ? -1 : 1);
|
|
1137
1118
|
|
|
1138
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
1119
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Option.js
|
|
1139
1120
|
var none2 = () => none;
|
|
1140
1121
|
var some2 = some;
|
|
1141
1122
|
var isNone2 = isNone;
|
|
@@ -1145,7 +1126,7 @@ var orElse = /* @__PURE__ */ dual(2, (self, that) => isNone2(self) ? that() : se
|
|
|
1145
1126
|
var fromNullishOr = (a) => a == null ? none2() : some2(a);
|
|
1146
1127
|
var getOrUndefined = /* @__PURE__ */ getOrElse(constUndefined);
|
|
1147
1128
|
|
|
1148
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
1129
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Result.js
|
|
1149
1130
|
var succeed2 = succeed;
|
|
1150
1131
|
var fail2 = fail;
|
|
1151
1132
|
var isFailure2 = isFailure;
|
|
@@ -1153,7 +1134,7 @@ var isSuccess2 = isSuccess;
|
|
|
1153
1134
|
var map = /* @__PURE__ */ dual(2, (self, f) => isSuccess2(self) ? succeed2(f(self.success)) : fail2(self.failure));
|
|
1154
1135
|
var getOrElse2 = /* @__PURE__ */ dual(2, (self, onFailure) => isFailure2(self) ? onFailure(self.failure) : self.success);
|
|
1155
1136
|
|
|
1156
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
1137
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Record.js
|
|
1157
1138
|
var map2 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
1158
1139
|
const out = {
|
|
1159
1140
|
...self
|
|
@@ -1165,7 +1146,7 @@ var map2 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
1165
1146
|
});
|
|
1166
1147
|
var keys = (self) => Object.keys(self);
|
|
1167
1148
|
|
|
1168
|
-
// ../../node_modules/.pnpm/effect@4.0.0-beta.
|
|
1149
|
+
// ../../node_modules/.pnpm/effect@4.0.0-beta.38/node_modules/effect/dist/Array.js
|
|
1169
1150
|
var Array2 = globalThis.Array;
|
|
1170
1151
|
var fromIterable = (collection) => Array2.isArray(collection) ? collection : Array2.from(collection);
|
|
1171
1152
|
var append = /* @__PURE__ */ dual(2, (self, last) => [...self, last]);
|