-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11976 from getsentry/prepare-release/8.0.0-rc.3
- Loading branch information
Showing
29 changed files
with
500 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...ges/node-integration-tests/suites/public-api/LocalVariables/local-variables-instrument.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const Sentry = require('@sentry/node'); | ||
const { loggingTransport } = require('@sentry-internal/node-integration-tests'); | ||
|
||
Sentry.init({ | ||
dsn: 'https://[email protected]/1337', | ||
includeLocalVariables: true, | ||
transport: loggingTransport, | ||
}); |
31 changes: 31 additions & 0 deletions
31
...ages/node-integration-tests/suites/public-api/LocalVariables/local-variables-no-sentry.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* eslint-disable no-unused-vars */ | ||
process.on('uncaughtException', () => { | ||
// do nothing - this will prevent the Error below from closing this process | ||
}); | ||
|
||
class Some { | ||
two(name) { | ||
throw new Error('Enough!'); | ||
} | ||
} | ||
|
||
function one(name) { | ||
const arr = [1, '2', null]; | ||
const obj = { | ||
name, | ||
num: 5, | ||
}; | ||
const bool = false; | ||
const num = 0; | ||
const str = ''; | ||
const something = undefined; | ||
const somethingElse = null; | ||
|
||
const ty = new Some(); | ||
|
||
ty.two(name); | ||
} | ||
|
||
setTimeout(() => { | ||
one('some name'); | ||
}, 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
}, | ||
"files": [ | ||
"cjs", | ||
"esm", | ||
"types", | ||
"types-ts3.8", | ||
"import-hook.mjs", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,10 @@ export const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window; | |
export const DOCUMENT = WINDOW.document; | ||
export const NAVIGATOR = WINDOW.navigator; | ||
|
||
export const ACTOR_LABEL = 'Report a Bug'; | ||
export const TRIGGER_LABEL = 'Report a Bug'; | ||
export const CANCEL_BUTTON_LABEL = 'Cancel'; | ||
export const SUBMIT_BUTTON_LABEL = 'Send Bug Report'; | ||
export const CONFIRM_BUTTON_LABEL = 'Confirm'; | ||
export const FORM_TITLE = 'Report a Bug'; | ||
export const EMAIL_PLACEHOLDER = '[email protected]'; | ||
export const EMAIL_LABEL = 'Email'; | ||
|
@@ -20,7 +21,9 @@ export const MESSAGE_LABEL = 'Description'; | |
export const NAME_PLACEHOLDER = 'Your Name'; | ||
export const NAME_LABEL = 'Name'; | ||
export const SUCCESS_MESSAGE_TEXT = 'Thank you for your report!'; | ||
export const IS_REQUIRED_TEXT = '(required)'; | ||
export const IS_REQUIRED_LABEL = '(required)'; | ||
export const ADD_SCREENSHOT_LABEL = 'Add a screenshot'; | ||
export const REMOVE_SCREENSHOT_LABEL = 'Remove screenshot'; | ||
|
||
export const FEEDBACK_WIDGET_SOURCE = 'widget'; | ||
export const FEEDBACK_API_SOURCE = 'api'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,58 @@ | ||
const LIGHT_BACKGROUND = '#ffffff'; | ||
const INHERIT = 'inherit'; | ||
const SUBMIT_COLOR = 'rgba(108, 95, 199, 1)'; | ||
const PURPLE = 'rgba(88, 74, 192, 1)'; | ||
const PURPLE_HOVER = 'rgba(108, 95, 199, 1)'; | ||
|
||
export const LIGHT_THEME = { | ||
fontFamily: "system-ui, 'Helvetica Neue', Arial, sans-serif", | ||
fontSize: '14px', | ||
|
||
foreground: '#2b2233', | ||
background: LIGHT_BACKGROUND, | ||
success: '#268d75', | ||
error: '#df3338', | ||
|
||
zIndex: 100000, | ||
successForeground: '#268d75', | ||
errorForeground: '#df3338', | ||
background: '#ffffff', | ||
border: '1.5px solid rgba(41, 35, 47, 0.13)', | ||
boxShadow: '0px 4px 24px 0px rgba(43, 34, 51, 0.12)', | ||
|
||
backgroundHover: '#f6f6f7', | ||
borderRadius: '25px', | ||
|
||
formBorderRadius: '20px', | ||
formContentBorderRadius: '6px', | ||
|
||
submitForeground: LIGHT_BACKGROUND, | ||
submitBackground: 'rgba(88, 74, 192, 1)', | ||
submitForegroundHover: LIGHT_BACKGROUND, | ||
submitBackgroundHover: SUBMIT_COLOR, | ||
submitBorder: SUBMIT_COLOR, | ||
inputForeground: INHERIT, | ||
inputBackground: INHERIT, | ||
inputBackgroundHover: INHERIT, | ||
inputBackgroundFocus: INHERIT, | ||
inputBorder: 'var(--border)', | ||
inputBorderRadius: '6px', | ||
inputOutlineFocus: PURPLE_HOVER, | ||
|
||
buttonForeground: INHERIT, | ||
buttonForegroundHover: INHERIT, | ||
buttonBackground: 'var(--background)', | ||
buttonBackgroundHover: '#f6f6f7', | ||
buttonBorder: 'var(--border)', | ||
buttonOutlineFocus: 'var(--input-outline-focus)', | ||
|
||
submitForeground: '#ffffff', | ||
submitForegroundHover: '#ffffff', | ||
submitBackground: PURPLE, | ||
submitBackgroundHover: PURPLE_HOVER, | ||
submitBorder: PURPLE_HOVER, | ||
submitBorderRadius: 'var(--button-border-radius)', | ||
submitOutlineFocus: '#29232f', | ||
|
||
cancelForeground: 'var(--foreground)', | ||
cancelBackground: 'transparent', | ||
cancelForegroundHover: 'var(--foreground)', | ||
cancelBackgroundHover: 'var(--background-hover)', | ||
cancelBorder: 'var(--border)', | ||
cancelOutlineFocus: 'var(--input-outline-focus)', | ||
triggerBackground: 'var(--background)', | ||
triggerBackgroundHover: 'var(--button-background-hover)', | ||
triggerBorderRadius: '1.7em/50%', | ||
|
||
inputBackground: INHERIT, | ||
inputForeground: INHERIT, | ||
inputBorder: 'var(--border)', | ||
inputOutlineFocus: SUBMIT_COLOR, | ||
dialogBackground: 'var(--background)', | ||
dialogBorderRadius: '20px', | ||
}; | ||
|
||
export const DEFAULT_THEME = { | ||
light: LIGHT_THEME, | ||
dark: { | ||
...LIGHT_THEME, | ||
|
||
background: '#29232f', | ||
backgroundHover: '#352f3b', | ||
foreground: '#ebe6ef', | ||
border: '1.5px solid rgba(235, 230, 239, 0.15)', | ||
successForeground: '#2da98c', | ||
errorForeground: '#f55459', | ||
background: '#29232f', | ||
border: '1.5px solid rgba(235, 230, 239, 0.5)', | ||
boxShadow: '0px 4px 24px 0px rgba(43, 34, 51, 0.12)', | ||
|
||
success: '#2da98c', | ||
error: '#f55459', | ||
buttonBackgroundHover: '#352f3b', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.