@fireproof/core 0.4.0 → 0.4.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/dist/src/fireproof.d.ts +27 -2
- package/dist/src/fireproof.js +2 -1
- package/dist/src/fireproof.js.map +1 -1
- package/dist/src/fireproof.mjs +2 -1
- package/dist/src/fireproof.mjs.map +1 -1
- package/package.json +1 -1
- package/src/database.js +2 -1
- package/dist/blockstore.js +0 -242
- package/dist/clock.js +0 -355
- package/dist/crypto.js +0 -59
- package/dist/database.js +0 -308
- package/dist/db-index.js +0 -314
- package/dist/fireproof.js +0 -83
- package/dist/hooks/use-fireproof.js +0 -100
- package/dist/listener.js +0 -110
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -17
- package/dist/prolly.js +0 -316
- package/dist/sha1.js +0 -74
- package/dist/src/blockstore.js +0 -242
- package/dist/src/clock.js +0 -355
- package/dist/src/crypto.js +0 -59
- package/dist/src/database.js +0 -312
- package/dist/src/db-index.js +0 -314
- package/dist/src/index.d.ts +0 -321
- package/dist/src/index.js +0 -38936
- package/dist/src/index.js.map +0 -1
- package/dist/src/index.mjs +0 -38931
- package/dist/src/index.mjs.map +0 -1
- package/dist/src/listener.js +0 -108
- package/dist/src/prolly.js +0 -319
- package/dist/src/sha1.js +0 -74
- package/dist/src/utils.js +0 -16
- package/dist/src/valet.js +0 -262
- package/dist/test/block.js +0 -57
- package/dist/test/clock.test.js +0 -556
- package/dist/test/db-index.test.js +0 -231
- package/dist/test/fireproof.test.js +0 -444
- package/dist/test/fulltext.test.js +0 -61
- package/dist/test/helpers.js +0 -39
- package/dist/test/hydrator.test.js +0 -142
- package/dist/test/listener.test.js +0 -103
- package/dist/test/prolly.test.js +0 -162
- package/dist/test/proofs.test.js +0 -45
- package/dist/test/reproduce-fixture-bug.test.js +0 -57
- package/dist/test/valet.test.js +0 -56
- package/dist/utils.js +0 -16
- package/dist/valet.js +0 -262
package/dist/src/fireproof.d.ts
CHANGED
@@ -188,11 +188,12 @@ declare class Database$1 {
|
|
188
188
|
_id: string;
|
189
189
|
}>;
|
190
190
|
/**
|
191
|
-
* @typedef {
|
191
|
+
* @typedef {Object} Document
|
192
192
|
* @property {string} _id - The ID of the document (required)
|
193
193
|
* @property {string} [_proof] - The proof of the document (optional)
|
194
194
|
* @property {string} [_clock] - The clock of the document (optional)
|
195
195
|
* @property {any} [key: string] - Index signature notation to allow any other unknown fields
|
196
|
+
* * @property {Object.<string, any>} [otherProperties] - Any other unknown properties (optional)
|
196
197
|
*/
|
197
198
|
/**
|
198
199
|
* Adds a new document to the database, or updates an existing document. Returns the ID of the document and the new clock head.
|
@@ -202,7 +203,31 @@ declare class Database$1 {
|
|
202
203
|
* @memberof Fireproof
|
203
204
|
* @instance
|
204
205
|
*/
|
205
|
-
put({ _id, _proof, ...doc }:
|
206
|
+
put({ _id, _proof, ...doc }: {
|
207
|
+
/**
|
208
|
+
* - The ID of the document (required)
|
209
|
+
*/
|
210
|
+
_id: string;
|
211
|
+
/**
|
212
|
+
* - The proof of the document (optional)
|
213
|
+
*/
|
214
|
+
_proof?: string;
|
215
|
+
/**
|
216
|
+
* - The clock of the document (optional)
|
217
|
+
*/
|
218
|
+
_clock?: string;
|
219
|
+
/**
|
220
|
+
* : string] - Index signature notation to allow any other unknown fields
|
221
|
+
* *
|
222
|
+
*/
|
223
|
+
key?: any;
|
224
|
+
/**
|
225
|
+
* - Any other unknown properties (optional)
|
226
|
+
*/
|
227
|
+
otherProperties?: {
|
228
|
+
[x: string]: any;
|
229
|
+
};
|
230
|
+
}): Promise<{
|
206
231
|
id: string;
|
207
232
|
clock: CID[];
|
208
233
|
}>;
|
package/dist/src/fireproof.js
CHANGED
@@ -38203,11 +38203,12 @@ class Database {
|
|
38203
38203
|
return doc
|
38204
38204
|
}
|
38205
38205
|
/**
|
38206
|
-
* @typedef {
|
38206
|
+
* @typedef {Object} Document
|
38207
38207
|
* @property {string} _id - The ID of the document (required)
|
38208
38208
|
* @property {string} [_proof] - The proof of the document (optional)
|
38209
38209
|
* @property {string} [_clock] - The clock of the document (optional)
|
38210
38210
|
* @property {any} [key: string] - Index signature notation to allow any other unknown fields
|
38211
|
+
* * @property {Object.<string, any>} [otherProperties] - Any other unknown properties (optional)
|
38211
38212
|
*/
|
38212
38213
|
|
38213
38214
|
/**
|