@peerbit/indexer-tests 1.1.20-d375893 → 1.2.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/LICENSE +202 -0
- package/dist/src/benchmarks.d.ts.map +1 -1
- package/dist/src/benchmarks.js +292 -182
- package/dist/src/benchmarks.js.map +1 -1
- package/dist/src/tests.d.ts.map +1 -1
- package/dist/src/tests.js +1865 -1102
- package/dist/src/tests.js.map +1 -1
- package/package.json +13 -13
- package/src/benchmarks.ts +0 -1
- package/src/tests.ts +1 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peerbit/indexer-tests",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Tests document store index engines",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -52,22 +52,22 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"scripts": {
|
|
56
|
-
"clean": "aegir clean",
|
|
57
|
-
"build": "aegir build --no-bundle",
|
|
58
|
-
"test": "",
|
|
59
|
-
"lint": "aegir lint"
|
|
60
|
-
},
|
|
61
55
|
"author": "dao.xyz",
|
|
62
56
|
"license": "MIT",
|
|
63
57
|
"dependencies": {
|
|
64
|
-
"@
|
|
65
|
-
"@peerbit/crypto": "2.3.13-d375893",
|
|
66
|
-
"@peerbit/time": "2.2.0-d375893",
|
|
67
|
-
"@dao-xyz/borsh": "^5.2.3",
|
|
58
|
+
"@dao-xyz/borsh": "^6.0.0",
|
|
68
59
|
"libsodium-wrappers": "^0.7.15",
|
|
69
60
|
"uint8arrays": "^5.1.0",
|
|
70
61
|
"benchmark": "^2.1.4",
|
|
71
|
-
"uuid": "^10.0.0"
|
|
62
|
+
"uuid": "^10.0.0",
|
|
63
|
+
"@peerbit/indexer-interface": "2.1.0",
|
|
64
|
+
"@peerbit/time": "2.3.0",
|
|
65
|
+
"@peerbit/crypto": "2.4.0"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"clean": "aegir clean",
|
|
69
|
+
"build": "aegir build --no-bundle",
|
|
70
|
+
"test": "",
|
|
71
|
+
"lint": "aegir lint"
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|
package/src/benchmarks.ts
CHANGED
|
@@ -97,7 +97,6 @@ const stringBenchmark = async (
|
|
|
97
97
|
});
|
|
98
98
|
})
|
|
99
99
|
.add("string count no-matches - " + type, async () => {
|
|
100
|
-
const out = Math.random() > 0.5 ? true : false;
|
|
101
100
|
await stringIndexPreFilled.store.count({
|
|
102
101
|
query: new StringMatch({ key: "string", value: uuid() }),
|
|
103
102
|
});
|
package/src/tests.ts
CHANGED
|
@@ -33,11 +33,7 @@ import {
|
|
|
33
33
|
id,
|
|
34
34
|
toId,
|
|
35
35
|
} from "@peerbit/indexer-interface";
|
|
36
|
-
import {
|
|
37
|
-
/* delay, */
|
|
38
|
-
delay,
|
|
39
|
-
waitForResolved,
|
|
40
|
-
} from "@peerbit/time";
|
|
36
|
+
import { waitForResolved } from "@peerbit/time";
|
|
41
37
|
import { expect } from "chai";
|
|
42
38
|
import sodium from "libsodium-wrappers";
|
|
43
39
|
import { equals } from "uint8arrays";
|