@fireproof/core 0.7.3-dev.1 → 0.7.3-dev.2

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.
@@ -12,8 +12,9 @@ export class UCAN extends Base {
12
12
  if (this.config.readonly)
13
13
  return;
14
14
  for (const { cid, bytes } of cars) {
15
+ console.log(`write UCAN ${cid}, ${bytes.length} bytes`);
15
16
  const upCid = await this.config.upload(bytes);
16
- console.log('writeCar UCAN', cid, upCid);
17
+ console.log(`wrote UCAN ${cid}, ${upCid}`);
17
18
  // if (!response.ok) throw new Error(`An error occurred: ${response.statusText}`)
18
19
  }
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fireproof/core",
3
- "version": "0.7.3-dev.1",
3
+ "version": "0.7.3-dev.2",
4
4
  "description": "Live data for React, accelerated by proofs, powered by IPFS",
5
5
  "main": "dist/src/fireproof.js",
6
6
  "module": "dist/src/fireproof.mjs",
@@ -14,8 +14,9 @@ export class UCAN extends Base {
14
14
  async writeCars (cars) {
15
15
  if (this.config.readonly) return
16
16
  for (const { cid, bytes } of cars) {
17
+ console.log(`write UCAN ${cid}, ${bytes.length} bytes`)
17
18
  const upCid = await this.config.upload(bytes)
18
- console.log('writeCar UCAN', cid, upCid)
19
+ console.log(`wrote UCAN ${cid}, ${upCid}`)
19
20
  // if (!response.ok) throw new Error(`An error occurred: ${response.statusText}`)
20
21
  }
21
22
  }