@sentry/react 7.94.1 → 7.95.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 +3 -11
- package/cjs/sdk.js.map +1 -1
- package/esm/sdk.js +4 -12
- 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,26 +1,18 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
3
|
const browser = require('@sentry/browser');
|
|
4
|
+
const core = require('@sentry/core');
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Inits the React SDK
|
|
7
8
|
*/
|
|
8
9
|
function init(options) {
|
|
9
10
|
const opts = {
|
|
10
|
-
_metadata: {} ,
|
|
11
11
|
...options,
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
packages: [
|
|
17
|
-
{
|
|
18
|
-
name: 'npm:@sentry/react',
|
|
19
|
-
version: browser.SDK_VERSION,
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
version: browser.SDK_VERSION,
|
|
23
|
-
};
|
|
14
|
+
core.applySdkMetadata(opts, 'react');
|
|
15
|
+
|
|
24
16
|
browser.init(opts);
|
|
25
17
|
}
|
|
26
18
|
|
package/cjs/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { BrowserOptions } from '@sentry/browser';\nimport {
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { BrowserOptions } from '@sentry/browser';\nimport { init as browserInit } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\n\n/**\n * Inits the React SDK\n */\nexport function init(options: BrowserOptions): void {\n const opts = {\n ...options,\n };\n\n applySdkMetadata(opts, 'react');\n\n browserInit(opts);\n}\n"],"names":["applySdkMetadata","browserInit"],"mappings":";;;;;AAIA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAwB;AACpD,EAAE,MAAM,OAAO;AACf,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAEA,qBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;AACjC;AACA,EAAEC,YAAW,CAAC,IAAI,CAAC,CAAA;AACnB;;;;"}
|
package/esm/sdk.js
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { init as init$1 } from '@sentry/browser';
|
|
2
|
+
import { applySdkMetadata } from '@sentry/core';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Inits the React SDK
|
|
5
6
|
*/
|
|
6
7
|
function init(options) {
|
|
7
8
|
const opts = {
|
|
8
|
-
_metadata: {} ,
|
|
9
9
|
...options,
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
opts
|
|
13
|
-
|
|
14
|
-
packages: [
|
|
15
|
-
{
|
|
16
|
-
name: 'npm:@sentry/react',
|
|
17
|
-
version: SDK_VERSION,
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
version: SDK_VERSION,
|
|
21
|
-
};
|
|
12
|
+
applySdkMetadata(opts, 'react');
|
|
13
|
+
|
|
22
14
|
init$1(opts);
|
|
23
15
|
}
|
|
24
16
|
|
package/esm/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { BrowserOptions } from '@sentry/browser';\nimport {
|
|
1
|
+
{"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { BrowserOptions } from '@sentry/browser';\nimport { init as browserInit } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\n\n/**\n * Inits the React SDK\n */\nexport function init(options: BrowserOptions): void {\n const opts = {\n ...options,\n };\n\n applySdkMetadata(opts, 'react');\n\n browserInit(opts);\n}\n"],"names":["browserInit"],"mappings":";;;AAIA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAwB;AACpD,EAAE,MAAM,OAAO;AACf,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAE,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;AACjC;AACA,EAAEA,MAAW,CAAC,IAAI,CAAC,CAAA;AACnB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/react",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.95.0",
|
|
4
4
|
"description": "Official Sentry SDK for React.js",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/react",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@sentry/browser": "7.
|
|
33
|
-
"@sentry/core": "7.
|
|
34
|
-
"@sentry/types": "7.
|
|
35
|
-
"@sentry/utils": "7.
|
|
32
|
+
"@sentry/browser": "7.95.0",
|
|
33
|
+
"@sentry/core": "7.95.0",
|
|
34
|
+
"@sentry/types": "7.95.0",
|
|
35
|
+
"@sentry/utils": "7.95.0",
|
|
36
36
|
"hoist-non-react-statics": "^3.3.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
package/types/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAQlD"}
|