File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,20 @@ export function getDefaultIntegrations(options: RemixOptions): Integration[] {
140
140
] ;
141
141
}
142
142
143
+ /**
144
+ * Returns the given Express createRequestHandler function.
145
+ * This function is no-op and only returns the given function.
146
+ *
147
+ * @deprecated No need to wrap the Express request handler.
148
+ * @param createRequestHandlerFn The Remix Express `createRequestHandler`.
149
+ * @returns `createRequestHandler` function.
150
+ */
151
+ export function wrapExpressCreateRequestHandler ( createRequestHandlerFn : unknown ) : unknown {
152
+ DEBUG_BUILD && logger . warn ( 'wrapExpressCreateRequestHandler is deprecated and no longer needed.' ) ;
153
+
154
+ return createRequestHandlerFn ;
155
+ }
156
+
143
157
/** Initializes Sentry Remix SDK on Node. */
144
158
export function init ( options : RemixOptions ) : void {
145
159
applySdkMetadata ( options , 'remix' , [ 'remix' , 'node' ] ) ;
You can’t perform that action at this time.
0 commit comments