Skip to content

Commit 6f14958

Browse files
committed
Move types.ts to vendor sub-directory.
1 parent decae61 commit 6f14958

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

packages/remix/src/client/errors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { captureException, withScope } from '@sentry/core';
22
import { addExceptionMechanism, isNodeEnv, isString } from '@sentry/utils';
33

4-
import type { ErrorResponse } from '../utils/types';
4+
import type { ErrorResponse } from '../utils/vendor/types';
55

66
/**
77
* Checks whether the given error is an ErrorResponse.

packages/remix/src/utils/futureFlags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { GLOBAL_OBJ } from '@sentry/utils';
22

3-
import type { FutureConfig, ServerBuild } from './types';
3+
import type { FutureConfig, ServerBuild } from './vendor/types';
44

55
export type EnhancedGlobal = typeof GLOBAL_OBJ & {
66
__remixContext?: {

packages/remix/src/utils/instrumentServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
} from '@sentry/utils';
1515

1616
import { getFutureFlagsServer } from './futureFlags';
17+
import { extractData, getRequestMatch, isDeferredData, isResponse, json, matchServerRoutes } from './vendor/response';
1718
import type {
1819
AppData,
1920
CreateRequestHandlerFunction,
@@ -28,8 +29,7 @@ import type {
2829
ServerBuild,
2930
ServerRoute,
3031
ServerRouteManifest,
31-
} from './types';
32-
import { extractData, getRequestMatch, isDeferredData, isResponse, json, matchServerRoutes } from './vendor/response';
32+
} from './vendor/types';
3333
import { normalizeRemixRequest } from './web-fetch';
3434

3535
let FUTURE_FLAGS: FutureConfig | undefined;

packages/remix/src/utils/serverAdapters/express.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import type {
2020
ExpressResponse,
2121
ReactRouterDomPkg,
2222
ServerBuild,
23-
} from '../types';
23+
} from '../vendor/types';
2424

2525
let pkg: ReactRouterDomPkg;
2626

packages/remix/src/utils/vendor/response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
88

9-
import type { DeferredData, ReactRouterDomPkg, RouteMatch, ServerRoute } from '../types';
9+
import type { DeferredData, ReactRouterDomPkg, RouteMatch, ServerRoute } from './types';
1010

1111
/**
1212
* Based on Remix Implementation

packages/remix/src/utils/web-fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
import { logger } from '@sentry/utils';
2626

27-
import type { RemixRequest } from './types';
2827
import { getClientIPAddress } from './vendor/getIpAddress';
28+
import type { RemixRequest } from './vendor/types';
2929

3030
/*
3131
* Symbol extractor utility to be able to access internal fields of Remix requests.

0 commit comments

Comments
 (0)