@fireproof/core 0.7.3-dev.1 → 0.7.3-dev.2
Sign up to get free protection for your applications and to get access to all the features.
package/dist/src/fireproof.js
CHANGED
@@ -40077,8 +40077,9 @@ class UCAN extends Base {
|
|
40077
40077
|
async writeCars (cars) {
|
40078
40078
|
if (this.config.readonly) return
|
40079
40079
|
for (const { cid, bytes } of cars) {
|
40080
|
+
console.log(`write UCAN ${cid}, ${bytes.length} bytes`);
|
40080
40081
|
const upCid = await this.config.upload(bytes);
|
40081
|
-
console.log(
|
40082
|
+
console.log(`wrote UCAN ${cid}, ${upCid}`);
|
40082
40083
|
// if (!response.ok) throw new Error(`An error occurred: ${response.statusText}`)
|
40083
40084
|
}
|
40084
40085
|
}
|