@sentry/gatsby 7.99.0 → 7.100.0
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.
|
@@ -27,8 +27,8 @@ function getIntegrationsFromOptions(options) {
|
|
|
27
27
|
* @param isTracingEnabled Whether the user has enabled tracing.
|
|
28
28
|
*/
|
|
29
29
|
function getIntegrationsFromArray(userIntegrations, isTracingEnabled) {
|
|
30
|
-
if (isTracingEnabled && !userIntegrations.some(integration => integration.name ===
|
|
31
|
-
userIntegrations.push(
|
|
30
|
+
if (isTracingEnabled && !userIntegrations.some(integration => integration.name === 'BrowserTracing')) {
|
|
31
|
+
userIntegrations.push(react.browserTracingIntegration());
|
|
32
32
|
}
|
|
33
33
|
return userIntegrations;
|
|
34
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.js","sources":["../../../src/utils/integrations.ts"],"sourcesContent":["import { hasTracingEnabled } from '@sentry/core';\nimport {
|
|
1
|
+
{"version":3,"file":"integrations.js","sources":["../../../src/utils/integrations.ts"],"sourcesContent":["import { hasTracingEnabled } from '@sentry/core';\nimport { browserTracingIntegration } from '@sentry/react';\nimport type { Integration } from '@sentry/types';\n\nimport type { GatsbyOptions } from './types';\n\ntype UserFnIntegrations = (integrations: Integration[]) => Integration[];\nexport type UserIntegrations = Integration[] | UserFnIntegrations;\n\n/**\n * Returns the integrations to add to the SDK.\n * If tracing is enabled, `BrowserTracing` is always present.\n *\n * @param options The options users have defined.\n */\nexport function getIntegrationsFromOptions(options: GatsbyOptions): UserIntegrations {\n const isTracingEnabled = hasTracingEnabled(options);\n if (options.integrations === undefined) {\n return getIntegrationsFromArray([], isTracingEnabled);\n } else if (Array.isArray(options.integrations)) {\n return getIntegrationsFromArray(options.integrations, isTracingEnabled);\n } else {\n return getIntegrationsFromFunction(options.integrations, isTracingEnabled);\n }\n}\n\n/**\n * Returns the integrations to add to the SDK, from the given integrations array.\n *\n * @param userIntegrations Array of user's integrations.\n * @param isTracingEnabled Whether the user has enabled tracing.\n */\nfunction getIntegrationsFromArray(userIntegrations: Integration[], isTracingEnabled: boolean): Integration[] {\n if (isTracingEnabled && !userIntegrations.some(integration => integration.name === 'BrowserTracing')) {\n userIntegrations.push(browserTracingIntegration());\n }\n return userIntegrations;\n}\n\n/**\n * Returns the integrations to add to the SDK, from the given function.\n *\n * @param userIntegrations Function returning the user's integrations.\n * @param isTracingEnabled Whether the user has enabled tracing.\n */\nfunction getIntegrationsFromFunction(\n userIntegrations: UserFnIntegrations,\n isTracingEnabled: boolean,\n): UserFnIntegrations {\n const wrapper: UserFnIntegrations = (defaultIntegrations: Integration[]) => {\n return getIntegrationsFromArray(userIntegrations(defaultIntegrations), isTracingEnabled);\n };\n return wrapper;\n}\n"],"names":["hasTracingEnabled","browserTracingIntegration"],"mappings":";;;;;AASA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,0BAA0B,CAAC,OAAO,EAAmC;AACrF,EAAE,MAAM,gBAAiB,GAAEA,sBAAiB,CAAC,OAAO,CAAC,CAAA;AACrD,EAAE,IAAI,OAAO,CAAC,YAAa,KAAI,SAAS,EAAE;AAC1C,IAAI,OAAO,wBAAwB,CAAC,EAAE,EAAE,gBAAgB,CAAC,CAAA;AACzD,GAAI,MAAK,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;AAClD,IAAI,OAAO,wBAAwB,CAAC,OAAO,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAA;AAC3E,SAAS;AACT,IAAI,OAAO,2BAA2B,CAAC,OAAO,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAA;AAC9E,GAAE;AACF,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,wBAAwB,CAAC,gBAAgB,EAAiB,gBAAgB,EAA0B;AAC7G,EAAE,IAAI,gBAAA,IAAoB,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAA,IAAe,WAAW,CAAC,SAAS,gBAAgB,CAAC,EAAE;AACxG,IAAI,gBAAgB,CAAC,IAAI,CAACC,+BAAyB,EAAE,CAAC,CAAA;AACtD,GAAE;AACF,EAAE,OAAO,gBAAgB,CAAA;AACzB,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,2BAA2B;AACpC,EAAE,gBAAgB;AAClB,EAAE,gBAAgB;AAClB,EAAsB;AACtB,EAAE,MAAM,OAAO,GAAuB,CAAC,mBAAmB,KAAoB;AAC9E,IAAI,OAAO,wBAAwB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,EAAE,gBAAgB,CAAC,CAAA;AAC5F,GAAG,CAAA;AACH,EAAE,OAAO,OAAO,CAAA;AAChB;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hasTracingEnabled } from '@sentry/core';
|
|
2
|
-
import {
|
|
2
|
+
import { browserTracingIntegration } from '@sentry/react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Returns the integrations to add to the SDK.
|
|
@@ -25,8 +25,8 @@ function getIntegrationsFromOptions(options) {
|
|
|
25
25
|
* @param isTracingEnabled Whether the user has enabled tracing.
|
|
26
26
|
*/
|
|
27
27
|
function getIntegrationsFromArray(userIntegrations, isTracingEnabled) {
|
|
28
|
-
if (isTracingEnabled && !userIntegrations.some(integration => integration.name === BrowserTracing
|
|
29
|
-
userIntegrations.push(
|
|
28
|
+
if (isTracingEnabled && !userIntegrations.some(integration => integration.name === 'BrowserTracing')) {
|
|
29
|
+
userIntegrations.push(browserTracingIntegration());
|
|
30
30
|
}
|
|
31
31
|
return userIntegrations;
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.js","sources":["../../../src/utils/integrations.ts"],"sourcesContent":["import { hasTracingEnabled } from '@sentry/core';\nimport {
|
|
1
|
+
{"version":3,"file":"integrations.js","sources":["../../../src/utils/integrations.ts"],"sourcesContent":["import { hasTracingEnabled } from '@sentry/core';\nimport { browserTracingIntegration } from '@sentry/react';\nimport type { Integration } from '@sentry/types';\n\nimport type { GatsbyOptions } from './types';\n\ntype UserFnIntegrations = (integrations: Integration[]) => Integration[];\nexport type UserIntegrations = Integration[] | UserFnIntegrations;\n\n/**\n * Returns the integrations to add to the SDK.\n * If tracing is enabled, `BrowserTracing` is always present.\n *\n * @param options The options users have defined.\n */\nexport function getIntegrationsFromOptions(options: GatsbyOptions): UserIntegrations {\n const isTracingEnabled = hasTracingEnabled(options);\n if (options.integrations === undefined) {\n return getIntegrationsFromArray([], isTracingEnabled);\n } else if (Array.isArray(options.integrations)) {\n return getIntegrationsFromArray(options.integrations, isTracingEnabled);\n } else {\n return getIntegrationsFromFunction(options.integrations, isTracingEnabled);\n }\n}\n\n/**\n * Returns the integrations to add to the SDK, from the given integrations array.\n *\n * @param userIntegrations Array of user's integrations.\n * @param isTracingEnabled Whether the user has enabled tracing.\n */\nfunction getIntegrationsFromArray(userIntegrations: Integration[], isTracingEnabled: boolean): Integration[] {\n if (isTracingEnabled && !userIntegrations.some(integration => integration.name === 'BrowserTracing')) {\n userIntegrations.push(browserTracingIntegration());\n }\n return userIntegrations;\n}\n\n/**\n * Returns the integrations to add to the SDK, from the given function.\n *\n * @param userIntegrations Function returning the user's integrations.\n * @param isTracingEnabled Whether the user has enabled tracing.\n */\nfunction getIntegrationsFromFunction(\n userIntegrations: UserFnIntegrations,\n isTracingEnabled: boolean,\n): UserFnIntegrations {\n const wrapper: UserFnIntegrations = (defaultIntegrations: Integration[]) => {\n return getIntegrationsFromArray(userIntegrations(defaultIntegrations), isTracingEnabled);\n };\n return wrapper;\n}\n"],"names":[],"mappings":";;;AASA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,0BAA0B,CAAC,OAAO,EAAmC;AACrF,EAAE,MAAM,gBAAiB,GAAE,iBAAiB,CAAC,OAAO,CAAC,CAAA;AACrD,EAAE,IAAI,OAAO,CAAC,YAAa,KAAI,SAAS,EAAE;AAC1C,IAAI,OAAO,wBAAwB,CAAC,EAAE,EAAE,gBAAgB,CAAC,CAAA;AACzD,GAAI,MAAK,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;AAClD,IAAI,OAAO,wBAAwB,CAAC,OAAO,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAA;AAC3E,SAAS;AACT,IAAI,OAAO,2BAA2B,CAAC,OAAO,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAA;AAC9E,GAAE;AACF,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,wBAAwB,CAAC,gBAAgB,EAAiB,gBAAgB,EAA0B;AAC7G,EAAE,IAAI,gBAAA,IAAoB,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAA,IAAe,WAAW,CAAC,SAAS,gBAAgB,CAAC,EAAE;AACxG,IAAI,gBAAgB,CAAC,IAAI,CAAC,yBAAyB,EAAE,CAAC,CAAA;AACtD,GAAE;AACF,EAAE,OAAO,gBAAgB,CAAA;AACzB,CAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,2BAA2B;AACpC,EAAE,gBAAgB;AAClB,EAAE,gBAAgB;AAClB,EAAsB;AACtB,EAAE,MAAM,OAAO,GAAuB,CAAC,mBAAmB,KAAoB;AAC9E,IAAI,OAAO,wBAAwB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,EAAE,gBAAgB,CAAC,CAAA;AAC5F,GAAG,CAAA;AACH,EAAE,OAAO,OAAO,CAAA;AAChB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/gatsby",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.100.0",
|
|
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",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@sentry/core": "7.
|
|
41
|
-
"@sentry/react": "7.
|
|
42
|
-
"@sentry/types": "7.
|
|
43
|
-
"@sentry/utils": "7.
|
|
40
|
+
"@sentry/core": "7.100.0",
|
|
41
|
+
"@sentry/react": "7.100.0",
|
|
42
|
+
"@sentry/types": "7.100.0",
|
|
43
|
+
"@sentry/utils": "7.100.0",
|
|
44
44
|
"@sentry/webpack-plugin": "1.19.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|