@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.
package/dist/storage/ucan.js
CHANGED
@@ -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(
|
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
package/src/storage/ucan.js
CHANGED
@@ -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(
|
19
|
+
console.log(`wrote UCAN ${cid}, ${upCid}`)
|
19
20
|
// if (!response.ok) throw new Error(`An error occurred: ${response.statusText}`)
|
20
21
|
}
|
21
22
|
}
|