mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Fix sentry sourcemaps (#20122)
* Update sentry/cli to 2.19.4 * Ensure sentry files are loaded and referenced with a valid url * Temp to eliminate errors in sentry (should be split into other PRs)
This commit is contained in:
parent
e923110092
commit
e1722d773a
@ -352,6 +352,6 @@ function toMetamaskUrl(origUrl) {
|
|||||||
if (!filePath) {
|
if (!filePath) {
|
||||||
return origUrl;
|
return origUrl;
|
||||||
}
|
}
|
||||||
const metamaskUrl = `metamask${filePath}`;
|
const metamaskUrl = `/metamask${filePath}`;
|
||||||
return metamaskUrl;
|
return metamaskUrl;
|
||||||
}
|
}
|
||||||
|
@ -99,6 +99,8 @@ async function defineAndRunBuildTasks() {
|
|||||||
'navigator',
|
'navigator',
|
||||||
'harden',
|
'harden',
|
||||||
'console',
|
'console',
|
||||||
|
'WeakSet',
|
||||||
|
'Event',
|
||||||
'Image', // Used by browser to generate notifications
|
'Image', // Used by browser to generate notifications
|
||||||
// globals chromedriver needs to function
|
// globals chromedriver needs to function
|
||||||
/cdc_[a-zA-Z0-9]+_[a-zA-Z]+/iu,
|
/cdc_[a-zA-Z0-9]+_[a-zA-Z]+/iu,
|
||||||
|
@ -31,7 +31,7 @@ function upload_sourcemaps {
|
|||||||
local release="${1}"; shift
|
local release="${1}"; shift
|
||||||
local dist_directory="${1}"; shift
|
local dist_directory="${1}"; shift
|
||||||
|
|
||||||
sentry-cli releases files "${release}" upload-sourcemaps "${dist_directory}"/chrome/*.js "${dist_directory}"/sourcemaps/ --rewrite --url-prefix 'metamask'
|
sentry-cli releases files "${release}" upload-sourcemaps "${dist_directory}"/chrome/*.js "${dist_directory}"/sourcemaps/ --rewrite --url-prefix '/metamask'
|
||||||
}
|
}
|
||||||
|
|
||||||
function main {
|
function main {
|
||||||
|
@ -1129,13 +1129,6 @@
|
|||||||
"@metamask/jazzicon>color>color-convert>color-name": true
|
"@metamask/jazzicon>color>color-convert>color-name": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@sentry/cli>mkdirp": {
|
|
||||||
"builtin": {
|
|
||||||
"fs": true,
|
|
||||||
"path.dirname": true,
|
|
||||||
"path.resolve": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"@storybook/addon-knobs>qs": {
|
"@storybook/addon-knobs>qs": {
|
||||||
"packages": {
|
"packages": {
|
||||||
"string.prototype.matchall>side-channel": true
|
"string.prototype.matchall>side-channel": true
|
||||||
@ -8158,7 +8151,14 @@
|
|||||||
"path.dirname": true
|
"path.dirname": true
|
||||||
},
|
},
|
||||||
"packages": {
|
"packages": {
|
||||||
"@sentry/cli>mkdirp": true
|
"stylelint>file-entry-cache>flat-cache>write>mkdirp": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"stylelint>file-entry-cache>flat-cache>write>mkdirp": {
|
||||||
|
"builtin": {
|
||||||
|
"fs": true,
|
||||||
|
"path.dirname": true,
|
||||||
|
"path.resolve": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stylelint>global-modules": {
|
"stylelint>global-modules": {
|
||||||
|
@ -385,7 +385,7 @@
|
|||||||
"@metamask/forwarder": "^1.1.0",
|
"@metamask/forwarder": "^1.1.0",
|
||||||
"@metamask/phishing-warning": "^2.1.0",
|
"@metamask/phishing-warning": "^2.1.0",
|
||||||
"@metamask/test-dapp": "^7.0.1",
|
"@metamask/test-dapp": "^7.0.1",
|
||||||
"@sentry/cli": "^1.58.0",
|
"@sentry/cli": "^2.19.4",
|
||||||
"@storybook/addon-a11y": "^7.0.11",
|
"@storybook/addon-a11y": "^7.0.11",
|
||||||
"@storybook/addon-actions": "^7.0.11",
|
"@storybook/addon-actions": "^7.0.11",
|
||||||
"@storybook/addon-essentials": "^7.0.11",
|
"@storybook/addon-essentials": "^7.0.11",
|
||||||
|
16
yarn.lock
16
yarn.lock
@ -5687,18 +5687,18 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@sentry/cli@npm:^1.58.0":
|
"@sentry/cli@npm:^2.19.4":
|
||||||
version: 1.58.0
|
version: 2.19.4
|
||||||
resolution: "@sentry/cli@npm:1.58.0"
|
resolution: "@sentry/cli@npm:2.19.4"
|
||||||
dependencies:
|
dependencies:
|
||||||
https-proxy-agent: ^5.0.0
|
https-proxy-agent: ^5.0.0
|
||||||
mkdirp: ^0.5.5
|
node-fetch: ^2.6.7
|
||||||
node-fetch: ^2.6.0
|
|
||||||
progress: ^2.0.3
|
progress: ^2.0.3
|
||||||
proxy-from-env: ^1.1.0
|
proxy-from-env: ^1.1.0
|
||||||
|
which: ^2.0.2
|
||||||
bin:
|
bin:
|
||||||
sentry-cli: bin/sentry-cli
|
sentry-cli: bin/sentry-cli
|
||||||
checksum: fc781bbffcf5cd970bb023168421ad89bca4184c2ddfbfddde92f4f5333c8b9075e9e16a8a4b192ecc3b197ac97062715e7b350c306ccc538fc01b955b06c3bb
|
checksum: 1f2442857a5eec2bc6f872a633d88fc2f11ed7f434db36627a034d904390f4cbbb4dccc33c571a8815e423cd36b863c72621298d49a1541b28370c7f7308f0dc
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -24275,7 +24275,7 @@ __metadata:
|
|||||||
"@reduxjs/toolkit": ^1.6.2
|
"@reduxjs/toolkit": ^1.6.2
|
||||||
"@segment/loosely-validate-event": ^2.0.0
|
"@segment/loosely-validate-event": ^2.0.0
|
||||||
"@sentry/browser": ^7.53.0
|
"@sentry/browser": ^7.53.0
|
||||||
"@sentry/cli": ^1.58.0
|
"@sentry/cli": ^2.19.4
|
||||||
"@sentry/integrations": ^7.53.0
|
"@sentry/integrations": ^7.53.0
|
||||||
"@sentry/types": ^7.53.0
|
"@sentry/types": ^7.53.0
|
||||||
"@sentry/utils": ^7.53.0
|
"@sentry/utils": ^7.53.0
|
||||||
@ -25863,7 +25863,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"node-fetch@npm:^2, node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.11, node-fetch@npm:^2.6.7, node-fetch@npm:~2.6.1":
|
"node-fetch@npm:^2, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.11, node-fetch@npm:^2.6.7, node-fetch@npm:~2.6.1":
|
||||||
version: 2.6.11
|
version: 2.6.11
|
||||||
resolution: "node-fetch@npm:2.6.11"
|
resolution: "node-fetch@npm:2.6.11"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
Loading…
Reference in New Issue
Block a user