ms-vite-plugin 1.4.22 → 1.4.24
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/build.js +10 -1
- package/docs/httpapi/api.md +4 -4
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -202,6 +202,8 @@ const buildAll = async (isDev = true, workspacePath) => {
|
|
|
202
202
|
emptyOutDir: false, // 不要每次清空输出目录
|
|
203
203
|
sourcemap: isDev,
|
|
204
204
|
minify: !isDev, // 开发环境不压缩变量名
|
|
205
|
+
// 目标 JSC 最低兼容 iOS 15,钉死语法降级基线(不超纲到 iOS 15 不支持的语法)
|
|
206
|
+
target: "safari15",
|
|
205
207
|
},
|
|
206
208
|
plugins: [
|
|
207
209
|
(0, stopGuardPlugin_1.createStopGuardPlugin)(),
|
|
@@ -211,7 +213,14 @@ const buildAll = async (isDev = true, workspacePath) => {
|
|
|
211
213
|
(0, vite_plugin_bundle_obfuscator_1.default)({
|
|
212
214
|
autoExcludeNodeModules: true,
|
|
213
215
|
threadPool: true,
|
|
214
|
-
options:
|
|
216
|
+
options: {
|
|
217
|
+
...obfuscatorConfig,
|
|
218
|
+
target: "browser",
|
|
219
|
+
debugProtection: false,
|
|
220
|
+
disableConsoleOutput: false,
|
|
221
|
+
domainLock: [],
|
|
222
|
+
selfDefending: false,
|
|
223
|
+
},
|
|
215
224
|
}),
|
|
216
225
|
]),
|
|
217
226
|
],
|
package/docs/httpapi/api.md
CHANGED
|
@@ -770,10 +770,10 @@ GET /mirror/image
|
|
|
770
770
|
|
|
771
771
|
### 请求参数
|
|
772
772
|
|
|
773
|
-
| 名称
|
|
774
|
-
|
|
|
775
|
-
| fps
|
|
776
|
-
| quality
|
|
773
|
+
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|
|
774
|
+
| ------------- | ----- | ------- | ---- | ------ | ---------------------------- |
|
|
775
|
+
| fps | query | integer | 否 | | 帧率,默认 10,范围 1-30 |
|
|
776
|
+
| quality | query | number | 否 | | 质量,默认 0.25,范围 0.1-1.0 |
|
|
777
777
|
|
|
778
778
|
> 返回示例
|
|
779
779
|
|