@sentry/gatsby 7.0.0-alpha.0 → 7.0.0-beta.1
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/README.md +2 -3
- package/cjs/index.js +14 -8
- package/cjs/index.js.map +1 -1
- package/cjs/sdk.js +24 -18
- package/cjs/sdk.js.map +1 -1
- package/cjs/utils/integrations.js +32 -25
- package/cjs/utils/integrations.js.map +1 -1
- package/esm/index.js +2 -2
- package/esm/index.js.map +1 -1
- package/esm/sdk.js +23 -17
- package/esm/sdk.js.map +1 -1
- package/esm/utils/integrations.js +30 -22
- package/esm/utils/integrations.js.map +1 -1
- package/gatsby-browser.d.ts +1 -0
- package/gatsby-node.d.ts +5 -0
- package/package.json +6 -5
- package/cjs/index.d.ts +0 -4
- package/cjs/index.d.ts.map +0 -1
- package/cjs/sdk.d.ts +0 -6
- package/cjs/sdk.d.ts.map +0 -1
- package/cjs/utils/integrations.d.ts +0 -13
- package/cjs/utils/integrations.d.ts.map +0 -1
- package/cjs/utils/types.d.ts +0 -3
- package/cjs/utils/types.d.ts.map +0 -1
- package/cjs/utils/types.js +0 -2
- package/cjs/utils/types.js.map +0 -1
- package/esm/index.d.ts +0 -4
- package/esm/index.d.ts.map +0 -1
- package/esm/sdk.d.ts +0 -6
- package/esm/sdk.d.ts.map +0 -1
- package/esm/utils/integrations.d.ts +0 -13
- package/esm/utils/integrations.d.ts.map +0 -1
- package/esm/utils/types.d.ts +0 -3
- package/esm/utils/types.d.ts.map +0 -1
- package/esm/utils/types.js +0 -1
- package/esm/utils/types.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://sentry.io" target="_blank"
|
|
3
|
-
<img src="https://sentry-brand.storage.googleapis.com/sentry-
|
|
2
|
+
<a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
|
|
3
|
+
<img src="https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png" alt="Sentry" width="280" height="84">
|
|
4
4
|
</a>
|
|
5
|
-
<br />
|
|
6
5
|
</p>
|
|
7
6
|
|
|
8
7
|
# Official Sentry SDK for GatsbyJS
|
package/cjs/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var react = require('@sentry/react');
|
|
4
|
+
var Tracing = require('@sentry/tracing');
|
|
5
|
+
var sdk = require('./sdk.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.Integrations = Tracing.Integrations;
|
|
10
|
+
exports.init = sdk.init;
|
|
11
|
+
for (var k in react) {
|
|
12
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = react[k];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/cjs/sdk.js
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var react = require('@sentry/react');
|
|
4
|
+
var integrations = require('./utils/integrations.js');
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Inits the Sentry Gatsby SDK.
|
|
7
8
|
*/
|
|
8
9
|
function init(options) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
options._metadata = options._metadata || {};
|
|
11
|
+
options._metadata.sdk = options._metadata.sdk || {
|
|
12
|
+
name: 'sentry.javascript.gatsby',
|
|
13
|
+
packages: [
|
|
14
|
+
{
|
|
15
|
+
name: 'npm:@sentry/gatsby',
|
|
16
|
+
version: react.SDK_VERSION,
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
version: react.SDK_VERSION,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var integrations$1 = integrations.getIntegrationsFromOptions(options);
|
|
23
|
+
react.init({
|
|
24
|
+
...options,
|
|
25
|
+
integrations: integrations$1,
|
|
26
|
+
});
|
|
22
27
|
}
|
|
28
|
+
|
|
23
29
|
exports.init = init;
|
|
24
|
-
//# sourceMappingURL=sdk.js.map
|
|
30
|
+
//# sourceMappingURL=sdk.js.map
|
package/cjs/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import { init as reactInit, SDK_VERSION } from '@sentry/react';\n\nimport { getIntegrationsFromOptions } from './utils/integrations';\nimport { GatsbyOptions } from './utils/types';\n\n/**\n * Inits the Sentry Gatsby SDK.\n */\nexport function init(options: GatsbyOptions): void {\n options._metadata = options._metadata || {};\n options._metadata.sdk = options._metadata.sdk || {\n name: 'sentry.javascript.gatsby',\n packages: [\n {\n name: 'npm:@sentry/gatsby',\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n };\n\n const integrations = getIntegrationsFromOptions(options);\n reactInit({\n ...options,\n integrations,\n });\n}\n"],"names":[],"mappings":";;;;;AAKA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
|
|
3
|
-
var Tracing =
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var Tracing = require('@sentry/tracing');
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* Returns the integrations to add to the SDK.
|
|
6
7
|
* If tracing is enabled, `BrowserTracing` is always present.
|
|
@@ -8,18 +9,16 @@ var Tracing = tslib_1.__importStar(require("@sentry/tracing"));
|
|
|
8
9
|
* @param options The options users have defined.
|
|
9
10
|
*/
|
|
10
11
|
function getIntegrationsFromOptions(options) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return getIntegrationsFromFunction(options.integrations, isTracingEnabled);
|
|
20
|
-
}
|
|
12
|
+
var isTracingEnabled = Tracing.hasTracingEnabled(options);
|
|
13
|
+
if (options.integrations === undefined) {
|
|
14
|
+
return getIntegrationsFromArray([], isTracingEnabled);
|
|
15
|
+
} else if (Array.isArray(options.integrations)) {
|
|
16
|
+
return getIntegrationsFromArray(options.integrations, isTracingEnabled);
|
|
17
|
+
} else {
|
|
18
|
+
return getIntegrationsFromFunction(options.integrations, isTracingEnabled);
|
|
19
|
+
}
|
|
21
20
|
}
|
|
22
|
-
|
|
21
|
+
|
|
23
22
|
/**
|
|
24
23
|
* Returns the integrations to add to the SDK, from the given integrations array.
|
|
25
24
|
*
|
|
@@ -27,22 +26,30 @@ exports.getIntegrationsFromOptions = getIntegrationsFromOptions;
|
|
|
27
26
|
* @param isTracingEnabled Whether the user has enabled tracing.
|
|
28
27
|
*/
|
|
29
28
|
function getIntegrationsFromArray(userIntegrations, isTracingEnabled) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
if (
|
|
30
|
+
isTracingEnabled &&
|
|
31
|
+
!userIntegrations.some(integration => integration.name === Tracing.Integrations.BrowserTracing.name)
|
|
32
|
+
) {
|
|
33
|
+
userIntegrations.push(new Tracing.Integrations.BrowserTracing());
|
|
34
|
+
}
|
|
35
|
+
return userIntegrations;
|
|
35
36
|
}
|
|
37
|
+
|
|
36
38
|
/**
|
|
37
39
|
* Returns the integrations to add to the SDK, from the given function.
|
|
38
40
|
*
|
|
39
41
|
* @param userIntegrations Function returning the user's integrations.
|
|
40
42
|
* @param isTracingEnabled Whether the user has enabled tracing.
|
|
41
43
|
*/
|
|
42
|
-
function getIntegrationsFromFunction(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
function getIntegrationsFromFunction(
|
|
45
|
+
userIntegrations,
|
|
46
|
+
isTracingEnabled,
|
|
47
|
+
) {
|
|
48
|
+
var wrapper = (defaultIntegrations) => {
|
|
49
|
+
return getIntegrationsFromArray(userIntegrations(defaultIntegrations), isTracingEnabled);
|
|
50
|
+
};
|
|
51
|
+
return wrapper;
|
|
47
52
|
}
|
|
48
|
-
|
|
53
|
+
|
|
54
|
+
exports.getIntegrationsFromOptions = getIntegrationsFromOptions;
|
|
55
|
+
//# sourceMappingURL=integrations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.js","
|
|
1
|
+
{"version":3,"file":"integrations.js","sources":["../../../src/utils/integrations.ts"],"sourcesContent":["import * as Tracing from '@sentry/tracing';\nimport { Integration } from '@sentry/types';\n\nimport { 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 = Tracing.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 (\n isTracingEnabled &&\n !userIntegrations.some(integration => integration.name === Tracing.Integrations.BrowserTracing.name)\n ) {\n userIntegrations.push(new Tracing.Integrations.BrowserTracing());\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":";;;;AAQA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;"}
|
package/esm/index.js
CHANGED
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/esm/sdk.js
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { SDK_VERSION, init as init$1 } from '@sentry/react';
|
|
2
|
+
import { getIntegrationsFromOptions } from './utils/integrations.js';
|
|
3
|
+
|
|
4
4
|
/**
|
|
5
5
|
* Inits the Sentry Gatsby SDK.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
version: SDK_VERSION,
|
|
15
|
-
},
|
|
16
|
-
],
|
|
7
|
+
function init(options) {
|
|
8
|
+
options._metadata = options._metadata || {};
|
|
9
|
+
options._metadata.sdk = options._metadata.sdk || {
|
|
10
|
+
name: 'sentry.javascript.gatsby',
|
|
11
|
+
packages: [
|
|
12
|
+
{
|
|
13
|
+
name: 'npm:@sentry/gatsby',
|
|
17
14
|
version: SDK_VERSION,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
version: SDK_VERSION,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var integrations = getIntegrationsFromOptions(options);
|
|
21
|
+
init$1({
|
|
22
|
+
...options,
|
|
23
|
+
integrations,
|
|
24
|
+
});
|
|
21
25
|
}
|
|
22
|
-
|
|
26
|
+
|
|
27
|
+
export { init };
|
|
28
|
+
//# sourceMappingURL=sdk.js.map
|
package/esm/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import { init as reactInit, SDK_VERSION } from '@sentry/react';\n\nimport { getIntegrationsFromOptions } from './utils/integrations';\nimport { GatsbyOptions } from './utils/types';\n\n/**\n * Inits the Sentry Gatsby SDK.\n */\nexport function init(options: GatsbyOptions): void {\n options._metadata = options._metadata || {};\n options._metadata.sdk = options._metadata.sdk || {\n name: 'sentry.javascript.gatsby',\n packages: [\n {\n name: 'npm:@sentry/gatsby',\n version: SDK_VERSION,\n },\n ],\n version: SDK_VERSION,\n };\n\n const integrations = getIntegrationsFromOptions(options);\n reactInit({\n ...options,\n integrations,\n });\n}\n"],"names":[],"mappings":";;;AAKA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as Tracing from '@sentry/tracing';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Returns the integrations to add to the SDK.
|
|
4
5
|
* If tracing is enabled, `BrowserTracing` is always present.
|
|
5
6
|
*
|
|
6
7
|
* @param options The options users have defined.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return getIntegrationsFromFunction(options.integrations, isTracingEnabled);
|
|
18
|
-
}
|
|
9
|
+
function getIntegrationsFromOptions(options) {
|
|
10
|
+
var isTracingEnabled = Tracing.hasTracingEnabled(options);
|
|
11
|
+
if (options.integrations === undefined) {
|
|
12
|
+
return getIntegrationsFromArray([], isTracingEnabled);
|
|
13
|
+
} else if (Array.isArray(options.integrations)) {
|
|
14
|
+
return getIntegrationsFromArray(options.integrations, isTracingEnabled);
|
|
15
|
+
} else {
|
|
16
|
+
return getIntegrationsFromFunction(options.integrations, isTracingEnabled);
|
|
17
|
+
}
|
|
19
18
|
}
|
|
19
|
+
|
|
20
20
|
/**
|
|
21
21
|
* Returns the integrations to add to the SDK, from the given integrations array.
|
|
22
22
|
*
|
|
@@ -24,22 +24,30 @@ export function getIntegrationsFromOptions(options) {
|
|
|
24
24
|
* @param isTracingEnabled Whether the user has enabled tracing.
|
|
25
25
|
*/
|
|
26
26
|
function getIntegrationsFromArray(userIntegrations, isTracingEnabled) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
if (
|
|
28
|
+
isTracingEnabled &&
|
|
29
|
+
!userIntegrations.some(integration => integration.name === Tracing.Integrations.BrowserTracing.name)
|
|
30
|
+
) {
|
|
31
|
+
userIntegrations.push(new Tracing.Integrations.BrowserTracing());
|
|
32
|
+
}
|
|
33
|
+
return userIntegrations;
|
|
32
34
|
}
|
|
35
|
+
|
|
33
36
|
/**
|
|
34
37
|
* Returns the integrations to add to the SDK, from the given function.
|
|
35
38
|
*
|
|
36
39
|
* @param userIntegrations Function returning the user's integrations.
|
|
37
40
|
* @param isTracingEnabled Whether the user has enabled tracing.
|
|
38
41
|
*/
|
|
39
|
-
function getIntegrationsFromFunction(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
function getIntegrationsFromFunction(
|
|
43
|
+
userIntegrations,
|
|
44
|
+
isTracingEnabled,
|
|
45
|
+
) {
|
|
46
|
+
var wrapper = (defaultIntegrations) => {
|
|
47
|
+
return getIntegrationsFromArray(userIntegrations(defaultIntegrations), isTracingEnabled);
|
|
48
|
+
};
|
|
49
|
+
return wrapper;
|
|
44
50
|
}
|
|
45
|
-
|
|
51
|
+
|
|
52
|
+
export { getIntegrationsFromOptions };
|
|
53
|
+
//# sourceMappingURL=integrations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.js","
|
|
1
|
+
{"version":3,"file":"integrations.js","sources":["../../../src/utils/integrations.ts"],"sourcesContent":["import * as Tracing from '@sentry/tracing';\nimport { Integration } from '@sentry/types';\n\nimport { 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 = Tracing.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 (\n isTracingEnabled &&\n !userIntegrations.some(integration => integration.name === Tracing.Integrations.BrowserTracing.name)\n ) {\n userIntegrations.push(new Tracing.Integrations.BrowserTracing());\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":";;AAQA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function onClientEntry(_: any, pluginParams: any): void;
|
package/gatsby-node.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/gatsby",
|
|
3
|
-
"version": "7.0.0-
|
|
3
|
+
"version": "7.0.0-beta.1",
|
|
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",
|
|
@@ -20,16 +20,17 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@sentry/react": "7.0.0-
|
|
24
|
-
"@sentry/tracing": "7.0.0-
|
|
25
|
-
"@sentry/
|
|
23
|
+
"@sentry/react": "7.0.0-beta.1",
|
|
24
|
+
"@sentry/tracing": "7.0.0-beta.1",
|
|
25
|
+
"@sentry/types": "7.0.0-beta.1",
|
|
26
|
+
"@sentry/utils": "7.0.0-beta.1",
|
|
27
|
+
"@sentry/webpack-plugin": "1.18.9"
|
|
26
28
|
},
|
|
27
29
|
"peerDependencies": {
|
|
28
30
|
"gatsby": "^2.0.0 || ^3.0.0 || ^4.0.0",
|
|
29
31
|
"react": "15.x || 16.x || 17.x || 18.x"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
|
-
"@sentry/types": "7.0.0-alpha.0",
|
|
33
34
|
"@testing-library/react": "^13.0.0",
|
|
34
35
|
"react": "^18.0.0"
|
|
35
36
|
},
|
package/cjs/index.d.ts
DELETED
package/cjs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC"}
|
package/cjs/sdk.d.ts
DELETED
package/cjs/sdk.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAkBjD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Integration } from '@sentry/types';
|
|
2
|
-
import { GatsbyOptions } from './types';
|
|
3
|
-
declare type UserFnIntegrations = (integrations: Integration[]) => Integration[];
|
|
4
|
-
export declare type UserIntegrations = Integration[] | UserFnIntegrations;
|
|
5
|
-
/**
|
|
6
|
-
* Returns the integrations to add to the SDK.
|
|
7
|
-
* If tracing is enabled, `BrowserTracing` is always present.
|
|
8
|
-
*
|
|
9
|
-
* @param options The options users have defined.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getIntegrationsFromOptions(options: GatsbyOptions): UserIntegrations;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/utils/integrations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,aAAK,kBAAkB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC;AACzE,oBAAY,gBAAgB,GAAG,WAAW,EAAE,GAAG,kBAAkB,CAAC;AAElE;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,aAAa,GAAG,gBAAgB,CASnF"}
|
package/cjs/utils/types.d.ts
DELETED
package/cjs/utils/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,oBAAY,aAAa,GAAG,cAAc,CAAC"}
|
package/cjs/utils/types.js
DELETED
package/cjs/utils/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"","sourcesContent":["import { BrowserOptions } from '@sentry/react';\n\nexport type GatsbyOptions = BrowserOptions;\n"]}
|
package/esm/index.d.ts
DELETED
package/esm/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC"}
|
package/esm/sdk.d.ts
DELETED
package/esm/sdk.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAkBjD"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Integration } from '@sentry/types';
|
|
2
|
-
import { GatsbyOptions } from './types';
|
|
3
|
-
declare type UserFnIntegrations = (integrations: Integration[]) => Integration[];
|
|
4
|
-
export declare type UserIntegrations = Integration[] | UserFnIntegrations;
|
|
5
|
-
/**
|
|
6
|
-
* Returns the integrations to add to the SDK.
|
|
7
|
-
* If tracing is enabled, `BrowserTracing` is always present.
|
|
8
|
-
*
|
|
9
|
-
* @param options The options users have defined.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getIntegrationsFromOptions(options: GatsbyOptions): UserIntegrations;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/utils/integrations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,aAAK,kBAAkB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC;AACzE,oBAAY,gBAAgB,GAAG,WAAW,EAAE,GAAG,kBAAkB,CAAC;AAElE;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,aAAa,GAAG,gBAAgB,CASnF"}
|
package/esm/utils/types.d.ts
DELETED
package/esm/utils/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,oBAAY,aAAa,GAAG,cAAc,CAAC"}
|
package/esm/utils/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|
package/esm/utils/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"","sourcesContent":["import { BrowserOptions } from '@sentry/react';\n\nexport type GatsbyOptions = BrowserOptions;\n"]}
|