@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 +6 -6
- package/dist/all.cjs +2 -4
- package/dist/all.cjs.map +1 -1
- package/dist/all.js +2 -4
- package/dist/all.js.map +1 -1
- package/dist/all.umd.cjs +2 -4
- package/dist/all.umd.cjs.map +2 -2
- package/dist/all.umd.min.cjs +1 -1
- package/dist/all.umd.min.cjs.map +3 -3
- package/package.json +7 -8
- package/umd/all.js +2 -4
- package/umd/all.min.js +1 -1
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# @
|
|
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
|
-
- [@
|
|
9
|
-
- [@
|
|
10
|
-
- [@
|
|
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 @
|
|
15
|
+
npm install @betterbugs/all
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
20
|
```js
|
|
21
|
-
import { record, replay, pack, unpack } from '@
|
|
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
|
-
|
|
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) {
|