@hive-p2p/browser 1.0.33 → 1.0.34

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/index.mjs CHANGED
@@ -1,18 +1,20 @@
1
1
  import { Node, createNode } from "./core/node.mjs";
2
2
  import { CryptoCodex } from "./core/crypto-codex.mjs";
3
+ import { CLOCK } from "./services/clock.mjs";
3
4
  import CONFIG from "./core/config.mjs";
4
5
 
5
6
  /**
6
7
  * @typedef {Object} HiveP2PNamespace
8
+ * @property {Clock} CLOCK
9
+ * @property {typeof CONFIG} CONFIG
7
10
  * @property {typeof Node} Node
8
11
  * @property {typeof createNode} createNode
9
12
  * @property {typeof CryptoCodex} CryptoCodex
10
- * @property {typeof CONFIG} CONFIG
11
13
  */
12
14
 
13
15
  /** @type {HiveP2PNamespace} */
14
- const HiveP2P = { Node, createNode, CryptoCodex, CONFIG };
15
- export { Node, createNode, CryptoCodex, CONFIG };
16
+ const HiveP2P = { CLOCK, CONFIG, Node, createNode, CryptoCodex };
17
+ export { CLOCK, CONFIG, Node, createNode, CryptoCodex };
16
18
  export default HiveP2P;
17
19
 
18
20
  if (typeof window !== 'undefined') window.HiveP2P = HiveP2P;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hive-p2p/browser",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -126,7 +126,7 @@ export class Clock {
126
126
  } catch (error) { if (this.verbose) console.warn('[Clock] Background refine failed:', error); }
127
127
  }
128
128
  }
129
-
129
+ export const CLOCK = Clock.instance; // Singleton instance
130
130
 
131
131
  export async function CLOCK_TEST() { // DEBUG TEST WHILE RUNNING AS STANDALONE
132
132
  const startTime = Date.now();