@betterbugs/rrweb-plugin-console-record 2.0.0-alpha.19
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 +178 -0
- package/dist/index.d.cts +50 -0
- package/dist/index.d.ts +50 -0
- package/dist/rrweb-plugin-console-record.cjs +490 -0
- package/dist/rrweb-plugin-console-record.cjs.map +1 -0
- package/dist/rrweb-plugin-console-record.js +490 -0
- package/dist/rrweb-plugin-console-record.js.map +1 -0
- package/dist/rrweb-plugin-console-record.umd.cjs +520 -0
- package/dist/rrweb-plugin-console-record.umd.cjs.map +7 -0
- package/dist/rrweb-plugin-console-record.umd.min.cjs +41 -0
- package/dist/rrweb-plugin-console-record.umd.min.cjs.map +7 -0
- package/package.json +63 -0
package/README.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# @rrweb/rrweb-plugin-console-record
|
|
2
|
+
|
|
3
|
+
Please refer to the [console recipe](../../../docs/recipes/console.md) on how to use this plugin.
|
|
4
|
+
See the [guide](../../../guide.md) for more info on rrweb.
|
|
5
|
+
|
|
6
|
+
## Sponsors
|
|
7
|
+
|
|
8
|
+
[Become a sponsor](https://opencollective.com/rrweb#sponsor) and get your logo on our README on Github with a link to your site.
|
|
9
|
+
|
|
10
|
+
### Gold Sponsors 🥇
|
|
11
|
+
|
|
12
|
+
<div dir="auto">
|
|
13
|
+
|
|
14
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/0/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
15
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/1/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
16
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/2/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/2/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
17
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/3/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/3/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
18
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/4/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/4/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
19
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/5/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/5/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
20
|
+
<a href="https://opencollective.com/rrweb/tiers/gold-sponsor/6/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/gold-sponsor/6/avatar.svg?requireActive=false&avatarHeight=225" alt="sponsor"></a>
|
|
21
|
+
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
### Silver Sponsors 🥈
|
|
25
|
+
|
|
26
|
+
<div dir="auto">
|
|
27
|
+
|
|
28
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/0/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
29
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/1/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
30
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/2/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/2/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
31
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/3/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/3/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
32
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/4/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/4/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
33
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/5/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/5/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
34
|
+
<a href="https://opencollective.com/rrweb/tiers/silver-sponsor/6/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/silver-sponsor/6/avatar.svg?requireActive=false&avatarHeight=158" alt="sponsor"></a>
|
|
35
|
+
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
### Bronze Sponsors 🥉
|
|
39
|
+
|
|
40
|
+
<div dir="auto">
|
|
41
|
+
|
|
42
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/0/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
43
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/1/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
44
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/2/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/2/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
45
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/3/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/3/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
46
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/4/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/4/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
47
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/5/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/5/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
48
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/6/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/6/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
49
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/7/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/7/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
50
|
+
<a href="https://opencollective.com/rrweb/tiers/sponsors/8/website?requireActive=false" target="_blank"><img src="https://opencollective.com/rrweb/tiers/sponsors/8/avatar.svg?requireActive=false&avatarHeight=70" alt="sponsor"></a>
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
### Backers
|
|
55
|
+
|
|
56
|
+
<a href="https://opencollective.com/rrweb#sponsor" rel="nofollow"><img src="https://opencollective.com/rrweb/tiers/backers.svg?avatarHeight=36"></a>
|
|
57
|
+
|
|
58
|
+
## Core Team Members
|
|
59
|
+
|
|
60
|
+
<table>
|
|
61
|
+
<tr>
|
|
62
|
+
<td align="center">
|
|
63
|
+
<a href="https://github.com/Yuyz0112">
|
|
64
|
+
<img
|
|
65
|
+
src="https://avatars.githubusercontent.com/u/13651389?s=100"
|
|
66
|
+
width="100px;"
|
|
67
|
+
alt=""
|
|
68
|
+
/>
|
|
69
|
+
<br /><sub><b>Yuyz0112</b></sub>
|
|
70
|
+
<br /><br />
|
|
71
|
+
</a>
|
|
72
|
+
</td>
|
|
73
|
+
<td align="center">
|
|
74
|
+
<a href="https://github.com/YunFeng0817">
|
|
75
|
+
<img
|
|
76
|
+
src="https://avatars.githubusercontent.com/u/27533910?s=100"
|
|
77
|
+
width="100px;"
|
|
78
|
+
alt=""
|
|
79
|
+
/>
|
|
80
|
+
<br /><sub><b>Yun Feng</b></sub>
|
|
81
|
+
<br /><br />
|
|
82
|
+
</a>
|
|
83
|
+
</td>
|
|
84
|
+
<td align="center">
|
|
85
|
+
<a href="https://github.com/eoghanmurray">
|
|
86
|
+
<img
|
|
87
|
+
src="https://avatars.githubusercontent.com/u/156780?s=100"
|
|
88
|
+
width="100px;"
|
|
89
|
+
alt=""
|
|
90
|
+
/>
|
|
91
|
+
<br /><sub><b>eoghanmurray</b></sub>
|
|
92
|
+
<br /><br />
|
|
93
|
+
</a>
|
|
94
|
+
</td>
|
|
95
|
+
<td align="center">
|
|
96
|
+
<a href="https://github.com/Juice10">
|
|
97
|
+
<img
|
|
98
|
+
src="https://avatars.githubusercontent.com/u/4106?s=100"
|
|
99
|
+
width="100px;"
|
|
100
|
+
alt=""
|
|
101
|
+
/>
|
|
102
|
+
<br /><sub><b>Juice10</b></sub>
|
|
103
|
+
<br /><sub>open for rrweb consulting</sub>
|
|
104
|
+
</a>
|
|
105
|
+
</td>
|
|
106
|
+
</tr>
|
|
107
|
+
</table>
|
|
108
|
+
|
|
109
|
+
## Who's using rrweb?
|
|
110
|
+
|
|
111
|
+
<table>
|
|
112
|
+
<tr>
|
|
113
|
+
<td align="center">
|
|
114
|
+
<a href="http://www.smartx.com/" target="_blank">
|
|
115
|
+
<img width="195px" src="https://www.rrweb.io/logos/smartx.png">
|
|
116
|
+
</a>
|
|
117
|
+
</td>
|
|
118
|
+
<td align="center">
|
|
119
|
+
<a href="https://posthog.com?utm_source=rrweb&utm_medium=sponsorship&utm_campaign=open-source-sponsorship" target="_blank">
|
|
120
|
+
<img width="195px" src="https://www.rrweb.io/logos/posthog.png">
|
|
121
|
+
</a>
|
|
122
|
+
</td>
|
|
123
|
+
<td align="center">
|
|
124
|
+
<a href="https://statcounter.com/session-replay/" target="_blank">
|
|
125
|
+
<img width="195px" src="https://statcounter.com/images/logo-statcounter-arc-blue.svg">
|
|
126
|
+
</a>
|
|
127
|
+
</td>
|
|
128
|
+
<td align="center">
|
|
129
|
+
<a href="https://recordonce.com/" target="_blank">
|
|
130
|
+
<img width="195px" alt="Smart screen recording for SaaS" src="https://uploads-ssl.webflow.com/5f3d133183156245630d4446/5f3d1940abe8db8612c23521_Record-Once-logo-554x80px.svg">
|
|
131
|
+
</a>
|
|
132
|
+
</td>
|
|
133
|
+
</tr>
|
|
134
|
+
<tr>
|
|
135
|
+
<td align="center">
|
|
136
|
+
<a href="https://cux.io" target="_blank">
|
|
137
|
+
<img style="padding: 8px" alt="The first ever UX automation tool" width="195px" src="https://cux.io/cux-logo.svg">
|
|
138
|
+
</a>
|
|
139
|
+
</td>
|
|
140
|
+
<td align="center">
|
|
141
|
+
<a href="https://remsupp.com" target="_blank">
|
|
142
|
+
<img style="padding: 8px" alt="Remote Access & Co-Browsing" width="195px" src="https://remsupp.com/images/logo.png">
|
|
143
|
+
</a>
|
|
144
|
+
</td>
|
|
145
|
+
<td align="center">
|
|
146
|
+
<a href="https://highlight.io" target="_blank">
|
|
147
|
+
<img style="padding: 8px" alt="The open source, fullstack Monitoring Platform." width="195px" src="https://github.com/highlight/highlight/raw/main/highlight.io/public/images/logo.png">
|
|
148
|
+
</a>
|
|
149
|
+
</td>
|
|
150
|
+
<td align="center">
|
|
151
|
+
<a href="https://analyzee.io" target="_blank">
|
|
152
|
+
<img style="padding: 8px" alt="Comprehensive data analytics platform that empowers businesses to gain valuable insights and make data-driven decisions." width="195px" src="https://cdn.analyzee.io/assets/analyzee-logo.png">
|
|
153
|
+
</a>
|
|
154
|
+
</td>
|
|
155
|
+
</tr>
|
|
156
|
+
<tr>
|
|
157
|
+
<td align="center">
|
|
158
|
+
<a href="https://requestly.io" target="_blank">
|
|
159
|
+
<img style="padding: 8px" alt="Intercept, Modify, Record & Replay HTTP Requests." width="195px" src="https://github.com/requestly/requestly/assets/16779465/652552db-c867-44cb-9bb5-94a2026e04ca">
|
|
160
|
+
</a>
|
|
161
|
+
</td>
|
|
162
|
+
<td align="center">
|
|
163
|
+
<a href="https://gleap.io" target="_blank">
|
|
164
|
+
<img style="padding: 8px" alt="In-app bug reporting & customer feedback platform." width="195px" src="https://assets-global.website-files.com/6506f3f29c68b1724807619d/6506f56010237164c6306591_GleapLogo.svg">
|
|
165
|
+
</a>
|
|
166
|
+
</td>
|
|
167
|
+
<td align="center">
|
|
168
|
+
<a href="https://uxwizz.com" target="_blank">
|
|
169
|
+
<img style="padding: 8px" alt="Self-hosted website analytics with heatmaps and session recordings." width="195px" src="https://github.com/UXWizz/public-files/raw/main/assets/logo.png">
|
|
170
|
+
</a>
|
|
171
|
+
</td>
|
|
172
|
+
<td align="center">
|
|
173
|
+
<a href="https://www.howdygo.com" target="_blank">
|
|
174
|
+
<img style="padding: 8px" alt="Interactive product demos for small marketing teams" width="195px" src="https://assets-global.website-files.com/650afb446f1dd5bd410f00cc/650b2cec6188ff54dd9b01e1_Logo.svg">
|
|
175
|
+
</a>
|
|
176
|
+
</td>
|
|
177
|
+
</tr>
|
|
178
|
+
</table>
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { RecordPlugin } from '@betterbugs/types';
|
|
2
|
+
|
|
3
|
+
export declare const getRecordConsolePlugin: (options?: LogRecordOptions) => RecordPlugin;
|
|
4
|
+
|
|
5
|
+
export declare type LogData = {
|
|
6
|
+
level: LogLevel;
|
|
7
|
+
trace: string[];
|
|
8
|
+
payload: string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export declare type Logger = {
|
|
12
|
+
assert?: typeof console.assert;
|
|
13
|
+
clear?: typeof console.clear;
|
|
14
|
+
count?: typeof console.count;
|
|
15
|
+
countReset?: typeof console.countReset;
|
|
16
|
+
debug?: typeof console.debug;
|
|
17
|
+
dir?: typeof console.dir;
|
|
18
|
+
dirxml?: typeof console.dirxml;
|
|
19
|
+
error?: typeof console.error;
|
|
20
|
+
group?: typeof console.group;
|
|
21
|
+
groupCollapsed?: typeof console.groupCollapsed;
|
|
22
|
+
groupEnd?: () => void;
|
|
23
|
+
info?: typeof console.info;
|
|
24
|
+
log?: typeof console.log;
|
|
25
|
+
table?: typeof console.table;
|
|
26
|
+
time?: typeof console.time;
|
|
27
|
+
timeEnd?: typeof console.timeEnd;
|
|
28
|
+
timeLog?: typeof console.timeLog;
|
|
29
|
+
trace?: typeof console.trace;
|
|
30
|
+
warn?: typeof console.warn;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export declare type LogLevel = keyof Logger;
|
|
34
|
+
|
|
35
|
+
declare type LogRecordOptions = {
|
|
36
|
+
level?: LogLevel[];
|
|
37
|
+
lengthThreshold?: number;
|
|
38
|
+
stringifyOptions?: StringifyOptions;
|
|
39
|
+
logger?: Logger | 'console';
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export declare const PLUGIN_NAME = "rrweb/console@1";
|
|
43
|
+
|
|
44
|
+
export declare type StringifyOptions = {
|
|
45
|
+
stringLengthLimit?: number;
|
|
46
|
+
numOfKeysLimit: number;
|
|
47
|
+
depthOfLimit: number;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { }
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { RecordPlugin } from '@betterbugs/types';
|
|
2
|
+
|
|
3
|
+
export declare const getRecordConsolePlugin: (options?: LogRecordOptions) => RecordPlugin;
|
|
4
|
+
|
|
5
|
+
export declare type LogData = {
|
|
6
|
+
level: LogLevel;
|
|
7
|
+
trace: string[];
|
|
8
|
+
payload: string[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export declare type Logger = {
|
|
12
|
+
assert?: typeof console.assert;
|
|
13
|
+
clear?: typeof console.clear;
|
|
14
|
+
count?: typeof console.count;
|
|
15
|
+
countReset?: typeof console.countReset;
|
|
16
|
+
debug?: typeof console.debug;
|
|
17
|
+
dir?: typeof console.dir;
|
|
18
|
+
dirxml?: typeof console.dirxml;
|
|
19
|
+
error?: typeof console.error;
|
|
20
|
+
group?: typeof console.group;
|
|
21
|
+
groupCollapsed?: typeof console.groupCollapsed;
|
|
22
|
+
groupEnd?: () => void;
|
|
23
|
+
info?: typeof console.info;
|
|
24
|
+
log?: typeof console.log;
|
|
25
|
+
table?: typeof console.table;
|
|
26
|
+
time?: typeof console.time;
|
|
27
|
+
timeEnd?: typeof console.timeEnd;
|
|
28
|
+
timeLog?: typeof console.timeLog;
|
|
29
|
+
trace?: typeof console.trace;
|
|
30
|
+
warn?: typeof console.warn;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export declare type LogLevel = keyof Logger;
|
|
34
|
+
|
|
35
|
+
declare type LogRecordOptions = {
|
|
36
|
+
level?: LogLevel[];
|
|
37
|
+
lengthThreshold?: number;
|
|
38
|
+
stringifyOptions?: StringifyOptions;
|
|
39
|
+
logger?: Logger | 'console';
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export declare const PLUGIN_NAME = "rrweb/console@1";
|
|
43
|
+
|
|
44
|
+
export declare type StringifyOptions = {
|
|
45
|
+
stringLengthLimit?: number;
|
|
46
|
+
numOfKeysLimit: number;
|
|
47
|
+
depthOfLimit: number;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { }
|