Skip to content

Commit

Permalink
fix: peerDeps on rest-express
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbasic committed Nov 15, 2023
1 parent 9cecbdd commit 2065354
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 22 deletions.
2 changes: 2 additions & 0 deletions packages/rest-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"author": "Tim Mikeladze",
"license": "MIT",
"peerDependencies": {
"@accounts/magic-link": "^0.1.0",
"@accounts/password": "^0.32.0",
"@accounts/server": "^0.32.0 || ^0.33.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-express/src/endpoints/impersonate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { type AccountsServer } from '@accounts/server';
import { ImpersonationUserIdentity } from '@accounts/types';
import { sendError } from '../utils/send-error';

Expand Down
2 changes: 1 addition & 1 deletion packages/rest-express/src/endpoints/logout.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { type AccountsServer } from '@accounts/server';
import { sendError } from '../utils/send-error';

export const logout =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from 'express';
import { AccountsJsError, AccountsServer } from '@accounts/server';
import { AccountsMagicLink, RequestMagicLinkEmailErrors } from '@accounts/magic-link';
import { AccountsJsError, type AccountsServer } from '@accounts/server';
import { type AccountsMagicLink, RequestMagicLinkEmailErrors } from '@accounts/magic-link';
import { sendError } from '../../utils/send-error';

export const requestMagicLinkEmail =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { type AccountsServer } from '@accounts/server';
import { sendError } from '../../utils/send-error';
import { AccountsExpressOptions } from '../../types';

Expand Down
4 changes: 2 additions & 2 deletions packages/rest-express/src/endpoints/password/add-email.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { AccountsPassword } from '@accounts/password';
import { type AccountsServer } from '@accounts/server';
import { type AccountsPassword } from '@accounts/password';
import { sendError } from '../../utils/send-error';

export const addEmail =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { AccountsPassword } from '@accounts/password';
import { type AccountsServer } from '@accounts/server';
import { type AccountsPassword } from '@accounts/password';
import { sendError } from '../../utils/send-error';

export const changePassword =
Expand Down
4 changes: 2 additions & 2 deletions packages/rest-express/src/endpoints/password/register.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from 'express';
import { AccountsServer, AccountsJsError } from '@accounts/server';
import { AccountsPassword, CreateUserErrors } from '@accounts/password';
import { type AccountsServer, AccountsJsError } from '@accounts/server';
import { type AccountsPassword, CreateUserErrors } from '@accounts/password';
import { CreateUserResult } from '@accounts/types';
import { sendError } from '../../utils/send-error';

Expand Down
4 changes: 2 additions & 2 deletions packages/rest-express/src/endpoints/password/reset.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from 'express';
import { AccountsJsError, AccountsServer } from '@accounts/server';
import { AccountsPassword, SendResetPasswordEmailErrors } from '@accounts/password';
import { AccountsJsError, type AccountsServer } from '@accounts/server';
import { type AccountsPassword, SendResetPasswordEmailErrors } from '@accounts/password';
import { sendError } from '../../utils/send-error';

export const resetPassword =
Expand Down
4 changes: 2 additions & 2 deletions packages/rest-express/src/endpoints/password/two-factor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { AccountsPassword } from '@accounts/password';
import { type AccountsServer } from '@accounts/server';
import { type AccountsPassword } from '@accounts/password';
import { sendError } from '../../utils/send-error';

export const twoFactorSecret =
Expand Down
4 changes: 2 additions & 2 deletions packages/rest-express/src/endpoints/password/verify-email.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as express from 'express';
import { AccountsJsError, AccountsServer } from '@accounts/server';
import { AccountsPassword, SendVerificationEmailErrors } from '@accounts/password';
import { AccountsJsError, type AccountsServer } from '@accounts/server';
import { type AccountsPassword, SendVerificationEmailErrors } from '@accounts/password';
import { sendError } from '../../utils/send-error';

export const verifyEmail =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { type AccountsServer } from '@accounts/server';
import { sendError } from '../utils/send-error';

export const refreshAccessToken =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { type AccountsServer } from '@accounts/server';
import { sendError } from '../utils/send-error';

export const serviceAuthenticate =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { type AccountsServer } from '@accounts/server';
import { sendError } from '../utils/send-error';

export const serviceVerifyAuthentication =
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-express/src/express-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { resetPassword, sendResetPasswordEmail } from './endpoints/password/rese
import { verifyEmail, sendVerificationEmail } from './endpoints/password/verify-email';
import * as express from 'express';
import * as requestIp from 'request-ip';
import { AccountsServer } from '@accounts/server';
import { type AccountsServer } from '@accounts/server';
import { refreshAccessToken } from './endpoints/refresh-access-token';
import { getUser } from './endpoints/get-user';
import { impersonate } from './endpoints/impersonate';
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-express/src/user-loader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as express from 'express';
import { AccountsServer } from '@accounts/server';
import { type AccountsServer } from '@accounts/server';

export const userLoader =
(accountsServer: AccountsServer) =>
Expand Down

0 comments on commit 2065354

Please sign in to comment.