@hive-p2p/browser 1.0.32 → 1.0.33

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/core/node.mjs CHANGED
@@ -139,6 +139,7 @@ export class Node {
139
139
  }
140
140
 
141
141
  // PUBLIC API
142
+ /** @returns {string | undefined} */
142
143
  get publicUrl() { return this.services?.publicUrl; }
143
144
 
144
145
  onMessageData(callback) { this.messager.on('message', callback); }
package/index.mjs CHANGED
@@ -2,6 +2,15 @@ import { Node, createNode } from "./core/node.mjs";
2
2
  import { CryptoCodex } from "./core/crypto-codex.mjs";
3
3
  import CONFIG from "./core/config.mjs";
4
4
 
5
+ /**
6
+ * @typedef {Object} HiveP2PNamespace
7
+ * @property {typeof Node} Node
8
+ * @property {typeof createNode} createNode
9
+ * @property {typeof CryptoCodex} CryptoCodex
10
+ * @property {typeof CONFIG} CONFIG
11
+ */
12
+
13
+ /** @type {HiveP2PNamespace} */
5
14
  const HiveP2P = { Node, createNode, CryptoCodex, CONFIG };
6
15
  export { Node, createNode, CryptoCodex, CONFIG };
7
16
  export default HiveP2P;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hive-p2p/browser",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },