@foldkit/oxlint-plugin 0.8.0-canary.86ef57331e67 → 0.8.0-canary.b4db026efbf8
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/dist/index.js +214 -119
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __export = (target, all5) => {
|
|
|
4
4
|
__defProp(target, name, { get: all5[name], enumerable: true });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
// ../../node_modules/.pnpm/effect-oxlint@0.3.2_effect@4.0.0-rc.
|
|
7
|
+
// ../../node_modules/.pnpm/effect-oxlint@0.3.2_effect@4.0.0-rc.112/node_modules/effect-oxlint/dist/chunk.js
|
|
8
8
|
var __defProp2 = Object.defineProperty;
|
|
9
9
|
var __exportAll = (all5, no_symbols) => {
|
|
10
10
|
let target = {};
|
|
@@ -16,7 +16,7 @@ var __exportAll = (all5, no_symbols) => {
|
|
|
16
16
|
return target;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
19
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Effect.js
|
|
20
20
|
var Effect_exports = {};
|
|
21
21
|
__export(Effect_exports, {
|
|
22
22
|
Do: () => Do5,
|
|
@@ -249,7 +249,7 @@ __export(Effect_exports, {
|
|
|
249
249
|
zipWith: () => zipWith4
|
|
250
250
|
});
|
|
251
251
|
|
|
252
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
252
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Pipeable.js
|
|
253
253
|
var pipeArguments = (self, args2) => {
|
|
254
254
|
switch (args2.length) {
|
|
255
255
|
case 0:
|
|
@@ -293,7 +293,7 @@ var Class = /* @__PURE__ */ (function() {
|
|
|
293
293
|
return PipeableBase;
|
|
294
294
|
})();
|
|
295
295
|
|
|
296
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
296
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Function.js
|
|
297
297
|
var dual = function(arity, body) {
|
|
298
298
|
if (typeof arity === "function") {
|
|
299
299
|
return function() {
|
|
@@ -366,7 +366,7 @@ function memoizeIdempotent(f) {
|
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
369
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/equal.js
|
|
370
370
|
var getAllObjectKeys = (obj) => {
|
|
371
371
|
const keys2 = new Set(Reflect.ownKeys(obj));
|
|
372
372
|
if (obj.constructor === Object) return keys2;
|
|
@@ -389,7 +389,7 @@ var getAllObjectKeys = (obj) => {
|
|
|
389
389
|
};
|
|
390
390
|
var byReferenceInstances = /* @__PURE__ */ new WeakSet();
|
|
391
391
|
|
|
392
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
392
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Predicate.js
|
|
393
393
|
function isString(input) {
|
|
394
394
|
return typeof input === "string";
|
|
395
395
|
}
|
|
@@ -423,7 +423,7 @@ function isIterable(input) {
|
|
|
423
423
|
return hasProperty(input, Symbol.iterator) || isString(input);
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
426
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Hash.js
|
|
427
427
|
var symbol = "~effect/interfaces/Hash";
|
|
428
428
|
var hash = (self) => {
|
|
429
429
|
switch (typeof self) {
|
|
@@ -547,7 +547,7 @@ function withVisitedTracking(obj, fn3) {
|
|
|
547
547
|
return result3;
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
550
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Equal.js
|
|
551
551
|
var symbol2 = "~effect/interfaces/Equal";
|
|
552
552
|
function equals() {
|
|
553
553
|
if (arguments.length === 1) {
|
|
@@ -744,7 +744,7 @@ var byReferenceUnsafe = (obj) => {
|
|
|
744
744
|
return obj;
|
|
745
745
|
};
|
|
746
746
|
|
|
747
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
747
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Redactable.js
|
|
748
748
|
var symbolRedactable = /* @__PURE__ */ Symbol.for("~effect/Redactable");
|
|
749
749
|
var isRedactable = (u) => hasProperty(u, symbolRedactable);
|
|
750
750
|
function redact(u) {
|
|
@@ -766,7 +766,7 @@ var emptyContext = {
|
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
768
|
|
|
769
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
769
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Formatter.js
|
|
770
770
|
function format(input, options) {
|
|
771
771
|
const space = options?.space ?? 0;
|
|
772
772
|
const ancestors = /* @__PURE__ */ new WeakSet();
|
|
@@ -867,7 +867,7 @@ function formatJson(input, options) {
|
|
|
867
867
|
}, options?.space) ?? "null";
|
|
868
868
|
}
|
|
869
869
|
|
|
870
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
870
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Inspectable.js
|
|
871
871
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
872
872
|
var toJson = (input) => {
|
|
873
873
|
try {
|
|
@@ -934,7 +934,7 @@ var Class2 = class {
|
|
|
934
934
|
}
|
|
935
935
|
};
|
|
936
936
|
|
|
937
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
937
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Utils.js
|
|
938
938
|
var SingleShotGen = class _SingleShotGen {
|
|
939
939
|
called = false;
|
|
940
940
|
self;
|
|
@@ -994,7 +994,7 @@ var pickInternalCall = () => {
|
|
|
994
994
|
};
|
|
995
995
|
var internalCall = /* @__PURE__ */ pickInternalCall();
|
|
996
996
|
|
|
997
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
997
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/record.js
|
|
998
998
|
function assignProperty(self, key, value) {
|
|
999
999
|
if (key === "__proto__") {
|
|
1000
1000
|
Object.defineProperty(self, key, {
|
|
@@ -1016,7 +1016,7 @@ function assignProperties(self, source) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
|
|
1019
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1019
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/core.js
|
|
1020
1020
|
var EffectTypeId = `~effect/Effect`;
|
|
1021
1021
|
var ExitTypeId = `~effect/Exit`;
|
|
1022
1022
|
var effectVariance = {
|
|
@@ -1376,13 +1376,13 @@ var done = (value) => {
|
|
|
1376
1376
|
return exitFail(Done(value));
|
|
1377
1377
|
};
|
|
1378
1378
|
|
|
1379
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1379
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Effectable.js
|
|
1380
1380
|
var Prototype2 = (options) => makePrimitiveProto({
|
|
1381
1381
|
op: options.label,
|
|
1382
1382
|
[evaluate]: options.evaluate
|
|
1383
1383
|
});
|
|
1384
1384
|
|
|
1385
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1385
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Option.js
|
|
1386
1386
|
var Option_exports = {};
|
|
1387
1387
|
__export(Option_exports, {
|
|
1388
1388
|
Do: () => Do,
|
|
@@ -1447,14 +1447,14 @@ __export(Option_exports, {
|
|
|
1447
1447
|
zipWith: () => zipWith
|
|
1448
1448
|
});
|
|
1449
1449
|
|
|
1450
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1450
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Combiner.js
|
|
1451
1451
|
function make(combine2) {
|
|
1452
1452
|
return {
|
|
1453
1453
|
combine: combine2
|
|
1454
1454
|
};
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1457
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Reducer.js
|
|
1458
1458
|
function make2(combine2, initialValue, combineAll2) {
|
|
1459
1459
|
return {
|
|
1460
1460
|
combine: combine2,
|
|
@@ -1469,7 +1469,7 @@ function make2(combine2, initialValue, combineAll2) {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
}
|
|
1471
1471
|
|
|
1472
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1472
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Equivalence.js
|
|
1473
1473
|
var make3 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
1474
1474
|
function Array_(item) {
|
|
1475
1475
|
return make3((self, that) => {
|
|
@@ -1481,7 +1481,7 @@ function Array_(item) {
|
|
|
1481
1481
|
});
|
|
1482
1482
|
}
|
|
1483
1483
|
|
|
1484
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1484
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/doNotation.js
|
|
1485
1485
|
var let_ = (map8) => dual(3, (self, name, f) => map8(self, (a) => ({
|
|
1486
1486
|
...a,
|
|
1487
1487
|
[name]: f(a)
|
|
@@ -1494,7 +1494,7 @@ var bind = (map8, flatMap6) => dual(3, (self, name, f) => flatMap6(self, (a) =>
|
|
|
1494
1494
|
[name]: b
|
|
1495
1495
|
}))));
|
|
1496
1496
|
|
|
1497
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1497
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/option.js
|
|
1498
1498
|
var TypeId = "~effect/data/Option";
|
|
1499
1499
|
var CommonProto = {
|
|
1500
1500
|
[TypeId]: {
|
|
@@ -1560,7 +1560,7 @@ var some = (value) => {
|
|
|
1560
1560
|
return a;
|
|
1561
1561
|
};
|
|
1562
1562
|
|
|
1563
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1563
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/result.js
|
|
1564
1564
|
var TypeId2 = "~effect/data/Result";
|
|
1565
1565
|
var CommonProto2 = {
|
|
1566
1566
|
[TypeId2]: {
|
|
@@ -1630,7 +1630,7 @@ var getFailure = (self) => isSuccess(self) ? none : some(self.failure);
|
|
|
1630
1630
|
var getSuccess = (self) => isFailure(self) ? none : some(self.success);
|
|
1631
1631
|
var fromOption = /* @__PURE__ */ dual(2, (self, onNone) => isNone(self) ? fail(onNone()) : succeed(self.value));
|
|
1632
1632
|
|
|
1633
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1633
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Order.js
|
|
1634
1634
|
function make4(compare) {
|
|
1635
1635
|
return (self, that) => self === that ? 0 : compare(self, that);
|
|
1636
1636
|
}
|
|
@@ -1671,7 +1671,7 @@ var isGreaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
|
1671
1671
|
var min = (O) => dual(2, (self, that) => self === that || O(self, that) < 1 ? self : that);
|
|
1672
1672
|
var max = (O) => dual(2, (self, that) => self === that || O(self, that) > -1 ? self : that);
|
|
1673
1673
|
|
|
1674
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1674
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Option.js
|
|
1675
1675
|
var none2 = () => none;
|
|
1676
1676
|
var some2 = some;
|
|
1677
1677
|
var isOption2 = isOption;
|
|
@@ -1849,7 +1849,7 @@ function makeReducerFailFast(reducer2) {
|
|
|
1849
1849
|
});
|
|
1850
1850
|
}
|
|
1851
1851
|
|
|
1852
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
1852
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Context.js
|
|
1853
1853
|
var ServiceTypeId = "~effect/Context/Service";
|
|
1854
1854
|
var Service = function() {
|
|
1855
1855
|
function KeyClass() {
|
|
@@ -2051,7 +2051,7 @@ var mergeAll = (...ctxs) => {
|
|
|
2051
2051
|
};
|
|
2052
2052
|
var Reference = Service;
|
|
2053
2053
|
|
|
2054
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
2054
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Duration.js
|
|
2055
2055
|
var TypeId4 = "~effect/time/Duration";
|
|
2056
2056
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
2057
2057
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -2318,7 +2318,7 @@ var subtract = /* @__PURE__ */ dual(2, (self, that) => matchPair(self, that, {
|
|
|
2318
2318
|
}));
|
|
2319
2319
|
var equals2 = /* @__PURE__ */ dual(2, (self, that) => Equivalence(self, that));
|
|
2320
2320
|
|
|
2321
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
2321
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Array.js
|
|
2322
2322
|
var Array_exports = {};
|
|
2323
2323
|
__export(Array_exports, {
|
|
2324
2324
|
Array: () => Array2,
|
|
@@ -2456,10 +2456,10 @@ __export(Array_exports, {
|
|
|
2456
2456
|
zipWith: () => zipWith2
|
|
2457
2457
|
});
|
|
2458
2458
|
|
|
2459
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
2459
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/array.js
|
|
2460
2460
|
var isArrayNonEmpty = (self) => self.length > 0;
|
|
2461
2461
|
|
|
2462
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
2462
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Result.js
|
|
2463
2463
|
var Result_exports = {};
|
|
2464
2464
|
__export(Result_exports, {
|
|
2465
2465
|
Do: () => Do2,
|
|
@@ -2614,10 +2614,10 @@ var tap2 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
2614
2614
|
return self;
|
|
2615
2615
|
});
|
|
2616
2616
|
|
|
2617
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
2617
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Tuple.js
|
|
2618
2618
|
var make7 = (...elements) => elements;
|
|
2619
2619
|
|
|
2620
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
2620
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Iterable.js
|
|
2621
2621
|
var findFirst = /* @__PURE__ */ dual(2, (self, f) => {
|
|
2622
2622
|
let i = 0;
|
|
2623
2623
|
for (const a of self) {
|
|
@@ -2660,7 +2660,7 @@ var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => ({
|
|
|
2660
2660
|
}
|
|
2661
2661
|
}));
|
|
2662
2662
|
|
|
2663
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
2663
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Record.js
|
|
2664
2664
|
var empty2 = () => ({});
|
|
2665
2665
|
var isEmptyRecord = (self) => Object.keys(self).length === 0;
|
|
2666
2666
|
var fromEntries = Object.fromEntries;
|
|
@@ -2710,7 +2710,7 @@ var union = /* @__PURE__ */ dual(3, (self, that, combine2) => {
|
|
|
2710
2710
|
return out;
|
|
2711
2711
|
});
|
|
2712
2712
|
|
|
2713
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
2713
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Array.js
|
|
2714
2714
|
var Array2 = globalThis.Array;
|
|
2715
2715
|
var make8 = (...elements) => elements;
|
|
2716
2716
|
var allocate = (n) => new Array2(n);
|
|
@@ -3415,7 +3415,7 @@ var countBy = /* @__PURE__ */ dual(2, (self, f) => {
|
|
|
3415
3415
|
return count;
|
|
3416
3416
|
});
|
|
3417
3417
|
|
|
3418
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
3418
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Scheduler.js
|
|
3419
3419
|
var Scheduler = /* @__PURE__ */ Reference("effect/Scheduler", {
|
|
3420
3420
|
fiberCached: true,
|
|
3421
3421
|
defaultValue: () => new MixedScheduler()
|
|
@@ -3552,10 +3552,10 @@ var PreventSchedulerYield = /* @__PURE__ */ Reference("effect/Scheduler/PreventS
|
|
|
3552
3552
|
defaultValue: () => false
|
|
3553
3553
|
});
|
|
3554
3554
|
|
|
3555
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
3555
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Data.js
|
|
3556
3556
|
var TaggedError2 = TaggedError;
|
|
3557
3557
|
|
|
3558
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
3558
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Encoding.js
|
|
3559
3559
|
var EncodingErrorTypeId = "~effect/encoding/EncodingError";
|
|
3560
3560
|
var EncodingError = class extends (/* @__PURE__ */ TaggedError2("EncodingError")) {
|
|
3561
3561
|
/**
|
|
@@ -3659,7 +3659,7 @@ for (let i = 0; i < 256; i++) {
|
|
|
3659
3659
|
byteToHex.push(i.toString(16).padStart(2, "0"));
|
|
3660
3660
|
}
|
|
3661
3661
|
|
|
3662
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
3662
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Tracer.js
|
|
3663
3663
|
var ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
3664
3664
|
var ParentSpan = class extends (/* @__PURE__ */ Service()(ParentSpanKey, {
|
|
3665
3665
|
fiberCached: true
|
|
@@ -3731,10 +3731,10 @@ var NativeSpan = class {
|
|
|
3731
3731
|
}
|
|
3732
3732
|
};
|
|
3733
3733
|
|
|
3734
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
3734
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/metric.js
|
|
3735
3735
|
var FiberRuntimeMetricsKey = "effect/observability/Metric/FiberRuntimeMetricsKey";
|
|
3736
3736
|
|
|
3737
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
3737
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/references.js
|
|
3738
3738
|
var CurrentErrorReporters = /* @__PURE__ */ Reference("effect/ErrorReporter/CurrentErrorReporters", {
|
|
3739
3739
|
defaultValue: () => /* @__PURE__ */ new Set()
|
|
3740
3740
|
});
|
|
@@ -3769,7 +3769,7 @@ var CurrentLogSpans = /* @__PURE__ */ Reference("effect/References/CurrentLogSpa
|
|
|
3769
3769
|
defaultValue: () => []
|
|
3770
3770
|
});
|
|
3771
3771
|
|
|
3772
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
3772
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/stackTraceLimit.js
|
|
3773
3773
|
var isStackTraceLimitWritable = () => {
|
|
3774
3774
|
const desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
|
|
3775
3775
|
if (desc === void 0) {
|
|
@@ -3786,7 +3786,7 @@ var setStackTraceLimit = (value) => {
|
|
|
3786
3786
|
}
|
|
3787
3787
|
};
|
|
3788
3788
|
|
|
3789
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
3789
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/tracer.js
|
|
3790
3790
|
var addSpanStackTrace = (options) => {
|
|
3791
3791
|
if (options?.captureStackTrace === false) {
|
|
3792
3792
|
return options;
|
|
@@ -3817,7 +3817,7 @@ var makeStackCleaner = (line) => (stack) => {
|
|
|
3817
3817
|
};
|
|
3818
3818
|
var spanCleaner = /* @__PURE__ */ makeStackCleaner(3);
|
|
3819
3819
|
|
|
3820
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
3820
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/effect.js
|
|
3821
3821
|
var Interrupt = class extends ReasonBase {
|
|
3822
3822
|
fiberId;
|
|
3823
3823
|
constructor(fiberId3, annotations = constEmptyAnnotations) {
|
|
@@ -5042,11 +5042,13 @@ var scopeCloseUnsafe = (self, exit_) => {
|
|
|
5042
5042
|
self.state = closed;
|
|
5043
5043
|
return;
|
|
5044
5044
|
}
|
|
5045
|
-
const
|
|
5046
|
-
finalizers
|
|
5047
|
-
} = self.state;
|
|
5045
|
+
const state = self.state;
|
|
5048
5046
|
self.state = closed;
|
|
5049
|
-
if (
|
|
5047
|
+
if (state.finalizer !== void 0) {
|
|
5048
|
+
return state.finalizer(exit_);
|
|
5049
|
+
}
|
|
5050
|
+
const finalizers = state.finalizers;
|
|
5051
|
+
if (finalizers === void 0 || finalizers.size === 0) {
|
|
5050
5052
|
return;
|
|
5051
5053
|
} else if (finalizers.size === 1) {
|
|
5052
5054
|
return finalizers.values().next().value(exit_);
|
|
@@ -5096,15 +5098,34 @@ var scopeAddFinalizerUnsafe = (scope3, key, finalizer) => {
|
|
|
5096
5098
|
if (scope3.state._tag === "Empty") {
|
|
5097
5099
|
scope3.state = {
|
|
5098
5100
|
_tag: "Open",
|
|
5099
|
-
|
|
5101
|
+
finalizerKey: key,
|
|
5102
|
+
finalizer,
|
|
5103
|
+
finalizers: void 0
|
|
5100
5104
|
};
|
|
5101
5105
|
} else if (scope3.state._tag === "Open") {
|
|
5102
|
-
scope3.state
|
|
5106
|
+
const state = scope3.state;
|
|
5107
|
+
if (state.finalizer !== void 0) {
|
|
5108
|
+
state.finalizers = /* @__PURE__ */ new Map([[state.finalizerKey, state.finalizer]]);
|
|
5109
|
+
state.finalizerKey = void 0;
|
|
5110
|
+
state.finalizer = void 0;
|
|
5111
|
+
state.finalizers.set(key, finalizer);
|
|
5112
|
+
} else if (state.finalizers === void 0) {
|
|
5113
|
+
state.finalizerKey = key;
|
|
5114
|
+
state.finalizer = finalizer;
|
|
5115
|
+
} else {
|
|
5116
|
+
state.finalizers.set(key, finalizer);
|
|
5117
|
+
}
|
|
5103
5118
|
}
|
|
5104
5119
|
};
|
|
5105
5120
|
var scopeRemoveFinalizerUnsafe = (scope3, key) => {
|
|
5106
5121
|
if (scope3.state._tag === "Open") {
|
|
5107
|
-
scope3.state
|
|
5122
|
+
const state = scope3.state;
|
|
5123
|
+
if (state.finalizerKey === key) {
|
|
5124
|
+
state.finalizerKey = void 0;
|
|
5125
|
+
state.finalizer = void 0;
|
|
5126
|
+
} else if (state.finalizers !== void 0) {
|
|
5127
|
+
state.finalizers.delete(key);
|
|
5128
|
+
}
|
|
5108
5129
|
}
|
|
5109
5130
|
};
|
|
5110
5131
|
var scopeMakeUnsafe = (finalizerStrategy = "sequential") => ({
|
|
@@ -5408,7 +5429,7 @@ var iterateEagerImpl = (options) => {
|
|
|
5408
5429
|
if (concurrency === 1) {
|
|
5409
5430
|
return runSequential(state, items, 0, end);
|
|
5410
5431
|
}
|
|
5411
|
-
const orderedStep = opts?.orderedStep === true
|
|
5432
|
+
const orderedStep = opts?.orderedStep === true;
|
|
5412
5433
|
let done4 = false;
|
|
5413
5434
|
let parentFiber;
|
|
5414
5435
|
let fibers;
|
|
@@ -6307,14 +6328,14 @@ var reportCauseUnsafe = (fiber3, cause, defectsOnly) => {
|
|
|
6307
6328
|
reporters.forEach((reporter) => reporter.report(opts));
|
|
6308
6329
|
};
|
|
6309
6330
|
|
|
6310
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6331
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Exit.js
|
|
6311
6332
|
var succeed4 = exitSucceed;
|
|
6312
6333
|
var failCause2 = exitFailCause;
|
|
6313
6334
|
var fail4 = exitFail;
|
|
6314
6335
|
var void_4 = exitVoid;
|
|
6315
6336
|
var isSuccess4 = exitIsSuccess;
|
|
6316
6337
|
|
|
6317
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6338
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Deferred.js
|
|
6318
6339
|
var TypeId5 = "~effect/Deferred";
|
|
6319
6340
|
var DeferredProto = {
|
|
6320
6341
|
[TypeId5]: {
|
|
@@ -6357,16 +6378,16 @@ var doneUnsafe = (self, effect) => {
|
|
|
6357
6378
|
return true;
|
|
6358
6379
|
};
|
|
6359
6380
|
|
|
6360
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6381
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/References.js
|
|
6361
6382
|
var CurrentLogAnnotations2 = CurrentLogAnnotations;
|
|
6362
6383
|
var CurrentLogSpans2 = CurrentLogSpans;
|
|
6363
6384
|
|
|
6364
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6385
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Scope.js
|
|
6365
6386
|
var makeUnsafe3 = scopeMakeUnsafe;
|
|
6366
6387
|
var forkUnsafe2 = scopeForkUnsafe;
|
|
6367
6388
|
var close = scopeClose;
|
|
6368
6389
|
|
|
6369
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6390
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Layer.js
|
|
6370
6391
|
var TypeId6 = "~effect/Layer";
|
|
6371
6392
|
var MemoMapTypeId = "~effect/Layer/MemoMap";
|
|
6372
6393
|
var memoMapReuse = (entry, scope3) => {
|
|
@@ -6461,7 +6482,7 @@ var mergeAll2 = (...layers) => fromBuild((memoMap, scope3) => mergeAllEffect(lay
|
|
|
6461
6482
|
var provideWith = (self, that, f) => fromBuild((memoMap, scope3) => flatMap4(Array.isArray(that) ? mergeAllEffect(that, memoMap, scope3) : that.build(memoMap, scope3), (context3) => self.build(memoMap, scope3).pipe(provideContext(context3), map5((merged) => f(merged, context3)))));
|
|
6462
6483
|
var provide2 = /* @__PURE__ */ dual(2, (self, that) => provideWith(self, that, identity));
|
|
6463
6484
|
|
|
6464
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6485
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/ExecutionPlan.js
|
|
6465
6486
|
var TypeId7 = "~effect/ExecutionPlan";
|
|
6466
6487
|
var Proto2 = {
|
|
6467
6488
|
[TypeId7]: TypeId7,
|
|
@@ -6488,14 +6509,14 @@ var CurrentMetadata = /* @__PURE__ */ Reference("effect/ExecutionPlan/CurrentMet
|
|
|
6488
6509
|
})
|
|
6489
6510
|
});
|
|
6490
6511
|
|
|
6491
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6512
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Cause.js
|
|
6492
6513
|
var isFailReason2 = isFailReason;
|
|
6493
6514
|
var fromReasons = causeFromReasons;
|
|
6494
6515
|
var map6 = causeMap;
|
|
6495
6516
|
var isDone2 = isDone;
|
|
6496
6517
|
var done3 = done;
|
|
6497
6518
|
|
|
6498
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6519
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Pull.js
|
|
6499
6520
|
var catchDone = /* @__PURE__ */ dual(2, (effect, f) => catchCauseFilter(effect, filterDoneLeftover, (l) => f(l)));
|
|
6500
6521
|
var isDoneFailure = (failure) => failure._tag === "Fail" && isDone2(failure.error);
|
|
6501
6522
|
var filterDone = (cause) => {
|
|
@@ -6523,7 +6544,7 @@ var matchEffect2 = /* @__PURE__ */ dual(2, (self, options) => matchCauseEffect(s
|
|
|
6523
6544
|
}
|
|
6524
6545
|
}));
|
|
6525
6546
|
|
|
6526
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6547
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Schedule.js
|
|
6527
6548
|
var TypeId8 = "~effect/Schedule";
|
|
6528
6549
|
var CurrentMetadata2 = /* @__PURE__ */ Reference("effect/Schedule/CurrentMetadata", {
|
|
6529
6550
|
defaultValue: /* @__PURE__ */ constant({
|
|
@@ -6615,11 +6636,11 @@ var while_ = /* @__PURE__ */ dual(2, (self, predicate) => fromStep(map5(toStep(s
|
|
|
6615
6636
|
})));
|
|
6616
6637
|
var forever2 = /* @__PURE__ */ spaced(zero);
|
|
6617
6638
|
|
|
6618
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6639
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/layer.js
|
|
6619
6640
|
var provideLayer = (self, layer, options) => scopedWith((scope3) => flatMap4(options?.local ? buildWithMemoMap(layer, makeMemoMapUnsafe(), scope3) : buildWithScope(layer, scope3), (context3) => provideContext(self, context3)));
|
|
6620
6641
|
var provide3 = /* @__PURE__ */ dual((args2) => isEffect(args2[0]), (self, source, options) => isContext(source) ? provideContext(self, source) : provideLayer(self, Array.isArray(source) ? mergeAll2(...source) : source, options));
|
|
6621
6642
|
|
|
6622
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6643
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/schedule.js
|
|
6623
6644
|
var repeatOrElse = /* @__PURE__ */ dual(3, (self, schedule2, orElse3) => flatMap4(toStepWithMetadata(schedule2), (step) => {
|
|
6624
6645
|
let meta2 = CurrentMetadata2.defaultValue();
|
|
6625
6646
|
return catch_(forever(tap3(flatMap4(suspend(() => provideService(self, CurrentMetadata2, meta2)), step), (meta_) => sync(() => {
|
|
@@ -6690,7 +6711,7 @@ var buildFromOptions = (options) => {
|
|
|
6690
6711
|
return schedule2;
|
|
6691
6712
|
};
|
|
6692
6713
|
|
|
6693
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6714
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/executionPlan.js
|
|
6694
6715
|
var makeEventEmitter = (onEvent, currentMetadata) => {
|
|
6695
6716
|
let lastStepIndex = -1;
|
|
6696
6717
|
let stepAttempt = 0;
|
|
@@ -6795,7 +6816,7 @@ var scheduleFromStep = (step, first) => {
|
|
|
6795
6816
|
};
|
|
6796
6817
|
var scheduleOnce = /* @__PURE__ */ recurs(1);
|
|
6797
6818
|
|
|
6798
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6819
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Request.js
|
|
6799
6820
|
var TypeId9 = "~effect/Request";
|
|
6800
6821
|
var requestVariance = /* @__PURE__ */ byReferenceUnsafe({
|
|
6801
6822
|
/* c8 ignore next */
|
|
@@ -6811,7 +6832,7 @@ var RequestPrototype = {
|
|
|
6811
6832
|
};
|
|
6812
6833
|
var makeEntry = (options) => options;
|
|
6813
6834
|
|
|
6814
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6835
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/request.js
|
|
6815
6836
|
var request = /* @__PURE__ */ dual(2, (self, resolver) => {
|
|
6816
6837
|
const withResolver = (resolver2) => callback((resume) => {
|
|
6817
6838
|
const entry = addEntry(resolver2, self, resume, getCurrentFiber());
|
|
@@ -6921,7 +6942,7 @@ function runBatch(batch) {
|
|
|
6921
6942
|
return batch.run;
|
|
6922
6943
|
}
|
|
6923
6944
|
|
|
6924
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
6945
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Metric.js
|
|
6925
6946
|
var CurrentMetricAttributesKey = "effect/Metric/CurrentMetricAttributes";
|
|
6926
6947
|
var CurrentMetricAttributes = /* @__PURE__ */ Reference(CurrentMetricAttributesKey, {
|
|
6927
6948
|
defaultValue: () => ({})
|
|
@@ -7021,7 +7042,7 @@ function attributesToRecord(attributes) {
|
|
|
7021
7042
|
return attributes;
|
|
7022
7043
|
}
|
|
7023
7044
|
|
|
7024
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
7045
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Effect.js
|
|
7025
7046
|
var TypeId11 = EffectTypeId;
|
|
7026
7047
|
var isEffect2 = isEffect;
|
|
7027
7048
|
var all4 = all3;
|
|
@@ -7378,7 +7399,7 @@ var flatMapEager2 = flatMapEager;
|
|
|
7378
7399
|
var catchEager2 = catchEager;
|
|
7379
7400
|
var fnUntracedEager2 = fnUntracedEager;
|
|
7380
7401
|
|
|
7381
|
-
// ../../node_modules/.pnpm/effect-oxlint@0.3.2_effect@4.0.0-rc.
|
|
7402
|
+
// ../../node_modules/.pnpm/effect-oxlint@0.3.2_effect@4.0.0-rc.112/node_modules/effect-oxlint/dist/RuleContext.js
|
|
7382
7403
|
var RuleContextBase = Service()("effect-oxlint/RuleContext");
|
|
7383
7404
|
var RuleContext = class extends RuleContextBase {
|
|
7384
7405
|
};
|
|
@@ -7399,7 +7420,7 @@ service2(RuleContext).pipe(map7((ctx) => ctx.sourceCode));
|
|
|
7399
7420
|
service2(RuleContext).pipe(map7((ctx) => ctx.sourceCode.text));
|
|
7400
7421
|
service2(RuleContext).pipe(map7((ctx) => ctx.sourceCode.ast));
|
|
7401
7422
|
|
|
7402
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
7423
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/schema/annotations.js
|
|
7403
7424
|
function resolve(ast) {
|
|
7404
7425
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
7405
7426
|
}
|
|
@@ -7412,7 +7433,7 @@ var getExpected = /* @__PURE__ */ memoize((ast) => {
|
|
|
7412
7433
|
return ast.getExpected(getExpected);
|
|
7413
7434
|
});
|
|
7414
7435
|
|
|
7415
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
7436
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/schema/parser.js
|
|
7416
7437
|
var missing = /* @__PURE__ */ Symbol();
|
|
7417
7438
|
var succeed6 = succeed4;
|
|
7418
7439
|
var missingExit = /* @__PURE__ */ succeed6(missing);
|
|
@@ -7420,7 +7441,7 @@ var sameExit = /* @__PURE__ */ succeed6(missing);
|
|
|
7420
7441
|
var toOption = (value) => value === missing ? none2() : some2(value);
|
|
7421
7442
|
var fromOptionExit = (option3) => option3._tag === "None" ? missingExit : succeed6(option3.value);
|
|
7422
7443
|
|
|
7423
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
7444
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/SchemaIssue.js
|
|
7424
7445
|
var TypeId12 = "~effect/SchemaIssue/Issue";
|
|
7425
7446
|
function isIssue(u) {
|
|
7426
7447
|
return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
|
|
@@ -7703,7 +7724,7 @@ function findMessage(issue) {
|
|
|
7703
7724
|
if (typeof message === "string") return message;
|
|
7704
7725
|
}
|
|
7705
7726
|
|
|
7706
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
7727
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/schema/cause.js
|
|
7707
7728
|
function getSchemaIssue(cause) {
|
|
7708
7729
|
let issue;
|
|
7709
7730
|
for (const reason of cause.reasons) {
|
|
@@ -7724,7 +7745,7 @@ function getSchemaIssueOrThrow(cause, message) {
|
|
|
7724
7745
|
return issue;
|
|
7725
7746
|
}
|
|
7726
7747
|
|
|
7727
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
7748
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/SchemaGetter.js
|
|
7728
7749
|
var Getter = class _Getter extends Class {
|
|
7729
7750
|
run;
|
|
7730
7751
|
constructor(run2) {
|
|
@@ -7784,7 +7805,7 @@ function decodeBase642() {
|
|
|
7784
7805
|
}, input, options)));
|
|
7785
7806
|
}
|
|
7786
7807
|
|
|
7787
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
7808
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/SchemaTransformation.js
|
|
7788
7809
|
var TypeId13 = "~effect/SchemaTransformation/Transformation";
|
|
7789
7810
|
var Transformation = class _Transformation {
|
|
7790
7811
|
[TypeId13] = TypeId13;
|
|
@@ -7830,7 +7851,7 @@ var urlFromString = /* @__PURE__ */ transformOrFail2({
|
|
|
7830
7851
|
});
|
|
7831
7852
|
var uint8ArrayFromBase64String = /* @__PURE__ */ new Transformation(/* @__PURE__ */ decodeBase642(), /* @__PURE__ */ encodeBase642());
|
|
7832
7853
|
|
|
7833
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
7854
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/SchemaAST.js
|
|
7834
7855
|
function makeGuard(tag2) {
|
|
7835
7856
|
return (ast) => ast._tag === tag2;
|
|
7836
7857
|
}
|
|
@@ -7885,11 +7906,17 @@ var Declaration = class _Declaration extends Base2 {
|
|
|
7885
7906
|
typeParameters;
|
|
7886
7907
|
run;
|
|
7887
7908
|
encodingChecks;
|
|
7888
|
-
|
|
7909
|
+
/**
|
|
7910
|
+
* Parser factory {@link flip} swaps in, so a declaration can behave
|
|
7911
|
+
* differently when encoding. `undefined` reuses {@link run}.
|
|
7912
|
+
*/
|
|
7913
|
+
encodingRun;
|
|
7914
|
+
constructor(typeParameters, run2, annotations, checks, encoding, context3, encodingChecks, encodingRun) {
|
|
7889
7915
|
super(annotations, checks, encoding, context3);
|
|
7890
7916
|
this.typeParameters = typeParameters;
|
|
7891
7917
|
this.run = run2;
|
|
7892
7918
|
this.encodingChecks = encodingChecks;
|
|
7919
|
+
this.encodingRun = encodingRun;
|
|
7893
7920
|
}
|
|
7894
7921
|
/** @internal */
|
|
7895
7922
|
getParser() {
|
|
@@ -7899,17 +7926,17 @@ var Declaration = class _Declaration extends Base2 {
|
|
|
7899
7926
|
return (run2 ??= this.run(this.typeParameters))(input, this, options);
|
|
7900
7927
|
};
|
|
7901
7928
|
}
|
|
7902
|
-
_rebuild(recur, checks, encodingChecks) {
|
|
7929
|
+
_rebuild(recur, checks, encodingChecks, run2, encodingRun) {
|
|
7903
7930
|
const tps = mapOrSame(this.typeParameters, recur);
|
|
7904
|
-
return tps === this.typeParameters && checks === this.checks && encodingChecks === this.encodingChecks ? this : new _Declaration(tps,
|
|
7931
|
+
return tps === this.typeParameters && checks === this.checks && encodingChecks === this.encodingChecks && run2 === this.run && encodingRun === this.encodingRun ? this : new _Declaration(tps, run2, this.annotations, checks, void 0, this.context, encodingChecks, encodingRun);
|
|
7905
7932
|
}
|
|
7906
7933
|
/** @internal */
|
|
7907
7934
|
recur(recur) {
|
|
7908
|
-
return this._rebuild(recur, this.checks, this.encodingChecks);
|
|
7935
|
+
return this._rebuild(recur, this.checks, this.encodingChecks, this.run, this.encodingRun);
|
|
7909
7936
|
}
|
|
7910
7937
|
/** @internal */
|
|
7911
7938
|
flip(recur) {
|
|
7912
|
-
return this._rebuild(recur, this.encodingChecks, this.checks);
|
|
7939
|
+
return this._rebuild(recur, this.encodingChecks, this.checks, this.encodingRun ?? this.run, this.run);
|
|
7913
7940
|
}
|
|
7914
7941
|
/** @internal */
|
|
7915
7942
|
getExpected() {
|
|
@@ -8311,13 +8338,7 @@ var Objects = class _Objects extends Base2 {
|
|
|
8311
8338
|
onItem: (s, [key, index]) => parseIndex(s, key, index),
|
|
8312
8339
|
step: (_s, _, exit3) => exit3._tag === "Failure" ? exit3 : void 0
|
|
8313
8340
|
}) : void 0;
|
|
8314
|
-
|
|
8315
|
-
if (input === missing) {
|
|
8316
|
-
return missing;
|
|
8317
|
-
}
|
|
8318
|
-
if (!(typeof input === "object" && input !== null && !Array.isArray(input))) {
|
|
8319
|
-
return yield* fail5(new InvalidType(ast, input, options));
|
|
8320
|
-
}
|
|
8341
|
+
const compileMembers = () => {
|
|
8321
8342
|
if (!properties) {
|
|
8322
8343
|
properties = ast.propertySignatures.map((ps) => ({
|
|
8323
8344
|
parser: compileConstructorDefault2(ps.type),
|
|
@@ -8330,6 +8351,16 @@ var Objects = class _Objects extends Base2 {
|
|
|
8330
8351
|
parserValue: compileConstructorDefault2(is2.type)
|
|
8331
8352
|
})) : void 0;
|
|
8332
8353
|
}
|
|
8354
|
+
return properties;
|
|
8355
|
+
};
|
|
8356
|
+
const fallback = fnUntracedEager2(function* (input, options) {
|
|
8357
|
+
if (input === missing) {
|
|
8358
|
+
return missing;
|
|
8359
|
+
}
|
|
8360
|
+
if (!(typeof input === "object" && input !== null && !Array.isArray(input))) {
|
|
8361
|
+
return yield* fail5(new InvalidType(ast, input, options));
|
|
8362
|
+
}
|
|
8363
|
+
compileMembers();
|
|
8333
8364
|
const record2 = input;
|
|
8334
8365
|
const out = {};
|
|
8335
8366
|
const state = {
|
|
@@ -8411,6 +8442,57 @@ var Objects = class _Objects extends Base2 {
|
|
|
8411
8442
|
}
|
|
8412
8443
|
return out;
|
|
8413
8444
|
});
|
|
8445
|
+
if (indexCount) return fallback;
|
|
8446
|
+
const resume = (state, index, pending) => {
|
|
8447
|
+
const property = properties[index];
|
|
8448
|
+
return flatMap5(exit2(pending), (exit3) => {
|
|
8449
|
+
const terminal = stepProperty(state, property, exit3);
|
|
8450
|
+
if (terminal) return terminal;
|
|
8451
|
+
const done4 = () => succeed6(state.out);
|
|
8452
|
+
const eff = parseProperties(state, properties.slice(index + 1));
|
|
8453
|
+
return eff ? flatMapEager2(eff, done4) : done4();
|
|
8454
|
+
});
|
|
8455
|
+
};
|
|
8456
|
+
return (input, options) => {
|
|
8457
|
+
if (input === missing) return missingExit;
|
|
8458
|
+
if (options.errors === "all" || options.onExcessProperty !== void 0 || options.propertyOrder === "original" || options.concurrency !== void 0) {
|
|
8459
|
+
return fallback(input, options);
|
|
8460
|
+
}
|
|
8461
|
+
if (!(typeof input === "object" && input !== null && !Array.isArray(input))) {
|
|
8462
|
+
return fail5(new InvalidType(ast, input, options));
|
|
8463
|
+
}
|
|
8464
|
+
const props = compileMembers();
|
|
8465
|
+
const record2 = input;
|
|
8466
|
+
const out = {};
|
|
8467
|
+
const state = {
|
|
8468
|
+
ast,
|
|
8469
|
+
input: record2,
|
|
8470
|
+
out,
|
|
8471
|
+
issues: void 0,
|
|
8472
|
+
options
|
|
8473
|
+
};
|
|
8474
|
+
try {
|
|
8475
|
+
for (let index = 0; index < props.length; index++) {
|
|
8476
|
+
const property = props[index];
|
|
8477
|
+
const name = property.name;
|
|
8478
|
+
const hasKey = Object.hasOwn(record2, name);
|
|
8479
|
+
const value = hasKey ? record2[name] : missing;
|
|
8480
|
+
const exit3 = property.parser(value, options);
|
|
8481
|
+
if (!effectIsExit(exit3)) {
|
|
8482
|
+
return resume(state, index, exit3);
|
|
8483
|
+
}
|
|
8484
|
+
if (exit3 === sameExit) {
|
|
8485
|
+
if (hasKey) assignProperty(out, name, value);
|
|
8486
|
+
continue;
|
|
8487
|
+
}
|
|
8488
|
+
const terminal = stepProperty(state, property, exit3);
|
|
8489
|
+
if (terminal) return terminal;
|
|
8490
|
+
}
|
|
8491
|
+
} catch (error) {
|
|
8492
|
+
return die2(error);
|
|
8493
|
+
}
|
|
8494
|
+
return succeed6(out);
|
|
8495
|
+
};
|
|
8414
8496
|
}
|
|
8415
8497
|
_rebuild(recur, recurParameter, checks, encodingChecks) {
|
|
8416
8498
|
const props = mapOrSame(this.propertySignatures, (ps) => {
|
|
@@ -8438,6 +8520,28 @@ var Objects = class _Objects extends Base2 {
|
|
|
8438
8520
|
return "object";
|
|
8439
8521
|
}
|
|
8440
8522
|
};
|
|
8523
|
+
function stepProperty(s, p, exit3) {
|
|
8524
|
+
if (exit3._tag === "Failure") {
|
|
8525
|
+
return wrapPropertyKeyIssue(s, s.ast, p.name, exit3);
|
|
8526
|
+
}
|
|
8527
|
+
if (exit3 === sameExit) return;
|
|
8528
|
+
const value = exit3[args];
|
|
8529
|
+
if (value !== missing) {
|
|
8530
|
+
assignProperty(s.out, p.name, value);
|
|
8531
|
+
return;
|
|
8532
|
+
}
|
|
8533
|
+
delete s.out[p.name];
|
|
8534
|
+
if (!isOptional(p.type)) {
|
|
8535
|
+
const issue = new Pointer([p.name], new MissingKey(p.type.context?.annotations));
|
|
8536
|
+
if (s.options.errors === "all") {
|
|
8537
|
+
if (s.issues) s.issues.push(issue);
|
|
8538
|
+
else s.issues = [issue];
|
|
8539
|
+
return;
|
|
8540
|
+
} else {
|
|
8541
|
+
return fail4(new Composite(s.ast, [issue], s.input, s.options));
|
|
8542
|
+
}
|
|
8543
|
+
}
|
|
8544
|
+
}
|
|
8441
8545
|
var parseProperties = /* @__PURE__ */ iterateEager()({
|
|
8442
8546
|
onItem(s, p) {
|
|
8443
8547
|
if (!Object.hasOwn(s.input, p.name)) {
|
|
@@ -8447,28 +8551,7 @@ var parseProperties = /* @__PURE__ */ iterateEager()({
|
|
|
8447
8551
|
assignProperty(s.out, p.name, value);
|
|
8448
8552
|
return p.parser(value, s.options);
|
|
8449
8553
|
},
|
|
8450
|
-
step
|
|
8451
|
-
if (exit3._tag === "Failure") {
|
|
8452
|
-
return wrapPropertyKeyIssue(s, s.ast, p.name, exit3);
|
|
8453
|
-
}
|
|
8454
|
-
if (exit3 === sameExit) return;
|
|
8455
|
-
const value = exit3[args];
|
|
8456
|
-
if (value !== missing) {
|
|
8457
|
-
assignProperty(s.out, p.name, value);
|
|
8458
|
-
return;
|
|
8459
|
-
}
|
|
8460
|
-
delete s.out[p.name];
|
|
8461
|
-
if (!isOptional(p.type)) {
|
|
8462
|
-
const issue = new Pointer([p.name], new MissingKey(p.type.context?.annotations));
|
|
8463
|
-
if (s.options.errors === "all") {
|
|
8464
|
-
if (s.issues) s.issues.push(issue);
|
|
8465
|
-
else s.issues = [issue];
|
|
8466
|
-
return;
|
|
8467
|
-
} else {
|
|
8468
|
-
return fail4(new Composite(s.ast, [issue], s.input, s.options));
|
|
8469
|
-
}
|
|
8470
|
-
}
|
|
8471
|
-
}
|
|
8554
|
+
step: stepProperty
|
|
8472
8555
|
});
|
|
8473
8556
|
function combineChecks(a, b) {
|
|
8474
8557
|
if (!a) return b;
|
|
@@ -9205,7 +9288,7 @@ function getConstructorDescriptor(ast) {
|
|
|
9205
9288
|
return isFunction(getDescriptor) ? getDescriptor(ast.typeParameters) : void 0;
|
|
9206
9289
|
}
|
|
9207
9290
|
|
|
9208
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
9291
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/SchemaParser.js
|
|
9209
9292
|
function makeEffect(schema) {
|
|
9210
9293
|
const parser = runWithCompiler(constructorCompiler, toType(schema.ast));
|
|
9211
9294
|
return (input, options) => {
|
|
@@ -9399,7 +9482,7 @@ function makeParser(ast, compile, compileConstructorDefault2, constructorDefault
|
|
|
9399
9482
|
};
|
|
9400
9483
|
}
|
|
9401
9484
|
|
|
9402
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
9485
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/internal/schema/schema.js
|
|
9403
9486
|
var TypeId15 = "~effect/Schema/Schema";
|
|
9404
9487
|
var SchemaProto = {
|
|
9405
9488
|
[TypeId15]: TypeId15,
|
|
@@ -9430,10 +9513,10 @@ function make12(ast, options) {
|
|
|
9430
9513
|
return self;
|
|
9431
9514
|
}
|
|
9432
9515
|
|
|
9433
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
9516
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Struct.js
|
|
9434
9517
|
var lambda = (f) => f;
|
|
9435
9518
|
|
|
9436
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
9519
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Schema.js
|
|
9437
9520
|
function declareConstructor() {
|
|
9438
9521
|
return (typeParameters, run2, annotations) => {
|
|
9439
9522
|
return make13(new Declaration(typeParameters.map(getAST), (typeParameters2) => run2(typeParameters2.map((ast) => make13(ast))), annotations));
|
|
@@ -9446,9 +9529,15 @@ var SchemaErrorTypeId = "~effect/SchemaError/SchemaError";
|
|
|
9446
9529
|
var SchemaError = class extends (/* @__PURE__ */ TaggedError2("SchemaError")) {
|
|
9447
9530
|
[SchemaErrorTypeId] = SchemaErrorTypeId;
|
|
9448
9531
|
constructor(issue) {
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9532
|
+
const stackTraceLimit = getStackTraceLimit();
|
|
9533
|
+
setStackTraceLimit(0);
|
|
9534
|
+
try {
|
|
9535
|
+
super({
|
|
9536
|
+
issue
|
|
9537
|
+
});
|
|
9538
|
+
} finally {
|
|
9539
|
+
setStackTraceLimit(stackTraceLimit);
|
|
9540
|
+
}
|
|
9452
9541
|
}
|
|
9453
9542
|
get message() {
|
|
9454
9543
|
return defaultFormatter(this.issue);
|
|
@@ -9467,6 +9556,9 @@ function decodeUnknownEffect2(schema, options) {
|
|
|
9467
9556
|
};
|
|
9468
9557
|
}
|
|
9469
9558
|
function fromIssueEffect(self) {
|
|
9559
|
+
if (effectIsExit(self)) {
|
|
9560
|
+
return fromIssueExit(self);
|
|
9561
|
+
}
|
|
9470
9562
|
return catchCause2(self, (cause) => failCauseSync2(() => map6(cause, (issue) => new SchemaError(issue))));
|
|
9471
9563
|
}
|
|
9472
9564
|
function getSchemaErrorOrThrow(cause, message) {
|
|
@@ -9493,6 +9585,9 @@ function runSchemaErrorSync(self) {
|
|
|
9493
9585
|
}
|
|
9494
9586
|
throw getSchemaErrorOrThrow(exit3.cause, "Sync adapter can only throw schema errors");
|
|
9495
9587
|
}
|
|
9588
|
+
function fromIssueExit(exit3) {
|
|
9589
|
+
return isSuccess4(exit3) ? exit3 : failCause2(map6(exit3.cause, (issue) => new SchemaError(issue)));
|
|
9590
|
+
}
|
|
9496
9591
|
function decodeUnknownSync(schema, options) {
|
|
9497
9592
|
const parser = decodeUnknownEffect2(schema, options);
|
|
9498
9593
|
return (input, options2) => {
|
|
@@ -9808,7 +9903,7 @@ var Uint8Array2 = /* @__PURE__ */ instanceOf(globalThis.Uint8Array, {
|
|
|
9808
9903
|
toArbitrary: () => (fc) => fc.uint8Array()
|
|
9809
9904
|
});
|
|
9810
9905
|
|
|
9811
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
9906
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Ref.js
|
|
9812
9907
|
var Ref_exports = {};
|
|
9813
9908
|
__export(Ref_exports, {
|
|
9814
9909
|
get: () => get3,
|
|
@@ -9828,7 +9923,7 @@ __export(Ref_exports, {
|
|
|
9828
9923
|
updateSomeAndGet: () => updateSomeAndGet
|
|
9829
9924
|
});
|
|
9830
9925
|
|
|
9831
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
9926
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/MutableRef.js
|
|
9832
9927
|
var TypeId16 = "~effect/MutableRef";
|
|
9833
9928
|
var MutableRefProto = {
|
|
9834
9929
|
[TypeId16]: TypeId16,
|
|
@@ -9850,7 +9945,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
9850
9945
|
return self;
|
|
9851
9946
|
});
|
|
9852
9947
|
|
|
9853
|
-
// ../../node_modules/.pnpm/effect@4.0.0-rc.
|
|
9948
|
+
// ../../node_modules/.pnpm/effect@4.0.0-rc.112/node_modules/effect/dist/Ref.js
|
|
9854
9949
|
var TypeId17 = "~effect/Ref";
|
|
9855
9950
|
var RefProto = {
|
|
9856
9951
|
[TypeId17]: {
|
|
@@ -9919,7 +10014,7 @@ var updateSomeAndGet = /* @__PURE__ */ dual(2, (self, pf) => sync2(() => {
|
|
|
9919
10014
|
}));
|
|
9920
10015
|
var getUnsafe3 = (self) => self.ref.current;
|
|
9921
10016
|
|
|
9922
|
-
// ../../node_modules/.pnpm/effect-oxlint@0.3.2_effect@4.0.0-rc.
|
|
10017
|
+
// ../../node_modules/.pnpm/effect-oxlint@0.3.2_effect@4.0.0-rc.112/node_modules/effect-oxlint/dist/index.js
|
|
9923
10018
|
var AST_exports = /* @__PURE__ */ __exportAll({
|
|
9924
10019
|
calleeIdentifier: () => calleeIdentifier,
|
|
9925
10020
|
calleeName: () => calleeName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foldkit/oxlint-plugin",
|
|
3
|
-
"version": "0.8.0-canary.
|
|
3
|
+
"version": "0.8.0-canary.b4db026efbf8",
|
|
4
4
|
"description": "Oxlint rules for Foldkit applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^25.9.3",
|
|
20
|
-
"effect": "4.0.0-rc.
|
|
20
|
+
"effect": "4.0.0-rc.112",
|
|
21
21
|
"esbuild": "^0.28.1",
|
|
22
22
|
"rimraf": "^6.1.3",
|
|
23
23
|
"typescript": "^6.0.3",
|