@sentry/electron
Advanced tools
+19
-0
| # Changelog | ||
| ## 7.10.0 | ||
| ### New Features ✨ | ||
| - Update Sentry SDKs to v10.42.0 by @github-actions in [#1319](https://github.com/getsentry/sentry-electron/pull/1319) | ||
| - Update Sentry SDKs to v10.41.0 by @github-actions in [#1318](https://github.com/getsentry/sentry-electron/pull/1318) | ||
| ### Internal Changes 🔧 | ||
| #### Deps Dev | ||
| - Bump koa from 3.0.3 to 3.1.2 by @dependabot in [#1317](https://github.com/getsentry/sentry-electron/pull/1317) | ||
| - Bump rollup from 4.46.2 to 4.59.0 by @dependabot in [#1316](https://github.com/getsentry/sentry-electron/pull/1316) | ||
| #### Other | ||
| - (deps) Bump @isaacs/brace-expansion from 5.0.0 to 5.0.1 by @dependabot in [#1315](https://github.com/getsentry/sentry-electron/pull/1315) | ||
| - New Electron versions by @github-actions in [#1313](https://github.com/getsentry/sentry-electron/pull/1313) | ||
| ## 7.9.0 | ||
@@ -4,0 +23,0 @@ |
@@ -1,2 +0,2 @@ | ||
| export declare const SDK_VERSION = "7.9.0"; | ||
| export declare const SDK_VERSION = "7.10.0"; | ||
| //# sourceMappingURL=version.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/main/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,UAAU,CAAC"} | ||
| {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/main/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,WAAW,CAAC"} |
@@ -1,4 +0,4 @@ | ||
| const SDK_VERSION = '7.9.0'; | ||
| const SDK_VERSION = '7.10.0'; | ||
| export { SDK_VERSION }; | ||
| //# sourceMappingURL=version.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"version.js","sources":["../../src/main/version.ts"],"sourcesContent":["export const SDK_VERSION = '7.9.0';\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;;;;"} | ||
| {"version":3,"file":"version.js","sources":["../../src/main/version.ts"],"sourcesContent":["export const SDK_VERSION = '7.10.0';\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;;;;"} |
@@ -1,2 +0,2 @@ | ||
| import { ipcRenderer, contextBridge } from 'electron'; | ||
| import { contextBridge, ipcRenderer } from 'electron'; | ||
@@ -3,0 +3,0 @@ /** Ways to communicate between the renderer and main process */ |
@@ -1,2 +0,2 @@ | ||
| import { ipcRenderer, contextBridge } from 'electron'; | ||
| import { contextBridge, ipcRenderer } from 'electron'; | ||
| import { ipcChannelUtils } from '../common/ipc.js'; | ||
@@ -3,0 +3,0 @@ |
@@ -30,4 +30,4 @@ import { BrowserOptions } from '@sentry/browser'; | ||
| */ | ||
| export declare function init<O extends ElectronRendererOptions>(options?: ElectronRendererOptions & O, originalInit?: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_40_0: O) => void): void; | ||
| export declare function init<O extends ElectronRendererOptions>(options?: ElectronRendererOptions & O, originalInit?: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_42_0: O) => void): void; | ||
| export {}; | ||
| //# sourceMappingURL=sdk.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"sdk.js","sources":["../../src/renderer/sdk.ts"],"sourcesContent":["/* eslint-disable deprecation/deprecation */\n/* eslint-disable no-restricted-globals */\nimport {\n BrowserOptions,\n getDefaultIntegrations as getDefaultBrowserIntegrations,\n init as browserInit,\n} from '@sentry/browser';\nimport { debug, Integration } from '@sentry/core';\nimport { scopeToMainIntegration } from './integrations/scope-to-main.js';\nimport { electronRendererStackParser } from './stack-parse.js';\nimport { makeRendererTransport } from './transport.js';\n\n/** Get the default integrations for the renderer SDK. */\nexport function getDefaultIntegrations(options: ElectronRendererOptions): Integration[] {\n return [\n ...getDefaultBrowserIntegrations(options).filter((i) => i.name !== 'BrowserSession' && i.name !== 'CultureContext'),\n scopeToMainIntegration(),\n ];\n}\n\nexport interface ElectronRendererOptionsInternal extends Omit<BrowserOptions, 'dsn' | 'environment' | 'release'> {\n /** @deprecated `dsn` should only be passed to the main process `Sentry.init` call */\n dsn?: string;\n /** @deprecated `release` should only be passed to the main process `Sentry.init` call */\n release?: string;\n /** @deprecated `environment` should only be passed to the main process `Sentry.init` call */\n environment?: string;\n\n /**\n * Custom namespace for IPC channels and protocol routes.\n *\n * Valid characters are a-z, 0-9, hyphen (-).\n * Should match `ipcNamespace` passed in the main process.\n *\n * @default \"sentry-ipc\"\n */\n ipcNamespace: string;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface ElectronRendererOptions extends Partial<ElectronRendererOptionsInternal> {\n //\n}\n\n/**\n * Initialize Sentry in the Electron renderer process\n * @param options SDK options\n * @param originalInit Optional init function for a specific framework SDK\n * @returns\n */\nexport function init<O extends ElectronRendererOptions>(\n options: ElectronRendererOptions & O = {} as ElectronRendererOptions & O,\n // This parameter name ensures that TypeScript error messages contain a hint for fixing SDK version mismatches\n originalInit: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_40_0: O) => void = browserInit,\n): void {\n // Ensure the browser SDK is only init'ed once.\n if (window?.__SENTRY__RENDERER_INIT__) {\n debug.warn(`The browser SDK has already been initialized.\nIf init has been called in the preload and contextIsolation is disabled, is not required to call init in the renderer`);\n return;\n }\n\n window.__SENTRY__RENDERER_INIT__ = true;\n\n // Disable client reports for renderer as the sdk should only send\n // events using the main process.\n options.sendClientReports = false;\n\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = getDefaultIntegrations(options);\n }\n\n if (options.stackParser === undefined) {\n options.stackParser = electronRendererStackParser;\n }\n\n if (options.ipcNamespace === undefined) {\n options.ipcNamespace = 'sentry-ipc';\n }\n\n // eslint-disable-next-line deprecation/deprecation\n if (options.dsn === undefined) {\n // Events are sent via the main process but browser SDK wont start without dsn\n // eslint-disable-next-line deprecation/deprecation\n options.dsn = 'https://12345@dummy.dsn/12345';\n }\n\n if (options.transport === undefined) {\n options.transport = makeRendererTransport;\n }\n\n // We only handle initialScope in the main process otherwise it can cause race conditions over IPC\n delete options.initialScope;\n\n originalInit(options);\n}\n"],"names":["getDefaultBrowserIntegrations","browserInit"],"mappings":";;;;;;AAAA;AACA;AAWA;AACM,SAAU,sBAAsB,CAAC,OAAgC,EAAA;IACrE,OAAO;QACL,GAAGA,wBAA6B,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,gBAAgB,IAAI,CAAC,CAAC,IAAI,KAAK,gBAAgB,CAAC;AACnH,QAAA,sBAAsB,EAAE;KACzB;AACH;AA0BA;;;;;AAKG;AACG,SAAU,IAAI,CAClB,OAAA,GAAuC,EAAiC;AACxE;AACA,YAAA,GAA4FC,MAAW,EAAA;;IAGvG,IAAI,MAAM,EAAE,yBAAyB,EAAE;QACrC,KAAK,CAAC,IAAI,CAAC,CAAA;AACuG,qHAAA,CAAA,CAAC;QACnH;AACD,IAAA;AAED,IAAA,MAAM,CAAC,yBAAyB,GAAG,IAAI;;;AAIvC,IAAA,OAAO,CAAC,iBAAiB,GAAG,KAAK;AAEjC,IAAA,IAAI,OAAO,CAAC,mBAAmB,KAAK,SAAS,EAAE;AAC7C,QAAA,OAAO,CAAC,mBAAmB,GAAG,sBAAsB,CAAC,OAAO,CAAC;AAC9D,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE;AACrC,QAAA,OAAO,CAAC,WAAW,GAAG,2BAA2B;AAClD,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE;AACtC,QAAA,OAAO,CAAC,YAAY,GAAG,YAAY;AACpC,IAAA;;AAGD,IAAA,IAAI,OAAO,CAAC,GAAG,KAAK,SAAS,EAAE;;;AAG7B,QAAA,OAAO,CAAC,GAAG,GAAG,+BAA+B;AAC9C,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE;AACnC,QAAA,OAAO,CAAC,SAAS,GAAG,qBAAqB;AAC1C,IAAA;;IAGD,OAAO,OAAO,CAAC,YAAY;IAE3B,YAAY,CAAC,OAAO,CAAC;AACvB;;;;"} | ||
| {"version":3,"file":"sdk.js","sources":["../../src/renderer/sdk.ts"],"sourcesContent":["/* eslint-disable deprecation/deprecation */\n/* eslint-disable no-restricted-globals */\nimport {\n BrowserOptions,\n getDefaultIntegrations as getDefaultBrowserIntegrations,\n init as browserInit,\n} from '@sentry/browser';\nimport { debug, Integration } from '@sentry/core';\nimport { scopeToMainIntegration } from './integrations/scope-to-main.js';\nimport { electronRendererStackParser } from './stack-parse.js';\nimport { makeRendererTransport } from './transport.js';\n\n/** Get the default integrations for the renderer SDK. */\nexport function getDefaultIntegrations(options: ElectronRendererOptions): Integration[] {\n return [\n ...getDefaultBrowserIntegrations(options).filter((i) => i.name !== 'BrowserSession' && i.name !== 'CultureContext'),\n scopeToMainIntegration(),\n ];\n}\n\nexport interface ElectronRendererOptionsInternal extends Omit<BrowserOptions, 'dsn' | 'environment' | 'release'> {\n /** @deprecated `dsn` should only be passed to the main process `Sentry.init` call */\n dsn?: string;\n /** @deprecated `release` should only be passed to the main process `Sentry.init` call */\n release?: string;\n /** @deprecated `environment` should only be passed to the main process `Sentry.init` call */\n environment?: string;\n\n /**\n * Custom namespace for IPC channels and protocol routes.\n *\n * Valid characters are a-z, 0-9, hyphen (-).\n * Should match `ipcNamespace` passed in the main process.\n *\n * @default \"sentry-ipc\"\n */\n ipcNamespace: string;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface ElectronRendererOptions extends Partial<ElectronRendererOptionsInternal> {\n //\n}\n\n/**\n * Initialize Sentry in the Electron renderer process\n * @param options SDK options\n * @param originalInit Optional init function for a specific framework SDK\n * @returns\n */\nexport function init<O extends ElectronRendererOptions>(\n options: ElectronRendererOptions & O = {} as ElectronRendererOptions & O,\n // This parameter name ensures that TypeScript error messages contain a hint for fixing SDK version mismatches\n originalInit: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_42_0: O) => void = browserInit,\n): void {\n // Ensure the browser SDK is only init'ed once.\n if (window?.__SENTRY__RENDERER_INIT__) {\n debug.warn(`The browser SDK has already been initialized.\nIf init has been called in the preload and contextIsolation is disabled, is not required to call init in the renderer`);\n return;\n }\n\n window.__SENTRY__RENDERER_INIT__ = true;\n\n // Disable client reports for renderer as the sdk should only send\n // events using the main process.\n options.sendClientReports = false;\n\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = getDefaultIntegrations(options);\n }\n\n if (options.stackParser === undefined) {\n options.stackParser = electronRendererStackParser;\n }\n\n if (options.ipcNamespace === undefined) {\n options.ipcNamespace = 'sentry-ipc';\n }\n\n // eslint-disable-next-line deprecation/deprecation\n if (options.dsn === undefined) {\n // Events are sent via the main process but browser SDK wont start without dsn\n // eslint-disable-next-line deprecation/deprecation\n options.dsn = 'https://12345@dummy.dsn/12345';\n }\n\n if (options.transport === undefined) {\n options.transport = makeRendererTransport;\n }\n\n // We only handle initialScope in the main process otherwise it can cause race conditions over IPC\n delete options.initialScope;\n\n originalInit(options);\n}\n"],"names":["getDefaultBrowserIntegrations","browserInit"],"mappings":";;;;;;AAAA;AACA;AAWA;AACM,SAAU,sBAAsB,CAAC,OAAgC,EAAA;IACrE,OAAO;QACL,GAAGA,wBAA6B,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,gBAAgB,IAAI,CAAC,CAAC,IAAI,KAAK,gBAAgB,CAAC;AACnH,QAAA,sBAAsB,EAAE;KACzB;AACH;AA0BA;;;;;AAKG;AACG,SAAU,IAAI,CAClB,OAAA,GAAuC,EAAiC;AACxE;AACA,YAAA,GAA4FC,MAAW,EAAA;;IAGvG,IAAI,MAAM,EAAE,yBAAyB,EAAE;QACrC,KAAK,CAAC,IAAI,CAAC,CAAA;AACuG,qHAAA,CAAA,CAAC;QACnH;AACD,IAAA;AAED,IAAA,MAAM,CAAC,yBAAyB,GAAG,IAAI;;;AAIvC,IAAA,OAAO,CAAC,iBAAiB,GAAG,KAAK;AAEjC,IAAA,IAAI,OAAO,CAAC,mBAAmB,KAAK,SAAS,EAAE;AAC7C,QAAA,OAAO,CAAC,mBAAmB,GAAG,sBAAsB,CAAC,OAAO,CAAC;AAC9D,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE;AACrC,QAAA,OAAO,CAAC,WAAW,GAAG,2BAA2B;AAClD,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE;AACtC,QAAA,OAAO,CAAC,YAAY,GAAG,YAAY;AACpC,IAAA;;AAGD,IAAA,IAAI,OAAO,CAAC,GAAG,KAAK,SAAS,EAAE;;;AAG7B,QAAA,OAAO,CAAC,GAAG,GAAG,+BAA+B;AAC9C,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE;AACnC,QAAA,OAAO,CAAC,SAAS,GAAG,qBAAqB;AAC1C,IAAA;;IAGD,OAAO,OAAO,CAAC,YAAY;IAE3B,YAAY,CAAC,OAAO,CAAC;AACvB;;;;"} |
| import { chromeStackLineParser } from '@sentry/browser'; | ||
| import { nodeStackLineParser, stripSentryFramesAndReverse } from '@sentry/core'; | ||
| import { stripSentryFramesAndReverse, nodeStackLineParser } from '@sentry/core'; | ||
@@ -4,0 +4,0 @@ const STACKTRACE_FRAME_LIMIT = 50; |
@@ -1,2 +0,2 @@ | ||
| export declare const SDK_VERSION = "7.9.0"; | ||
| export declare const SDK_VERSION = "7.10.0"; | ||
| //# sourceMappingURL=version.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/main/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,UAAU,CAAC"} | ||
| {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/main/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,WAAW,CAAC"} |
+1
-1
@@ -1,4 +0,4 @@ | ||
| const SDK_VERSION = '7.9.0'; | ||
| const SDK_VERSION = '7.10.0'; | ||
| exports.SDK_VERSION = SDK_VERSION; | ||
| //# sourceMappingURL=version.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"version.js","sources":["../src/src/main/version.ts"],"sourcesContent":["export const SDK_VERSION = '7.9.0';\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;;;;"} | ||
| {"version":3,"file":"version.js","sources":["../src/src/main/version.ts"],"sourcesContent":["export const SDK_VERSION = '7.10.0';\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;;;;"} |
+8
-8
| { | ||
| "name": "@sentry/electron", | ||
| "description": "Official Sentry SDK for Electron", | ||
| "version": "7.9.0", | ||
| "version": "7.10.0", | ||
| "main": "./index.js", | ||
@@ -108,8 +108,8 @@ "module": "./esm/main/index.js", | ||
| "dependencies": { | ||
| "@sentry/browser": "10.40.0", | ||
| "@sentry/core": "10.40.0", | ||
| "@sentry/node": "10.40.0" | ||
| "@sentry/browser": "10.42.0", | ||
| "@sentry/core": "10.42.0", | ||
| "@sentry/node": "10.42.0" | ||
| }, | ||
| "peerDependencies": { | ||
| "@sentry/node-native": "10.40.0" | ||
| "@sentry/node-native": "10.42.0" | ||
| }, | ||
@@ -123,5 +123,5 @@ "peerDependenciesMeta": { | ||
| "@rollup/plugin-typescript": "^12.1.3", | ||
| "@sentry-internal/eslint-config-sdk": "10.40.0", | ||
| "@sentry-internal/typescript": "10.40.0", | ||
| "@sentry/node-native": "10.40.0", | ||
| "@sentry-internal/eslint-config-sdk": "10.42.0", | ||
| "@sentry-internal/typescript": "10.42.0", | ||
| "@sentry/node-native": "10.42.0", | ||
| "@types/busboy": "^1.5.4", | ||
@@ -128,0 +128,0 @@ "@types/koa": "^2.0.52", |
@@ -30,4 +30,4 @@ import { BrowserOptions } from '@sentry/browser'; | ||
| */ | ||
| export declare function init<O extends ElectronRendererOptions>(options?: ElectronRendererOptions & O, originalInit?: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_40_0: O) => void): void; | ||
| export declare function init<O extends ElectronRendererOptions>(options?: ElectronRendererOptions & O, originalInit?: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_42_0: O) => void): void; | ||
| export {}; | ||
| //# sourceMappingURL=sdk.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"sdk.js","sources":["../src/src/renderer/sdk.ts"],"sourcesContent":["/* eslint-disable deprecation/deprecation */\n/* eslint-disable no-restricted-globals */\nimport {\n BrowserOptions,\n getDefaultIntegrations as getDefaultBrowserIntegrations,\n init as browserInit,\n} from '@sentry/browser';\nimport { debug, Integration } from '@sentry/core';\nimport { scopeToMainIntegration } from './integrations/scope-to-main.js';\nimport { electronRendererStackParser } from './stack-parse.js';\nimport { makeRendererTransport } from './transport.js';\n\n/** Get the default integrations for the renderer SDK. */\nexport function getDefaultIntegrations(options: ElectronRendererOptions): Integration[] {\n return [\n ...getDefaultBrowserIntegrations(options).filter((i) => i.name !== 'BrowserSession' && i.name !== 'CultureContext'),\n scopeToMainIntegration(),\n ];\n}\n\nexport interface ElectronRendererOptionsInternal extends Omit<BrowserOptions, 'dsn' | 'environment' | 'release'> {\n /** @deprecated `dsn` should only be passed to the main process `Sentry.init` call */\n dsn?: string;\n /** @deprecated `release` should only be passed to the main process `Sentry.init` call */\n release?: string;\n /** @deprecated `environment` should only be passed to the main process `Sentry.init` call */\n environment?: string;\n\n /**\n * Custom namespace for IPC channels and protocol routes.\n *\n * Valid characters are a-z, 0-9, hyphen (-).\n * Should match `ipcNamespace` passed in the main process.\n *\n * @default \"sentry-ipc\"\n */\n ipcNamespace: string;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface ElectronRendererOptions extends Partial<ElectronRendererOptionsInternal> {\n //\n}\n\n/**\n * Initialize Sentry in the Electron renderer process\n * @param options SDK options\n * @param originalInit Optional init function for a specific framework SDK\n * @returns\n */\nexport function init<O extends ElectronRendererOptions>(\n options: ElectronRendererOptions & O = {} as ElectronRendererOptions & O,\n // This parameter name ensures that TypeScript error messages contain a hint for fixing SDK version mismatches\n originalInit: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_40_0: O) => void = browserInit,\n): void {\n // Ensure the browser SDK is only init'ed once.\n if (window?.__SENTRY__RENDERER_INIT__) {\n debug.warn(`The browser SDK has already been initialized.\nIf init has been called in the preload and contextIsolation is disabled, is not required to call init in the renderer`);\n return;\n }\n\n window.__SENTRY__RENDERER_INIT__ = true;\n\n // Disable client reports for renderer as the sdk should only send\n // events using the main process.\n options.sendClientReports = false;\n\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = getDefaultIntegrations(options);\n }\n\n if (options.stackParser === undefined) {\n options.stackParser = electronRendererStackParser;\n }\n\n if (options.ipcNamespace === undefined) {\n options.ipcNamespace = 'sentry-ipc';\n }\n\n // eslint-disable-next-line deprecation/deprecation\n if (options.dsn === undefined) {\n // Events are sent via the main process but browser SDK wont start without dsn\n // eslint-disable-next-line deprecation/deprecation\n options.dsn = 'https://12345@dummy.dsn/12345';\n }\n\n if (options.transport === undefined) {\n options.transport = makeRendererTransport;\n }\n\n // We only handle initialScope in the main process otherwise it can cause race conditions over IPC\n delete options.initialScope;\n\n originalInit(options);\n}\n"],"names":["getDefaultBrowserIntegrations","scopeToMainIntegration","browserInit","debug","electronRendererStackParser","makeRendererTransport"],"mappings":";;;;;;AAAA;AACA;AAWA;AACM,SAAU,sBAAsB,CAAC,OAAgC,EAAA;IACrE,OAAO;QACL,GAAGA,8BAA6B,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,gBAAgB,IAAI,CAAC,CAAC,IAAI,KAAK,gBAAgB,CAAC;AACnH,QAAAC,kCAAsB,EAAE;KACzB;AACH;AA0BA;;;;;AAKG;AACG,SAAU,IAAI,CAClB,OAAA,GAAuC,EAAiC;AACxE;AACA,YAAA,GAA4FC,YAAW,EAAA;;IAGvG,IAAI,MAAM,EAAE,yBAAyB,EAAE;QACrCC,UAAK,CAAC,IAAI,CAAC,CAAA;AACuG,qHAAA,CAAA,CAAC;QACnH;AACD,IAAA;AAED,IAAA,MAAM,CAAC,yBAAyB,GAAG,IAAI;;;AAIvC,IAAA,OAAO,CAAC,iBAAiB,GAAG,KAAK;AAEjC,IAAA,IAAI,OAAO,CAAC,mBAAmB,KAAK,SAAS,EAAE;AAC7C,QAAA,OAAO,CAAC,mBAAmB,GAAG,sBAAsB,CAAC,OAAO,CAAC;AAC9D,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE;AACrC,QAAA,OAAO,CAAC,WAAW,GAAGC,sCAA2B;AAClD,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE;AACtC,QAAA,OAAO,CAAC,YAAY,GAAG,YAAY;AACpC,IAAA;;AAGD,IAAA,IAAI,OAAO,CAAC,GAAG,KAAK,SAAS,EAAE;;;AAG7B,QAAA,OAAO,CAAC,GAAG,GAAG,+BAA+B;AAC9C,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE;AACnC,QAAA,OAAO,CAAC,SAAS,GAAGC,+BAAqB;AAC1C,IAAA;;IAGD,OAAO,OAAO,CAAC,YAAY;IAE3B,YAAY,CAAC,OAAO,CAAC;AACvB;;;;;"} | ||
| {"version":3,"file":"sdk.js","sources":["../src/src/renderer/sdk.ts"],"sourcesContent":["/* eslint-disable deprecation/deprecation */\n/* eslint-disable no-restricted-globals */\nimport {\n BrowserOptions,\n getDefaultIntegrations as getDefaultBrowserIntegrations,\n init as browserInit,\n} from '@sentry/browser';\nimport { debug, Integration } from '@sentry/core';\nimport { scopeToMainIntegration } from './integrations/scope-to-main.js';\nimport { electronRendererStackParser } from './stack-parse.js';\nimport { makeRendererTransport } from './transport.js';\n\n/** Get the default integrations for the renderer SDK. */\nexport function getDefaultIntegrations(options: ElectronRendererOptions): Integration[] {\n return [\n ...getDefaultBrowserIntegrations(options).filter((i) => i.name !== 'BrowserSession' && i.name !== 'CultureContext'),\n scopeToMainIntegration(),\n ];\n}\n\nexport interface ElectronRendererOptionsInternal extends Omit<BrowserOptions, 'dsn' | 'environment' | 'release'> {\n /** @deprecated `dsn` should only be passed to the main process `Sentry.init` call */\n dsn?: string;\n /** @deprecated `release` should only be passed to the main process `Sentry.init` call */\n release?: string;\n /** @deprecated `environment` should only be passed to the main process `Sentry.init` call */\n environment?: string;\n\n /**\n * Custom namespace for IPC channels and protocol routes.\n *\n * Valid characters are a-z, 0-9, hyphen (-).\n * Should match `ipcNamespace` passed in the main process.\n *\n * @default \"sentry-ipc\"\n */\n ipcNamespace: string;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface ElectronRendererOptions extends Partial<ElectronRendererOptionsInternal> {\n //\n}\n\n/**\n * Initialize Sentry in the Electron renderer process\n * @param options SDK options\n * @param originalInit Optional init function for a specific framework SDK\n * @returns\n */\nexport function init<O extends ElectronRendererOptions>(\n options: ElectronRendererOptions & O = {} as ElectronRendererOptions & O,\n // This parameter name ensures that TypeScript error messages contain a hint for fixing SDK version mismatches\n originalInit: (if_you_get_a_typescript_error_ensure_sdks_use_version_v10_42_0: O) => void = browserInit,\n): void {\n // Ensure the browser SDK is only init'ed once.\n if (window?.__SENTRY__RENDERER_INIT__) {\n debug.warn(`The browser SDK has already been initialized.\nIf init has been called in the preload and contextIsolation is disabled, is not required to call init in the renderer`);\n return;\n }\n\n window.__SENTRY__RENDERER_INIT__ = true;\n\n // Disable client reports for renderer as the sdk should only send\n // events using the main process.\n options.sendClientReports = false;\n\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = getDefaultIntegrations(options);\n }\n\n if (options.stackParser === undefined) {\n options.stackParser = electronRendererStackParser;\n }\n\n if (options.ipcNamespace === undefined) {\n options.ipcNamespace = 'sentry-ipc';\n }\n\n // eslint-disable-next-line deprecation/deprecation\n if (options.dsn === undefined) {\n // Events are sent via the main process but browser SDK wont start without dsn\n // eslint-disable-next-line deprecation/deprecation\n options.dsn = 'https://12345@dummy.dsn/12345';\n }\n\n if (options.transport === undefined) {\n options.transport = makeRendererTransport;\n }\n\n // We only handle initialScope in the main process otherwise it can cause race conditions over IPC\n delete options.initialScope;\n\n originalInit(options);\n}\n"],"names":["getDefaultBrowserIntegrations","scopeToMainIntegration","browserInit","debug","electronRendererStackParser","makeRendererTransport"],"mappings":";;;;;;AAAA;AACA;AAWA;AACM,SAAU,sBAAsB,CAAC,OAAgC,EAAA;IACrE,OAAO;QACL,GAAGA,8BAA6B,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,gBAAgB,IAAI,CAAC,CAAC,IAAI,KAAK,gBAAgB,CAAC;AACnH,QAAAC,kCAAsB,EAAE;KACzB;AACH;AA0BA;;;;;AAKG;AACG,SAAU,IAAI,CAClB,OAAA,GAAuC,EAAiC;AACxE;AACA,YAAA,GAA4FC,YAAW,EAAA;;IAGvG,IAAI,MAAM,EAAE,yBAAyB,EAAE;QACrCC,UAAK,CAAC,IAAI,CAAC,CAAA;AACuG,qHAAA,CAAA,CAAC;QACnH;AACD,IAAA;AAED,IAAA,MAAM,CAAC,yBAAyB,GAAG,IAAI;;;AAIvC,IAAA,OAAO,CAAC,iBAAiB,GAAG,KAAK;AAEjC,IAAA,IAAI,OAAO,CAAC,mBAAmB,KAAK,SAAS,EAAE;AAC7C,QAAA,OAAO,CAAC,mBAAmB,GAAG,sBAAsB,CAAC,OAAO,CAAC;AAC9D,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS,EAAE;AACrC,QAAA,OAAO,CAAC,WAAW,GAAGC,sCAA2B;AAClD,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,EAAE;AACtC,QAAA,OAAO,CAAC,YAAY,GAAG,YAAY;AACpC,IAAA;;AAGD,IAAA,IAAI,OAAO,CAAC,GAAG,KAAK,SAAS,EAAE;;;AAG7B,QAAA,OAAO,CAAC,GAAG,GAAG,+BAA+B;AAC9C,IAAA;AAED,IAAA,IAAI,OAAO,CAAC,SAAS,KAAK,SAAS,EAAE;AACnC,QAAA,OAAO,CAAC,SAAS,GAAGC,+BAAqB;AAC1C,IAAA;;IAGD,OAAO,OAAO,CAAC,YAAY;IAE3B,YAAY,CAAC,OAAO,CAAC;AACvB;;;;;"} |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1277252
0.06%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated