@yedoma-labs/ysuly-problem 0.0.0-stage → 1.0.1
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 +172 -2
- package/dist/index.cjs +351 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +129 -0
- package/dist/index.d.ts +129 -0
- package/dist/index.js +340 -0
- package/dist/index.js.map +1 -0
- package/package.json +81 -3
package/package.json
CHANGED
|
@@ -1,6 +1,84 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yedoma-labs/ysuly-problem",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Type-safe RFC 9457 Problem Details with safe error mapping, zero dependencies",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=20"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"problem-details",
|
|
29
|
+
"rfc9457",
|
|
30
|
+
"rfc7807",
|
|
31
|
+
"problem+json",
|
|
32
|
+
"error-handling",
|
|
33
|
+
"api",
|
|
34
|
+
"typescript",
|
|
35
|
+
"zero-dependency"
|
|
36
|
+
],
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/yedoma-labs/ysuly-problem"
|
|
40
|
+
},
|
|
41
|
+
"author": "",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"simple-git-hooks": {
|
|
44
|
+
"pre-commit": "pnpm exec lint-staged",
|
|
45
|
+
"pre-push": "pnpm run typecheck && pnpm run test",
|
|
46
|
+
"commit-msg": "pnpm exec commitlint --edit $1"
|
|
47
|
+
},
|
|
48
|
+
"lint-staged": {
|
|
49
|
+
"*.ts": [
|
|
50
|
+
"biome check --write"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@biomejs/biome": "2.6.3",
|
|
55
|
+
"@commitlint/cli": "^21.2.4",
|
|
56
|
+
"@commitlint/config-conventional": "^21.2.4",
|
|
57
|
+
"@semantic-release/changelog": "^7.0.0",
|
|
58
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
59
|
+
"@semantic-release/exec": "^7.1.0",
|
|
60
|
+
"@semantic-release/git": "^11.0.1",
|
|
61
|
+
"@semantic-release/github": "^12.0.10",
|
|
62
|
+
"@semantic-release/npm": "^13.2.0",
|
|
63
|
+
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
64
|
+
"@types/node": "26.6.5",
|
|
65
|
+
"@typescript/typescript6": "^6.0.2",
|
|
66
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
67
|
+
"lint-staged": "^17.6.0",
|
|
68
|
+
"semantic-release": "^25.0.9",
|
|
69
|
+
"simple-git-hooks": "^2.14.0",
|
|
70
|
+
"tsdown": "^0.23.2",
|
|
71
|
+
"typescript": "7.0.2",
|
|
72
|
+
"vitest": "5.0.5"
|
|
73
|
+
},
|
|
74
|
+
"scripts": {
|
|
75
|
+
"build": "tsdown",
|
|
76
|
+
"test": "vitest run",
|
|
77
|
+
"test:watch": "vitest",
|
|
78
|
+
"test:coverage": "vitest run --coverage",
|
|
79
|
+
"lint": "biome check src tests",
|
|
80
|
+
"lint:fix": "biome check --write src tests",
|
|
81
|
+
"format": "biome format --write src tests",
|
|
82
|
+
"typecheck": "tsc --noEmit"
|
|
83
|
+
}
|
|
6
84
|
}
|