@wovin/core 0.0.16 → 0.0.18
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/applog.min.js +1 -1
- package/dist/{chunk-TEQ4SIKN.min.js → chunk-E4BAQ5JJ.min.js} +2 -2
- package/dist/chunk-IHGAJTEQ.min.js +70 -0
- package/dist/chunk-IHGAJTEQ.min.js.map +1 -0
- package/dist/{chunk-OBMVNVJR.min.js → chunk-KVPEUWWR.min.js} +2 -2
- package/dist/chunk-SIIQEX77.min.js +4122 -0
- package/dist/chunk-SIIQEX77.min.js.map +1 -0
- package/dist/{chunk-NPCVLBCM.min.js → chunk-UZBCM3UI.min.js} +5 -75
- package/dist/{chunk-NPCVLBCM.min.js.map → chunk-UZBCM3UI.min.js.map} +1 -1
- package/dist/{chunk-FIOA3FZW.min.js → chunk-VDYG5VHX.min.js} +4 -4
- package/dist/{chunk-FIOA3FZW.min.js.map → chunk-VDYG5VHX.min.js.map} +1 -1
- package/dist/index.min.js +19 -16
- package/dist/ipfs/car.d.ts +2 -1
- package/dist/ipfs/car.d.ts.map +1 -1
- package/dist/ipfs/fetch-snapshot-chain.d.ts +27 -0
- package/dist/ipfs/fetch-snapshot-chain.d.ts.map +1 -0
- package/dist/ipfs.d.ts +1 -0
- package/dist/ipfs.d.ts.map +1 -1
- package/dist/ipfs.min.js +7 -4
- package/dist/pubsub/pubsub-types.d.ts +7 -7
- package/dist/pubsub/pubsub-types.d.ts.map +1 -1
- package/dist/pubsub/{pub-push.d.ts → snap-push.d.ts} +7 -7
- package/dist/pubsub/snap-push.d.ts.map +1 -0
- package/dist/pubsub.d.ts +1 -1
- package/dist/pubsub.d.ts.map +1 -1
- package/dist/pubsub.min.js +14 -14
- package/dist/query/situations.d.ts +77 -0
- package/dist/query/situations.d.ts.map +1 -1
- package/dist/query.min.js +3 -3
- package/dist/thread.min.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-JEOQUHTK.min.js +0 -1515
- package/dist/chunk-JEOQUHTK.min.js.map +0 -1
- package/dist/chunk-RPPZKO5L.min.js +0 -1
- package/dist/chunk-RPPZKO5L.min.js.map +0 -1
- package/dist/pubsub/pub-push.d.ts.map +0 -1
- /package/dist/{chunk-TEQ4SIKN.min.js.map → chunk-E4BAQ5JJ.min.js.map} +0 -0
- /package/dist/{chunk-OBMVNVJR.min.js.map → chunk-KVPEUWWR.min.js.map} +0 -0
|
@@ -6525,9 +6525,6 @@ var fromString = useBuffer ? (
|
|
|
6525
6525
|
return string.length > 64 ? textEncoder.encode(string) : utf8ToBytes(string);
|
|
6526
6526
|
}
|
|
6527
6527
|
);
|
|
6528
|
-
var fromArray = (arr) => {
|
|
6529
|
-
return Uint8Array.from(arr);
|
|
6530
|
-
};
|
|
6531
6528
|
var slice = useBuffer ? (
|
|
6532
6529
|
// eslint-disable-line operator-linebreak
|
|
6533
6530
|
/**
|
|
@@ -7456,52 +7453,8 @@ quick[160] = new Token(Type.map, 0, 1);
|
|
|
7456
7453
|
quick[244] = new Token(Type.false, false, 1);
|
|
7457
7454
|
quick[245] = new Token(Type.true, true, 1);
|
|
7458
7455
|
quick[246] = new Token(Type.null, null, 1);
|
|
7459
|
-
function quickEncodeToken(token) {
|
|
7460
|
-
switch (token.type) {
|
|
7461
|
-
case Type.false:
|
|
7462
|
-
return fromArray([244]);
|
|
7463
|
-
case Type.true:
|
|
7464
|
-
return fromArray([245]);
|
|
7465
|
-
case Type.null:
|
|
7466
|
-
return fromArray([246]);
|
|
7467
|
-
case Type.bytes:
|
|
7468
|
-
if (!token.value.length) {
|
|
7469
|
-
return fromArray([64]);
|
|
7470
|
-
}
|
|
7471
|
-
return;
|
|
7472
|
-
case Type.string:
|
|
7473
|
-
if (token.value === "") {
|
|
7474
|
-
return fromArray([96]);
|
|
7475
|
-
}
|
|
7476
|
-
return;
|
|
7477
|
-
case Type.array:
|
|
7478
|
-
if (token.value === 0) {
|
|
7479
|
-
return fromArray([128]);
|
|
7480
|
-
}
|
|
7481
|
-
return;
|
|
7482
|
-
case Type.map:
|
|
7483
|
-
if (token.value === 0) {
|
|
7484
|
-
return fromArray([160]);
|
|
7485
|
-
}
|
|
7486
|
-
return;
|
|
7487
|
-
case Type.uint:
|
|
7488
|
-
if (token.value < 24) {
|
|
7489
|
-
return fromArray([Number(token.value)]);
|
|
7490
|
-
}
|
|
7491
|
-
return;
|
|
7492
|
-
case Type.negint:
|
|
7493
|
-
if (token.value >= -24) {
|
|
7494
|
-
return fromArray([31 - Number(token.value)]);
|
|
7495
|
-
}
|
|
7496
|
-
}
|
|
7497
|
-
}
|
|
7498
7456
|
|
|
7499
7457
|
// ../../../node_modules/.pnpm/cborg@4.2.15/node_modules/cborg/lib/encode.js
|
|
7500
|
-
var defaultEncodeOptions = {
|
|
7501
|
-
float64: false,
|
|
7502
|
-
mapSorter,
|
|
7503
|
-
quickEncodeToken
|
|
7504
|
-
};
|
|
7505
7458
|
function makeCborEncoders() {
|
|
7506
7459
|
const encoders = [];
|
|
7507
7460
|
encoders[Type.uint.major] = encodeUint;
|
|
@@ -7743,19 +7696,6 @@ function sortMapEntries(entries, options) {
|
|
|
7743
7696
|
entries.sort(options.mapSorter);
|
|
7744
7697
|
}
|
|
7745
7698
|
}
|
|
7746
|
-
function mapSorter(e1, e2) {
|
|
7747
|
-
const keyToken1 = Array.isArray(e1[0]) ? e1[0][0] : e1[0];
|
|
7748
|
-
const keyToken2 = Array.isArray(e2[0]) ? e2[0][0] : e2[0];
|
|
7749
|
-
if (keyToken1.type !== keyToken2.type) {
|
|
7750
|
-
return keyToken1.type.compare(keyToken2.type);
|
|
7751
|
-
}
|
|
7752
|
-
const major = keyToken1.type.major;
|
|
7753
|
-
const tcmp = cborEncoders[major].compareTokens(keyToken1, keyToken2);
|
|
7754
|
-
if (tcmp === 0) {
|
|
7755
|
-
console.warn("WARNING: complex key types used, CBOR key sorting guarantees are gone");
|
|
7756
|
-
}
|
|
7757
|
-
return tcmp;
|
|
7758
|
-
}
|
|
7759
7699
|
function tokensToEncoded(buf2, tokens, encoders, options) {
|
|
7760
7700
|
if (Array.isArray(tokens)) {
|
|
7761
7701
|
for (const token of tokens) {
|
|
@@ -7787,10 +7727,6 @@ function encodeCustom(data, encoders, options) {
|
|
|
7787
7727
|
tokensToEncoded(buf, tokens, encoders, options);
|
|
7788
7728
|
return buf.toBytes(true);
|
|
7789
7729
|
}
|
|
7790
|
-
function encode(data, options) {
|
|
7791
|
-
options = Object.assign({}, defaultEncodeOptions, options);
|
|
7792
|
-
return encodeCustom(data, cborEncoders, options);
|
|
7793
|
-
}
|
|
7794
7730
|
|
|
7795
7731
|
// ../../../node_modules/.pnpm/cborg@4.2.15/node_modules/cborg/lib/decode.js
|
|
7796
7732
|
var defaultDecodeOptions = {
|
|
@@ -8072,7 +8008,7 @@ var JSONEncoder = class extends Array {
|
|
|
8072
8008
|
buf2.push(isa);
|
|
8073
8009
|
}
|
|
8074
8010
|
};
|
|
8075
|
-
function
|
|
8011
|
+
function mapSorter(e1, e2) {
|
|
8076
8012
|
if (Array.isArray(e1[0]) || Array.isArray(e2[0])) {
|
|
8077
8013
|
throw new Error(`${encodeErrPrefix} complex map keys are not supported`);
|
|
8078
8014
|
}
|
|
@@ -8089,9 +8025,9 @@ function mapSorter2(e1, e2) {
|
|
|
8089
8025
|
}
|
|
8090
8026
|
throw new Error(`${encodeErrPrefix} unexpected duplicate map keys, this is not supported`);
|
|
8091
8027
|
}
|
|
8092
|
-
var
|
|
8028
|
+
var defaultEncodeOptions = { addBreakTokens: true, mapSorter };
|
|
8093
8029
|
function encode2(data, options) {
|
|
8094
|
-
options = Object.assign({},
|
|
8030
|
+
options = Object.assign({}, defaultEncodeOptions, options);
|
|
8095
8031
|
return encodeCustom(data, new JSONEncoder(), options);
|
|
8096
8032
|
}
|
|
8097
8033
|
|
|
@@ -11081,14 +11017,8 @@ function getAgents(thread) {
|
|
|
11081
11017
|
|
|
11082
11018
|
export {
|
|
11083
11019
|
g,
|
|
11084
|
-
Type,
|
|
11085
|
-
Token,
|
|
11086
|
-
makeCborEncoders,
|
|
11087
|
-
encode,
|
|
11088
|
-
decode,
|
|
11089
|
-
decode6 as decode2,
|
|
11090
11020
|
CID,
|
|
11091
|
-
decode7 as
|
|
11021
|
+
decode7 as decode,
|
|
11092
11022
|
src_exports,
|
|
11093
11023
|
Nullable,
|
|
11094
11024
|
EntityID_LENGTH,
|
|
@@ -11204,4 +11134,4 @@ lodash-es/lodash.js:
|
|
|
11204
11134
|
@noble/hashes/utils.js:
|
|
11205
11135
|
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
11206
11136
|
*/
|
|
11207
|
-
//# sourceMappingURL=chunk-
|
|
11137
|
+
//# sourceMappingURL=chunk-UZBCM3UI.min.js.map
|