@sentry/remix
Advanced tools
Comparing version 7.68.0 to 7.69.0
@@ -94,3 +94,3 @@ var { | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// @ts-expect-error Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params | ||
@@ -141,3 +141,3 @@ return React.createElement(OrigApp, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 113}} ); | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// @ts-expect-error Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params | ||
@@ -148,3 +148,3 @@ return React.createElement(OrigApp, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 159}} ); | ||
if (options.wrapWithErrorBoundary) { | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// @ts-expect-error Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params | ||
@@ -154,3 +154,3 @@ return react.withErrorBoundary(SentryRoot, options.errorBoundaryOptions); | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// @ts-expect-error Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params | ||
@@ -157,0 +157,0 @@ return SentryRoot; |
@@ -115,8 +115,3 @@ var { | ||
const activeTransaction = core.getActiveTransaction(); | ||
const currentScope = node.getCurrentHub().getScope(); | ||
if (!currentScope) { | ||
return origDocumentRequestFunction.call(this, request, responseStatusCode, responseHeaders, context, loadContext); | ||
} | ||
try { | ||
@@ -161,6 +156,2 @@ const span = _optionalChain([activeTransaction, 'optionalAccess', _3 => _3.startChild, 'call', _4 => _4({ | ||
if (!currentScope) { | ||
return origFn.call(this, args); | ||
} | ||
try { | ||
@@ -214,13 +205,11 @@ const span = _optionalChain([activeTransaction, 'optionalAccess', _8 => _8.startChild, 'call', _9 => _9({ | ||
if (utils.isNodeEnv() && core.hasTracingEnabled()) { | ||
if (currentScope) { | ||
const span = currentScope.getSpan(); | ||
const span = currentScope.getSpan(); | ||
if (span && transaction) { | ||
const dynamicSamplingContext = transaction.getDynamicSamplingContext(); | ||
if (span && transaction) { | ||
const dynamicSamplingContext = transaction.getDynamicSamplingContext(); | ||
return { | ||
sentryTrace: span.toTraceparent(), | ||
sentryBaggage: utils.dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext), | ||
}; | ||
} | ||
return { | ||
sentryTrace: span.toTraceparent(), | ||
sentryBaggage: utils.dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext), | ||
}; | ||
} | ||
@@ -359,12 +348,10 @@ } | ||
if (scope) { | ||
scope.setSDKProcessingMetadata({ | ||
request: { | ||
...normalizedRequest, | ||
route: { | ||
path: name, | ||
}, | ||
scope.setSDKProcessingMetadata({ | ||
request: { | ||
...normalizedRequest, | ||
route: { | ||
path: name, | ||
}, | ||
}); | ||
} | ||
}, | ||
}); | ||
@@ -371,0 +358,0 @@ if (!options || !core.hasTracingEnabled(options)) { |
@@ -52,5 +52,3 @@ var { | ||
if (scope) { | ||
scope.setSDKProcessingMetadata({ request }); | ||
} | ||
scope.setSDKProcessingMetadata({ request }); | ||
@@ -57,0 +55,0 @@ if (!options || !core.hasTracingEnabled(options) || !request.url || !request.method) { |
@@ -122,2 +122,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function isDeferredData(value) { | ||
@@ -124,0 +125,0 @@ const deferred = value; |
@@ -120,7 +120,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
search: parsedURL.search, | ||
// @ts-ignore - it does not has a query | ||
// @ts-expect-error - it does not has a query | ||
query: parsedURL.query, | ||
href: parsedURL.href, | ||
method: request.method, | ||
// @ts-ignore - not sure what this supposed to do | ||
// @ts-expect-error - not sure what this supposed to do | ||
headers: headers[Symbol.for('nodejs.util.inspect.custom')](), | ||
@@ -127,0 +127,0 @@ insecureHTTPParser: request.insecureHTTPParser, |
@@ -89,3 +89,3 @@ import { _optionalChain } from '@sentry/utils/esm/buildPolyfills'; | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// @ts-expect-error Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params | ||
@@ -136,3 +136,3 @@ return React.createElement(OrigApp, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 113}} ); | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// @ts-expect-error Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params | ||
@@ -143,3 +143,3 @@ return React.createElement(OrigApp, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 159}} ); | ||
if (options.wrapWithErrorBoundary) { | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// @ts-expect-error Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params | ||
@@ -149,3 +149,3 @@ return withErrorBoundary(SentryRoot, options.errorBoundaryOptions); | ||
// @ts-ignore Setting more specific React Component typing for `R` generic above | ||
// @ts-expect-error Setting more specific React Component typing for `R` generic above | ||
// will break advanced type inference done by react router params | ||
@@ -152,0 +152,0 @@ return SentryRoot; |
@@ -110,8 +110,3 @@ import { _optionalChain } from '@sentry/utils/esm/buildPolyfills'; | ||
const activeTransaction = getActiveTransaction(); | ||
const currentScope = getCurrentHub().getScope(); | ||
if (!currentScope) { | ||
return origDocumentRequestFunction.call(this, request, responseStatusCode, responseHeaders, context, loadContext); | ||
} | ||
try { | ||
@@ -156,6 +151,2 @@ const span = _optionalChain([activeTransaction, 'optionalAccess', _3 => _3.startChild, 'call', _4 => _4({ | ||
if (!currentScope) { | ||
return origFn.call(this, args); | ||
} | ||
try { | ||
@@ -209,13 +200,11 @@ const span = _optionalChain([activeTransaction, 'optionalAccess', _8 => _8.startChild, 'call', _9 => _9({ | ||
if (isNodeEnv() && hasTracingEnabled()) { | ||
if (currentScope) { | ||
const span = currentScope.getSpan(); | ||
const span = currentScope.getSpan(); | ||
if (span && transaction) { | ||
const dynamicSamplingContext = transaction.getDynamicSamplingContext(); | ||
if (span && transaction) { | ||
const dynamicSamplingContext = transaction.getDynamicSamplingContext(); | ||
return { | ||
sentryTrace: span.toTraceparent(), | ||
sentryBaggage: dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext), | ||
}; | ||
} | ||
return { | ||
sentryTrace: span.toTraceparent(), | ||
sentryBaggage: dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext), | ||
}; | ||
} | ||
@@ -354,12 +343,10 @@ } | ||
if (scope) { | ||
scope.setSDKProcessingMetadata({ | ||
request: { | ||
...normalizedRequest, | ||
route: { | ||
path: name, | ||
}, | ||
scope.setSDKProcessingMetadata({ | ||
request: { | ||
...normalizedRequest, | ||
route: { | ||
path: name, | ||
}, | ||
}); | ||
} | ||
}, | ||
}); | ||
@@ -366,0 +353,0 @@ if (!options || !hasTracingEnabled(options)) { |
@@ -47,5 +47,3 @@ import { _optionalChain } from '@sentry/utils/esm/buildPolyfills'; | ||
if (scope) { | ||
scope.setSDKProcessingMetadata({ request }); | ||
} | ||
scope.setSDKProcessingMetadata({ request }); | ||
@@ -52,0 +50,0 @@ if (!options || !hasTracingEnabled(options) || !request.url || !request.method) { |
@@ -120,2 +120,3 @@ /** | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
function isDeferredData(value) { | ||
@@ -122,0 +123,0 @@ const deferred = value; |
@@ -118,7 +118,7 @@ import { logger } from '@sentry/utils'; | ||
search: parsedURL.search, | ||
// @ts-ignore - it does not has a query | ||
// @ts-expect-error - it does not has a query | ||
query: parsedURL.query, | ||
href: parsedURL.href, | ||
method: request.method, | ||
// @ts-ignore - not sure what this supposed to do | ||
// @ts-expect-error - not sure what this supposed to do | ||
headers: headers[Symbol.for('nodejs.util.inspect.custom')](), | ||
@@ -125,0 +125,0 @@ insecureHTTPParser: request.insecureHTTPParser, |
{ | ||
"name": "@sentry/remix", | ||
"version": "7.68.0", | ||
"version": "7.69.0", | ||
"description": "Official Sentry SDK for Remix", | ||
@@ -31,7 +31,8 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"@sentry/cli": "2.20.5", | ||
"@sentry/core": "7.68.0", | ||
"@sentry/node": "7.68.0", | ||
"@sentry/react": "7.68.0", | ||
"@sentry/types": "7.68.0", | ||
"@sentry/utils": "7.68.0", | ||
"@sentry/core": "7.69.0", | ||
"@sentry/node": "7.69.0", | ||
"@sentry/react": "7.69.0", | ||
"@sentry/types": "7.69.0", | ||
"@sentry/utils": "7.69.0", | ||
"glob": "^10.3.4", | ||
"tslib": "^2.4.1 || ^1.9.3", | ||
@@ -38,0 +39,0 @@ "yargs": "^17.6.0" |
@@ -6,5 +6,9 @@ /* eslint-disable no-console */ | ||
const sentry = new SentryCli(); | ||
async function createRelease(argv, URL_PREFIX, BUILD_PATH) { | ||
const sentry = new SentryCli(null, { | ||
url: argv.url, | ||
org: argv.org, | ||
project: argv.project, | ||
}); | ||
async function createRelease(argv, URL_PREFIX, BUILD_PATH) { | ||
let release; | ||
@@ -11,0 +15,0 @@ |
@@ -18,2 +18,14 @@ #!/usr/bin/env node | ||
}) | ||
.option('org', { | ||
type: 'string', | ||
describe: 'The Sentry organization slug', | ||
}) | ||
.option('project', { | ||
type: 'string', | ||
describe: 'The Sentry project slug', | ||
}) | ||
.option('url', { | ||
type: 'string', | ||
describe: 'The Sentry server URL', | ||
}) | ||
.option('urlPrefix', { | ||
@@ -42,2 +54,5 @@ type: 'string', | ||
' [--release RELEASE]\n' + | ||
' [--org ORG]\n' + | ||
' [--project PROJECT]\n' + | ||
' [--url URL]\n' + | ||
' [--urlPrefix URL_PREFIX]\n' + | ||
@@ -44,0 +59,0 @@ ' [--buildPath BUILD_PATH]\n\n' + |
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
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
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
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
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
432431
12
3296
+ Addedglob@^10.3.4
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Added@sentry-internal/tracing@7.69.0(transitive)
+ Added@sentry/browser@7.69.0(transitive)
+ Added@sentry/core@7.69.0(transitive)
+ Added@sentry/node@7.69.0(transitive)
+ Added@sentry/react@7.69.0(transitive)
+ Added@sentry/replay@7.69.0(transitive)
+ Added@sentry/types@7.69.0(transitive)
+ Added@sentry/utils@7.69.0(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
- Removed@sentry-internal/tracing@7.68.0(transitive)
- Removed@sentry/browser@7.68.0(transitive)
- Removed@sentry/core@7.68.0(transitive)
- Removed@sentry/node@7.68.0(transitive)
- Removed@sentry/react@7.68.0(transitive)
- Removed@sentry/replay@7.68.0(transitive)
- Removed@sentry/types@7.68.0(transitive)
- Removed@sentry/utils@7.68.0(transitive)
Updated@sentry/core@7.69.0
Updated@sentry/node@7.69.0
Updated@sentry/react@7.69.0
Updated@sentry/types@7.69.0
Updated@sentry/utils@7.69.0