@streamr/dht 103.7.0-rc.2 → 103.8.0-rc.3
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/dist/exports-browser.cjs +141 -3
- package/dist/exports-browser.cjs.map +1 -1
- package/dist/exports-browser.js +141 -3
- package/dist/exports-browser.js.map +1 -1
- package/dist/exports-nodejs.cjs +3 -3
- package/dist/exports-nodejs.cjs.map +1 -1
- package/dist/exports-nodejs.js +3 -3
- package/dist/exports-nodejs.js.map +1 -1
- package/package.json +7 -7
package/dist/exports-nodejs.js
CHANGED
|
@@ -249,7 +249,7 @@ class SendFailed extends Err {
|
|
|
249
249
|
constructor(message, originalError) { super(ErrorCode.SEND_FAILED, message, originalError); }
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
let enabled =
|
|
252
|
+
let enabled = true;
|
|
253
253
|
function setGapDiagnosticsEnabled(val) {
|
|
254
254
|
enabled = val;
|
|
255
255
|
globalThis.__dhtGapDiagEnabled = val;
|
|
@@ -257,7 +257,7 @@ function setGapDiagnosticsEnabled(val) {
|
|
|
257
257
|
const SUMMARY_INTERVAL_MS = 2000;
|
|
258
258
|
const accumulators = new Map();
|
|
259
259
|
function logGapDiagnosticSampled(layer, opts = {}) {
|
|
260
|
-
if (!enabled)
|
|
260
|
+
if (!enabled && !globalThis.__dhtGapDiagEnabled)
|
|
261
261
|
return;
|
|
262
262
|
const now = performance.now();
|
|
263
263
|
const threshold = opts.outlierThresholdMs ?? 30;
|
|
@@ -2872,7 +2872,7 @@ const parseVersion = (version) => {
|
|
|
2872
2872
|
}
|
|
2873
2873
|
};
|
|
2874
2874
|
|
|
2875
|
-
var version = "103.
|
|
2875
|
+
var version = "103.8.0-rc.3";
|
|
2876
2876
|
|
|
2877
2877
|
const logger$z = new Logger('Handshaker');
|
|
2878
2878
|
// Optimally the Outgoing and Incoming Handshakers could be their own separate classes
|