cccproxy 1.0.1 → 1.2.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/README.md CHANGED
@@ -74,7 +74,7 @@ Or add to your `.claude/settings.json`:
74
74
 
75
75
  ## License
76
76
 
77
- MIT License - see [LICENSE](LICENSE) for details.
77
+ MIT License - see LICENSE for details.
78
78
 
79
79
  ## Acknowledgments
80
80
 
package/dist/index.js CHANGED
@@ -550,7 +550,9 @@ async function handleMessages(c) {
550
550
  const openAIPayload = translateToOpenAI(anthropicPayload);
551
551
  const response = await createChatCompletions(openAIPayload);
552
552
  if ("choices" in response) {
553
- const anthropicResponse = translateToAnthropic(response);
553
+ const anthropicResponse = translateToAnthropic(
554
+ response
555
+ );
554
556
  return c.json(anthropicResponse);
555
557
  }
556
558
  return streamSSE(c, async (stream) => {
package/package.json CHANGED
@@ -1,18 +1,24 @@
1
1
  {
2
2
  "name": "cccproxy",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
+ "license": "MIT",
4
5
  "type": "module",
5
6
  "bin": {
6
7
  "cccproxy": "dist/index.js"
7
8
  },
8
9
  "files": [
9
- "dist"
10
+ "dist",
11
+ "LICENSE"
10
12
  ],
11
13
  "scripts": {
12
14
  "build": "tsup src/index.ts --format esm --target node18 --clean",
13
15
  "prepublishOnly": "npm run build",
14
16
  "start": "node dist/index.js",
15
- "dev": "tsup src/index.ts --format esm --target node18 --watch"
17
+ "dev": "tsup src/index.ts --format esm --target node18 --watch",
18
+ "lint": "eslint src/**/*.ts",
19
+ "lint:fix": "eslint src/**/*.ts --fix",
20
+ "format": "prettier --write src",
21
+ "format:check": "prettier --check src"
16
22
  },
17
23
  "engines": {
18
24
  "node": ">=18.0.0"
@@ -23,8 +29,13 @@
23
29
  "hono": "^4.7.0"
24
30
  },
25
31
  "devDependencies": {
32
+ "@eslint/js": "^10.0.1",
26
33
  "@types/node": "^25.3.3",
34
+ "eslint": "^10.0.2",
35
+ "eslint-config-prettier": "^10.1.8",
36
+ "prettier": "^3.8.1",
27
37
  "tsup": "^8.5.1",
28
- "typescript": "^5.7.0"
38
+ "typescript": "^5.7.0",
39
+ "typescript-eslint": "^8.56.1"
29
40
  }
30
41
  }