Update @electron/symbolicate-mac to 2.1.0

This commit is contained in:
Fedor Indutny 2024-05-13 13:52:20 -07:00 committed by GitHub
parent 39bc48c724
commit 559decea2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 19 deletions

View file

@ -207,7 +207,7 @@
"@babel/preset-typescript": "7.23.0",
"@electron/fuses": "1.5.0",
"@electron/notarize": "2.1.0",
"@electron/symbolicate-mac": "2.0.2",
"@electron/symbolicate-mac": "2.1.0",
"@formatjs/intl": "2.6.7",
"@indutny/rezip-electron": "1.3.1",
"@mixer/parallel-prettier": "2.0.3",

View file

@ -1,14 +0,0 @@
diff --git a/node_modules/@electron/symbolicate-mac/index.js b/node_modules/@electron/symbolicate-mac/index.js
index 36287bb..239564a 100755
--- a/node_modules/@electron/symbolicate-mac/index.js
+++ b/node_modules/@electron/symbolicate-mac/index.js
@@ -60,7 +60,8 @@ const symbolicate = async (options) => {
async function symbolicateOne({image, offset}) {
const { debugId, path: modulePath } = image
if (!symbolCache.has(debugId)) {
- const parsed = await getSymbolFile(debugId.replace(/-/g, '') + '0', path.basename(modulePath))
+ const suffix = path.extname(modulePath) === '.pdb' ? '1' : '0';
+ const parsed = await getSymbolFile(debugId.replace(/-/g, '') + suffix, path.basename(modulePath))
symbolCache.set(debugId, parsed)
}
const parsed = symbolCache.get(debugId)

View file

@ -1359,10 +1359,10 @@
minimist "^1.2.6"
plist "^3.0.5"
"@electron/symbolicate-mac@2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@electron/symbolicate-mac/-/symbolicate-mac-2.0.2.tgz#e3df3a62d3d48444c97f251fdd5cede1bfeef546"
integrity sha512-ysQQk1XrTILQXCoi7l4pa3J8qA5RMfcRNjow1tFdZGEwmV6FK6X3hpGbo94Gsv4z+6m+gTspdrVANFbpT2Tx2w==
"@electron/symbolicate-mac@2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@electron/symbolicate-mac/-/symbolicate-mac-2.1.0.tgz#94e559b7ade72c2b06885c03bb8e10cb8a1b2529"
integrity sha512-IOn78ATkPgtMSyK6tUToA4npOCMOnOLT4umhlEDPLpLMqNMeTR+2HlL/rHmTK4IlP5Pzd/GqqF2cQ4NtNRRV6Q==
dependencies:
got "^11.8.2"
mkdirp "^1.0.4"