Fix dependencies (#128)

Add `hyperbee` to installed packages

Remove `debounceify` since it's not used
This commit is contained in:
d61b292b-2859-4ed6-8c7c-b7397ad8e351
2024-08-15 14:18:53 +02:00
committed by GitHub
parent 6b7ca689cb
commit 928bb27b3e

View File

@@ -165,7 +165,7 @@ In a new terminal, create the `bee-reader-app` project with these commands:
mkdir bee-reader-app mkdir bee-reader-app
cd bee-reader-app cd bee-reader-app
pear init -y -t terminal pear init -y -t terminal
npm install corestore hyperswarm hyperdrive debounceify b4a bare-process npm install corestore hyperswarm hyperdrive hyperbee b4a bare-process
``` ```
Adjust the `bee-reader-app/index.js` file to: Adjust the `bee-reader-app/index.js` file to:
@@ -174,7 +174,6 @@ Adjust the `bee-reader-app/index.js` file to:
import Hyperswarm from 'hyperswarm' import Hyperswarm from 'hyperswarm'
import Corestore from 'corestore' import Corestore from 'corestore'
import Hyperbee from 'hyperbee' import Hyperbee from 'hyperbee'
import debounce from 'debounceify'
import b4a from 'b4a' import b4a from 'b4a'
import process from 'bare-process' import process from 'bare-process'
@@ -229,4 +228,4 @@ pear dev
The `bee-reader-app` creates a Hyperbee instance using the Hypercore instance created with the copied public key. Every time the Hyperbee is updated (an `append` event is emitted on the underlying Hypercore), all file metadata nodes will be logged out. The `bee-reader-app` creates a Hyperbee instance using the Hypercore instance created with the copied public key. Every time the Hyperbee is updated (an `append` event is emitted on the underlying Hypercore), all file metadata nodes will be logged out.
Try adding or removing a few files from the writer's data directory, then pressing `Enter` in the writer's terminal to mirror the changes. Try adding or removing a few files from the writer's data directory, then pressing `Enter` in the writer's terminal to mirror the changes.