@hive-p2p/server 1.0.70 → 1.0.71

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 (2) hide show
  1. package/core/node.mjs +2 -2
  2. package/package.json +1 -1
package/core/node.mjs CHANGED
@@ -164,10 +164,10 @@ export class Node {
164
164
  * @param {string | Uint8Array | Object} data @param {string} [targetId] default: broadcast to all
165
165
  * @param {number} [timestamp] default: CLOCK.time
166
166
  * @param {Object} [options]
167
- * @param {string} [options.type] default: 'gossip'
167
+ * @param {string} [options.topic] default: 'gossip'
168
168
  * @param {number} [options.HOPS] default: GOSSIP.HOPS[topic] || GOSSIP.HOPS.default */
169
169
  broadcast(data, options = {}) {
170
- const { type, HOPS } = options;
170
+ const { topic, HOPS } = options;
171
171
  return this.gossip.broadcastToAll(data, topic, HOPS);
172
172
  }
173
173
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hive-p2p/server",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },