cccproxy 1.0.1 → 1.1.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +12 -3
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,6 +1,6 @@
1
1
  {
2
2
  "name": "cccproxy",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "cccproxy": "dist/index.js"
@@ -12,7 +12,11 @@
12
12
  "build": "tsup src/index.ts --format esm --target node18 --clean",
13
13
  "prepublishOnly": "npm run build",
14
14
  "start": "node dist/index.js",
15
- "dev": "tsup src/index.ts --format esm --target node18 --watch"
15
+ "dev": "tsup src/index.ts --format esm --target node18 --watch",
16
+ "lint": "eslint src/**/*.ts",
17
+ "lint:fix": "eslint src/**/*.ts --fix",
18
+ "format": "prettier --write src",
19
+ "format:check": "prettier --check src"
16
20
  },
17
21
  "engines": {
18
22
  "node": ">=18.0.0"
@@ -23,8 +27,13 @@
23
27
  "hono": "^4.7.0"
24
28
  },
25
29
  "devDependencies": {
30
+ "@eslint/js": "^10.0.1",
26
31
  "@types/node": "^25.3.3",
32
+ "eslint": "^10.0.2",
33
+ "eslint-config-prettier": "^10.1.8",
34
+ "prettier": "^3.8.1",
27
35
  "tsup": "^8.5.1",
28
- "typescript": "^5.7.0"
36
+ "typescript": "^5.7.0",
37
+ "typescript-eslint": "^8.56.1"
29
38
  }
30
39
  }