-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
486 additions
and
986 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# 在使用此示例前,请先将文件名'example'去掉 | ||
|
||
# 端口号 | ||
# type: Number | ||
# default: 6119 | ||
PORT=6119 | ||
|
||
# 是否允许请求备选翻译 | ||
# type: Boolean | ||
# default: true | ||
# 不允许时报错 | ||
ALTERNATIVE=true | ||
|
||
# 跨域请求 (待完善) | ||
# type: Boolean String RegExp | ||
# default: false | ||
# 正则表达式请使用引号包裹。 | ||
# 示例: '*'(允许任何) 或者 false(不允许) | ||
CORS_ORIGIN=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
# backup | ||
*.bak | ||
src/translate_old.js | ||
|
||
# Logs | ||
logs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
{ | ||
"name": "deeplx-serverless", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "DeepL free API for Serverless", | ||
"type": "module", | ||
"main": "server.js", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"scripts": { | ||
"start": "node server.js", | ||
"test": "node test.js" | ||
}, | ||
"keywords": [ | ||
"deeplxs", | ||
"deeplx", | ||
"deepl", | ||
"translate", | ||
"serverless" | ||
], | ||
"license": "AGPL-3.0", | ||
"author": "guobao2333", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"scripts": { | ||
"build:vercel": "mv src/* api/", | ||
"start": "node src/server.js", | ||
"test": "node test.js", | ||
"start:sl": "node src/index.js", | ||
"test:post": "node test_post.js" | ||
}, | ||
"dependencies": { | ||
"axios": "^1.7.4", | ||
"cors": "^2.8.5", | ||
"dotenv": "^16.4.5", | ||
"axios": "^1.6.3", | ||
"body-parser": "^1.20.2", | ||
"cors": "^2.8.5", | ||
"express": "^4.18.2", | ||
"lodash": "^4.17.21", | ||
"node-fetch": "^3.3.2", | ||
"random-int": "^3.0.0", | ||
"yargs": "^17.7.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.