From 97ead918baf3ff5d95a0da037189becd223165fc Mon Sep 17 00:00:00 2001 From: piquark6046 Date: Wed, 6 Nov 2024 07:17:48 +0000 Subject: [PATCH] fix: Safari detection issue using try...catch trap in production --- package.json | 2 +- sources/banner-ios-blocker.txt | 2 +- sources/banner-ios-recovery.txt | 2 +- sources/banner.txt | 2 +- sources/src/utils/secret.ts | 5 +---- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 4044c49..e446c71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@list-kr/microshield", - "version": "4.12.7", + "version": "4.12.8", "description": "", "type": "module", "scripts": { diff --git a/sources/banner-ios-blocker.txt b/sources/banner-ios-blocker.txt index 0ee600a..e5c9221 100644 --- a/sources/banner-ios-blocker.txt +++ b/sources/banner-ios-blocker.txt @@ -8,7 +8,7 @@ // @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/microshield@latest/dist/microShield-ios-blocker.user.js // @license Apache-2.0 // -// @version 4.12.7 +// @version 4.12.8 // @author PiQuark6046 and contributors // // @match *://ygosu.com/* diff --git a/sources/banner-ios-recovery.txt b/sources/banner-ios-recovery.txt index b706e63..f3dc6f9 100644 --- a/sources/banner-ios-recovery.txt +++ b/sources/banner-ios-recovery.txt @@ -8,7 +8,7 @@ // @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/microshield@latest/dist/microShield-ios-recovery.user.js // @license Apache-2.0 // -// @version 4.12.7 +// @version 4.12.8 // @author PiQuark6046 and contributors // // @match *://ygosu.com/* diff --git a/sources/banner.txt b/sources/banner.txt index 0e2f5b3..3369d3a 100644 --- a/sources/banner.txt +++ b/sources/banner.txt @@ -8,7 +8,7 @@ // @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/microshield@latest/dist/microShield.user.js // @license Apache-2.0 // -// @version 4.12.7 +// @version 4.12.8 // @author PiQuark6046 and contributors // // @match *://ygosu.com/* diff --git a/sources/src/utils/secret.ts b/sources/src/utils/secret.ts index 4fcff5c..0c4771b 100644 --- a/sources/src/utils/secret.ts +++ b/sources/src/utils/secret.ts @@ -46,14 +46,11 @@ export const ProtectFunction = (F: F, Options: ProtectedFunc PprintCall(Options.Name, true, ArgArray) if (typeof Options.ReturnAs !== 'undefined' && - MatchSpecificSeq(ErrorStackParser.parse(ErrorInstance), [/[A-Za-z]{1,3}/, undefined, /[A-Za-z]{1,3}/, /Generator\./, /Generator\./])) { + MatchSpecificSeq(ErrorStackParser.parse(ErrorInstance), [/[A-Za-z]{1,3}/, undefined, /[A-Za-z]{1,3}/])) { ReturnAs = Options.ReturnAs } else if (typeof Options.ReturnAs !== 'undefined' && MatchSpecificSeq(ErrorStackParser.parse(ErrorInstance), [/[A-Za-z]{1,3}/, /\/