@minto-ai/tools 1.0.61 → 1.0.62

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13402,7 +13402,14 @@ var AudioPlaybackPermission = /* @__PURE__ */ function() {
13402
13402
  break;
13403
13403
  }
13404
13404
  _context2.next = 11;
13405
- return audioContext.resume();
13405
+ return Promise.race([audioContext.resume(), new Promise(function(_, reject2) {
13406
+ return setTimeout(function() {
13407
+ return reject2(AudioPermissionError.create(
13408
+ "AutoplayBlocked"
13409
+ /* AUTOPLAY_BLOCKED */
13410
+ ));
13411
+ }, 3e3);
13412
+ })]);
13406
13413
  case 11:
13407
13414
  _context2.next = 13;
13408
13415
  return new Promise(function(resolve2) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@minto-ai/tools",
3
3
  "type": "module",
4
- "version": "1.0.61",
4
+ "version": "1.0.62",
5
5
  "description": "明途公共工具库",
6
6
  "author": "hcc",
7
7
  "license": "ISC",