@sentry/node
Advanced tools
Comparing version 7.95.0 to 7.96.0
@@ -316,8 +316,7 @@ var { | ||
name: INTEGRATION_NAME, | ||
// TODO v8: Remove this | ||
setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function | ||
setup(client) { | ||
const clientOptions = client.getOptions(); | ||
setupOnce() { | ||
const client = core.getClient(); | ||
const clientOptions = _optionalChain([client, 'optionalAccess', _40 => _40.getOptions, 'call', _41 => _41()]); | ||
if (session && clientOptions.includeLocalVariables) { | ||
if (session && _optionalChain([clientOptions, 'optionalAccess', _42 => _42.includeLocalVariables])) { | ||
// Only setup this integration if the Node version is >= v18 | ||
@@ -347,3 +346,3 @@ // https://github.com/getsentry/sentry-javascript/issues/7697 | ||
utils.logger.log('Local variables rate-limit lifted.'); | ||
_optionalChain([session, 'optionalAccess', _40 => _40.setPauseOnExceptions, 'call', _41 => _41(true)]); | ||
_optionalChain([session, 'optionalAccess', _43 => _43.setPauseOnExceptions, 'call', _44 => _44(true)]); | ||
}, | ||
@@ -354,3 +353,3 @@ seconds => { | ||
); | ||
_optionalChain([session, 'optionalAccess', _42 => _42.setPauseOnExceptions, 'call', _43 => _43(false)]); | ||
_optionalChain([session, 'optionalAccess', _45 => _45.setPauseOnExceptions, 'call', _46 => _46(false)]); | ||
}, | ||
@@ -357,0 +356,0 @@ ); |
import { _optionalChain } from '@sentry/utils'; | ||
import { convertIntegrationFnToClass } from '@sentry/core'; | ||
import { convertIntegrationFnToClass, getClient } from '@sentry/core'; | ||
import { LRUMap, logger } from '@sentry/utils'; | ||
@@ -311,8 +311,7 @@ import { NODE_VERSION } from '../../nodeVersion.js'; | ||
name: INTEGRATION_NAME, | ||
// TODO v8: Remove this | ||
setupOnce() {}, // eslint-disable-line @typescript-eslint/no-empty-function | ||
setup(client) { | ||
const clientOptions = client.getOptions(); | ||
setupOnce() { | ||
const client = getClient(); | ||
const clientOptions = _optionalChain([client, 'optionalAccess', _40 => _40.getOptions, 'call', _41 => _41()]); | ||
if (session && clientOptions.includeLocalVariables) { | ||
if (session && _optionalChain([clientOptions, 'optionalAccess', _42 => _42.includeLocalVariables])) { | ||
// Only setup this integration if the Node version is >= v18 | ||
@@ -342,3 +341,3 @@ // https://github.com/getsentry/sentry-javascript/issues/7697 | ||
logger.log('Local variables rate-limit lifted.'); | ||
_optionalChain([session, 'optionalAccess', _40 => _40.setPauseOnExceptions, 'call', _41 => _41(true)]); | ||
_optionalChain([session, 'optionalAccess', _43 => _43.setPauseOnExceptions, 'call', _44 => _44(true)]); | ||
}, | ||
@@ -349,3 +348,3 @@ seconds => { | ||
); | ||
_optionalChain([session, 'optionalAccess', _42 => _42.setPauseOnExceptions, 'call', _43 => _43(false)]); | ||
_optionalChain([session, 'optionalAccess', _45 => _45.setPauseOnExceptions, 'call', _46 => _46(false)]); | ||
}, | ||
@@ -352,0 +351,0 @@ ); |
{ | ||
"name": "@sentry/node", | ||
"version": "7.95.0", | ||
"version": "7.96.0", | ||
"description": "Official Sentry SDK for Node.js", | ||
@@ -23,4 +23,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"<4.9": { | ||
"npm/types/index.d.ts": [ | ||
"npm/types-ts3.8/index.d.ts" | ||
"types/index.d.ts": [ | ||
"types-ts3.8/index.d.ts" | ||
] | ||
@@ -33,6 +33,6 @@ } | ||
"dependencies": { | ||
"@sentry-internal/tracing": "7.95.0", | ||
"@sentry/core": "7.95.0", | ||
"@sentry/types": "7.95.0", | ||
"@sentry/utils": "7.95.0" | ||
"@sentry-internal/tracing": "7.96.0", | ||
"@sentry/core": "7.96.0", | ||
"@sentry/types": "7.96.0", | ||
"@sentry/utils": "7.96.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
@@ -8,10 +8,15 @@ export type CronJobParams = { | ||
runOnInit?: boolean | null; | ||
utcOffset?: number; | ||
timeZone?: string; | ||
unrefTimeout?: boolean | null; | ||
}; | ||
} & ({ | ||
timeZone?: string | null; | ||
utcOffset?: never; | ||
} | { | ||
timeZone?: never; | ||
utcOffset?: number | null; | ||
}); | ||
export type CronJob = {}; | ||
export type CronJobConstructor = { | ||
from: (param: CronJobParams) => CronJob; | ||
new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: CronJobParams['timeZone'], context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: CronJobParams['utcOffset'], unrefTimeout?: CronJobParams['unrefTimeout']): CronJob; | ||
new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: CronJobParams['timeZone'], context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: null, unrefTimeout?: CronJobParams['unrefTimeout']): CronJob; | ||
new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: null, context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: CronJobParams['utcOffset'], unrefTimeout?: CronJobParams['unrefTimeout']): CronJob; | ||
}; | ||
@@ -18,0 +23,0 @@ /** |
@@ -8,10 +8,15 @@ export type CronJobParams = { | ||
runOnInit?: boolean | null; | ||
utcOffset?: number; | ||
timeZone?: string; | ||
unrefTimeout?: boolean | null; | ||
}; | ||
} & ({ | ||
timeZone?: string | null; | ||
utcOffset?: never; | ||
} | { | ||
timeZone?: never; | ||
utcOffset?: number | null; | ||
}); | ||
export type CronJob = {}; | ||
export type CronJobConstructor = { | ||
from: (param: CronJobParams) => CronJob; | ||
new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: CronJobParams['timeZone'], context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: CronJobParams['utcOffset'], unrefTimeout?: CronJobParams['unrefTimeout']): CronJob; | ||
new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: CronJobParams['timeZone'], context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: null, unrefTimeout?: CronJobParams['unrefTimeout']): CronJob; | ||
new (cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: null, context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: CronJobParams['utcOffset'], unrefTimeout?: CronJobParams['unrefTimeout']): CronJob; | ||
}; | ||
@@ -18,0 +23,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1898812
12651
+ Added@sentry-internal/tracing@7.96.0(transitive)
+ Added@sentry/core@7.96.0(transitive)
+ Added@sentry/types@7.96.0(transitive)
+ Added@sentry/utils@7.96.0(transitive)
- Removed@sentry-internal/tracing@7.95.0(transitive)
- Removed@sentry/core@7.95.0(transitive)
- Removed@sentry/types@7.95.0(transitive)
- Removed@sentry/utils@7.95.0(transitive)
Updated@sentry/core@7.96.0
Updated@sentry/types@7.96.0
Updated@sentry/utils@7.96.0