@sentry/gatsby 7.94.1 → 7.97.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.
- package/cjs/sdk.js +2 -12
- package/cjs/sdk.js.map +1 -1
- package/esm/sdk.js +3 -13
- package/esm/sdk.js.map +1 -1
- package/package.json +5 -5
- package/types/sdk.d.ts.map +1 -1
package/cjs/sdk.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
+
const core = require('@sentry/core');
|
|
3
4
|
const react = require('@sentry/react');
|
|
4
5
|
const integrations = require('./utils/integrations.js');
|
|
5
6
|
|
|
@@ -7,18 +8,7 @@ const integrations = require('./utils/integrations.js');
|
|
|
7
8
|
* Inits the Sentry Gatsby SDK.
|
|
8
9
|
*/
|
|
9
10
|
function init(options) {
|
|
10
|
-
|
|
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
|
-
|
|
11
|
+
core.applySdkMetadata(options, 'gatsby');
|
|
22
12
|
const integrations$1 = integrations.getIntegrationsFromOptions(options);
|
|
23
13
|
react.init({
|
|
24
14
|
...options,
|
package/cjs/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import { applySdkMetadata } from '@sentry/core';\nimport { init as reactInit } from '@sentry/react';\n\nimport { getIntegrationsFromOptions } from './utils/integrations';\nimport type { GatsbyOptions } from './utils/types';\n\n/**\n * Inits the Sentry Gatsby SDK.\n */\nexport function init(options: GatsbyOptions): void {\n applySdkMetadata(options, 'gatsby');\n const integrations = getIntegrationsFromOptions(options);\n reactInit({\n ...options,\n integrations,\n });\n}\n"],"names":["applySdkMetadata","integrations","getIntegrationsFromOptions","reactInit"],"mappings":";;;;;;AAMA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAuB;AACnD,EAAEA,qBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;AACrC,EAAE,MAAMC,cAAa,GAAEC,uCAA0B,CAAC,OAAO,CAAC,CAAA;AAC1D,EAAEC,UAAS,CAAC;AACZ,IAAI,GAAG,OAAO;AACd,kBAAIF,cAAY;AAChB,GAAG,CAAC,CAAA;AACJ;;;;"}
|
package/esm/sdk.js
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { applySdkMetadata } from '@sentry/core';
|
|
2
|
+
import { init as init$1 } from '@sentry/react';
|
|
2
3
|
import { getIntegrationsFromOptions } from './utils/integrations.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Inits the Sentry Gatsby SDK.
|
|
6
7
|
*/
|
|
7
8
|
function init(options) {
|
|
8
|
-
options
|
|
9
|
-
options._metadata.sdk = options._metadata.sdk || {
|
|
10
|
-
name: 'sentry.javascript.gatsby',
|
|
11
|
-
packages: [
|
|
12
|
-
{
|
|
13
|
-
name: 'npm:@sentry/gatsby',
|
|
14
|
-
version: SDK_VERSION,
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
version: SDK_VERSION,
|
|
18
|
-
};
|
|
19
|
-
|
|
9
|
+
applySdkMetadata(options, 'gatsby');
|
|
20
10
|
const integrations = getIntegrationsFromOptions(options);
|
|
21
11
|
init$1({
|
|
22
12
|
...options,
|
package/esm/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import { applySdkMetadata } from '@sentry/core';\nimport { init as reactInit } from '@sentry/react';\n\nimport { getIntegrationsFromOptions } from './utils/integrations';\nimport type { GatsbyOptions } from './utils/types';\n\n/**\n * Inits the Sentry Gatsby SDK.\n */\nexport function init(options: GatsbyOptions): void {\n applySdkMetadata(options, 'gatsby');\n const integrations = getIntegrationsFromOptions(options);\n reactInit({\n ...options,\n integrations,\n });\n}\n"],"names":["reactInit"],"mappings":";;;;AAMA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAuB;AACnD,EAAE,gBAAgB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;AACrC,EAAE,MAAM,YAAa,GAAE,0BAA0B,CAAC,OAAO,CAAC,CAAA;AAC1D,EAAEA,MAAS,CAAC;AACZ,IAAI,GAAG,OAAO;AACd,IAAI,YAAY;AAChB,GAAG,CAAC,CAAA;AACJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/gatsby",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.97.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.97.0",
|
|
41
|
+
"@sentry/react": "7.97.0",
|
|
42
|
+
"@sentry/types": "7.97.0",
|
|
43
|
+
"@sentry/utils": "7.97.0",
|
|
44
44
|
"@sentry/webpack-plugin": "1.19.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
package/types/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAOjD"}
|