Skip to content

Commit

Permalink
Move types.ts to vendor sub-directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Jul 6, 2023
1 parent decae61 commit 90e1118
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/remix/src/client/errors.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { captureException, withScope } from '@sentry/core';
import { addExceptionMechanism, isNodeEnv, isString } from '@sentry/utils';

import type { ErrorResponse } from '../utils/types';
import type { ErrorResponse } from '../utils/vendor/types';

/**
* Checks whether the given error is an ErrorResponse.
Expand Down
2 changes: 1 addition & 1 deletion packages/remix/src/utils/futureFlags.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GLOBAL_OBJ } from '@sentry/utils';

import type { FutureConfig, ServerBuild } from './types';
import type { FutureConfig, ServerBuild } from './vendor/types';

export type EnhancedGlobal = typeof GLOBAL_OBJ & {
__remixContext?: {
Expand Down
2 changes: 1 addition & 1 deletion packages/remix/src/utils/instrumentServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import type {
ServerBuild,
ServerRoute,
ServerRouteManifest,
} from './types';
} from './vendor/types';
import { extractData, getRequestMatch, isDeferredData, isResponse, json, matchServerRoutes } from './vendor/response';
import { normalizeRemixRequest } from './web-fetch';

Expand Down
2 changes: 1 addition & 1 deletion packages/remix/src/utils/serverAdapters/express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type {
ExpressResponse,
ReactRouterDomPkg,
ServerBuild,
} from '../types';
} from '../vendor/types';

let pkg: ReactRouterDomPkg;

Expand Down
2 changes: 1 addition & 1 deletion packages/remix/src/utils/vendor/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
// 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.

import type { DeferredData, ReactRouterDomPkg, RouteMatch, ServerRoute } from '../types';
import type { DeferredData, ReactRouterDomPkg, RouteMatch, ServerRoute } from './types';

/**
* Based on Remix Implementation
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/remix/src/utils/web-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

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

import type { RemixRequest } from './types';
import type { RemixRequest } from './vendor/types';
import { getClientIPAddress } from './vendor/getIpAddress';

/*
Expand Down

0 comments on commit 90e1118

Please sign in to comment.