@accounts/password
Advanced tools
Comparing version 1.0.0-alpha-20231122105229-8edd073f to 1.0.0-alpha-20231122120807-69a661e3
@@ -1,5 +0,5 @@ | ||
import { User, TokenRecord, DatabaseInterface, AuthenticationService, ConnectionInformations, LoginResult, CreateUserServicePassword, LoginUserPasswordService, DatabaseInterfaceSessions, DatabaseInterfaceUser } from '@accounts/types'; | ||
import { TwoFactor, AccountsTwoFactorOptions } from '@accounts/two-factor'; | ||
import { type User, type TokenRecord, type DatabaseInterface, type AuthenticationService, type ConnectionInformations, type LoginResult, type CreateUserServicePassword, type LoginUserPasswordService, type DatabaseInterfaceSessions, type DatabaseInterfaceUser } from '@accounts/types'; | ||
import { TwoFactor, type AccountsTwoFactorOptions } from '@accounts/two-factor'; | ||
import { AccountsServer } from '@accounts/server'; | ||
import { ErrorMessages } from './types'; | ||
import { type ErrorMessages } from './types'; | ||
export interface AccountsPasswordOptions { | ||
@@ -6,0 +6,0 @@ /** |
@@ -455,2 +455,3 @@ "use strict"; | ||
tslib_1.__param(2, (0, graphql_modules_1.Inject)(server_1.DatabaseInterfaceSessionsToken)), | ||
tslib_1.__param(3, (0, graphql_modules_1.Inject)(server_1.AccountsServer)), | ||
tslib_1.__metadata("design:paramtypes", [Object, Object, Object, server_1.AccountsServer]) | ||
@@ -457,0 +458,0 @@ ], AccountsPassword); |
@@ -1,2 +0,2 @@ | ||
import { ErrorMessages } from './types'; | ||
import { type ErrorMessages } from './types'; | ||
export declare const errors: ErrorMessages; | ||
@@ -3,0 +3,0 @@ export declare enum CreateUserErrors { |
import { InjectionToken } from 'graphql-modules'; | ||
import { AccountsPasswordOptions } from '../accounts-password'; | ||
import { type AccountsPasswordOptions } from '../accounts-password'; | ||
export declare const AccountsPasswordConfigToken: InjectionToken<AccountsPasswordOptions>; |
@@ -1,3 +0,3 @@ | ||
import { User, TokenRecord } from '@accounts/types'; | ||
import { type User, type TokenRecord } from '@accounts/types'; | ||
export declare const getUserResetTokens: (user: User) => TokenRecord[]; | ||
export declare const getUserVerificationTokens: (user: User) => TokenRecord[]; |
{ | ||
"name": "@accounts/password", | ||
"version": "1.0.0-alpha-20231122105229-8edd073f", | ||
"version": "1.0.0-alpha-20231122120807-69a661e3", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/two-factor": "1.0.0-alpha-20231122105229-8edd073f", | ||
"@accounts/two-factor": "1.0.0-alpha-20231122120807-69a661e3", | ||
"bcryptjs": "2.4.3", | ||
@@ -32,4 +32,4 @@ "express-validator": "^7.0.1", | ||
"devDependencies": { | ||
"@accounts/server": "1.0.0-alpha-20231122105229-8edd073f", | ||
"@accounts/types": "1.0.0-alpha-20231122105229-8edd073f", | ||
"@accounts/server": "1.0.0-alpha-20231122120807-69a661e3", | ||
"@accounts/types": "1.0.0-alpha-20231122120807-69a661e3", | ||
"@types/bcryptjs": "2.4.6", | ||
@@ -44,3 +44,3 @@ "@types/express": "^4.17.21", | ||
"peerDependencies": { | ||
"@accounts/server": "1.0.0-alpha-20231122105229-8edd073f", | ||
"@accounts/server": "1.0.0-alpha-20231122120807-69a661e3", | ||
"graphql": "^16.0.0", | ||
@@ -47,0 +47,0 @@ "graphql-modules": "^3.0.0" |
import { | ||
User, | ||
LoginUserIdentity, | ||
EmailRecord, | ||
TokenRecord, | ||
DatabaseInterface, | ||
AuthenticationService, | ||
ConnectionInformations, | ||
LoginResult, | ||
CreateUserServicePassword, | ||
LoginUserPasswordService, | ||
DatabaseInterfaceSessions, | ||
DatabaseInterfaceUser, | ||
type User, | ||
type LoginUserIdentity, | ||
type EmailRecord, | ||
type TokenRecord, | ||
type DatabaseInterface, | ||
type AuthenticationService, | ||
type ConnectionInformations, | ||
type LoginResult, | ||
type CreateUserServicePassword, | ||
type LoginUserPasswordService, | ||
type DatabaseInterfaceSessions, | ||
type DatabaseInterfaceUser, | ||
} from '@accounts/types'; | ||
import { TwoFactor, AccountsTwoFactorOptions, getUserTwoFactorService } from '@accounts/two-factor'; | ||
import { | ||
TwoFactor, | ||
type AccountsTwoFactorOptions, | ||
getUserTwoFactorService, | ||
} from '@accounts/two-factor'; | ||
import { | ||
AccountsServer, | ||
@@ -31,3 +35,3 @@ ServerHooks, | ||
} from './utils'; | ||
import { AccountsPasswordConfigToken, ErrorMessages } from './types'; | ||
import { AccountsPasswordConfigToken, type ErrorMessages } from './types'; | ||
import { | ||
@@ -206,3 +210,3 @@ errors, | ||
@Inject(DatabaseInterfaceSessionsToken) dbSessions?: DatabaseInterfaceSessions, | ||
server?: AccountsServer | ||
@Inject(AccountsServer) server?: AccountsServer | ||
) { | ||
@@ -209,0 +213,0 @@ this.options = { ...defaultOptions, ...options } as typeof options & typeof defaultOptions; |
@@ -1,2 +0,2 @@ | ||
import { ErrorMessages } from './types'; | ||
import { type ErrorMessages } from './types'; | ||
@@ -3,0 +3,0 @@ export const errors: ErrorMessages = { |
import { InjectionToken } from 'graphql-modules'; | ||
import { AccountsPasswordOptions } from '../accounts-password'; | ||
import { type AccountsPasswordOptions } from '../accounts-password'; | ||
@@ -4,0 +4,0 @@ export const AccountsPasswordConfigToken = new InjectionToken<AccountsPasswordOptions>( |
@@ -1,2 +0,2 @@ | ||
import { User, TokenRecord } from '@accounts/types'; | ||
import { type User, type TokenRecord } from '@accounts/types'; | ||
@@ -3,0 +3,0 @@ export const getUserResetTokens = (user: User): TokenRecord[] => { |
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
127537
2471
+ Added@accounts/server@1.0.0-alpha-20231122120807-69a661e3(transitive)
+ Added@accounts/two-factor@1.0.0-alpha-20231122120807-69a661e3(transitive)
+ Added@accounts/types@1.0.0-alpha-20231122120807-69a661e3(transitive)
- Removed@accounts/server@1.0.0-alpha-20231122105229-8edd073f(transitive)
- Removed@accounts/two-factor@1.0.0-alpha-20231122105229-8edd073f(transitive)
- Removed@accounts/types@1.0.0-alpha-20231122105229-8edd073f(transitive)
Updated@accounts/two-factor@1.0.0-alpha-20231122120807-69a661e3