Socket
Socket
Sign inDemoInstall

@sentry-internal/feedback

Package Overview
Dependencies
Maintainers
9
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/feedback - npm Package Compare versions

Comparing version 7.103.0 to 7.104.0

33

cjs/index.js

@@ -154,3 +154,4 @@ Object.defineProperty(exports, '__esModule', { value: true });

const feedbackEvent = await prepareFeedbackEvent({
scope,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
scope: scope ,
client,

@@ -1429,2 +1430,20 @@ event: baseEvent,

/**
* Internal handler when dialog is opened
*/
function handleOpenDialog() {
// Flush replay if integration exists
const client = core.getClient();
const replay =
client &&
client.getIntegrationByName &&
client.getIntegrationByName('Replay');
if (!replay) {
return;
}
replay.flush().catch(err => {
DEBUG_BUILD && utils.logger.error(err);
});
}
/**
* Displays the default actor

@@ -1461,2 +1480,3 @@ */

}
handleOpenDialog();
return;

@@ -1514,2 +1534,3 @@ }

}
handleOpenDialog();
} catch (err) {

@@ -1634,5 +1655,7 @@ // TODO: Error handling?

constructor({
autoInject = true,
id = 'sentry-feedback',
isEmailRequired = false,
isNameRequired = false,
showBranding = true,
autoInject = true,
showEmail = true,

@@ -1644,4 +1667,2 @@ showName = true,

},
isEmailRequired = false,
isNameRequired = false,

@@ -1680,5 +1701,5 @@ themeDark,

this.options = {
autoInject,
showBranding,
id,
showBranding,
autoInject,
isEmailRequired,

@@ -1685,0 +1706,0 @@ isNameRequired,

@@ -152,3 +152,4 @@ import { GLOBAL_OBJ, getLocationHref, logger, isBrowser } from '@sentry/utils';

const feedbackEvent = await prepareFeedbackEvent({
scope,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
scope: scope ,
client,

@@ -1427,2 +1428,20 @@ event: baseEvent,

/**
* Internal handler when dialog is opened
*/
function handleOpenDialog() {
// Flush replay if integration exists
const client = getClient();
const replay =
client &&
client.getIntegrationByName &&
client.getIntegrationByName('Replay');
if (!replay) {
return;
}
replay.flush().catch(err => {
DEBUG_BUILD && logger.error(err);
});
}
/**
* Displays the default actor

@@ -1459,2 +1478,3 @@ */

}
handleOpenDialog();
return;

@@ -1512,2 +1532,3 @@ }

}
handleOpenDialog();
} catch (err) {

@@ -1632,5 +1653,7 @@ // TODO: Error handling?

constructor({
autoInject = true,
id = 'sentry-feedback',
isEmailRequired = false,
isNameRequired = false,
showBranding = true,
autoInject = true,
showEmail = true,

@@ -1642,4 +1665,2 @@ showName = true,

},
isEmailRequired = false,
isNameRequired = false,

@@ -1678,5 +1699,5 @@ themeDark,

this.options = {
autoInject,
showBranding,
id,
showBranding,
autoInject,
isEmailRequired,

@@ -1683,0 +1704,0 @@ isNameRequired,

8

package.json
{
"name": "@sentry-internal/feedback",
"version": "7.103.0",
"version": "7.104.0",
"description": "Sentry SDK integration for user feedback",

@@ -32,7 +32,7 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "7.103.0",
"@sentry/types": "7.103.0",
"@sentry/utils": "7.103.0"
"@sentry/core": "7.104.0",
"@sentry/types": "7.104.0",
"@sentry/utils": "7.104.0"
},
"sideEffects": false
}

@@ -45,3 +45,3 @@ import { Integration } from '@sentry/types';

private _hasInsertedActorStyles;
constructor({ id, showBranding, autoInject, showEmail, showName, useSentryUser, isEmailRequired, isNameRequired, themeDark, themeLight, colorScheme, buttonLabel, cancelButtonLabel, submitButtonLabel, formTitle, emailPlaceholder, emailLabel, messagePlaceholder, messageLabel, namePlaceholder, nameLabel, successMessageText, onFormClose, onFormOpen, onSubmitError, onSubmitSuccess, }?: OptionalFeedbackConfiguration);
constructor({ autoInject, id, isEmailRequired, isNameRequired, showBranding, showEmail, showName, useSentryUser, themeDark, themeLight, colorScheme, buttonLabel, cancelButtonLabel, submitButtonLabel, formTitle, emailPlaceholder, emailLabel, messagePlaceholder, messageLabel, namePlaceholder, nameLabel, successMessageText, onFormClose, onFormOpen, onSubmitError, onSubmitSuccess, }?: OptionalFeedbackConfiguration);
/**

@@ -48,0 +48,0 @@ * Setup and initialize feedback container

@@ -45,3 +45,3 @@ import type { Integration } from '@sentry/types';

private _hasInsertedActorStyles;
constructor({ id, showBranding, autoInject, showEmail, showName, useSentryUser, isEmailRequired, isNameRequired, themeDark, themeLight, colorScheme, buttonLabel, cancelButtonLabel, submitButtonLabel, formTitle, emailPlaceholder, emailLabel, messagePlaceholder, messageLabel, namePlaceholder, nameLabel, successMessageText, onFormClose, onFormOpen, onSubmitError, onSubmitSuccess, }?: OptionalFeedbackConfiguration);
constructor({ autoInject, id, isEmailRequired, isNameRequired, showBranding, showEmail, showName, useSentryUser, themeDark, themeLight, colorScheme, buttonLabel, cancelButtonLabel, submitButtonLabel, formTitle, emailPlaceholder, emailLabel, messagePlaceholder, messageLabel, namePlaceholder, nameLabel, successMessageText, onFormClose, onFormOpen, onSubmitError, onSubmitSuccess, }?: OptionalFeedbackConfiguration);
/**

@@ -48,0 +48,0 @@ * Setup and initialize feedback container

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc