@sentry/gatsby 7.104.0 → 8.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gatsby-browser.js +2 -5
- package/package.json +7 -7
package/gatsby-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import { init } from '@sentry/gatsby';
|
|
2
|
+
import { getClient, init } from '@sentry/gatsby';
|
|
3
3
|
|
|
4
4
|
export function onClientEntry(_, pluginParams) {
|
|
5
5
|
const isIntialized = isSentryInitialized();
|
|
@@ -32,10 +32,7 @@ export function onClientEntry(_, pluginParams) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
function isSentryInitialized() {
|
|
35
|
-
|
|
36
|
-
// is run), and `__SENTRY__.hub` is created when importing the Gatsby SDK, double
|
|
37
|
-
// check that in case something weird happens.
|
|
38
|
-
return !!(window && window.__SENTRY__ && window.__SENTRY__.hub && window.__SENTRY__.hub.getClient());
|
|
35
|
+
return !!getClient();
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
function areSentryOptionsDefined(params) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/gatsby",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-alpha.2",
|
|
4
4
|
"description": "Official Sentry SDK for Gatsby.js",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/gatsby",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"gatsby-plugin"
|
|
12
12
|
],
|
|
13
13
|
"engines": {
|
|
14
|
-
"node": ">=8"
|
|
14
|
+
"node": ">=14.8"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"cjs",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@sentry/core": "
|
|
41
|
-
"@sentry/react": "
|
|
42
|
-
"@sentry/types": "
|
|
43
|
-
"@sentry/utils": "
|
|
40
|
+
"@sentry/core": "8.0.0-alpha.2",
|
|
41
|
+
"@sentry/react": "8.0.0-alpha.2",
|
|
42
|
+
"@sentry/types": "8.0.0-alpha.2",
|
|
43
|
+
"@sentry/utils": "8.0.0-alpha.2",
|
|
44
44
|
"@sentry/webpack-plugin": "1.19.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"gatsby": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0",
|
|
48
|
-
"react": "
|
|
48
|
+
"react": "16.x || 17.x || 18.x"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@testing-library/react": "^13.0.0",
|