@eslint-react/jsx 1.5.10-next.3 → 1.5.10-next.4
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 +145 -48
- package/dist/index.mjs +145 -48
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __export = (target, all3) => {
|
|
|
17
17
|
__defProp(target, name, { get: all3[name], enumerable: true });
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
20
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Function.js
|
|
21
21
|
var Function_exports = {};
|
|
22
22
|
__export(Function_exports, {
|
|
23
23
|
SK: () => SK,
|
|
@@ -192,14 +192,14 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
192
192
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
193
193
|
var SK = (_2, b2) => b2;
|
|
194
194
|
|
|
195
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
195
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Equivalence.js
|
|
196
196
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
197
197
|
|
|
198
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
199
|
-
var moduleVersion = "3.0.
|
|
198
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/version.js
|
|
199
|
+
var moduleVersion = "3.0.7";
|
|
200
200
|
var getCurrentVersion = () => moduleVersion;
|
|
201
201
|
|
|
202
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
202
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/GlobalValue.js
|
|
203
203
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
204
204
|
if (!(globalStoreId in globalThis)) {
|
|
205
205
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -212,7 +212,7 @@ var globalValue = (id, compute) => {
|
|
|
212
212
|
return globalStore.get(id);
|
|
213
213
|
};
|
|
214
214
|
|
|
215
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
215
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Predicate.js
|
|
216
216
|
var Predicate_exports = {};
|
|
217
217
|
__export(Predicate_exports, {
|
|
218
218
|
all: () => all,
|
|
@@ -348,6 +348,100 @@ var some = (collection) => (a2) => {
|
|
|
348
348
|
}
|
|
349
349
|
return false;
|
|
350
350
|
};
|
|
351
|
+
|
|
352
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/errors.js
|
|
353
|
+
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
354
|
+
|
|
355
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Utils.js
|
|
356
|
+
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
357
|
+
var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
|
|
358
|
+
var GenKindImpl = class {
|
|
359
|
+
value;
|
|
360
|
+
constructor(value) {
|
|
361
|
+
this.value = value;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* @since 2.0.0
|
|
365
|
+
*/
|
|
366
|
+
get _F() {
|
|
367
|
+
return identity;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @since 2.0.0
|
|
371
|
+
*/
|
|
372
|
+
get _R() {
|
|
373
|
+
return (_2) => _2;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* @since 2.0.0
|
|
377
|
+
*/
|
|
378
|
+
get _O() {
|
|
379
|
+
return (_2) => _2;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @since 2.0.0
|
|
383
|
+
*/
|
|
384
|
+
get _E() {
|
|
385
|
+
return (_2) => _2;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* @since 2.0.0
|
|
389
|
+
*/
|
|
390
|
+
[GenKindTypeId] = GenKindTypeId;
|
|
391
|
+
/**
|
|
392
|
+
* @since 2.0.0
|
|
393
|
+
*/
|
|
394
|
+
[Symbol.iterator]() {
|
|
395
|
+
return new SingleShotGen(this);
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
var SingleShotGen = class _SingleShotGen {
|
|
399
|
+
self;
|
|
400
|
+
called = false;
|
|
401
|
+
constructor(self) {
|
|
402
|
+
this.self = self;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* @since 2.0.0
|
|
406
|
+
*/
|
|
407
|
+
next(a2) {
|
|
408
|
+
return this.called ? {
|
|
409
|
+
value: a2,
|
|
410
|
+
done: true
|
|
411
|
+
} : (this.called = true, {
|
|
412
|
+
value: this.self,
|
|
413
|
+
done: false
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @since 2.0.0
|
|
418
|
+
*/
|
|
419
|
+
return(a2) {
|
|
420
|
+
return {
|
|
421
|
+
value: a2,
|
|
422
|
+
done: true
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* @since 2.0.0
|
|
427
|
+
*/
|
|
428
|
+
throw(e2) {
|
|
429
|
+
throw e2;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @since 2.0.0
|
|
433
|
+
*/
|
|
434
|
+
[Symbol.iterator]() {
|
|
435
|
+
return new _SingleShotGen(this.self);
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
var adapter = () => function() {
|
|
439
|
+
let x2 = arguments[0];
|
|
440
|
+
for (let i2 = 1; i2 < arguments.length; i2++) {
|
|
441
|
+
x2 = arguments[i2](x2);
|
|
442
|
+
}
|
|
443
|
+
return new GenKindImpl(x2);
|
|
444
|
+
};
|
|
351
445
|
var defaultIncHi = 335903614;
|
|
352
446
|
var defaultIncLo = 4150755663;
|
|
353
447
|
var MUL_HI = 1481765933 >>> 0;
|
|
@@ -475,8 +569,30 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
475
569
|
out[0] = hi;
|
|
476
570
|
out[1] = lo;
|
|
477
571
|
}
|
|
572
|
+
var YieldWrapTypeId = /* @__PURE__ */ Symbol.for("effect/Utils/YieldWrap");
|
|
573
|
+
var YieldWrap = class {
|
|
574
|
+
/**
|
|
575
|
+
* @since 3.0.6
|
|
576
|
+
*/
|
|
577
|
+
#value;
|
|
578
|
+
constructor(value) {
|
|
579
|
+
this.#value = value;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* @since 3.0.6
|
|
583
|
+
*/
|
|
584
|
+
[YieldWrapTypeId]() {
|
|
585
|
+
return this.#value;
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
function yieldWrapGet(self) {
|
|
589
|
+
if (typeof self === "object" && self !== null && YieldWrapTypeId in self) {
|
|
590
|
+
return self[YieldWrapTypeId]();
|
|
591
|
+
}
|
|
592
|
+
throw new Error(getBugErrorMessage("yieldWrapGet"));
|
|
593
|
+
}
|
|
478
594
|
|
|
479
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
595
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Hash.js
|
|
480
596
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
481
597
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
482
598
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -562,7 +678,7 @@ var cached = function() {
|
|
|
562
678
|
return hash2;
|
|
563
679
|
};
|
|
564
680
|
|
|
565
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
681
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Equal.js
|
|
566
682
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
567
683
|
function equals() {
|
|
568
684
|
if (arguments.length === 1) {
|
|
@@ -588,7 +704,7 @@ function compareBoth(self, that) {
|
|
|
588
704
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
589
705
|
var equivalence = () => equals;
|
|
590
706
|
|
|
591
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
707
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Inspectable.js
|
|
592
708
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
593
709
|
var toJSON = (x2) => {
|
|
594
710
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -600,7 +716,7 @@ var toJSON = (x2) => {
|
|
|
600
716
|
};
|
|
601
717
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
602
718
|
|
|
603
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
719
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Pipeable.js
|
|
604
720
|
var pipeArguments = (self, args) => {
|
|
605
721
|
switch (args.length) {
|
|
606
722
|
case 1:
|
|
@@ -631,37 +747,7 @@ var pipeArguments = (self, args) => {
|
|
|
631
747
|
}
|
|
632
748
|
};
|
|
633
749
|
|
|
634
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
635
|
-
var SingleShotGen2 = class _SingleShotGen {
|
|
636
|
-
self;
|
|
637
|
-
called = false;
|
|
638
|
-
constructor(self) {
|
|
639
|
-
this.self = self;
|
|
640
|
-
}
|
|
641
|
-
next(a2) {
|
|
642
|
-
return this.called ? {
|
|
643
|
-
value: a2,
|
|
644
|
-
done: true
|
|
645
|
-
} : (this.called = true, {
|
|
646
|
-
value: this.self,
|
|
647
|
-
done: false
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
return(a2) {
|
|
651
|
-
return {
|
|
652
|
-
value: a2,
|
|
653
|
-
done: true
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
|
-
throw(e2) {
|
|
657
|
-
throw e2;
|
|
658
|
-
}
|
|
659
|
-
[Symbol.iterator]() {
|
|
660
|
-
return new _SingleShotGen(this.self);
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
|
|
664
|
-
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/effectable.js
|
|
750
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/effectable.js
|
|
665
751
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
666
752
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
667
753
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -715,14 +801,14 @@ var EffectPrototype = {
|
|
|
715
801
|
return cached(this, random(this));
|
|
716
802
|
},
|
|
717
803
|
[Symbol.iterator]() {
|
|
718
|
-
return new
|
|
804
|
+
return new SingleShotGen(new YieldWrap(this));
|
|
719
805
|
},
|
|
720
806
|
pipe() {
|
|
721
807
|
return pipeArguments(this, arguments);
|
|
722
808
|
}
|
|
723
809
|
};
|
|
724
810
|
|
|
725
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
811
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/option.js
|
|
726
812
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
727
813
|
var CommonProto = {
|
|
728
814
|
...EffectPrototype,
|
|
@@ -780,7 +866,7 @@ var some2 = (value) => {
|
|
|
780
866
|
return a2;
|
|
781
867
|
};
|
|
782
868
|
|
|
783
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
869
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/either.js
|
|
784
870
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
785
871
|
var CommonProto2 = {
|
|
786
872
|
...EffectPrototype,
|
|
@@ -844,7 +930,7 @@ var right = (right2) => {
|
|
|
844
930
|
var getLeft = (self) => isRight(self) ? none : some2(self.left);
|
|
845
931
|
var getRight = (self) => isLeft(self) ? none : some2(self.right);
|
|
846
932
|
|
|
847
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
933
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Option.js
|
|
848
934
|
var Option_exports = {};
|
|
849
935
|
__export(Option_exports, {
|
|
850
936
|
Do: () => Do,
|
|
@@ -906,10 +992,10 @@ __export(Option_exports, {
|
|
|
906
992
|
zipWith: () => zipWith
|
|
907
993
|
});
|
|
908
994
|
|
|
909
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
995
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Order.js
|
|
910
996
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
911
997
|
|
|
912
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
998
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Option.js
|
|
913
999
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
914
1000
|
var none2 = () => none;
|
|
915
1001
|
var some3 = some2;
|
|
@@ -1049,13 +1135,19 @@ var bind = /* @__PURE__ */ dual(3, (self, name, f2) => flatMap(self, (a2) => map
|
|
|
1049
1135
|
[name]: b2
|
|
1050
1136
|
}))));
|
|
1051
1137
|
var Do = /* @__PURE__ */ some3({});
|
|
1138
|
+
var adapter2 = /* @__PURE__ */ adapter();
|
|
1052
1139
|
var gen = (f2) => {
|
|
1053
|
-
const iterator = f2(
|
|
1140
|
+
const iterator = f2(adapter2);
|
|
1054
1141
|
let state = iterator.next();
|
|
1055
1142
|
if (state.done) {
|
|
1056
1143
|
return some3(state.value);
|
|
1057
1144
|
} else {
|
|
1058
1145
|
let current = state.value;
|
|
1146
|
+
if (isGenKind(current)) {
|
|
1147
|
+
current = current.value;
|
|
1148
|
+
} else {
|
|
1149
|
+
current = yieldWrapGet(current);
|
|
1150
|
+
}
|
|
1059
1151
|
if (isNone2(current)) {
|
|
1060
1152
|
return current;
|
|
1061
1153
|
}
|
|
@@ -1063,6 +1155,11 @@ var gen = (f2) => {
|
|
|
1063
1155
|
state = iterator.next(current.value);
|
|
1064
1156
|
if (!state.done) {
|
|
1065
1157
|
current = state.value;
|
|
1158
|
+
if (isGenKind(current)) {
|
|
1159
|
+
current = current.value;
|
|
1160
|
+
} else {
|
|
1161
|
+
current = yieldWrapGet(current);
|
|
1162
|
+
}
|
|
1066
1163
|
if (isNone2(current)) {
|
|
1067
1164
|
return current;
|
|
1068
1165
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ var __export = (target, all3) => {
|
|
|
11
11
|
__defProp(target, name, { get: all3[name], enumerable: true });
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
14
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Function.js
|
|
15
15
|
var Function_exports = {};
|
|
16
16
|
__export(Function_exports, {
|
|
17
17
|
SK: () => SK,
|
|
@@ -186,14 +186,14 @@ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
|
|
|
186
186
|
var hole = /* @__PURE__ */ unsafeCoerce(absurd);
|
|
187
187
|
var SK = (_2, b2) => b2;
|
|
188
188
|
|
|
189
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
189
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Equivalence.js
|
|
190
190
|
var make = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
191
191
|
|
|
192
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
193
|
-
var moduleVersion = "3.0.
|
|
192
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/version.js
|
|
193
|
+
var moduleVersion = "3.0.7";
|
|
194
194
|
var getCurrentVersion = () => moduleVersion;
|
|
195
195
|
|
|
196
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
196
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/GlobalValue.js
|
|
197
197
|
var globalStoreId = /* @__PURE__ */ Symbol.for(`effect/GlobalValue/globalStoreId/${/* @__PURE__ */ getCurrentVersion()}`);
|
|
198
198
|
if (!(globalStoreId in globalThis)) {
|
|
199
199
|
globalThis[globalStoreId] = /* @__PURE__ */ new Map();
|
|
@@ -206,7 +206,7 @@ var globalValue = (id, compute) => {
|
|
|
206
206
|
return globalStore.get(id);
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
209
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Predicate.js
|
|
210
210
|
var Predicate_exports = {};
|
|
211
211
|
__export(Predicate_exports, {
|
|
212
212
|
all: () => all,
|
|
@@ -342,6 +342,100 @@ var some = (collection) => (a2) => {
|
|
|
342
342
|
}
|
|
343
343
|
return false;
|
|
344
344
|
};
|
|
345
|
+
|
|
346
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/errors.js
|
|
347
|
+
var getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
348
|
+
|
|
349
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Utils.js
|
|
350
|
+
var GenKindTypeId = /* @__PURE__ */ Symbol.for("effect/Gen/GenKind");
|
|
351
|
+
var isGenKind = (u2) => isObject(u2) && GenKindTypeId in u2;
|
|
352
|
+
var GenKindImpl = class {
|
|
353
|
+
value;
|
|
354
|
+
constructor(value) {
|
|
355
|
+
this.value = value;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* @since 2.0.0
|
|
359
|
+
*/
|
|
360
|
+
get _F() {
|
|
361
|
+
return identity;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* @since 2.0.0
|
|
365
|
+
*/
|
|
366
|
+
get _R() {
|
|
367
|
+
return (_2) => _2;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @since 2.0.0
|
|
371
|
+
*/
|
|
372
|
+
get _O() {
|
|
373
|
+
return (_2) => _2;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* @since 2.0.0
|
|
377
|
+
*/
|
|
378
|
+
get _E() {
|
|
379
|
+
return (_2) => _2;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @since 2.0.0
|
|
383
|
+
*/
|
|
384
|
+
[GenKindTypeId] = GenKindTypeId;
|
|
385
|
+
/**
|
|
386
|
+
* @since 2.0.0
|
|
387
|
+
*/
|
|
388
|
+
[Symbol.iterator]() {
|
|
389
|
+
return new SingleShotGen(this);
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
var SingleShotGen = class _SingleShotGen {
|
|
393
|
+
self;
|
|
394
|
+
called = false;
|
|
395
|
+
constructor(self) {
|
|
396
|
+
this.self = self;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* @since 2.0.0
|
|
400
|
+
*/
|
|
401
|
+
next(a2) {
|
|
402
|
+
return this.called ? {
|
|
403
|
+
value: a2,
|
|
404
|
+
done: true
|
|
405
|
+
} : (this.called = true, {
|
|
406
|
+
value: this.self,
|
|
407
|
+
done: false
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* @since 2.0.0
|
|
412
|
+
*/
|
|
413
|
+
return(a2) {
|
|
414
|
+
return {
|
|
415
|
+
value: a2,
|
|
416
|
+
done: true
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* @since 2.0.0
|
|
421
|
+
*/
|
|
422
|
+
throw(e2) {
|
|
423
|
+
throw e2;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* @since 2.0.0
|
|
427
|
+
*/
|
|
428
|
+
[Symbol.iterator]() {
|
|
429
|
+
return new _SingleShotGen(this.self);
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
var adapter = () => function() {
|
|
433
|
+
let x2 = arguments[0];
|
|
434
|
+
for (let i2 = 1; i2 < arguments.length; i2++) {
|
|
435
|
+
x2 = arguments[i2](x2);
|
|
436
|
+
}
|
|
437
|
+
return new GenKindImpl(x2);
|
|
438
|
+
};
|
|
345
439
|
var defaultIncHi = 335903614;
|
|
346
440
|
var defaultIncLo = 4150755663;
|
|
347
441
|
var MUL_HI = 1481765933 >>> 0;
|
|
@@ -469,8 +563,30 @@ function add64(out, aHi, aLo, bHi, bLo) {
|
|
|
469
563
|
out[0] = hi;
|
|
470
564
|
out[1] = lo;
|
|
471
565
|
}
|
|
566
|
+
var YieldWrapTypeId = /* @__PURE__ */ Symbol.for("effect/Utils/YieldWrap");
|
|
567
|
+
var YieldWrap = class {
|
|
568
|
+
/**
|
|
569
|
+
* @since 3.0.6
|
|
570
|
+
*/
|
|
571
|
+
#value;
|
|
572
|
+
constructor(value) {
|
|
573
|
+
this.#value = value;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @since 3.0.6
|
|
577
|
+
*/
|
|
578
|
+
[YieldWrapTypeId]() {
|
|
579
|
+
return this.#value;
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
function yieldWrapGet(self) {
|
|
583
|
+
if (typeof self === "object" && self !== null && YieldWrapTypeId in self) {
|
|
584
|
+
return self[YieldWrapTypeId]();
|
|
585
|
+
}
|
|
586
|
+
throw new Error(getBugErrorMessage("yieldWrapGet"));
|
|
587
|
+
}
|
|
472
588
|
|
|
473
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
589
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Hash.js
|
|
474
590
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => /* @__PURE__ */ new WeakMap());
|
|
475
591
|
var pcgr = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/pcgr"), () => new PCGRandom());
|
|
476
592
|
var symbol = /* @__PURE__ */ Symbol.for("effect/Hash");
|
|
@@ -556,7 +672,7 @@ var cached = function() {
|
|
|
556
672
|
return hash2;
|
|
557
673
|
};
|
|
558
674
|
|
|
559
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
675
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Equal.js
|
|
560
676
|
var symbol2 = /* @__PURE__ */ Symbol.for("effect/Equal");
|
|
561
677
|
function equals() {
|
|
562
678
|
if (arguments.length === 1) {
|
|
@@ -582,7 +698,7 @@ function compareBoth(self, that) {
|
|
|
582
698
|
var isEqual = (u2) => hasProperty(u2, symbol2);
|
|
583
699
|
var equivalence = () => equals;
|
|
584
700
|
|
|
585
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
701
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Inspectable.js
|
|
586
702
|
var NodeInspectSymbol = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
587
703
|
var toJSON = (x2) => {
|
|
588
704
|
if (hasProperty(x2, "toJSON") && isFunction2(x2["toJSON"]) && x2["toJSON"].length === 0) {
|
|
@@ -594,7 +710,7 @@ var toJSON = (x2) => {
|
|
|
594
710
|
};
|
|
595
711
|
var format = (x2) => JSON.stringify(x2, null, 2);
|
|
596
712
|
|
|
597
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
713
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Pipeable.js
|
|
598
714
|
var pipeArguments = (self, args) => {
|
|
599
715
|
switch (args.length) {
|
|
600
716
|
case 1:
|
|
@@ -625,37 +741,7 @@ var pipeArguments = (self, args) => {
|
|
|
625
741
|
}
|
|
626
742
|
};
|
|
627
743
|
|
|
628
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
629
|
-
var SingleShotGen2 = class _SingleShotGen {
|
|
630
|
-
self;
|
|
631
|
-
called = false;
|
|
632
|
-
constructor(self) {
|
|
633
|
-
this.self = self;
|
|
634
|
-
}
|
|
635
|
-
next(a2) {
|
|
636
|
-
return this.called ? {
|
|
637
|
-
value: a2,
|
|
638
|
-
done: true
|
|
639
|
-
} : (this.called = true, {
|
|
640
|
-
value: this.self,
|
|
641
|
-
done: false
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
return(a2) {
|
|
645
|
-
return {
|
|
646
|
-
value: a2,
|
|
647
|
-
done: true
|
|
648
|
-
};
|
|
649
|
-
}
|
|
650
|
-
throw(e2) {
|
|
651
|
-
throw e2;
|
|
652
|
-
}
|
|
653
|
-
[Symbol.iterator]() {
|
|
654
|
-
return new _SingleShotGen(this.self);
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
// ../../../node_modules/.pnpm/effect@3.0.5/node_modules/effect/dist/esm/internal/effectable.js
|
|
744
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/effectable.js
|
|
659
745
|
var EffectTypeId = /* @__PURE__ */ Symbol.for("effect/Effect");
|
|
660
746
|
var StreamTypeId = /* @__PURE__ */ Symbol.for("effect/Stream");
|
|
661
747
|
var SinkTypeId = /* @__PURE__ */ Symbol.for("effect/Sink");
|
|
@@ -709,14 +795,14 @@ var EffectPrototype = {
|
|
|
709
795
|
return cached(this, random(this));
|
|
710
796
|
},
|
|
711
797
|
[Symbol.iterator]() {
|
|
712
|
-
return new
|
|
798
|
+
return new SingleShotGen(new YieldWrap(this));
|
|
713
799
|
},
|
|
714
800
|
pipe() {
|
|
715
801
|
return pipeArguments(this, arguments);
|
|
716
802
|
}
|
|
717
803
|
};
|
|
718
804
|
|
|
719
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
805
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/option.js
|
|
720
806
|
var TypeId = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
721
807
|
var CommonProto = {
|
|
722
808
|
...EffectPrototype,
|
|
@@ -774,7 +860,7 @@ var some2 = (value) => {
|
|
|
774
860
|
return a2;
|
|
775
861
|
};
|
|
776
862
|
|
|
777
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
863
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/internal/either.js
|
|
778
864
|
var TypeId2 = /* @__PURE__ */ Symbol.for("effect/Either");
|
|
779
865
|
var CommonProto2 = {
|
|
780
866
|
...EffectPrototype,
|
|
@@ -838,7 +924,7 @@ var right = (right2) => {
|
|
|
838
924
|
var getLeft = (self) => isRight(self) ? none : some2(self.left);
|
|
839
925
|
var getRight = (self) => isLeft(self) ? none : some2(self.right);
|
|
840
926
|
|
|
841
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
927
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Option.js
|
|
842
928
|
var Option_exports = {};
|
|
843
929
|
__export(Option_exports, {
|
|
844
930
|
Do: () => Do,
|
|
@@ -900,10 +986,10 @@ __export(Option_exports, {
|
|
|
900
986
|
zipWith: () => zipWith
|
|
901
987
|
});
|
|
902
988
|
|
|
903
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
989
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Order.js
|
|
904
990
|
var make2 = (compare) => (self, that) => self === that ? 0 : compare(self, that);
|
|
905
991
|
|
|
906
|
-
// ../../../node_modules/.pnpm/effect@3.0.
|
|
992
|
+
// ../../../node_modules/.pnpm/effect@3.0.7/node_modules/effect/dist/esm/Option.js
|
|
907
993
|
var TypeId3 = /* @__PURE__ */ Symbol.for("effect/Option");
|
|
908
994
|
var none2 = () => none;
|
|
909
995
|
var some3 = some2;
|
|
@@ -1043,13 +1129,19 @@ var bind = /* @__PURE__ */ dual(3, (self, name, f2) => flatMap(self, (a2) => map
|
|
|
1043
1129
|
[name]: b2
|
|
1044
1130
|
}))));
|
|
1045
1131
|
var Do = /* @__PURE__ */ some3({});
|
|
1132
|
+
var adapter2 = /* @__PURE__ */ adapter();
|
|
1046
1133
|
var gen = (f2) => {
|
|
1047
|
-
const iterator = f2(
|
|
1134
|
+
const iterator = f2(adapter2);
|
|
1048
1135
|
let state = iterator.next();
|
|
1049
1136
|
if (state.done) {
|
|
1050
1137
|
return some3(state.value);
|
|
1051
1138
|
} else {
|
|
1052
1139
|
let current = state.value;
|
|
1140
|
+
if (isGenKind(current)) {
|
|
1141
|
+
current = current.value;
|
|
1142
|
+
} else {
|
|
1143
|
+
current = yieldWrapGet(current);
|
|
1144
|
+
}
|
|
1053
1145
|
if (isNone2(current)) {
|
|
1054
1146
|
return current;
|
|
1055
1147
|
}
|
|
@@ -1057,6 +1149,11 @@ var gen = (f2) => {
|
|
|
1057
1149
|
state = iterator.next(current.value);
|
|
1058
1150
|
if (!state.done) {
|
|
1059
1151
|
current = state.value;
|
|
1152
|
+
if (isGenKind(current)) {
|
|
1153
|
+
current = current.value;
|
|
1154
|
+
} else {
|
|
1155
|
+
current = yieldWrapGet(current);
|
|
1156
|
+
}
|
|
1060
1157
|
if (isNone2(current)) {
|
|
1061
1158
|
return current;
|
|
1062
1159
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "1.5.10-next.
|
|
3
|
+
"version": "1.5.10-next.4",
|
|
4
4
|
"description": "ESLint React's TSESTree AST utility module for static analysis of JSX.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@typescript-eslint/types": "^7.7.1",
|
|
40
40
|
"@typescript-eslint/utils": "^7.7.1",
|
|
41
41
|
"micro-memoize": "4.1.2",
|
|
42
|
-
"@eslint-react/ast": "1.5.10-next.
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/var": "1.5.10-next.
|
|
46
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/ast": "1.5.10-next.4",
|
|
43
|
+
"@eslint-react/types": "1.5.10-next.4",
|
|
44
|
+
"@eslint-react/tools": "1.5.10-next.4",
|
|
45
|
+
"@eslint-react/var": "1.5.10-next.4",
|
|
46
|
+
"@eslint-react/shared": "1.5.10-next.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"effect": "3.0.
|
|
49
|
+
"effect": "3.0.7"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup",
|