this repo has no description

some canary fixes

Changed files
+6 -10
packages
core-extensions
src
disableSentry
quietLoggers
+4 -5
packages/core-extensions/src/disableSentry/index.ts
···
find: "DSN:function",
replace: {
type: PatchReplaceType.Normal,
-
match: /default:function\(\){return .}/,
-
replacement:
-
'default:function(){return require("disableSentry_stub").proxy()}'
+
match: /(?<=\.default=){.+?}}/,
+
replacement: 'require("disableSentry_stub").proxy()'
}
},
{
···
find: "window.DiscordErrors=",
replace: {
type: PatchReplaceType.Normal,
-
match: /uses_client_mods:\(0,.\.usesClientMods\)\(\)/,
-
replacement: "uses_client_mods:false"
+
match: /\(0,.\.usesClientMods\)\(\)/,
+
replacement: "false"
}
}
];
+2 -5
packages/core-extensions/src/quietLoggers/index.ts
···
['.displayName="RunningGameStore"', /.\.info\("games",{.+?}\),/],
[
'"[BUILD INFO] Release Channel: "',
-
/new\(0,.{1,2}\.default\)\(\)\.log\("\[BUILD INFO\] Release Channel: ".+?"\)\),/
+
/new .{1,2}\.default\(\)\.log\("\[BUILD INFO\] Release Channel: ".+?"\)\),/
],
[
'.AnalyticEvents.APP_NATIVE_CRASH,"Storage"',
···
'.AnalyticEvents.APP_NATIVE_CRASH,"Storage"',
'console.log("AppCrashedFatalReport: getLastCrash not supported.");'
],
-
[
-
'"[NATIVE INFO] ',
-
/new\(0,.{1,2}\.default\)\(\)\.log\("\[NATIVE INFO] .+?\)\),/
-
],
+
['"[NATIVE INFO] ', /new .{1,2}\.default\(\)\.log\("\[NATIVE INFO] .+?\)\),/],
['"Spellchecker"', /.\.info\("Switching to ".+?"\(unavailable\)"\);?/g],
[
'throw new Error("Messages are still loading.");',