@candypoets/nipworker 0.91.3 → 0.93.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 +68 -293
- package/dist/cache/index.js +39 -39
- package/dist/cache/pkg/cache.d.ts +8 -8
- package/dist/cache/pkg/cache_bg.wasm.d.ts +8 -8
- package/dist/connections/index.js +115 -103
- package/dist/connections/pkg/connections.d.ts +15 -9
- package/dist/connections/pkg/connections_bg.wasm.d.ts +10 -9
- package/dist/connections/proxy.js +1 -1
- package/dist/connections/proxy.js.map +3 -3
- package/dist/crypto/index.js +71 -71
- package/dist/crypto/pkg/crypto.d.ts +7 -7
- package/dist/crypto/pkg/crypto_bg.wasm.d.ts +7 -7
- package/dist/generated/nostr/fb/publish.d.ts +8 -1
- package/dist/generated/nostr/fb/publish.d.ts.map +1 -1
- package/dist/generated/nostr/fb/video-data.d.ts +6 -2
- package/dist/generated/nostr/fb/video-data.d.ts.map +1 -1
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +55 -55
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index2.js +231 -182
- package/dist/parser/index.js +49 -49
- package/dist/relayProxyServer.js +251 -221
- package/dist/worker-message.js +83 -74
- package/package.json +1 -1
package/dist/worker-message.js
CHANGED
|
@@ -450,7 +450,7 @@ class ss {
|
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class at {
|
|
454
454
|
constructor() {
|
|
455
455
|
this.bb = null, this.bb_pos = 0;
|
|
456
456
|
}
|
|
@@ -458,10 +458,10 @@ class rt {
|
|
|
458
458
|
return this.bb_pos = t, this.bb = s, this;
|
|
459
459
|
}
|
|
460
460
|
static getRootAsRelayInfo(t, s) {
|
|
461
|
-
return (s || new
|
|
461
|
+
return (s || new at()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
462
462
|
}
|
|
463
463
|
static getSizePrefixedRootAsRelayInfo(t, s) {
|
|
464
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
464
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new at()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
465
465
|
}
|
|
466
466
|
url(t) {
|
|
467
467
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -492,7 +492,7 @@ class rt {
|
|
|
492
492
|
return t.requiredField(s, 4), s;
|
|
493
493
|
}
|
|
494
494
|
static createRelayInfo(t, s, e, i) {
|
|
495
|
-
return
|
|
495
|
+
return at.startRelayInfo(t), at.addUrl(t, s), at.addRead(t, e), at.addWrite(t, i), at.endRelayInfo(t);
|
|
496
496
|
}
|
|
497
497
|
unpack() {
|
|
498
498
|
return new es(
|
|
@@ -511,7 +511,7 @@ class es {
|
|
|
511
511
|
}
|
|
512
512
|
pack(t) {
|
|
513
513
|
const s = this.url !== null ? t.createString(this.url) : 0;
|
|
514
|
-
return
|
|
514
|
+
return at.createRelayInfo(
|
|
515
515
|
t,
|
|
516
516
|
s,
|
|
517
517
|
this.read,
|
|
@@ -534,7 +534,7 @@ class It {
|
|
|
534
534
|
}
|
|
535
535
|
relays(t, s) {
|
|
536
536
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
537
|
-
return e ? (s || new
|
|
537
|
+
return e ? (s || new at()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
538
538
|
}
|
|
539
539
|
relaysLength() {
|
|
540
540
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -583,7 +583,7 @@ class is {
|
|
|
583
583
|
);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
class
|
|
586
|
+
class lt {
|
|
587
587
|
constructor() {
|
|
588
588
|
this.bb = null, this.bb_pos = 0;
|
|
589
589
|
}
|
|
@@ -591,10 +591,10 @@ class ft {
|
|
|
591
591
|
return this.bb_pos = t, this.bb = s, this;
|
|
592
592
|
}
|
|
593
593
|
static getRootAsMintInfo(t, s) {
|
|
594
|
-
return (s || new
|
|
594
|
+
return (s || new lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
595
595
|
}
|
|
596
596
|
static getSizePrefixedRootAsMintInfo(t, s) {
|
|
597
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
597
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
598
598
|
}
|
|
599
599
|
url(t) {
|
|
600
600
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -631,7 +631,7 @@ class ft {
|
|
|
631
631
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
632
632
|
}
|
|
633
633
|
static createMintInfo(t, s, e) {
|
|
634
|
-
return
|
|
634
|
+
return lt.startMintInfo(t), lt.addUrl(t, s), lt.addBaseUnits(t, e), lt.endMintInfo(t);
|
|
635
635
|
}
|
|
636
636
|
unpack() {
|
|
637
637
|
return new ns(
|
|
@@ -648,8 +648,8 @@ class ns {
|
|
|
648
648
|
this.url = t, this.baseUnits = s;
|
|
649
649
|
}
|
|
650
650
|
pack(t) {
|
|
651
|
-
const s = this.url !== null ? t.createString(this.url) : 0, e =
|
|
652
|
-
return
|
|
651
|
+
const s = this.url !== null ? t.createString(this.url) : 0, e = lt.createBaseUnitsVector(t, t.createObjectOffsetList(this.baseUnits));
|
|
652
|
+
return lt.createMintInfo(
|
|
653
653
|
t,
|
|
654
654
|
s,
|
|
655
655
|
e
|
|
@@ -671,7 +671,7 @@ class W {
|
|
|
671
671
|
}
|
|
672
672
|
trustedMints(t, s) {
|
|
673
673
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
674
|
-
return e ? (s || new
|
|
674
|
+
return e ? (s || new lt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
675
675
|
}
|
|
676
676
|
trustedMintsLength() {
|
|
677
677
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1059,7 +1059,7 @@ class ds {
|
|
|
1059
1059
|
);
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
|
-
class
|
|
1062
|
+
class ot {
|
|
1063
1063
|
constructor() {
|
|
1064
1064
|
this.bb = null, this.bb_pos = 0;
|
|
1065
1065
|
}
|
|
@@ -1067,10 +1067,10 @@ class lt {
|
|
|
1067
1067
|
return this.bb_pos = t, this.bb = s, this;
|
|
1068
1068
|
}
|
|
1069
1069
|
static getRootAsVideoData(t, s) {
|
|
1070
|
-
return (s || new
|
|
1070
|
+
return (s || new ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1071
1071
|
}
|
|
1072
1072
|
static getSizePrefixedRootAsVideoData(t, s) {
|
|
1073
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1073
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1074
1074
|
}
|
|
1075
1075
|
url(t) {
|
|
1076
1076
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1080,8 +1080,12 @@ class lt {
|
|
|
1080
1080
|
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1081
1081
|
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1082
1082
|
}
|
|
1083
|
+
dim(t) {
|
|
1084
|
+
const s = this.bb.__offset(this.bb_pos, 8);
|
|
1085
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1086
|
+
}
|
|
1083
1087
|
static startVideoData(t) {
|
|
1084
|
-
t.startObject(
|
|
1088
|
+
t.startObject(3);
|
|
1085
1089
|
}
|
|
1086
1090
|
static addUrl(t, s) {
|
|
1087
1091
|
t.addFieldOffset(0, s, 0);
|
|
@@ -1089,33 +1093,38 @@ class lt {
|
|
|
1089
1093
|
static addThumbnail(t, s) {
|
|
1090
1094
|
t.addFieldOffset(1, s, 0);
|
|
1091
1095
|
}
|
|
1096
|
+
static addDim(t, s) {
|
|
1097
|
+
t.addFieldOffset(2, s, 0);
|
|
1098
|
+
}
|
|
1092
1099
|
static endVideoData(t) {
|
|
1093
1100
|
const s = t.endObject();
|
|
1094
1101
|
return t.requiredField(s, 4), s;
|
|
1095
1102
|
}
|
|
1096
|
-
static createVideoData(t, s, e) {
|
|
1097
|
-
return
|
|
1103
|
+
static createVideoData(t, s, e, i) {
|
|
1104
|
+
return ot.startVideoData(t), ot.addUrl(t, s), ot.addThumbnail(t, e), ot.addDim(t, i), ot.endVideoData(t);
|
|
1098
1105
|
}
|
|
1099
1106
|
unpack() {
|
|
1100
1107
|
return new bs(
|
|
1101
1108
|
this.url(),
|
|
1102
|
-
this.thumbnail()
|
|
1109
|
+
this.thumbnail(),
|
|
1110
|
+
this.dim()
|
|
1103
1111
|
);
|
|
1104
1112
|
}
|
|
1105
1113
|
unpackTo(t) {
|
|
1106
|
-
t.url = this.url(), t.thumbnail = this.thumbnail();
|
|
1114
|
+
t.url = this.url(), t.thumbnail = this.thumbnail(), t.dim = this.dim();
|
|
1107
1115
|
}
|
|
1108
1116
|
}
|
|
1109
1117
|
class bs {
|
|
1110
|
-
constructor(t = null, s = null) {
|
|
1111
|
-
this.url = t, this.thumbnail = s;
|
|
1118
|
+
constructor(t = null, s = null, e = null) {
|
|
1119
|
+
this.url = t, this.thumbnail = s, this.dim = e;
|
|
1112
1120
|
}
|
|
1113
1121
|
pack(t) {
|
|
1114
|
-
const s = this.url !== null ? t.createString(this.url) : 0, e = this.thumbnail !== null ? t.createString(this.thumbnail) : 0;
|
|
1115
|
-
return
|
|
1122
|
+
const s = this.url !== null ? t.createString(this.url) : 0, e = this.thumbnail !== null ? t.createString(this.thumbnail) : 0, i = this.dim !== null ? t.createString(this.dim) : 0;
|
|
1123
|
+
return ot.createVideoData(
|
|
1116
1124
|
t,
|
|
1117
1125
|
s,
|
|
1118
|
-
e
|
|
1126
|
+
e,
|
|
1127
|
+
i
|
|
1119
1128
|
);
|
|
1120
1129
|
}
|
|
1121
1130
|
}
|
|
@@ -1138,7 +1147,7 @@ class Kt {
|
|
|
1138
1147
|
}
|
|
1139
1148
|
video(t) {
|
|
1140
1149
|
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1141
|
-
return s ? (t || new
|
|
1150
|
+
return s ? (t || new ot()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
1142
1151
|
}
|
|
1143
1152
|
static startMediaItem(t) {
|
|
1144
1153
|
t.startObject(2);
|
|
@@ -1348,7 +1357,7 @@ function Dt(n, t) {
|
|
|
1348
1357
|
case "ImageData":
|
|
1349
1358
|
return t(new nt());
|
|
1350
1359
|
case "VideoData":
|
|
1351
|
-
return t(new
|
|
1360
|
+
return t(new ot());
|
|
1352
1361
|
case "MediaGroupData":
|
|
1353
1362
|
return t(new Lt());
|
|
1354
1363
|
case "NostrData":
|
|
@@ -3259,7 +3268,7 @@ class Ts {
|
|
|
3259
3268
|
);
|
|
3260
3269
|
}
|
|
3261
3270
|
}
|
|
3262
|
-
class
|
|
3271
|
+
class rt {
|
|
3263
3272
|
constructor() {
|
|
3264
3273
|
this.bb = null, this.bb_pos = 0;
|
|
3265
3274
|
}
|
|
@@ -3267,10 +3276,10 @@ class ot {
|
|
|
3267
3276
|
return this.bb_pos = t, this.bb = s, this;
|
|
3268
3277
|
}
|
|
3269
3278
|
static getRootAsContact(t, s) {
|
|
3270
|
-
return (s || new
|
|
3279
|
+
return (s || new rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3271
3280
|
}
|
|
3272
3281
|
static getSizePrefixedRootAsContact(t, s) {
|
|
3273
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3282
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3274
3283
|
}
|
|
3275
3284
|
pubkey(t) {
|
|
3276
3285
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3314,7 +3323,7 @@ class ot {
|
|
|
3314
3323
|
return t.requiredField(s, 4), s;
|
|
3315
3324
|
}
|
|
3316
3325
|
static createContact(t, s, e, i) {
|
|
3317
|
-
return
|
|
3326
|
+
return rt.startContact(t), rt.addPubkey(t, s), rt.addRelays(t, e), rt.addPetname(t, i), rt.endContact(t);
|
|
3318
3327
|
}
|
|
3319
3328
|
unpack() {
|
|
3320
3329
|
return new ws(
|
|
@@ -3332,8 +3341,8 @@ class ws {
|
|
|
3332
3341
|
this.pubkey = t, this.relays = s, this.petname = e;
|
|
3333
3342
|
}
|
|
3334
3343
|
pack(t) {
|
|
3335
|
-
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e =
|
|
3336
|
-
return
|
|
3344
|
+
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = rt.createRelaysVector(t, t.createObjectOffsetList(this.relays)), i = this.petname !== null ? t.createString(this.petname) : 0;
|
|
3345
|
+
return rt.createContact(
|
|
3337
3346
|
t,
|
|
3338
3347
|
s,
|
|
3339
3348
|
e,
|
|
@@ -3356,7 +3365,7 @@ class Ft {
|
|
|
3356
3365
|
}
|
|
3357
3366
|
contacts(t, s) {
|
|
3358
3367
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
3359
|
-
return e ? (s || new
|
|
3368
|
+
return e ? (s || new rt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
3360
3369
|
}
|
|
3361
3370
|
contactsLength() {
|
|
3362
3371
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3546,7 +3555,7 @@ class Cs {
|
|
|
3546
3555
|
);
|
|
3547
3556
|
}
|
|
3548
3557
|
}
|
|
3549
|
-
class
|
|
3558
|
+
class ht {
|
|
3550
3559
|
constructor() {
|
|
3551
3560
|
this.bb = null, this.bb_pos = 0;
|
|
3552
3561
|
}
|
|
@@ -3554,10 +3563,10 @@ class at {
|
|
|
3554
3563
|
return this.bb_pos = t, this.bb = s, this;
|
|
3555
3564
|
}
|
|
3556
3565
|
static getRootAsKind7374Parsed(t, s) {
|
|
3557
|
-
return (s || new
|
|
3566
|
+
return (s || new ht()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3558
3567
|
}
|
|
3559
3568
|
static getSizePrefixedRootAsKind7374Parsed(t, s) {
|
|
3560
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3569
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ht()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3561
3570
|
}
|
|
3562
3571
|
quoteId(t) {
|
|
3563
3572
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3588,7 +3597,7 @@ class at {
|
|
|
3588
3597
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
3589
3598
|
}
|
|
3590
3599
|
static createKind7374Parsed(t, s, e, i) {
|
|
3591
|
-
return
|
|
3600
|
+
return ht.startKind7374Parsed(t), ht.addQuoteId(t, s), ht.addMintUrl(t, e), ht.addExpiration(t, i), ht.endKind7374Parsed(t);
|
|
3592
3601
|
}
|
|
3593
3602
|
unpack() {
|
|
3594
3603
|
return new Ks(
|
|
@@ -3607,7 +3616,7 @@ class Ks {
|
|
|
3607
3616
|
}
|
|
3608
3617
|
pack(t) {
|
|
3609
3618
|
const s = this.quoteId !== null ? t.createString(this.quoteId) : 0, e = this.mintUrl !== null ? t.createString(this.mintUrl) : 0;
|
|
3610
|
-
return
|
|
3619
|
+
return ht.createKind7374Parsed(
|
|
3611
3620
|
t,
|
|
3612
3621
|
s,
|
|
3613
3622
|
e,
|
|
@@ -3615,7 +3624,7 @@ class Ks {
|
|
|
3615
3624
|
);
|
|
3616
3625
|
}
|
|
3617
3626
|
}
|
|
3618
|
-
class
|
|
3627
|
+
class ct {
|
|
3619
3628
|
constructor() {
|
|
3620
3629
|
this.bb = null, this.bb_pos = 0;
|
|
3621
3630
|
}
|
|
@@ -3623,10 +3632,10 @@ class ht {
|
|
|
3623
3632
|
return this.bb_pos = t, this.bb = s, this;
|
|
3624
3633
|
}
|
|
3625
3634
|
static getRootAsDLEQProof(t, s) {
|
|
3626
|
-
return (s || new
|
|
3635
|
+
return (s || new ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3627
3636
|
}
|
|
3628
3637
|
static getSizePrefixedRootAsDLEQProof(t, s) {
|
|
3629
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3638
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3630
3639
|
}
|
|
3631
3640
|
e(t) {
|
|
3632
3641
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3657,7 +3666,7 @@ class ht {
|
|
|
3657
3666
|
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
3658
3667
|
}
|
|
3659
3668
|
static createDLEQProof(t, s, e, i) {
|
|
3660
|
-
return
|
|
3669
|
+
return ct.startDLEQProof(t), ct.addE(t, s), ct.addS(t, e), ct.addR(t, i), ct.endDLEQProof(t);
|
|
3661
3670
|
}
|
|
3662
3671
|
unpack() {
|
|
3663
3672
|
return new Ns(
|
|
@@ -3676,7 +3685,7 @@ class Ns {
|
|
|
3676
3685
|
}
|
|
3677
3686
|
pack(t) {
|
|
3678
3687
|
const s = this.e !== null ? t.createString(this.e) : 0, e = this.s !== null ? t.createString(this.s) : 0, i = this.r !== null ? t.createString(this.r) : 0;
|
|
3679
|
-
return
|
|
3688
|
+
return ct.createDLEQProof(
|
|
3680
3689
|
t,
|
|
3681
3690
|
s,
|
|
3682
3691
|
e,
|
|
@@ -3916,7 +3925,7 @@ class j {
|
|
|
3916
3925
|
}
|
|
3917
3926
|
dleq(t) {
|
|
3918
3927
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
3919
|
-
return s ? (t || new
|
|
3928
|
+
return s ? (t || new ct()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
3920
3929
|
}
|
|
3921
3930
|
witnessType() {
|
|
3922
3931
|
const t = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -5241,7 +5250,7 @@ class Js {
|
|
|
5241
5250
|
);
|
|
5242
5251
|
}
|
|
5243
5252
|
}
|
|
5244
|
-
class
|
|
5253
|
+
class dt {
|
|
5245
5254
|
constructor() {
|
|
5246
5255
|
this.bb = null, this.bb_pos = 0;
|
|
5247
5256
|
}
|
|
@@ -5249,10 +5258,10 @@ class ct {
|
|
|
5249
5258
|
return this.bb_pos = t, this.bb = s, this;
|
|
5250
5259
|
}
|
|
5251
5260
|
static getRootAsPreRefEvent(t, s) {
|
|
5252
|
-
return (s || new
|
|
5261
|
+
return (s || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5253
5262
|
}
|
|
5254
5263
|
static getSizePrefixedRootAsPreRefEvent(t, s) {
|
|
5255
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
5264
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5256
5265
|
}
|
|
5257
5266
|
id(t) {
|
|
5258
5267
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5283,7 +5292,7 @@ class ct {
|
|
|
5283
5292
|
return t.requiredField(s, 4), s;
|
|
5284
5293
|
}
|
|
5285
5294
|
static createPreRefEvent(t, s, e, i) {
|
|
5286
|
-
return
|
|
5295
|
+
return dt.startPreRefEvent(t), dt.addId(t, s), dt.addRelay(t, e), dt.addMarker(t, i), dt.endPreRefEvent(t);
|
|
5287
5296
|
}
|
|
5288
5297
|
unpack() {
|
|
5289
5298
|
return new $s(
|
|
@@ -5302,7 +5311,7 @@ class $s {
|
|
|
5302
5311
|
}
|
|
5303
5312
|
pack(t) {
|
|
5304
5313
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.relay !== null ? t.createString(this.relay) : 0, i = this.marker !== null ? t.createString(this.marker) : 0;
|
|
5305
|
-
return
|
|
5314
|
+
return dt.createPreRefEvent(
|
|
5306
5315
|
t,
|
|
5307
5316
|
s,
|
|
5308
5317
|
e,
|
|
@@ -5429,7 +5438,7 @@ class f {
|
|
|
5429
5438
|
}
|
|
5430
5439
|
events(t, s) {
|
|
5431
5440
|
const e = this.bb.__offset(this.bb_pos, 48);
|
|
5432
|
-
return e ? (s || new
|
|
5441
|
+
return e ? (s || new dt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5433
5442
|
}
|
|
5434
5443
|
eventsLength() {
|
|
5435
5444
|
const t = this.bb.__offset(this.bb_pos, 48);
|
|
@@ -5701,7 +5710,7 @@ function Wt(n, t) {
|
|
|
5701
5710
|
case "Kind17375Parsed":
|
|
5702
5711
|
return t(new X());
|
|
5703
5712
|
case "Kind7374Parsed":
|
|
5704
|
-
return t(new
|
|
5713
|
+
return t(new ht());
|
|
5705
5714
|
case "Kind7375Parsed":
|
|
5706
5715
|
return t(new H());
|
|
5707
5716
|
case "Kind7376Parsed":
|
|
@@ -6115,7 +6124,7 @@ class ee {
|
|
|
6115
6124
|
);
|
|
6116
6125
|
}
|
|
6117
6126
|
}
|
|
6118
|
-
class
|
|
6127
|
+
class bt {
|
|
6119
6128
|
constructor() {
|
|
6120
6129
|
this.bb = null, this.bb_pos = 0;
|
|
6121
6130
|
}
|
|
@@ -6123,10 +6132,10 @@ class dt {
|
|
|
6123
6132
|
return this.bb_pos = t, this.bb = s, this;
|
|
6124
6133
|
}
|
|
6125
6134
|
static getRootAsConnectionStatus(t, s) {
|
|
6126
|
-
return (s || new
|
|
6135
|
+
return (s || new bt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6127
6136
|
}
|
|
6128
6137
|
static getSizePrefixedRootAsConnectionStatus(t, s) {
|
|
6129
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6138
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new bt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6130
6139
|
}
|
|
6131
6140
|
relayUrl(t) {
|
|
6132
6141
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6157,7 +6166,7 @@ class dt {
|
|
|
6157
6166
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
6158
6167
|
}
|
|
6159
6168
|
static createConnectionStatus(t, s, e, i) {
|
|
6160
|
-
return
|
|
6169
|
+
return bt.startConnectionStatus(t), bt.addRelayUrl(t, s), bt.addStatus(t, e), bt.addMessage(t, i), bt.endConnectionStatus(t);
|
|
6161
6170
|
}
|
|
6162
6171
|
unpack() {
|
|
6163
6172
|
return new ie(
|
|
@@ -6176,7 +6185,7 @@ class ie {
|
|
|
6176
6185
|
}
|
|
6177
6186
|
pack(t) {
|
|
6178
6187
|
const s = this.relayUrl !== null ? t.createString(this.relayUrl) : 0, e = this.status !== null ? t.createString(this.status) : 0, i = this.message !== null ? t.createString(this.message) : 0;
|
|
6179
|
-
return
|
|
6188
|
+
return bt.createConnectionStatus(
|
|
6180
6189
|
t,
|
|
6181
6190
|
s,
|
|
6182
6191
|
e,
|
|
@@ -6184,7 +6193,7 @@ class ie {
|
|
|
6184
6193
|
);
|
|
6185
6194
|
}
|
|
6186
6195
|
}
|
|
6187
|
-
class
|
|
6196
|
+
class ft {
|
|
6188
6197
|
constructor() {
|
|
6189
6198
|
this.bb = null, this.bb_pos = 0;
|
|
6190
6199
|
}
|
|
@@ -6192,10 +6201,10 @@ class bt {
|
|
|
6192
6201
|
return this.bb_pos = t, this.bb = s, this;
|
|
6193
6202
|
}
|
|
6194
6203
|
static getRootAsCountResponse(t, s) {
|
|
6195
|
-
return (s || new
|
|
6204
|
+
return (s || new ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6196
6205
|
}
|
|
6197
6206
|
static getSizePrefixedRootAsCountResponse(t, s) {
|
|
6198
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6207
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6199
6208
|
}
|
|
6200
6209
|
count() {
|
|
6201
6210
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6225,7 +6234,7 @@ class bt {
|
|
|
6225
6234
|
return t.endObject();
|
|
6226
6235
|
}
|
|
6227
6236
|
static createCountResponse(t, s, e, i) {
|
|
6228
|
-
return
|
|
6237
|
+
return ft.startCountResponse(t), ft.addCount(t, s), ft.addKind(t, e), ft.addYou(t, i), ft.endCountResponse(t);
|
|
6229
6238
|
}
|
|
6230
6239
|
unpack() {
|
|
6231
6240
|
return new ne(
|
|
@@ -6243,7 +6252,7 @@ class ne {
|
|
|
6243
6252
|
this.count = t, this.kind = s, this.you = e;
|
|
6244
6253
|
}
|
|
6245
6254
|
pack(t) {
|
|
6246
|
-
return
|
|
6255
|
+
return ft.createCountResponse(
|
|
6247
6256
|
t,
|
|
6248
6257
|
this.count,
|
|
6249
6258
|
this.kind,
|
|
@@ -6602,9 +6611,9 @@ function Qt(n, t) {
|
|
|
6602
6611
|
case "NostrEvent":
|
|
6603
6612
|
return t(new w());
|
|
6604
6613
|
case "ConnectionStatus":
|
|
6605
|
-
return t(new dt());
|
|
6606
|
-
case "CountResponse":
|
|
6607
6614
|
return t(new bt());
|
|
6615
|
+
case "CountResponse":
|
|
6616
|
+
return t(new ft());
|
|
6608
6617
|
case "Eoce":
|
|
6609
6618
|
return t(new wt());
|
|
6610
6619
|
case "BufferFull":
|
|
@@ -6724,7 +6733,7 @@ export {
|
|
|
6724
6733
|
_s as $,
|
|
6725
6734
|
R as A,
|
|
6726
6735
|
St as B,
|
|
6727
|
-
|
|
6736
|
+
bt as C,
|
|
6728
6737
|
L as D,
|
|
6729
6738
|
wt as E,
|
|
6730
6739
|
P as F,
|
|
@@ -6749,14 +6758,14 @@ export {
|
|
|
6749
6758
|
rs as Y,
|
|
6750
6759
|
hs as Z,
|
|
6751
6760
|
ds as _,
|
|
6752
|
-
|
|
6753
|
-
|
|
6761
|
+
ft as a,
|
|
6762
|
+
dt as a$,
|
|
6754
6763
|
g as a0,
|
|
6755
6764
|
se as a1,
|
|
6756
6765
|
$t as a2,
|
|
6757
6766
|
Jt as a3,
|
|
6758
6767
|
ie as a4,
|
|
6759
|
-
|
|
6768
|
+
rt as a5,
|
|
6760
6769
|
ws as a6,
|
|
6761
6770
|
C as a7,
|
|
6762
6771
|
B as a8,
|
|
@@ -6777,7 +6786,7 @@ export {
|
|
|
6777
6786
|
mt as aN,
|
|
6778
6787
|
ms as aO,
|
|
6779
6788
|
Kt as aP,
|
|
6780
|
-
|
|
6789
|
+
lt as aQ,
|
|
6781
6790
|
ns as aR,
|
|
6782
6791
|
gt as aS,
|
|
6783
6792
|
ce as aT,
|
|
@@ -6789,7 +6798,7 @@ export {
|
|
|
6789
6798
|
it as aZ,
|
|
6790
6799
|
Js as a_,
|
|
6791
6800
|
ne as aa,
|
|
6792
|
-
|
|
6801
|
+
ct as ab,
|
|
6793
6802
|
Ns as ac,
|
|
6794
6803
|
_t as ad,
|
|
6795
6804
|
Fs as ae,
|
|
@@ -6824,7 +6833,7 @@ export {
|
|
|
6824
6833
|
re as b6,
|
|
6825
6834
|
ae as b7,
|
|
6826
6835
|
Nt as b8,
|
|
6827
|
-
|
|
6836
|
+
at as b9,
|
|
6828
6837
|
es as ba,
|
|
6829
6838
|
Ct as bb,
|
|
6830
6839
|
he as bc,
|
|
@@ -6850,7 +6859,7 @@ export {
|
|
|
6850
6859
|
It as k,
|
|
6851
6860
|
W as l,
|
|
6852
6861
|
X as m,
|
|
6853
|
-
|
|
6862
|
+
ht as n,
|
|
6854
6863
|
H as o,
|
|
6855
6864
|
v as p,
|
|
6856
6865
|
I as q,
|
|
@@ -6859,7 +6868,7 @@ export {
|
|
|
6859
6868
|
qt as t,
|
|
6860
6869
|
yt as u,
|
|
6861
6870
|
Vt as v,
|
|
6862
|
-
|
|
6871
|
+
ot as w,
|
|
6863
6872
|
Lt as x,
|
|
6864
6873
|
U as y,
|
|
6865
6874
|
tt as z
|