@nil-/xit 0.2.2 → 0.2.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/assets/bundler.js +260 -258
- package/assets/index.js +17 -17
- package/assets/svelte/index.js +1552 -1653
- package/assets/svelte/internal/client.js +1384 -1271
- package/assets/svelte/internal/disclose-version.js +3 -2
- package/assets/svelte/motion.js +1 -1
- package/assets/svelte/store.js +98 -93
- package/package.json +5 -4
- package/test.d.ts +8 -0
- package/test.js +31 -0
package/assets/index.js
CHANGED
|
@@ -1358,7 +1358,7 @@ class Dt {
|
|
|
1358
1358
|
return U.createTaggedSignalNotify(t, e, i, a, this.valueType, r);
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
class
|
|
1361
|
+
class X {
|
|
1362
1362
|
constructor() {
|
|
1363
1363
|
n(this, "bb", null);
|
|
1364
1364
|
n(this, "bb_pos", 0);
|
|
@@ -1367,10 +1367,10 @@ class $ {
|
|
|
1367
1367
|
return this.bb_pos = t, this.bb = e, this;
|
|
1368
1368
|
}
|
|
1369
1369
|
static getRootAsTaggedSignalRequest(t, e) {
|
|
1370
|
-
return (e || new
|
|
1370
|
+
return (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1371
1371
|
}
|
|
1372
1372
|
static getSizePrefixedRootAsTaggedSignalRequest(t, e) {
|
|
1373
|
-
return t.setPosition(t.position() + f), (e || new
|
|
1373
|
+
return t.setPosition(t.position() + f), (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1374
1374
|
}
|
|
1375
1375
|
id(t) {
|
|
1376
1376
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1394,7 +1394,7 @@ class $ {
|
|
|
1394
1394
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
1395
1395
|
}
|
|
1396
1396
|
static createTaggedSignalRequest(t, e, i) {
|
|
1397
|
-
return
|
|
1397
|
+
return X.startTaggedSignalRequest(t), X.addId(t, e), X.addTag(t, i), X.endTaggedSignalRequest(t);
|
|
1398
1398
|
}
|
|
1399
1399
|
unpack() {
|
|
1400
1400
|
return new Gt(this.id(), this.tag());
|
|
@@ -1411,7 +1411,7 @@ class Gt {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
pack(t) {
|
|
1413
1413
|
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
|
|
1414
|
-
return
|
|
1414
|
+
return X.createTaggedSignalRequest(t, e, i);
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
1417
|
class T {
|
|
@@ -1491,7 +1491,7 @@ class ce {
|
|
|
1491
1491
|
return T.createTaggedSignalResponse(t, e, i, a);
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
|
-
class
|
|
1494
|
+
class $ {
|
|
1495
1495
|
constructor() {
|
|
1496
1496
|
n(this, "bb", null);
|
|
1497
1497
|
n(this, "bb_pos", 0);
|
|
@@ -1500,10 +1500,10 @@ class X {
|
|
|
1500
1500
|
return this.bb_pos = t, this.bb = e, this;
|
|
1501
1501
|
}
|
|
1502
1502
|
static getRootAsTaggedValueRequest(t, e) {
|
|
1503
|
-
return (e || new
|
|
1503
|
+
return (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1504
1504
|
}
|
|
1505
1505
|
static getSizePrefixedRootAsTaggedValueRequest(t, e) {
|
|
1506
|
-
return t.setPosition(t.position() + f), (e || new
|
|
1506
|
+
return t.setPosition(t.position() + f), (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1507
1507
|
}
|
|
1508
1508
|
id(t) {
|
|
1509
1509
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1527,7 +1527,7 @@ class X {
|
|
|
1527
1527
|
return t.requiredField(e, 4), t.requiredField(e, 6), e;
|
|
1528
1528
|
}
|
|
1529
1529
|
static createTaggedValueRequest(t, e, i) {
|
|
1530
|
-
return
|
|
1530
|
+
return $.startTaggedValueRequest(t), $.addId(t, e), $.addTag(t, i), $.endTaggedValueRequest(t);
|
|
1531
1531
|
}
|
|
1532
1532
|
unpack() {
|
|
1533
1533
|
return new Wt(this.id(), this.tag());
|
|
@@ -1544,7 +1544,7 @@ class Wt {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
pack(t) {
|
|
1546
1546
|
const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
|
|
1547
|
-
return
|
|
1547
|
+
return $.createTaggedValueRequest(t, e, i);
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
1550
|
class S {
|
|
@@ -1961,13 +1961,13 @@ class nt {
|
|
|
1961
1961
|
return nt.startUniqueSignalRequest(t), nt.addId(t, e), nt.endUniqueSignalRequest(t);
|
|
1962
1962
|
}
|
|
1963
1963
|
unpack() {
|
|
1964
|
-
return new
|
|
1964
|
+
return new Xt(this.id());
|
|
1965
1965
|
}
|
|
1966
1966
|
unpackTo(t) {
|
|
1967
1967
|
t.id = this.id();
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
|
-
class
|
|
1970
|
+
class Xt {
|
|
1971
1971
|
constructor(t = null) {
|
|
1972
1972
|
n(this, "id");
|
|
1973
1973
|
this.id = t;
|
|
@@ -2078,13 +2078,13 @@ class at {
|
|
|
2078
2078
|
return at.startUniqueValueRequest(t), at.addId(t, e), at.endUniqueValueRequest(t);
|
|
2079
2079
|
}
|
|
2080
2080
|
unpack() {
|
|
2081
|
-
return new
|
|
2081
|
+
return new $t(this.id());
|
|
2082
2082
|
}
|
|
2083
2083
|
unpackTo(t) {
|
|
2084
2084
|
t.id = this.id();
|
|
2085
2085
|
}
|
|
2086
2086
|
}
|
|
2087
|
-
class
|
|
2087
|
+
class $t {
|
|
2088
2088
|
constructor(t = null) {
|
|
2089
2089
|
n(this, "id");
|
|
2090
2090
|
this.id = t;
|
|
@@ -2279,7 +2279,7 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2279
2279
|
e,
|
|
2280
2280
|
t != null ? _.Client_Tagged_Value_Request : _.Client_Unique_Value_Request,
|
|
2281
2281
|
(() => {
|
|
2282
|
-
const c = new k(), d = t != null ? new Wt(s, t) : new
|
|
2282
|
+
const c = new k(), d = t != null ? new Wt(s, t) : new $t(s);
|
|
2283
2283
|
return c.finish(d.pack(c)), c.asUint8Array();
|
|
2284
2284
|
})(),
|
|
2285
2285
|
t != null ? (c, d) => {
|
|
@@ -2365,7 +2365,7 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2365
2365
|
e,
|
|
2366
2366
|
t != null ? _.Client_Tagged_Signal_Request : _.Client_Unique_Signal_Request,
|
|
2367
2367
|
(() => {
|
|
2368
|
-
const h = new k(), c = t != null ? new Gt(s, t) : new
|
|
2368
|
+
const h = new k(), c = t != null ? new Gt(s, t) : new Xt(s);
|
|
2369
2369
|
return h.finish(c.pack(h)), h.asUint8Array();
|
|
2370
2370
|
})(),
|
|
2371
2371
|
(h, c) => {
|
|
@@ -2436,7 +2436,7 @@ const _e = async (s) => new Promise((t, e) => {
|
|
|
2436
2436
|
Mt({ id: t, tag: e, host: s, service: o }),
|
|
2437
2437
|
_e({ host: s, cdn_url: i, id: t, tag: e })
|
|
2438
2438
|
]), b = {
|
|
2439
|
-
svelte: () => import("./svelte/index.js").then((p) => p.
|
|
2439
|
+
svelte: () => import("./svelte/index.js").then((p) => p.bX),
|
|
2440
2440
|
"svelte/store": () => import("./svelte/store.js").then((p) => p.i),
|
|
2441
2441
|
"svelte/animate": () => import("./svelte/animate.js"),
|
|
2442
2442
|
"svelte/easing": () => import("./svelte/easing.js"),
|