@yxw007/translate 0.4.1 → 0.5.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/dist/package.json CHANGED
@@ -1,122 +1,122 @@
1
- {
2
- "name": "@yxw007/translate",
3
- "version": "0.4.1",
4
- "description": "A simple library that supports multiple translation engines",
5
- "author": "Potter<aa4790139@gmail.com>",
6
- "homepage": "https://github.com/yxw007/translate",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/yxw007/translate.git"
10
- },
11
- "bugs": {
12
- "url": "https://github.com/yxw007/translate/issues"
13
- },
14
- "publishConfig": {
15
- "access": "public"
16
- },
17
- "scripts": {
18
- "lint": "eslint . && prettier -c src",
19
- "lint:fix": "eslint . --fix && prettier -w src",
20
- "build": "pnpm clean && tsx script/build.ts",
21
- "build:dev": "pnpm clean && tsx script/build.ts --dev",
22
- "clean": "rm -rf dist",
23
- "test": "vitest --run",
24
- "test:coverage": "vitest --coverage --run",
25
- "release": "pnpm changelogen --release -i",
26
- "prepare": "husky"
27
- },
28
- "type": "module",
29
- "main": "./dist/node/index.cjs",
30
- "module": "./dist/node/index.js",
31
- "types": "./dist/index.d.ts",
32
- "exports": {
33
- ".": {
34
- "browser": {
35
- "require": "./dist/browser/index.cjs",
36
- "default": "./dist/browser/index.esm.js",
37
- "types": "./dist/index.d.ts"
38
- },
39
- "default": {
40
- "require": "./dist/node/index.cjs",
41
- "default": "./dist/node/index.js",
42
- "types": "./dist/index.d.ts"
43
- }
44
- }
45
- },
46
- "files": [
47
- "dist",
48
- "README_zh-CN.md",
49
- "README.md",
50
- "package.json"
51
- ],
52
- "keywords": [
53
- "typescript",
54
- "node",
55
- "browser",
56
- "translate",
57
- "translation",
58
- "google",
59
- "i18n",
60
- "l10n",
61
- "localization",
62
- "internationalization",
63
- "azure",
64
- "amazon",
65
- "baidu",
66
- "yandex",
67
- "ai",
68
- "deepl",
69
- "tencent"
70
- ],
71
- "husky": {
72
- "hooks": {
73
- "pre-commit": "lint-staged"
74
- }
75
- },
76
- "lint-staged": {
77
- "**/*.{ts}": [
78
- "pnpm lint:fix"
79
- ]
80
- },
81
- "license": "MIT",
82
- "devDependencies": {
83
- "@commitlint/config-conventional": "^19.2.2",
84
- "@eslint/js": "^8.57.0",
85
- "@rollup/plugin-alias": "^5.1.0",
86
- "@rollup/plugin-commonjs": "^26.0.1",
87
- "@rollup/plugin-json": "^6.1.0",
88
- "@rollup/plugin-node-resolve": "^15.2.3",
89
- "@rollup/plugin-terser": "^0.4.4",
90
- "@rollup/plugin-typescript": "^11.1.6",
91
- "@types/crypto-js": "^4.2.2",
92
- "@types/eslint__js": "^8.42.3",
93
- "@types/node": "^22.5.0",
94
- "@vitest/coverage-v8": "^2.0.5",
95
- "chalk": "^5.3.0",
96
- "changelogen": "^0.5.5",
97
- "commitlint": "^19.4.0",
98
- "dotenv": "^16.4.5",
99
- "eslint": "^8.57.0",
100
- "globals": "^15.9.0",
101
- "husky": "^9.1.5",
102
- "lint-staged": "^15.2.9",
103
- "maxmin": "^4.1.0",
104
- "prettier": "^3.3.3",
105
- "rollup": "^4.21.1",
106
- "rollup-plugin-dts": "^6.1.1",
107
- "tslib": "^2.7.0",
108
- "tsx": "^4.19.2",
109
- "typescript": "^5.5.4",
110
- "typescript-eslint": "^8.3.0",
111
- "vitest": "^2.0.5",
112
- "yargs": "^18.0.0"
113
- },
114
- "volta": {
115
- "node": "22.3.0"
116
- },
117
- "peerDependencies": {
118
- "@aws-sdk/client-translate": "^3.637.0",
119
- "@smithy/smithy-client": "^3.2.0",
120
- "crypto-js": "^4.2.0"
121
- }
122
- }
1
+ {
2
+ "name": "@yxw007/translate",
3
+ "version": "0.5.0",
4
+ "description": "A simple library that supports multiple translation engines",
5
+ "author": "Potter<aa4790139@gmail.com>",
6
+ "homepage": "https://github.com/yxw007/translate",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/yxw007/translate.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/yxw007/translate/issues"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "scripts": {
18
+ "lint": "eslint . && prettier -c src",
19
+ "lint:fix": "eslint . --fix && prettier -w src",
20
+ "build": "pnpm clean && tsx script/build.ts",
21
+ "build:dev": "pnpm clean && tsx script/build.ts --dev",
22
+ "clean": "rm -rf dist",
23
+ "test": "vitest --run",
24
+ "test:coverage": "vitest --coverage --run",
25
+ "release": "pnpm changelogen --release -i",
26
+ "prepare": "husky"
27
+ },
28
+ "type": "module",
29
+ "main": "./dist/node/index.cjs",
30
+ "module": "./dist/node/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "browser": {
35
+ "require": "./dist/browser/index.cjs",
36
+ "default": "./dist/browser/index.esm.js",
37
+ "types": "./dist/index.d.ts"
38
+ },
39
+ "default": {
40
+ "require": "./dist/node/index.cjs",
41
+ "default": "./dist/node/index.js",
42
+ "types": "./dist/index.d.ts"
43
+ }
44
+ }
45
+ },
46
+ "files": [
47
+ "dist",
48
+ "README_zh-CN.md",
49
+ "README.md",
50
+ "package.json"
51
+ ],
52
+ "keywords": [
53
+ "typescript",
54
+ "node",
55
+ "browser",
56
+ "translate",
57
+ "translation",
58
+ "google",
59
+ "i18n",
60
+ "l10n",
61
+ "localization",
62
+ "internationalization",
63
+ "azure",
64
+ "amazon",
65
+ "baidu",
66
+ "yandex",
67
+ "ai",
68
+ "deepl",
69
+ "tencent"
70
+ ],
71
+ "husky": {
72
+ "hooks": {
73
+ "pre-commit": "lint-staged"
74
+ }
75
+ },
76
+ "lint-staged": {
77
+ "**/*.{ts}": [
78
+ "pnpm lint:fix"
79
+ ]
80
+ },
81
+ "license": "MIT",
82
+ "devDependencies": {
83
+ "@commitlint/config-conventional": "^19.2.2",
84
+ "@eslint/js": "^8.57.0",
85
+ "@rollup/plugin-alias": "^5.1.0",
86
+ "@rollup/plugin-commonjs": "^26.0.1",
87
+ "@rollup/plugin-json": "^6.1.0",
88
+ "@rollup/plugin-node-resolve": "^15.2.3",
89
+ "@rollup/plugin-terser": "^0.4.4",
90
+ "@rollup/plugin-typescript": "^11.1.6",
91
+ "@types/crypto-js": "^4.2.2",
92
+ "@types/eslint__js": "^8.42.3",
93
+ "@types/node": "^22.5.0",
94
+ "@vitest/coverage-v8": "^2.0.5",
95
+ "chalk": "^5.3.0",
96
+ "changelogen": "^0.5.5",
97
+ "commitlint": "^19.4.0",
98
+ "dotenv": "^16.4.5",
99
+ "eslint": "^8.57.0",
100
+ "globals": "^15.9.0",
101
+ "husky": "^9.1.5",
102
+ "lint-staged": "^15.2.9",
103
+ "maxmin": "^4.1.0",
104
+ "prettier": "^3.3.3",
105
+ "rollup": "^4.21.1",
106
+ "rollup-plugin-dts": "^6.1.1",
107
+ "tslib": "^2.7.0",
108
+ "tsx": "^4.19.2",
109
+ "typescript": "^5.5.4",
110
+ "typescript-eslint": "^8.3.0",
111
+ "vitest": "^2.0.5",
112
+ "yargs": "^18.0.0"
113
+ },
114
+ "volta": {
115
+ "node": "22.3.0"
116
+ },
117
+ "peerDependencies": {
118
+ "@aws-sdk/client-translate": "^3.637.0",
119
+ "@smithy/smithy-client": "^3.2.0",
120
+ "crypto-js": "^4.2.0"
121
+ }
122
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yxw007/translate",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "A simple library that supports multiple translation engines",
5
5
  "author": "Potter<aa4790139@gmail.com>",
6
6
  "homepage": "https://github.com/yxw007/translate",