fourohfour 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,58 @@
1
1
  {
2
2
  "name": "fourohfour",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "HTTP status codes as typed constants (Status.NOT_FOUND is the type 404), RFC 9110 reason phrases, lookups, predicates like isRetryable, and an HttpError that serializes to RFC 9457 problem+json. Tree-shakeable, zero dependencies.",
5
+ "keywords": [
6
+ "http",
7
+ "status",
8
+ "status-code",
9
+ "status-codes",
10
+ "http-status",
11
+ "http-status-codes",
12
+ "statuses",
13
+ "reason-phrase",
14
+ "status-text",
15
+ "rfc9110",
16
+ "rfc9457",
17
+ "problem-details",
18
+ "problem-json",
19
+ "http-error",
20
+ "http-errors",
21
+ "error",
22
+ "404",
23
+ "constants",
24
+ "typescript"
25
+ ],
26
+ "license": "MIT",
27
+ "type": "module",
28
+ "sideEffects": false,
29
+ "main": "./dist/index.cjs",
30
+ "module": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "import": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./dist/index.js"
37
+ },
38
+ "require": {
39
+ "types": "./dist/index.d.cts",
40
+ "default": "./dist/index.cjs"
41
+ }
42
+ },
43
+ "./package.json": "./package.json"
44
+ },
45
+ "files": [
46
+ "dist",
47
+ "CHANGELOG.md"
48
+ ],
49
+ "engines": {
50
+ "node": ">=20"
51
+ },
52
+ "scripts": {
53
+ "build": "tsup",
54
+ "test": "vitest run",
55
+ "typecheck": "tsc -p .",
56
+ "prepublishOnly": "npm run typecheck && npm test && npm run build"
57
+ }
58
+ }