Skip to content

Commit

Permalink
fix: update loader version
Browse files Browse the repository at this point in the history
  • Loading branch information
faris-imi committed Nov 6, 2023
1 parent f593687 commit c653156
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
},
"dependencies": {
"@babel/runtime": "^7.17.9",
"@hcaptcha/loader": "^1.0.7"
"@hcaptcha/loader": "^1.0.8"
}
}
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class HCaptcha extends React.Component {

this.sentryHub = initSentry(this.props.sentry, scopeTag);

this.sentryHub?.addBreadcrumb({
this.sentryHub.addBreadcrumb({
category: scopeTag.value,
message: breadcrumbMessages.mounted,
});
Expand Down Expand Up @@ -92,7 +92,7 @@ class HCaptcha extends React.Component {
hcaptcha.reset(captchaId);
hcaptcha.remove(captchaId);

this.sentryHub?.addBreadcrumb({
this.sentryHub.addBreadcrumb({
category: scopeTag.value,
message: breadcrumbMessages.unmounted,
});
Expand Down Expand Up @@ -198,7 +198,7 @@ class HCaptcha extends React.Component {
// Reset captcha state, removes stored token and unticks checkbox
hcaptcha.reset(captchaId)

this.sentryHub?.addBreadcrumb({
this.sentryHub.addBreadcrumb({
category: scopeTag.value,
message: breadcrumbMessages.reset,
});
Expand All @@ -218,7 +218,7 @@ class HCaptcha extends React.Component {
});


this.sentryHub?.addBreadcrumb({
this.sentryHub.addBreadcrumb({
category: scopeTag.value,
message: breadcrumbMessages.removed,
});
Expand All @@ -241,7 +241,7 @@ class HCaptcha extends React.Component {
if (onLoad) onLoad();
});
} catch (error) {
this.sentryHub?.captureException(error);
this.sentryHub.captureException(error);
}
});
}
Expand Down Expand Up @@ -271,7 +271,7 @@ class HCaptcha extends React.Component {

if (onExpire) onExpire();

this.sentryHub?.addBreadcrumb({
this.sentryHub.addBreadcrumb({
category: scopeTag.value,
message: breadcrumbMessages.expired,
});
Expand Down Expand Up @@ -336,7 +336,7 @@ class HCaptcha extends React.Component {

return hcaptcha.execute(captchaId, opts);
} catch (error) {
this.sentryHub?.captureException(error);
this.sentryHub.captureException(error);
}
}

Expand Down

0 comments on commit c653156

Please sign in to comment.