snapfail 0.0.1 → 0.0.2
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 +52 -0
- package/dist/init-PT3WVALP.js +0 -0
- package/package.json +7 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Snapfail
|
|
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
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# snapfail
|
|
2
|
+
|
|
3
|
+
CLI for [Snapfail](https://snapfail.dev) — error monitoring for modern web apps.
|
|
4
|
+
|
|
5
|
+
Snapfail renders your pages in a real browser, diffs screenshots pixel-by-pixel, and asserts that critical DOM nodes are alive. Status pages lie. Pixels don't.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
No installation required. Run directly with `npx`:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx snapfail astro init
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### `snapfail astro init`
|
|
16
|
+
|
|
17
|
+
Adds Snapfail to an existing Astro project:
|
|
18
|
+
|
|
19
|
+
1. Detects your `astro.config.*`
|
|
20
|
+
2. Detects your package manager (pnpm / yarn / bun / npm)
|
|
21
|
+
3. Installs `@snapfail/astro` and `@snapfail/sdk`
|
|
22
|
+
4. Injects the integration into your config automatically
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
◆ snapfail · astro init
|
|
26
|
+
│
|
|
27
|
+
● Found astro.config.mjs
|
|
28
|
+
│
|
|
29
|
+
◆ Beacon endpoint (DSN)
|
|
30
|
+
│ /api/beacon
|
|
31
|
+
│
|
|
32
|
+
✔ Packages installed
|
|
33
|
+
✔ Integration added to astro.config.mjs
|
|
34
|
+
│
|
|
35
|
+
◆ Done! Run your dev server to start capturing errors.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
After running, your `astro.config.mjs` will look like this:
|
|
39
|
+
|
|
40
|
+
```js
|
|
41
|
+
import { snapfail } from '@snapfail/astro'
|
|
42
|
+
|
|
43
|
+
export default defineConfig({
|
|
44
|
+
integrations: [
|
|
45
|
+
snapfail({ dsn: '/api/beacon' }),
|
|
46
|
+
],
|
|
47
|
+
})
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
MIT
|
package/dist/init-PT3WVALP.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snapfail",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "CLI for Snapfail — error monitoring for modern web apps",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"snapfail",
|
|
8
|
-
"cli",
|
|
9
|
-
"error-monitoring",
|
|
10
|
-
"astro"
|
|
11
|
-
],
|
|
6
|
+
"keywords": ["snapfail", "cli", "error-monitoring", "astro"],
|
|
12
7
|
"publishConfig": {
|
|
13
8
|
"access": "public"
|
|
14
9
|
},
|
|
@@ -19,15 +14,15 @@
|
|
|
19
14
|
"files": [
|
|
20
15
|
"dist"
|
|
21
16
|
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsup",
|
|
19
|
+
"dev": "tsup --watch"
|
|
20
|
+
},
|
|
22
21
|
"dependencies": {
|
|
23
22
|
"@clack/prompts": "^0.9.0"
|
|
24
23
|
},
|
|
25
24
|
"devDependencies": {
|
|
26
25
|
"tsup": "^8.4.0",
|
|
27
26
|
"typescript": "^6.0.3"
|
|
28
|
-
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"build": "tsup",
|
|
31
|
-
"dev": "tsup --watch"
|
|
32
27
|
}
|
|
33
|
-
}
|
|
28
|
+
}
|