@authme/util 2.8.34 → 2.8.36
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/index.cjs +4 -4
- package/index.js +4 -4
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1516,7 +1516,7 @@ function upgradeResolution(videoTrack) {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
};
|
|
1518
1518
|
const minAcceptableWidth = 1280; // 最低可接受的解析度寬度
|
|
1519
|
-
const maxAttempts =
|
|
1519
|
+
const maxAttempts = 15; // 最多嘗試10次
|
|
1520
1520
|
const retryDelay = 2000; // 每次重試間隔1秒
|
|
1521
1521
|
console.log('🚀 開始提升解析度...');
|
|
1522
1522
|
const startTime = Date.now();
|
|
@@ -1762,7 +1762,7 @@ function _requestCamera(video, facingMode, translate) {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
// 嘗試開啟相機,如果解析度不足會持續重試
|
|
1764
1764
|
let retryCount = 0;
|
|
1765
|
-
const MAX_RETRIES =
|
|
1765
|
+
const MAX_RETRIES = 12;
|
|
1766
1766
|
while (retryCount < MAX_RETRIES) {
|
|
1767
1767
|
try {
|
|
1768
1768
|
yield switchCamera(deviceId, video, translate);
|
|
@@ -3368,8 +3368,8 @@ const themeConfigDefault = {
|
|
|
3368
3368
|
};
|
|
3369
3369
|
|
|
3370
3370
|
var name = "authme/sdk";
|
|
3371
|
-
var version$1 = "2.8.
|
|
3372
|
-
var date = "2025-11-
|
|
3371
|
+
var version$1 = "2.8.36";
|
|
3372
|
+
var date = "2025-11-26T02:00:44+0000";
|
|
3373
3373
|
var packageInfo = {
|
|
3374
3374
|
name: name,
|
|
3375
3375
|
version: version$1,
|
package/index.js
CHANGED
|
@@ -1506,7 +1506,7 @@ function upgradeResolution(videoTrack) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
};
|
|
1508
1508
|
const minAcceptableWidth = 1280; // 最低可接受的解析度寬度
|
|
1509
|
-
const maxAttempts =
|
|
1509
|
+
const maxAttempts = 15; // 最多嘗試10次
|
|
1510
1510
|
const retryDelay = 2000; // 每次重試間隔1秒
|
|
1511
1511
|
console.log('🚀 開始提升解析度...');
|
|
1512
1512
|
const startTime = Date.now();
|
|
@@ -1752,7 +1752,7 @@ function _requestCamera(video, facingMode, translate) {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
// 嘗試開啟相機,如果解析度不足會持續重試
|
|
1754
1754
|
let retryCount = 0;
|
|
1755
|
-
const MAX_RETRIES =
|
|
1755
|
+
const MAX_RETRIES = 12;
|
|
1756
1756
|
while (retryCount < MAX_RETRIES) {
|
|
1757
1757
|
try {
|
|
1758
1758
|
yield switchCamera(deviceId, video, translate);
|
|
@@ -3358,8 +3358,8 @@ const themeConfigDefault = {
|
|
|
3358
3358
|
};
|
|
3359
3359
|
|
|
3360
3360
|
var name = "authme/sdk";
|
|
3361
|
-
var version$1 = "2.8.
|
|
3362
|
-
var date = "2025-11-
|
|
3361
|
+
var version$1 = "2.8.36";
|
|
3362
|
+
var date = "2025-11-26T02:00:44+0000";
|
|
3363
3363
|
var packageInfo = {
|
|
3364
3364
|
name: name,
|
|
3365
3365
|
version: version$1,
|