@betterbugs/all 2.0.0-alpha.23 → 2.0.0-alpha.25

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/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # @rrweb/all
1
+ # @betterbugs/all
2
2
 
3
3
  Convenience package that includes a bundle of rrweb packages.
4
4
 
5
5
  Includes the following packages:
6
6
 
7
7
  - [rrweb](../rrweb)
8
- - [@rrweb/record](../record)
9
- - [@rrweb/replay](../replay)
10
- - [@rrweb/packer](../packer)
8
+ - [@betterbugs/record](../record)
9
+ - [@betterbugs/replay](../replay)
10
+ - [@betterbugs/packer](../packer)
11
11
 
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @rrweb/all
15
+ npm install @betterbugs/all
16
16
  ```
17
17
 
18
18
  ## Usage
19
19
 
20
20
  ```js
21
- import { record, replay, pack, unpack } from '@rrweb/all';
21
+ import { record, replay, pack, unpack } from '@betterbugs/all';
22
22
 
23
23
  // use record, replay, pack, unpack as you would with the individual packages.
24
24
  ```
package/dist/all.cjs CHANGED
@@ -16471,7 +16471,7 @@ class Replayer {
16471
16471
  head.querySelectorAll('link[rel="stylesheet"]').forEach((css) => {
16472
16472
  if (!css.sheet) {
16473
16473
  unloadSheets.add(css);
16474
- const onLoadOrError = () => {
16474
+ css.addEventListener("load", () => {
16475
16475
  unloadSheets.delete(css);
16476
16476
  if (unloadSheets.size === 0 && timer !== -1) {
16477
16477
  if (beforeLoadState.matches("playing")) {
@@ -16483,9 +16483,7 @@ class Replayer {
16483
16483
  }
16484
16484
  unsubscribe();
16485
16485
  }
16486
- };
16487
- css.addEventListener("load", onLoadOrError);
16488
- css.addEventListener("error", onLoadOrError);
16486
+ });
16489
16487
  }
16490
16488
  });
16491
16489
  if (unloadSheets.size > 0) {