@whereby.com/media 1.17.9 → 1.17.10
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/index.cjs +5 -2
- package/dist/index.d.cts +1 -2
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +5 -2
- package/dist/legacy-esm.js +5 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6294,6 +6294,11 @@ class BandwidthTester extends EventEmitter {
|
|
|
6294
6294
|
close() {
|
|
6295
6295
|
logger$1.info("close()");
|
|
6296
6296
|
this.closed = true;
|
|
6297
|
+
if (!!this._timeout || Date.now() - this._startTime < 750) {
|
|
6298
|
+
this.emit("result", {
|
|
6299
|
+
error: true,
|
|
6300
|
+
});
|
|
6301
|
+
}
|
|
6297
6302
|
this._clearTimeouts();
|
|
6298
6303
|
clearInterval(this._drawInterval);
|
|
6299
6304
|
this._drawInterval = null;
|
|
@@ -6594,8 +6599,6 @@ class BandwidthTester extends EventEmitter {
|
|
|
6594
6599
|
_clearTimeouts() {
|
|
6595
6600
|
clearTimeout(this._timeout);
|
|
6596
6601
|
this._timeout = null;
|
|
6597
|
-
clearTimeout(this._reportTimeout);
|
|
6598
|
-
this._reportTimeout = null;
|
|
6599
6602
|
}
|
|
6600
6603
|
}
|
|
6601
6604
|
|
package/dist/index.d.cts
CHANGED
|
@@ -233,8 +233,7 @@ declare class BandwidthTester extends EventEmitter {
|
|
|
233
233
|
_timeout: any;
|
|
234
234
|
_canvas: any;
|
|
235
235
|
_drawInterval: any;
|
|
236
|
-
_resultTimeout:
|
|
237
|
-
_reportTimeout: any;
|
|
236
|
+
_resultTimeout: NodeJS.Timeout | null;
|
|
238
237
|
constructor({ features }?: {
|
|
239
238
|
features?: any;
|
|
240
239
|
});
|
package/dist/index.d.mts
CHANGED
|
@@ -233,8 +233,7 @@ declare class BandwidthTester extends EventEmitter {
|
|
|
233
233
|
_timeout: any;
|
|
234
234
|
_canvas: any;
|
|
235
235
|
_drawInterval: any;
|
|
236
|
-
_resultTimeout:
|
|
237
|
-
_reportTimeout: any;
|
|
236
|
+
_resultTimeout: NodeJS.Timeout | null;
|
|
238
237
|
constructor({ features }?: {
|
|
239
238
|
features?: any;
|
|
240
239
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -233,8 +233,7 @@ declare class BandwidthTester extends EventEmitter {
|
|
|
233
233
|
_timeout: any;
|
|
234
234
|
_canvas: any;
|
|
235
235
|
_drawInterval: any;
|
|
236
|
-
_resultTimeout:
|
|
237
|
-
_reportTimeout: any;
|
|
236
|
+
_resultTimeout: NodeJS.Timeout | null;
|
|
238
237
|
constructor({ features }?: {
|
|
239
238
|
features?: any;
|
|
240
239
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -6273,6 +6273,11 @@ class BandwidthTester extends EventEmitter$1 {
|
|
|
6273
6273
|
close() {
|
|
6274
6274
|
logger$1.info("close()");
|
|
6275
6275
|
this.closed = true;
|
|
6276
|
+
if (!!this._timeout || Date.now() - this._startTime < 750) {
|
|
6277
|
+
this.emit("result", {
|
|
6278
|
+
error: true,
|
|
6279
|
+
});
|
|
6280
|
+
}
|
|
6276
6281
|
this._clearTimeouts();
|
|
6277
6282
|
clearInterval(this._drawInterval);
|
|
6278
6283
|
this._drawInterval = null;
|
|
@@ -6573,8 +6578,6 @@ class BandwidthTester extends EventEmitter$1 {
|
|
|
6573
6578
|
_clearTimeouts() {
|
|
6574
6579
|
clearTimeout(this._timeout);
|
|
6575
6580
|
this._timeout = null;
|
|
6576
|
-
clearTimeout(this._reportTimeout);
|
|
6577
|
-
this._reportTimeout = null;
|
|
6578
6581
|
}
|
|
6579
6582
|
}
|
|
6580
6583
|
|
package/dist/legacy-esm.js
CHANGED
|
@@ -6273,6 +6273,11 @@ class BandwidthTester extends EventEmitter$1 {
|
|
|
6273
6273
|
close() {
|
|
6274
6274
|
logger$1.info("close()");
|
|
6275
6275
|
this.closed = true;
|
|
6276
|
+
if (!!this._timeout || Date.now() - this._startTime < 750) {
|
|
6277
|
+
this.emit("result", {
|
|
6278
|
+
error: true,
|
|
6279
|
+
});
|
|
6280
|
+
}
|
|
6276
6281
|
this._clearTimeouts();
|
|
6277
6282
|
clearInterval(this._drawInterval);
|
|
6278
6283
|
this._drawInterval = null;
|
|
@@ -6573,8 +6578,6 @@ class BandwidthTester extends EventEmitter$1 {
|
|
|
6573
6578
|
_clearTimeouts() {
|
|
6574
6579
|
clearTimeout(this._timeout);
|
|
6575
6580
|
this._timeout = null;
|
|
6576
|
-
clearTimeout(this._reportTimeout);
|
|
6577
|
-
this._reportTimeout = null;
|
|
6578
6581
|
}
|
|
6579
6582
|
}
|
|
6580
6583
|
|