@cero-base/core 0.7.0 → 0.8.1
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/package.json +1 -1
- package/src/database/index.js +2 -0
- package/src/index.js +11 -11
- package/types/database/index.d.ts +1 -1
- package/types/index.d.ts +11 -11
package/package.json
CHANGED
package/src/database/index.js
CHANGED
|
@@ -381,6 +381,8 @@ export class Database extends ReadyResource {
|
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
const all = await this.view.find(col, {}).toArray()
|
|
384
|
+
// collections carry an auto-increment `index`; return them in that order
|
|
385
|
+
all.sort((a, b) => (a.index ?? 0) - (b.index ?? 0))
|
|
384
386
|
const total = all.length
|
|
385
387
|
const data = paginate(all, query)
|
|
386
388
|
return { data, total, size: data.length }
|
package/src/index.js
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* are also available for consumers that need a smaller graph.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
10
|
+
export * from './identity/index.js'
|
|
11
|
+
export * from './storage/index.js'
|
|
12
|
+
export * from './network/index.js'
|
|
13
|
+
export * from './database/index.js'
|
|
14
|
+
export * from './blobs/index.js'
|
|
15
|
+
export * from './rpc/index.js'
|
|
16
|
+
export * from './pairing/index.js'
|
|
17
|
+
export * from './pairing/invite.js'
|
|
18
|
+
export * from './lib/schema.js'
|
|
19
|
+
export * from './lib/utils.js'
|
|
20
|
+
export * from './lib/errors.js'
|
|
@@ -57,7 +57,7 @@ export class Database extends ReadyResource {
|
|
|
57
57
|
encryptionKey: Uint8Array<ArrayBufferLike>;
|
|
58
58
|
applyOverride: (nodes: any, view: any, host: any) => Promise<void>;
|
|
59
59
|
key: Uint8Array<ArrayBufferLike>;
|
|
60
|
-
keyPair: import("../
|
|
60
|
+
keyPair: import("../index.js").KeyPair | {
|
|
61
61
|
publicKey: Uint8Array<ArrayBufferLike>;
|
|
62
62
|
secretKey: Uint8Array<ArrayBufferLike>;
|
|
63
63
|
};
|
package/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
1
|
+
export * from "./identity/index.js";
|
|
2
|
+
export * from "./storage/index.js";
|
|
3
|
+
export * from "./network/index.js";
|
|
4
|
+
export * from "./database/index.js";
|
|
5
|
+
export * from "./blobs/index.js";
|
|
6
|
+
export * from "./rpc/index.js";
|
|
7
|
+
export * from "./pairing/index.js";
|
|
8
|
+
export * from "./pairing/invite.js";
|
|
9
|
+
export * from "./lib/schema.js";
|
|
10
|
+
export * from "./lib/utils.js";
|
|
11
|
+
export * from "./lib/errors.js";
|