@adonisjs/auth 8.2.2 → 9.0.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +19 -40
- package/build/configure.d.ts +5 -0
- package/build/configure.js +41 -0
- package/build/factories/database_token_factory.d.ts +36 -0
- package/build/factories/database_token_factory.js +54 -0
- package/build/factories/database_user_provider.d.ts +14 -0
- package/build/factories/database_user_provider.js +27 -0
- package/build/factories/lucid_user_provider.d.ts +28 -0
- package/build/factories/lucid_user_provider.js +68 -0
- package/build/factories/main.d.ts +4 -0
- package/build/factories/main.js +12 -0
- package/build/factories/session_guard_factory.d.ts +13 -0
- package/build/factories/session_guard_factory.js +24 -0
- package/build/index.d.ts +7 -0
- package/build/index.js +15 -0
- package/build/providers/auth_provider.d.ts +12 -0
- package/build/providers/auth_provider.js +27 -0
- package/build/services/auth.d.ts +3 -0
- package/build/services/auth.js +17 -0
- package/build/src/auth/auth_manager.d.ts +18 -0
- package/build/src/auth/auth_manager.js +28 -0
- package/build/src/auth/authenticator.d.ts +18 -0
- package/build/src/auth/authenticator.js +55 -0
- package/build/src/auth/debug.d.ts +3 -0
- package/build/{adonis-typings/container.js → src/auth/debug.js} +3 -1
- package/build/src/auth/define_config.d.ts +30 -0
- package/build/src/auth/define_config.js +54 -0
- package/build/src/auth/errors.d.ts +8 -0
- package/build/src/auth/errors.js +17 -0
- package/build/src/auth/symbols.d.ts +9 -0
- package/build/src/auth/symbols.js +17 -0
- package/build/src/auth/types.d.ts +52 -0
- package/build/{adonis-typings/context.js → src/auth/types.js} +2 -1
- package/build/src/auth/user_providers/main.d.ts +15 -0
- package/build/src/auth/user_providers/main.js +22 -0
- package/build/src/core/guard_user.d.ts +26 -0
- package/build/src/core/guard_user.js +29 -0
- package/build/src/core/token.d.ts +86 -0
- package/build/src/core/token.js +112 -0
- package/build/src/core/token_providers/database.d.ts +77 -0
- package/build/src/core/token_providers/database.js +113 -0
- package/build/src/core/types.d.ts +178 -0
- package/build/{adonis-typings/auth.js → src/core/types.js} +2 -1
- package/build/src/core/user_providers/database.d.ts +78 -0
- package/build/src/core/user_providers/database.js +117 -0
- package/build/src/core/user_providers/lucid.d.ts +61 -0
- package/build/src/core/user_providers/lucid.js +122 -0
- package/build/src/guards/session/define_config.d.ts +23 -0
- package/build/src/guards/session/define_config.js +56 -0
- package/build/src/guards/session/guard.d.ts +92 -0
- package/build/src/guards/session/guard.js +380 -0
- package/build/src/guards/session/main.d.ts +3 -0
- package/build/src/guards/session/main.js +11 -0
- package/build/src/guards/session/token.d.ts +57 -0
- package/build/src/guards/session/token.js +58 -0
- package/build/src/guards/session/token_providers/main.d.ts +33 -0
- package/build/src/guards/session/token_providers/main.js +42 -0
- package/build/src/guards/session/types.d.ts +97 -0
- package/build/{adonis-typings/events.js → src/guards/session/types.js} +2 -1
- package/build/stubs/config/auth_middleware.stub +12 -0
- package/build/stubs/config.stub +35 -0
- package/build/stubs/main.d.ts +1 -0
- package/build/{adonis-typings/tests.js → stubs/main.js} +2 -3
- package/package.json +96 -91
- package/build/adonis-typings/auth.d.ts +0 -635
- package/build/adonis-typings/container.d.ts +0 -6
- package/build/adonis-typings/context.d.ts +0 -6
- package/build/adonis-typings/events.d.ts +0 -10
- package/build/adonis-typings/index.d.ts +0 -5
- package/build/adonis-typings/index.js +0 -13
- package/build/adonis-typings/tests.d.ts +0 -23
- package/build/instructions.js +0 -338
- package/build/providers/AuthProvider.d.ts +0 -30
- package/build/providers/AuthProvider.js +0 -69
- package/build/src/Auth/index.d.ts +0 -97
- package/build/src/Auth/index.js +0 -155
- package/build/src/AuthManager/index.d.ts +0 -117
- package/build/src/AuthManager/index.js +0 -262
- package/build/src/Bindings/Tests.d.ts +0 -6
- package/build/src/Bindings/Tests.js +0 -69
- package/build/src/Clients/Oat/index.d.ts +0 -50
- package/build/src/Clients/Oat/index.js +0 -123
- package/build/src/Clients/Session/index.d.ts +0 -34
- package/build/src/Clients/Session/index.js +0 -72
- package/build/src/Exceptions/AuthenticationException.d.ts +0 -47
- package/build/src/Exceptions/AuthenticationException.js +0 -142
- package/build/src/Exceptions/InvalidCredentialsException.d.ts +0 -34
- package/build/src/Exceptions/InvalidCredentialsException.js +0 -112
- package/build/src/Guards/Base/index.d.ts +0 -75
- package/build/src/Guards/Base/index.js +0 -138
- package/build/src/Guards/BasicAuth/index.d.ts +0 -67
- package/build/src/Guards/BasicAuth/index.js +0 -181
- package/build/src/Guards/Oat/index.d.ts +0 -149
- package/build/src/Guards/Oat/index.js +0 -347
- package/build/src/Guards/Session/index.d.ts +0 -127
- package/build/src/Guards/Session/index.js +0 -338
- package/build/src/TokenProviders/Database/index.d.ts +0 -43
- package/build/src/TokenProviders/Database/index.js +0 -126
- package/build/src/TokenProviders/Redis/index.d.ts +0 -44
- package/build/src/TokenProviders/Redis/index.js +0 -129
- package/build/src/Tokens/OpaqueToken/index.d.ts +0 -46
- package/build/src/Tokens/OpaqueToken/index.js +0 -43
- package/build/src/Tokens/ProviderToken/index.d.ts +0 -23
- package/build/src/Tokens/ProviderToken/index.js +0 -27
- package/build/src/UserProviders/Database/User.d.ts +0 -28
- package/build/src/UserProviders/Database/User.js +0 -74
- package/build/src/UserProviders/Database/index.d.ts +0 -75
- package/build/src/UserProviders/Database/index.js +0 -141
- package/build/src/UserProviders/Lucid/User.d.ts +0 -28
- package/build/src/UserProviders/Lucid/User.js +0 -74
- package/build/src/UserProviders/Lucid/index.d.ts +0 -72
- package/build/src/UserProviders/Lucid/index.js +0 -146
- package/build/standalone.d.ts +0 -1
- package/build/standalone.js +0 -13
- package/build/templates/config/auth.txt +0 -34
- package/build/templates/config/partials/api-guard.txt +0 -22
- package/build/templates/config/partials/basic-guard.txt +0 -19
- package/build/templates/config/partials/tokens-provider-database.txt +0 -19
- package/build/templates/config/partials/tokens-provider-redis.txt +0 -22
- package/build/templates/config/partials/user-provider-database.txt +0 -43
- package/build/templates/config/partials/user-provider-lucid.txt +0 -45
- package/build/templates/config/partials/web-guard.txt +0 -17
- package/build/templates/contract/auth.txt +0 -55
- package/build/templates/contract/partials/api-guard.txt +0 -14
- package/build/templates/contract/partials/basic-guard.txt +0 -14
- package/build/templates/contract/partials/user-provider-database.txt +0 -16
- package/build/templates/contract/partials/user-provider-lucid.txt +0 -16
- package/build/templates/contract/partials/web-guard.txt +0 -14
- package/build/templates/middleware/Auth.txt +0 -76
- package/build/templates/middleware/SilentAuth.txt +0 -21
- package/build/templates/migrations/api_tokens.txt +0 -25
- package/build/templates/migrations/auth.txt +0 -24
- package/build/templates/model.txt +0 -30
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { RememberMeToken } from '../token.js';
|
|
2
|
+
import type { RememberMeProviderContract } from '../types.js';
|
|
3
|
+
import { DatabaseTokenProvider } from '../../../core/token_providers/database.js';
|
|
4
|
+
/**
|
|
5
|
+
* Remember me token provider to persist tokens inside the database
|
|
6
|
+
* using db query builder.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DatabaseRememberTokenProvider extends DatabaseTokenProvider<RememberMeToken> implements RememberMeProviderContract {
|
|
9
|
+
/**
|
|
10
|
+
* Prepares a token from the database result
|
|
11
|
+
*/
|
|
12
|
+
protected prepareToken(dbRow: {
|
|
13
|
+
series: string;
|
|
14
|
+
user_id: string | number;
|
|
15
|
+
type: string;
|
|
16
|
+
token: string;
|
|
17
|
+
created_at: Date;
|
|
18
|
+
updated_at: Date;
|
|
19
|
+
expires_at: Date | null;
|
|
20
|
+
}): RememberMeToken;
|
|
21
|
+
/**
|
|
22
|
+
* Converts the remember me token into a database row
|
|
23
|
+
*/
|
|
24
|
+
protected parseToken(token: RememberMeToken): {
|
|
25
|
+
series: string;
|
|
26
|
+
user_id: string | number;
|
|
27
|
+
type: string;
|
|
28
|
+
token: string;
|
|
29
|
+
created_at: Date;
|
|
30
|
+
updated_at: Date;
|
|
31
|
+
expires_at: Date | null;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @adonisjs/auth
|
|
3
|
+
*
|
|
4
|
+
* (c) AdonisJS
|
|
5
|
+
*
|
|
6
|
+
* For the full copyright and license information, please view the LICENSE
|
|
7
|
+
* file that was distributed with this source code.
|
|
8
|
+
*/
|
|
9
|
+
import { RememberMeToken } from '../token.js';
|
|
10
|
+
import { DatabaseTokenProvider } from '../../../core/token_providers/database.js';
|
|
11
|
+
/**
|
|
12
|
+
* Remember me token provider to persist tokens inside the database
|
|
13
|
+
* using db query builder.
|
|
14
|
+
*/
|
|
15
|
+
export class DatabaseRememberTokenProvider extends DatabaseTokenProvider {
|
|
16
|
+
/**
|
|
17
|
+
* Prepares a token from the database result
|
|
18
|
+
*/
|
|
19
|
+
prepareToken(dbRow) {
|
|
20
|
+
const token = new RememberMeToken(dbRow.user_id, dbRow.series, undefined, dbRow.token);
|
|
21
|
+
if (dbRow.expires_at) {
|
|
22
|
+
token.expiresAt = dbRow.expires_at;
|
|
23
|
+
}
|
|
24
|
+
token.createdAt = dbRow.created_at;
|
|
25
|
+
token.updatedAt = dbRow.updated_at;
|
|
26
|
+
return token;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Converts the remember me token into a database row
|
|
30
|
+
*/
|
|
31
|
+
parseToken(token) {
|
|
32
|
+
return {
|
|
33
|
+
series: token.series,
|
|
34
|
+
user_id: token.userId,
|
|
35
|
+
type: token.type,
|
|
36
|
+
token: token.hash,
|
|
37
|
+
created_at: token.createdAt,
|
|
38
|
+
updated_at: token.updatedAt,
|
|
39
|
+
expires_at: token.expiresAt,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Exception } from '@poppinss/utils';
|
|
2
|
+
import type { RememberMeToken } from './token.js';
|
|
3
|
+
import type { UserProviderContract, TokenProviderContract, DatabaseTokenProviderOptions } from '../../core/types.js';
|
|
4
|
+
/**
|
|
5
|
+
* The SessionUserProvider is used to lookup a user for session based authentication.
|
|
6
|
+
*/
|
|
7
|
+
export interface SessionUserProviderContract<RealUser> extends UserProviderContract<RealUser> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The RememberMeProviderContract is used to persist and lookup tokens for
|
|
11
|
+
* session based authentication with remember me option.
|
|
12
|
+
*/
|
|
13
|
+
export interface RememberMeProviderContract extends TokenProviderContract<RememberMeToken> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Config accepted by the session guard
|
|
17
|
+
*/
|
|
18
|
+
export type SessionGuardConfig = {
|
|
19
|
+
/**
|
|
20
|
+
* The expiry for the remember me cookie.
|
|
21
|
+
*
|
|
22
|
+
* Defaults to "5 years"
|
|
23
|
+
*/
|
|
24
|
+
rememberMeTokenAge?: string | number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Events emitted by the session guard
|
|
28
|
+
*/
|
|
29
|
+
export type SessionGuardEvents<User> = {
|
|
30
|
+
/**
|
|
31
|
+
* The event is emitted when the user credentials
|
|
32
|
+
* have been verified successfully.
|
|
33
|
+
*/
|
|
34
|
+
'session_auth:credentials_verified': {
|
|
35
|
+
uid: string;
|
|
36
|
+
user: User;
|
|
37
|
+
password: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* The event is emitted when unable to login the
|
|
41
|
+
* user.
|
|
42
|
+
*/
|
|
43
|
+
'session_auth:login_failed': {
|
|
44
|
+
error: Exception;
|
|
45
|
+
user: User | null;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The event is emitted when login is attempted for
|
|
49
|
+
* a given user.
|
|
50
|
+
*/
|
|
51
|
+
'session_auth:login_attempted': {
|
|
52
|
+
user: User;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* The event is emitted when user has been logged in
|
|
56
|
+
* successfully
|
|
57
|
+
*/
|
|
58
|
+
'session_auth:login_succeeded': {
|
|
59
|
+
user: User;
|
|
60
|
+
sessionId: string;
|
|
61
|
+
rememberMeToken?: RememberMeToken;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Attempting to authenticate the user
|
|
65
|
+
*/
|
|
66
|
+
'session_auth:authentication_attempted': {
|
|
67
|
+
sessionId: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Authentication was successful
|
|
71
|
+
*/
|
|
72
|
+
'session_auth:authentication_succeeded': {
|
|
73
|
+
user: User;
|
|
74
|
+
sessionId: string;
|
|
75
|
+
rememberMeToken?: RememberMeToken;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Authentication failed
|
|
79
|
+
*/
|
|
80
|
+
'session_auth:authentication_failed': {
|
|
81
|
+
error: Exception;
|
|
82
|
+
sessionId: string;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* The event is emitted when user has been logged out
|
|
86
|
+
* sucessfully
|
|
87
|
+
*/
|
|
88
|
+
'session_auth:logged_out': {
|
|
89
|
+
user: User;
|
|
90
|
+
sessionId: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Options accepted by the database implementation of the
|
|
95
|
+
* RememberMeProvider
|
|
96
|
+
*/
|
|
97
|
+
export type DatabaseRememberMeProviderOptions = DatabaseTokenProviderOptions;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpContext } from '@adonisjs/core/http'
|
|
2
|
+
import { NextFn } from '@adonisjs/core/http/types'
|
|
3
|
+
|
|
4
|
+
type AuthMiddlewareOptions = {
|
|
5
|
+
guards?: (keyof Authenticators)[]
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default class AuthMiddleware {
|
|
9
|
+
async handle({ auth }: HttpContext, next: NextFn, options?: AuthMiddlewareOptions) {
|
|
10
|
+
return next()
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{{{
|
|
2
|
+
exports({ to: app.configPath('auth.ts') })
|
|
3
|
+
}}}
|
|
4
|
+
import { defineConfig, providers } from '@adonisjs/auth'
|
|
5
|
+
{{#if provider === 'lucid'}}
|
|
6
|
+
/**
|
|
7
|
+
* Using the "models/user" model to find users during
|
|
8
|
+
* login and authentication
|
|
9
|
+
*/
|
|
10
|
+
const userProvider = providers.lucid({
|
|
11
|
+
model: () => import('#models/user'),
|
|
12
|
+
uids: ['email'],
|
|
13
|
+
})
|
|
14
|
+
{{/if}}
|
|
15
|
+
{{#if provider === 'db'}}
|
|
16
|
+
/**
|
|
17
|
+
* Using Lucid query builder to directly query the database
|
|
18
|
+
* to find users during login and authentication.
|
|
19
|
+
*/
|
|
20
|
+
const userProvider = providers.db({
|
|
21
|
+
table: 'users',
|
|
22
|
+
passwordColumnName: 'password',
|
|
23
|
+
id: 'id',
|
|
24
|
+
uids: ['email']
|
|
25
|
+
})
|
|
26
|
+
{{/if}}
|
|
27
|
+
|
|
28
|
+
const authConfig = defineConfig({
|
|
29
|
+
guards: {}
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
export default authConfig
|
|
33
|
+
declare module '@adonisjs/auth/types' {
|
|
34
|
+
interface Authenticators extends InferAuthenticators<typeof authConfig> {}
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const stubsRoot: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* @adonisjs/auth
|
|
4
3
|
*
|
|
@@ -7,5 +6,5 @@
|
|
|
7
6
|
* For the full copyright and license information, please view the LICENSE
|
|
8
7
|
* file that was distributed with this source code.
|
|
9
8
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import { getDirname } from '@poppinss/utils';
|
|
10
|
+
export const stubsRoot = getDirname(import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,39 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-0",
|
|
4
4
|
"description": "Official authentication provider for Adonis framework",
|
|
5
|
-
"
|
|
6
|
-
"main": "build/
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "build/index.js",
|
|
7
7
|
"files": [
|
|
8
|
-
"build/
|
|
8
|
+
"build/configure.js",
|
|
9
|
+
"build/configure.d.ts",
|
|
10
|
+
"build/index.js",
|
|
11
|
+
"build/index.d.ts",
|
|
12
|
+
"build/factories",
|
|
9
13
|
"build/providers",
|
|
10
|
-
"build/
|
|
14
|
+
"build/services",
|
|
11
15
|
"build/src",
|
|
12
|
-
"build/
|
|
13
|
-
"build/standalone.js",
|
|
14
|
-
"build/standalone.d.ts"
|
|
16
|
+
"build/stubs"
|
|
15
17
|
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=18.16.0"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": "./build/index.js",
|
|
23
|
+
"./types": "./build/src/types/main.js",
|
|
24
|
+
"./auth_provider": "./build/providers/auth_provider.js",
|
|
25
|
+
"./services/main": "./build/services/auth.js",
|
|
26
|
+
"./core/token": "./build/src/core/token.js",
|
|
27
|
+
"./core/guard_user": "./build/src/core/guard_user.js",
|
|
28
|
+
"./core/user_providers/*": "./build/src/core/user_providers/*.js",
|
|
29
|
+
"./core/token_providers/*": "./build/src/core/token_providers/*.js",
|
|
30
|
+
"./types/core": "./build/src/core/types.js",
|
|
31
|
+
"./session": "./build/src/guards/session/main.js",
|
|
32
|
+
"./types/session": "./build/src/guards/session/types.js"
|
|
33
|
+
},
|
|
16
34
|
"scripts": {
|
|
17
|
-
"mrm": "mrm --preset=@adonisjs/mrm-preset",
|
|
18
35
|
"pretest": "npm run lint",
|
|
19
|
-
"test": "
|
|
36
|
+
"test": "c8 npm run quick:test",
|
|
37
|
+
"quick:test": "cross-env NODE_DEBUG=\"adonisjs:auth\" node --enable-source-maps --loader=ts-node/esm ./bin/test.js",
|
|
20
38
|
"clean": "del-cli build",
|
|
21
|
-
"
|
|
22
|
-
"compile": "npm run lint && npm run clean && tsc",
|
|
23
|
-
"build": "npm run compile
|
|
24
|
-
"commit": "git-cz",
|
|
39
|
+
"copy:templates": "copyfiles \"stubs/**/**/*.stub\" build",
|
|
40
|
+
"compile": "npm run lint && npm run clean && tsc && npm run copy:templates",
|
|
41
|
+
"build": "npm run compile",
|
|
25
42
|
"release": "np",
|
|
26
43
|
"version": "npm run build",
|
|
27
|
-
"lint": "eslint . --ext=.ts",
|
|
28
44
|
"prepublishOnly": "npm run build",
|
|
29
|
-
"
|
|
45
|
+
"lint": "eslint . --ext=.ts",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"sync-labels": "github-label-sync --labels .github/labels.json adonisjs/auth",
|
|
30
48
|
"format": "prettier --write ."
|
|
31
49
|
},
|
|
32
50
|
"keywords": [
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"authentication"
|
|
51
|
+
"adonisjs",
|
|
52
|
+
"authentication",
|
|
53
|
+
"auth"
|
|
37
54
|
],
|
|
38
55
|
"author": "adonisjs,virk",
|
|
39
56
|
"license": "MIT",
|
|
@@ -46,95 +63,83 @@
|
|
|
46
63
|
"url": "https://github.com/adonisjs/auth/issues"
|
|
47
64
|
},
|
|
48
65
|
"devDependencies": {
|
|
49
|
-
"@adonisjs/
|
|
50
|
-
"@adonisjs/
|
|
51
|
-
"@adonisjs/
|
|
52
|
-
"@adonisjs/
|
|
53
|
-
"@adonisjs/
|
|
54
|
-
"@adonisjs/
|
|
55
|
-
"@adonisjs/
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@japa/assert": "^
|
|
59
|
-
"@japa/
|
|
60
|
-
"@japa/
|
|
61
|
-
"@japa/runner": "^
|
|
62
|
-
"@japa/
|
|
63
|
-
"@
|
|
64
|
-
"@types/
|
|
65
|
-
"@types/
|
|
66
|
+
"@adonisjs/assembler": "^6.1.3-25",
|
|
67
|
+
"@adonisjs/core": "^6.1.5-30",
|
|
68
|
+
"@adonisjs/eslint-config": "^1.1.8",
|
|
69
|
+
"@adonisjs/lucid": "^19.0.0-3",
|
|
70
|
+
"@adonisjs/prettier-config": "^1.1.8",
|
|
71
|
+
"@adonisjs/session": "^7.0.0-13",
|
|
72
|
+
"@adonisjs/tsconfig": "^1.1.8",
|
|
73
|
+
"@commitlint/cli": "^18.0.0",
|
|
74
|
+
"@commitlint/config-conventional": "^18.0.0",
|
|
75
|
+
"@japa/assert": "^2.0.0",
|
|
76
|
+
"@japa/expect-type": "^2.0.0",
|
|
77
|
+
"@japa/file-system": "^2.0.0",
|
|
78
|
+
"@japa/runner": "^3.0.4",
|
|
79
|
+
"@japa/snapshot": "^2.0.0",
|
|
80
|
+
"@swc/core": "1.3.82",
|
|
81
|
+
"@types/luxon": "^3.3.3",
|
|
82
|
+
"@types/node": "^20.8.7",
|
|
83
|
+
"@types/set-cookie-parser": "^2.4.5",
|
|
84
|
+
"c8": "^8.0.1",
|
|
66
85
|
"copyfiles": "^2.4.1",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"eslint
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"set-cookie-parser": "^2.4.8",
|
|
81
|
-
"sqlite3": "^5.0.8",
|
|
82
|
-
"supertest": "^6.2.3",
|
|
83
|
-
"ts-essentials": "^9.1.2",
|
|
84
|
-
"typescript": "^4.6.4"
|
|
86
|
+
"cross-env": "^7.0.3",
|
|
87
|
+
"del-cli": "^5.1.0",
|
|
88
|
+
"eslint": "^8.52.0",
|
|
89
|
+
"github-label-sync": "^2.3.1",
|
|
90
|
+
"husky": "^8.0.3",
|
|
91
|
+
"luxon": "^3.4.3",
|
|
92
|
+
"np": "^8.0.4",
|
|
93
|
+
"prettier": "^3.0.3",
|
|
94
|
+
"set-cookie-parser": "^2.6.0",
|
|
95
|
+
"sqlite3": "^5.1.6",
|
|
96
|
+
"timekeeper": "^2.3.1",
|
|
97
|
+
"ts-node": "^10.9.1",
|
|
98
|
+
"typescript": "^5.2.2"
|
|
85
99
|
},
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
100
|
+
"prettier": "@adonisjs/prettier-config",
|
|
101
|
+
"eslintConfig": {
|
|
102
|
+
"extends": "@adonisjs/eslint-config/package"
|
|
103
|
+
},
|
|
104
|
+
"commitlint": {
|
|
105
|
+
"extends": [
|
|
106
|
+
"@commitlint/config-conventional"
|
|
92
107
|
]
|
|
93
108
|
},
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
}
|
|
109
|
+
"publishConfig": {
|
|
110
|
+
"access": "public",
|
|
111
|
+
"tag": "next"
|
|
98
112
|
},
|
|
99
113
|
"np": {
|
|
100
|
-
"
|
|
114
|
+
"message": "chore(release): %s",
|
|
115
|
+
"tag": "next",
|
|
116
|
+
"branch": "main",
|
|
101
117
|
"anyBranch": false
|
|
102
118
|
},
|
|
119
|
+
"c8": {
|
|
120
|
+
"reporter": [
|
|
121
|
+
"text",
|
|
122
|
+
"html"
|
|
123
|
+
],
|
|
124
|
+
"exclude": [
|
|
125
|
+
"tests/**",
|
|
126
|
+
"factories/**"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
103
129
|
"dependencies": {
|
|
104
|
-
"@poppinss/
|
|
105
|
-
"@poppinss/utils": "^4.0.4",
|
|
106
|
-
"luxon": "^2.4.0"
|
|
130
|
+
"@poppinss/utils": "^6.5.0"
|
|
107
131
|
},
|
|
108
132
|
"peerDependencies": {
|
|
109
|
-
"@adonisjs/core": "^
|
|
110
|
-
"@adonisjs/
|
|
111
|
-
"@adonisjs/
|
|
112
|
-
"@adonisjs/redis": "^7.2.0",
|
|
113
|
-
"@adonisjs/session": "^6.2.0"
|
|
133
|
+
"@adonisjs/core": "^6.1.5-30",
|
|
134
|
+
"@adonisjs/lucid": "^19.0.0-3",
|
|
135
|
+
"@adonisjs/session": "^7.0.0-13"
|
|
114
136
|
},
|
|
115
137
|
"peerDependenciesMeta": {
|
|
116
|
-
"@adonisjs/i18n": {
|
|
117
|
-
"optional": true
|
|
118
|
-
},
|
|
119
138
|
"@adonisjs/lucid": {
|
|
120
139
|
"optional": true
|
|
121
140
|
},
|
|
122
141
|
"@adonisjs/session": {
|
|
123
142
|
"optional": true
|
|
124
|
-
},
|
|
125
|
-
"@adonisjs/redis": {
|
|
126
|
-
"optional": true
|
|
127
143
|
}
|
|
128
|
-
},
|
|
129
|
-
"publishConfig": {
|
|
130
|
-
"access": "public",
|
|
131
|
-
"tag": "latest"
|
|
132
|
-
},
|
|
133
|
-
"adonisjs": {
|
|
134
|
-
"instructions": "./build/instructions.js",
|
|
135
|
-
"types": "@adonisjs/auth",
|
|
136
|
-
"providers": [
|
|
137
|
-
"@adonisjs/auth"
|
|
138
|
-
]
|
|
139
144
|
}
|
|
140
145
|
}
|