You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const { packageName, version } =v.parse(PackageRouteParamsSchema, {
125
+
packageName: rawPackageName,
126
+
version: rawVersion,
127
+
})
128
+
```
129
+
130
+
#### Error handling with `handleApiError`
131
+
132
+
Use the `handleApiError` utility for consistent error handling in API routes. It re-throws H3 errors (like 404s) and wraps other errors with a fallback message:
> If you need access to the Nuxt context in your unit or component test, place your test in the `test/nuxt/` directory and run with `pnpm test:nuxt`
176
229
177
-
### E2e tests
230
+
### Component accessibility tests
231
+
232
+
All new components should have a basic accessibility test in `test/nuxt/components.spec.ts`. These tests use [axe-core](https://github.com/dequelabs/axe-core) to catch common accessibility violations.
The `runAxe` helper handles DOM isolation and disables page-level rules that don't apply to isolated component testing.
251
+
252
+
> [!IMPORTANT]
253
+
> Just because axe-core doesn't find any obvious issues, it does not mean a component is accessible. Please do additional checks and use best practices.
@@ -118,7 +128,7 @@ npmx.dev also supports shorter, cleaner URLs:
118
128
119
129
## Contributing
120
130
121
-
I'd welcome contributions – please do feel free to poke around and improve things. See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines on how to get up and running!
131
+
We welcome contributions – please do feel free to poke around and improve things. See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines on how to get up and running!
122
132
123
133
## Related projects
124
134
@@ -128,7 +138,7 @@ I'd welcome contributions – please do feel free to poke around and improve
128
138
-[npm-alt](https://npm.willow.sh/)– An alternative npm package browser
129
139
-[npkg.lorypelli.dev](https://npkg.lorypelli.dev/)– An alternative frontend to npm made with as little client-side JavaScript as possible
Copy file name to clipboardExpand all lines: SECURITY.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,6 @@
2
2
3
3
## Reporting a Vulnerability
4
4
5
-
To report a vulnerability, please [privately report it via the Security tab](https://github.com/danielroe/npmx.dev/security/advisories/new). If that is impossible, feel free to send an email to **security@roe.dev** instead.
5
+
To report a vulnerability, please [privately report it via the Security tab](https://github.com/npmx-dev/npmx.dev/security/advisories/new). If that is impossible, feel free to send an email to **security@roe.dev** instead.
6
6
7
7
All security vulnerabilities will be promptly verified and addressed.
0 commit comments