Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed May 27, 2024
1 parent efee9d3 commit 8c3fc5b
Show file tree
Hide file tree
Showing 152 changed files with 8,034 additions and 68,021 deletions.
2 changes: 1 addition & 1 deletion .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
// global options
debug: false,
test: {
concurrency: 2,
/* concurrency: 2, */
files: [],
before: () => {
return { env: { TS_NODE_PROJECT: path.join(root, 'tsconfig.test.json') } }
Expand Down
3 changes: 1 addition & 2 deletions .mocharc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
"extension": [
"ts"
],
"parallel": true,
"spec": [
"**/test/**/*.spec.ts"
],
"ignore": [
"**/node_modules/**",
"**/dist/**"
],
"timeout": "20000"
"timeout": "35000"
}
13 changes: 7 additions & 6 deletions .release-please.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,21 @@
"packages/programs/acl/trusted-network": {},
"packages/programs/program": {},
"packages/programs/clock-service": {},
"packages/programs/data/document/document": {},
"packages/programs/data/document/index/simple": {},
"packages/programs/data/document/index/sqlite3": {},
"packages/programs/data/document/index/tests": {},
"packages/programs/data/document/interface": {},
"packages/programs/data/document/indexer": {},
"packages/programs/data/string": {},
"packages/programs/data/shared-log": {},
"packages/programs/data/document/document/interface": {},
"packages/utils/crypto": {},
"packages/utils/any-store/any-store": {},
"packages/utils/any-store/interface": {},
"packages/utils/any-store/opfs": {},
"packages/utils/cache": {},
"packages/utils/time": {},
"packages/utils/logger": {},
"packages/utils/keychain": {}
"packages/utils/keychain": {},
"packages/utils/indexer/simple": {},
"packages/utils/indexer/sqlite3": {},
"packages/utils/indexer/tests": {},
"packages/utils/indexer/interface": {}
}
}
2 changes: 1 addition & 1 deletion docs/modules/encryption/encrypted-log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ await store.log.append(payload, {
// A peer that can open
const store2 = await client2.open<SimpleStore>(store.address!);
await waitForResolved(() => assert.equal(store2.log.log.length, 1));
const entry = (await store2.log.log.values.toArray())[0];
const entry = (await store2.log.log.toArray())[0];

// use .getPayload() instead of .payload to decrypt the payload
assert.deepEqual((await entry.getPayload()).getValue(), payload);
Expand Down
8 changes: 4 additions & 4 deletions docs/modules/program/document-store/document-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { v4 as uuid } from "uuid";
import {
ByteMatchQuery,
Documents,
MissingField,
IsNull,
SearchRequest,
Sort
} from "@peerbit/document";
Expand Down Expand Up @@ -243,7 +243,7 @@ await waitForResolved(async () =>
// then you can do the following
const posts: Post[] = await channelFromClient2.posts.index.search(
new SearchRequest({
query: [new MissingField({ key: POST_PARENT_POST_ID })],
query: [new IsNull({ key: POST_PARENT_POST_ID })],
sort: new Sort({ key: POST_TIMESTAMP_PROPERTY })
})
);
Expand All @@ -259,7 +259,7 @@ expect(posts.map((x) => x.message)).to.deep.equal([
/// [search-locally]
const postsLocally: Post[] = await channelFromClient2.posts.index.search(
new SearchRequest({
query: [new MissingField({ key: POST_PARENT_POST_ID })],
query: [new IsNull({ key: POST_PARENT_POST_ID })],
sort: new Sort({ key: POST_TIMESTAMP_PROPERTY })
}),
{
Expand Down Expand Up @@ -375,7 +375,7 @@ new SearchRequest({
new BoolQuery({ key: "boolProperty", value: true }),

// Missing values
new MissingField({ key: "someProperty" }),
new IsNull({ key: "someProperty" }),

// Nested propety
// Find values for nested fields, e.g. { a: { b: { c: "hello "}}}
Expand Down
Loading

0 comments on commit 8c3fc5b

Please sign in to comment.