@fastify-utils/error 0.0.0-stage → 1.0.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/package.json CHANGED
@@ -1,6 +1,61 @@
1
1
  {
2
2
  "name": "@fastify-utils/error",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "description": "RFC 9457 Problem Details for HTTP APIs - A standardized error handling package for Node.js",
5
+ "author": "xcfio",
6
+ "homepage": "https://github.com/fastify-utils#readme",
7
+ "type": "commonjs",
8
+ "license": "MIT",
9
+ "main": "./out/index.cjs",
10
+ "types": "./out/index.d.cts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./out/index.d.cts",
14
+ "import": "./out/index.mjs",
15
+ "require": "./out/index.cjs"
16
+ }
17
+ },
18
+ "engines": {
19
+ "node": ">=24"
20
+ },
21
+ "keywords": [
22
+ "rfc9457",
23
+ "rfc7807",
24
+ "error",
25
+ "fastify",
26
+ "http",
27
+ "problem-details",
28
+ "error-handling",
29
+ "nodejs",
30
+ "typescript"
31
+ ],
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/xcfio/fastify-utils",
35
+ "directory": "packages/error"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/xcfio/fastify-utils",
39
+ "email": "xcfio@proton.me"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public",
43
+ "tag": "latest"
44
+ },
45
+ "devDependencies": {
46
+ "@types/node": "^26.6.5",
47
+ "@vitest/coverage-v8": "^5.0.5",
48
+ "@vitest/ui": "^5.0.5",
49
+ "tsdown": "^0.23.1",
50
+ "typescript": "7.0.2",
51
+ "vitest": "^5.0.5"
52
+ },
53
+ "scripts": {
54
+ "build": "tsdown --config=tsdown.config.mts",
55
+ "dev": "tsdown --watch --config=tsdown.config.mts",
56
+ "test": "tsc --noEmit && vitest run",
57
+ "test:ui": "tsc --noEmit && vitest --ui",
58
+ "test:coverage": "vitest run --coverage",
59
+ "test:watch": "vitest"
60
+ }
6
61
  }
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from "tsdown"
2
+
3
+ export default defineConfig({
4
+ entry: ["./src/index.ts"],
5
+ format: ["cjs", "esm"],
6
+ outDir: "out"
7
+ })
@@ -0,0 +1,17 @@
1
+ import { defineConfig } from "vitest/config"
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ coverage: {
6
+ provider: "v8",
7
+ enabled: true,
8
+ reporter: ["text", "json", "html"],
9
+ thresholds: {
10
+ statements: 100,
11
+ branches: 100,
12
+ functions: 100,
13
+ lines: 100
14
+ }
15
+ }
16
+ }
17
+ })