@lee-zg/melange 1.2.2 → 1.2.5
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 +257 -256
- package/dist/{chunk-YZVCK6VZ.cjs → chunk-AAWWAPSG.cjs} +1425 -2
- package/dist/{chunk-3RM45M64.js → chunk-R3BPDZ3R.js} +1388 -3
- package/dist/container-B8n-ok8M.d.cts +201 -0
- package/dist/container-n8Q2Xa_y.d.ts +201 -0
- package/dist/core/index.d.cts +3 -200
- package/dist/core/index.d.ts +3 -200
- package/dist/generator-CEj5qxFh.d.cts +1752 -0
- package/dist/generator-D7ofMxfc.d.ts +1752 -0
- package/dist/index.cjs +138 -34
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -2
- package/dist/plugins/index.cjs +162 -9
- package/dist/plugins/index.d.cts +108 -755
- package/dist/plugins/index.d.ts +108 -755
- package/dist/plugins/index.js +2 -1
- package/package.json +143 -135
- package/dist/chunk-3RM45M64.js.map +0 -1
- package/dist/chunk-7QVYU63E.js.map +0 -1
- package/dist/chunk-BEY4UAYF.cjs.map +0 -1
- package/dist/chunk-GXFWPL5M.js.map +0 -1
- package/dist/chunk-GZBY4BUP.js.map +0 -1
- package/dist/chunk-ILNGTDQ4.js.map +0 -1
- package/dist/chunk-JLBTZPBY.cjs.map +0 -1
- package/dist/chunk-PK6SKIKE.cjs.map +0 -1
- package/dist/chunk-UYJUSNDI.cjs.map +0 -1
- package/dist/chunk-YZVCK6VZ.cjs.map +0 -1
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/fp/index.cjs.map +0 -1
- package/dist/fp/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/plugins/index.cjs.map +0 -1
- package/dist/plugins/index.js.map +0 -1
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
package/dist/plugins/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { SpeechRecognizerImpl, SpeechSynthesizerImpl, createSpeechRecognizer, createSpeechSynthesizer, isSpeechRecognitionSupported, isSpeechSynthesisSupported, listen, speak } from '../chunk-
|
|
1
|
+
export { AWSSynthesisAdapter, AlibabaAdapter, AlibabaSynthesisAdapter, AudioUtils, AzureAdapter, AzureSynthesisAdapter, BaiduAdapter, BaiduSynthesisAdapter, FINGERPRINT_GENERATOR, FINGERPRINT_VERSION, FingerprintGeneratorImpl, GenericAdapter, GenericSynthesisAdapter, GoogleAdapter, GoogleSynthesisAdapter, RecognitionStatus, SpeechRecognizerImpl, SpeechSynthesizerImpl, SynthesisAudioUtils, SynthesisStatus, TencentAdapter, TencentSynthesisAdapter, XunfeiAdapter, XunfeiSynthesisAdapter, bucketDeviceMemory, bucketHardwareConcurrency, bucketNumber, createFingerprintGenerator, createSpeechRecognizer, createSpeechSynthesizer, defaultFingerprintCollectors, fnv1a64, getFingerprint, hashString, isFingerprintSupported, isSpeechRecognitionSupported, isSpeechSynthesisSupported, listen, listenWithTimeout, normalizeUserAgent, registerFingerprintPlugin, serializeComponents, sha256, speak, speakWithCloud, stableStringify } from '../chunk-R3BPDZ3R.js';
|
|
2
|
+
import '../chunk-ILNGTDQ4.js';
|
|
2
3
|
import '../chunk-7QVYU63E.js';
|
|
3
4
|
//# sourceMappingURL=index.js.map
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,135 +1,143 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lee-zg/melange",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"publishConfig": {
|
|
5
|
-
"access": "public"
|
|
6
|
-
},
|
|
7
|
-
"description": "一个现代化的 JavaScript/TypeScript 个人工具库,支持函数式编程、面向对象模式和全面的类型支持",
|
|
8
|
-
"type": "module",
|
|
9
|
-
"main": "./dist/index.cjs",
|
|
10
|
-
"module": "./dist/index.js",
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": {
|
|
15
|
-
"types": "./dist/index.d.ts",
|
|
16
|
-
"default": "./dist/index.js"
|
|
17
|
-
},
|
|
18
|
-
"require": {
|
|
19
|
-
"types": "./dist/index.d.cts",
|
|
20
|
-
"default": "./dist/index.cjs"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"./fp": {
|
|
24
|
-
"import": {
|
|
25
|
-
"types": "./dist/fp/index.d.ts",
|
|
26
|
-
"default": "./dist/fp/index.js"
|
|
27
|
-
},
|
|
28
|
-
"require": {
|
|
29
|
-
"types": "./dist/fp/index.d.cts",
|
|
30
|
-
"default": "./dist/fp/index.cjs"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"./utils": {
|
|
34
|
-
"import": {
|
|
35
|
-
"types": "./dist/utils/index.d.ts",
|
|
36
|
-
"default": "./dist/utils/index.js"
|
|
37
|
-
},
|
|
38
|
-
"require": {
|
|
39
|
-
"types": "./dist/utils/index.d.cts",
|
|
40
|
-
"default": "./dist/utils/index.cjs"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"./core": {
|
|
44
|
-
"import": {
|
|
45
|
-
"types": "./dist/core/index.d.ts",
|
|
46
|
-
"default": "./dist/core/index.js"
|
|
47
|
-
},
|
|
48
|
-
"require": {
|
|
49
|
-
"types": "./dist/core/index.d.cts",
|
|
50
|
-
"default": "./dist/core/index.cjs"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"./plugins": {
|
|
54
|
-
"import": {
|
|
55
|
-
"types": "./dist/plugins/index.d.ts",
|
|
56
|
-
"default": "./dist/plugins/index.js"
|
|
57
|
-
},
|
|
58
|
-
"require": {
|
|
59
|
-
"types": "./dist/plugins/index.d.cts",
|
|
60
|
-
"default": "./dist/plugins/index.cjs"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"files": [
|
|
65
|
-
"dist",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@lee-zg/melange",
|
|
3
|
+
"version": "1.2.5",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "一个现代化的 JavaScript/TypeScript 个人工具库,支持函数式编程、面向对象模式和全面的类型支持",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.cjs",
|
|
10
|
+
"module": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"require": {
|
|
19
|
+
"types": "./dist/index.d.cts",
|
|
20
|
+
"default": "./dist/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"./fp": {
|
|
24
|
+
"import": {
|
|
25
|
+
"types": "./dist/fp/index.d.ts",
|
|
26
|
+
"default": "./dist/fp/index.js"
|
|
27
|
+
},
|
|
28
|
+
"require": {
|
|
29
|
+
"types": "./dist/fp/index.d.cts",
|
|
30
|
+
"default": "./dist/fp/index.cjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"./utils": {
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/utils/index.d.ts",
|
|
36
|
+
"default": "./dist/utils/index.js"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./dist/utils/index.d.cts",
|
|
40
|
+
"default": "./dist/utils/index.cjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"./core": {
|
|
44
|
+
"import": {
|
|
45
|
+
"types": "./dist/core/index.d.ts",
|
|
46
|
+
"default": "./dist/core/index.js"
|
|
47
|
+
},
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./dist/core/index.d.cts",
|
|
50
|
+
"default": "./dist/core/index.cjs"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"./plugins": {
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/plugins/index.d.ts",
|
|
56
|
+
"default": "./dist/plugins/index.js"
|
|
57
|
+
},
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/plugins/index.d.cts",
|
|
60
|
+
"default": "./dist/plugins/index.cjs"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist/**/*.js",
|
|
66
|
+
"dist/**/*.cjs",
|
|
67
|
+
"dist/**/*.d.ts",
|
|
68
|
+
"dist/**/*.d.cts",
|
|
69
|
+
"README.md",
|
|
70
|
+
"LICENSE"
|
|
71
|
+
],
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsup",
|
|
74
|
+
"dev": "tsup --watch",
|
|
75
|
+
"test": "vitest",
|
|
76
|
+
"test:run": "vitest run",
|
|
77
|
+
"test:coverage": "vitest run --coverage",
|
|
78
|
+
"test:exports": "node scripts/smoke-exports.mjs",
|
|
79
|
+
"lint": "eslint src --ext .ts,.js",
|
|
80
|
+
"lint:fix": "eslint src --ext .ts,.js --fix",
|
|
81
|
+
"format": "prettier --write \"src/**/*.{ts,js}\"",
|
|
82
|
+
"typecheck": "tsc --noEmit",
|
|
83
|
+
"check:version": "node scripts/check-version.mjs",
|
|
84
|
+
"check:coverage": "node scripts/check-coverage.mjs",
|
|
85
|
+
"pack:dry-run": "npm pack --dry-run",
|
|
86
|
+
"ci": "npm run check:version && npm run lint && npm run typecheck && npm run test:coverage && npm run check:coverage && npm run build && npm run test:exports && npm run docs:build && npm run pack:dry-run",
|
|
87
|
+
"prepublishOnly": "npm run build",
|
|
88
|
+
"clean": "rimraf dist",
|
|
89
|
+
"docs": "vitepress dev docs",
|
|
90
|
+
"docs:build": "vitepress build docs",
|
|
91
|
+
"docs:preview": "vitepress preview docs",
|
|
92
|
+
"docs:deploy": "npm run docs:build && echo 'Documentation built. Push to main branch to deploy.'",
|
|
93
|
+
"release:patch": "npm version patch && git push origin main --tags",
|
|
94
|
+
"release:minor": "npm version minor && git push origin main --tags",
|
|
95
|
+
"release:major": "npm version major && git push origin main --tags"
|
|
96
|
+
},
|
|
97
|
+
"keywords": [
|
|
98
|
+
"utility",
|
|
99
|
+
"typescript",
|
|
100
|
+
"functional",
|
|
101
|
+
"oop",
|
|
102
|
+
"library",
|
|
103
|
+
"helpers",
|
|
104
|
+
"decorators",
|
|
105
|
+
"fp",
|
|
106
|
+
"speech",
|
|
107
|
+
"tts",
|
|
108
|
+
"stt",
|
|
109
|
+
"speech-synthesis",
|
|
110
|
+
"speech-recognition",
|
|
111
|
+
"web-speech-api"
|
|
112
|
+
],
|
|
113
|
+
"author": "lee-zg",
|
|
114
|
+
"license": "MIT",
|
|
115
|
+
"repository": {
|
|
116
|
+
"type": "git",
|
|
117
|
+
"url": "git+https://github.com/Lee-zg/melange.git"
|
|
118
|
+
},
|
|
119
|
+
"bugs": {
|
|
120
|
+
"url": "https://github.com/Lee-zg/melange/issues"
|
|
121
|
+
},
|
|
122
|
+
"homepage": "https://lee-zg.github.io/melange/",
|
|
123
|
+
"devDependencies": {
|
|
124
|
+
"@types/node": "^20.10.0",
|
|
125
|
+
"@typescript-eslint/eslint-plugin": "^6.13.0",
|
|
126
|
+
"@typescript-eslint/parser": "^6.13.0",
|
|
127
|
+
"@vitest/coverage-v8": "^1.0.0",
|
|
128
|
+
"eslint": "^8.55.0",
|
|
129
|
+
"eslint-config-prettier": "^9.1.0",
|
|
130
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
131
|
+
"prettier": "^3.1.0",
|
|
132
|
+
"rimraf": "^5.0.5",
|
|
133
|
+
"tsup": "^8.0.1",
|
|
134
|
+
"typedoc": "^0.25.4",
|
|
135
|
+
"typescript": "^5.3.2",
|
|
136
|
+
"vitepress": "^1.6.4",
|
|
137
|
+
"vitest": "^1.0.0"
|
|
138
|
+
},
|
|
139
|
+
"engines": {
|
|
140
|
+
"node": ">=18.0.0"
|
|
141
|
+
},
|
|
142
|
+
"sideEffects": false
|
|
143
|
+
}
|