-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
85 lines (85 loc) · 2.04 KB
/
Copy pathpackage.json
File metadata and controls
85 lines (85 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"name": "@ai-router/openai-compatible-errors",
"version": "0.1.0",
"description": "Normalize OpenAI-compatible API errors into typed categories, retry plans, request IDs, and redacted diagnostics",
"keywords": [
"openai-compatible",
"openai",
"openai-api",
"llm",
"ai-gateway",
"api-errors",
"error-normalization",
"error-handling",
"retry",
"retry-after",
"rate-limit",
"request-id",
"sse",
"streaming",
"typescript",
"fetch",
"redaction",
"safe-logging"
],
"license": "MIT",
"author": "airouter.dev contributors",
"repository": {
"type": "git",
"url": "git+https://github.com/airouter-dev/openai-compatible-errors.git"
},
"homepage": "https://github.com/airouter-dev/openai-compatible-errors#readme",
"bugs": {
"url": "https://github.com/airouter-dev/openai-compatible-errors/issues"
},
"type": "module",
"sideEffects": false,
"files": [
"dist",
"CHANGELOG.md",
"LICENSE",
"README.md"
],
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"engines": {
"node": ">=18.18"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --clean --sourcemap",
"coverage": "vitest run --coverage",
"smoke": "node scripts/runtime-smoke.cjs",
"test": "vitest run",
"typecheck": "tsc --noEmit",
"validate": "npm run typecheck && npm run coverage && npm run build",
"prepack": "npm run validate"
},
"devDependencies": {
"@types/node": "^20.19.0",
"@vitest/coverage-v8": "^4.1.10",
"openai": "6.49.0",
"tsup": "^8.5.0",
"typescript": "^5.7.0",
"vitest": "^4.1.10"
},
"overrides": {
"esbuild": "0.27.2"
}
}