@mime8/recorder 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +36 -2
- package/THIRD_PARTY_LICENSES +25 -0
- package/dist/recorder.js +4234 -0
- package/dist/recorder.umd.cjs +78 -0
- package/package.json +48 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Atif Afzal
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mime8/recorder
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Records real user sessions in your web app and sends them to mime8. mime8 replays them against your pull request's build and reports what the change did: screenshots, and the requests your app sends to its own backend.
|
|
4
|
+
|
|
5
|
+
## Add it to your app
|
|
6
|
+
|
|
7
|
+
Load it before any of your app's code, as early in `<head>` as you can, so it sees the first requests:
|
|
8
|
+
|
|
9
|
+
```html
|
|
10
|
+
<script src="https://cdn.jsdelivr.net/npm/@mime8/recorder@0.1.0/dist/recorder.umd.cjs"></script>
|
|
11
|
+
<script>
|
|
12
|
+
mime8.init({ projectKey: "pk_…" });
|
|
13
|
+
</script>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Or install it and call `init` first thing in your entry file:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm install @mime8/recorder
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import { init } from "@mime8/recorder";
|
|
24
|
+
|
|
25
|
+
init({ projectKey: "pk_…" });
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Options
|
|
29
|
+
|
|
30
|
+
- `projectKey` (required): your project's public key.
|
|
31
|
+
- `collectorUrl`: where sessions are sent. Defaults to mime8's collector.
|
|
32
|
+
- `network.ignoreUrls`: requests and connections to these URLs are never recorded.
|
|
33
|
+
- `network.maxBodySize`: request and response bodies over this many bytes are recorded as omitted (1 MB by default).
|
|
34
|
+
- `network.redact`: more `headers`, `queryParams` and `bodyFields` to redact, added to the defaults (names containing words such as `authorization`, `cookie`, `token`, `secret`, `password`).
|
|
35
|
+
- `network.beforeRecord`: a function that sees each recorded request last; return it, a changed copy, or `null` to drop it.
|
|
36
|
+
|
|
37
|
+
A string matches a name exactly (ignoring case), or a URL as a prefix; a RegExp is tested; a function decides.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@mime8/recorder bundles the following third-party software.
|
|
2
|
+
|
|
3
|
+
rrweb (@rrweb/record 2.1.1), https://github.com/rrweb-io/rrweb
|
|
4
|
+
|
|
5
|
+
MIT License
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors)
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|