@sentry/react 8.10.0 → 8.12.0-beta.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 CHANGED
@@ -14,7 +14,7 @@ function init(options) {
14
14
 
15
15
  core.applySdkMetadata(opts, 'react');
16
16
  browser.setContext('react', { version: React.version });
17
- browser.init(opts);
17
+ return browser.init(opts);
18
18
  }
19
19
 
20
20
  exports.init = init;
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 { init as browserInit, setContext } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\n\nimport { version } from 'react';\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 setContext('react', { version });\n browserInit(opts);\n}\n"],"names":["applySdkMetadata","setContext","version","browserInit"],"mappings":";;;;;;AAMA;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,EAAEC,kBAAU,CAAC,OAAO,EAAE,WAAEC,aAAA,EAAS,CAAC,CAAA;AAClC,EAAEC,YAAW,CAAC,IAAI,CAAC,CAAA;AACnB;;;;"}
1
+ {"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { BrowserOptions } from '@sentry/browser';\nimport { init as browserInit, setContext } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { Client } from '@sentry/types';\n\nimport { version } from 'react';\n\n/**\n * Inits the React SDK\n */\nexport function init(options: BrowserOptions): Client | undefined {\n const opts = {\n ...options,\n };\n\n applySdkMetadata(opts, 'react');\n setContext('react', { version });\n return browserInit(opts);\n}\n"],"names":["applySdkMetadata","setContext","version","browserInit"],"mappings":";;;;;;AAOA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAsC;AAClE,EAAE,MAAM,OAAO;AACf,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAEA,qBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;AACjC,EAAEC,kBAAU,CAAC,OAAO,EAAE,WAAEC,aAAA,EAAS,CAAC,CAAA;AAClC,EAAE,OAAOC,YAAW,CAAC,IAAI,CAAC,CAAA;AAC1B;;;;"}
package/esm/sdk.js CHANGED
@@ -12,7 +12,7 @@ function init(options) {
12
12
 
13
13
  applySdkMetadata(opts, 'react');
14
14
  setContext('react', { version });
15
- init$1(opts);
15
+ return init$1(opts);
16
16
  }
17
17
 
18
18
  export { init };
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 { init as browserInit, setContext } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\n\nimport { version } from 'react';\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 setContext('react', { version });\n browserInit(opts);\n}\n"],"names":["browserInit"],"mappings":";;;;AAMA;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,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,OAAA,EAAS,CAAC,CAAA;AAClC,EAAEA,MAAW,CAAC,IAAI,CAAC,CAAA;AACnB;;;;"}
1
+ {"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import type { BrowserOptions } from '@sentry/browser';\nimport { init as browserInit, setContext } from '@sentry/browser';\nimport { applySdkMetadata } from '@sentry/core';\nimport type { Client } from '@sentry/types';\n\nimport { version } from 'react';\n\n/**\n * Inits the React SDK\n */\nexport function init(options: BrowserOptions): Client | undefined {\n const opts = {\n ...options,\n };\n\n applySdkMetadata(opts, 'react');\n setContext('react', { version });\n return browserInit(opts);\n}\n"],"names":["browserInit"],"mappings":";;;;AAOA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,EAAsC;AAClE,EAAE,MAAM,OAAO;AACf,IAAI,GAAG,OAAO;AACd,GAAG,CAAA;AACH;AACA,EAAE,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;AACjC,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,OAAA,EAAS,CAAC,CAAA;AAClC,EAAE,OAAOA,MAAW,CAAC,IAAI,CAAC,CAAA;AAC1B;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/react",
3
- "version": "8.10.0",
3
+ "version": "8.12.0-beta.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",
@@ -42,10 +42,10 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@sentry/browser": "8.10.0",
46
- "@sentry/core": "8.10.0",
47
- "@sentry/types": "8.10.0",
48
- "@sentry/utils": "8.10.0",
45
+ "@sentry/browser": "8.12.0-beta.0",
46
+ "@sentry/core": "8.12.0-beta.0",
47
+ "@sentry/types": "8.12.0-beta.0",
48
+ "@sentry/utils": "8.12.0-beta.0",
49
49
  "hoist-non-react-statics": "^3.3.2"
50
50
  },
51
51
  "peerDependencies": {
package/types/sdk.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { BrowserOptions } from '@sentry/browser';
2
+ import type { Client } from '@sentry/types';
2
3
  /**
3
4
  * Inits the React SDK
4
5
  */
5
- export declare function init(options: BrowserOptions): void;
6
+ export declare function init(options: BrowserOptions): Client | undefined;
6
7
  //# sourceMappingURL=sdk.d.ts.map
@@ -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;AAMtD;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAQlD"}
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAQhE"}
@@ -1,6 +1,7 @@
1
1
  import { BrowserOptions } from '@sentry/browser';
2
+ import { Client } from '@sentry/types';
2
3
  /**
3
4
  * Inits the React SDK
4
5
  */
5
- export declare function init(options: BrowserOptions): void;
6
+ export declare function init(options: BrowserOptions): Client | undefined;
6
7
  //# sourceMappingURL=sdk.d.ts.map