@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.
Files changed (48) hide show
  1. package/dist/src/fireproof.d.ts +27 -2
  2. package/dist/src/fireproof.js +2 -1
  3. package/dist/src/fireproof.js.map +1 -1
  4. package/dist/src/fireproof.mjs +2 -1
  5. package/dist/src/fireproof.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/src/database.js +2 -1
  8. package/dist/blockstore.js +0 -242
  9. package/dist/clock.js +0 -355
  10. package/dist/crypto.js +0 -59
  11. package/dist/database.js +0 -308
  12. package/dist/db-index.js +0 -314
  13. package/dist/fireproof.js +0 -83
  14. package/dist/hooks/use-fireproof.js +0 -100
  15. package/dist/listener.js +0 -110
  16. package/dist/main.js +0 -2
  17. package/dist/main.js.LICENSE.txt +0 -17
  18. package/dist/prolly.js +0 -316
  19. package/dist/sha1.js +0 -74
  20. package/dist/src/blockstore.js +0 -242
  21. package/dist/src/clock.js +0 -355
  22. package/dist/src/crypto.js +0 -59
  23. package/dist/src/database.js +0 -312
  24. package/dist/src/db-index.js +0 -314
  25. package/dist/src/index.d.ts +0 -321
  26. package/dist/src/index.js +0 -38936
  27. package/dist/src/index.js.map +0 -1
  28. package/dist/src/index.mjs +0 -38931
  29. package/dist/src/index.mjs.map +0 -1
  30. package/dist/src/listener.js +0 -108
  31. package/dist/src/prolly.js +0 -319
  32. package/dist/src/sha1.js +0 -74
  33. package/dist/src/utils.js +0 -16
  34. package/dist/src/valet.js +0 -262
  35. package/dist/test/block.js +0 -57
  36. package/dist/test/clock.test.js +0 -556
  37. package/dist/test/db-index.test.js +0 -231
  38. package/dist/test/fireproof.test.js +0 -444
  39. package/dist/test/fulltext.test.js +0 -61
  40. package/dist/test/helpers.js +0 -39
  41. package/dist/test/hydrator.test.js +0 -142
  42. package/dist/test/listener.test.js +0 -103
  43. package/dist/test/prolly.test.js +0 -162
  44. package/dist/test/proofs.test.js +0 -45
  45. package/dist/test/reproduce-fixture-bug.test.js +0 -57
  46. package/dist/test/valet.test.js +0 -56
  47. package/dist/utils.js +0 -16
  48. package/dist/valet.js +0 -262
@@ -188,11 +188,12 @@ declare class Database$1 {
188
188
  _id: string;
189
189
  }>;
190
190
  /**
191
- * @typedef {any} Document
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 }: any): Promise<{
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
  }>;
@@ -38203,11 +38203,12 @@ class Database {
38203
38203
  return doc
38204
38204
  }
38205
38205
  /**
38206
- * @typedef {any} Document
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
  /**