@adonisjs/core 7.0.0-next.19 → 7.0.0-next.20
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.
|
@@ -9,9 +9,12 @@ import { healthChecks } from '#start/health'
|
|
|
9
9
|
import type { HttpContext } from '@adonisjs/core/http'
|
|
10
10
|
|
|
11
11
|
export default class {{ controllerName }} {
|
|
12
|
-
async
|
|
13
|
-
|
|
12
|
+
async live({ response }: HttpContext) {
|
|
13
|
+
return response.ok()
|
|
14
|
+
}
|
|
14
15
|
|
|
16
|
+
async ready({ response }: HttpContext) {
|
|
17
|
+
const report = await healthChecks.run()
|
|
15
18
|
if (report.isHealthy) {
|
|
16
19
|
return response.ok(report)
|
|
17
20
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ConfigProvider } from '../../src/types.ts';
|
|
2
|
-
import { type
|
|
2
|
+
import { type AES256CBCDriverConfig, type AES256GCMDriverConfig, type ChaCha20Poly1305DriverConfig } from '../../types/encryption.ts';
|
|
3
|
+
import { type EncryptionConfig } from '../../types/encryption.ts';
|
|
3
4
|
/**
|
|
4
5
|
* Resolved configuration from the config provider that will be
|
|
5
6
|
* accepted by the encryption manager.
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { type EncryptionDriverContract } from '@boringnode/encryption/types';
|
|
2
1
|
/**
|
|
3
2
|
* Contract that all encryption drivers must implement.
|
|
4
3
|
*
|
|
5
4
|
* Defines the interface for encrypting and decrypting values, including
|
|
6
5
|
* support for optional purpose binding and child key derivation.
|
|
7
6
|
*/
|
|
8
|
-
export type { EncryptionDriverContract } from '@boringnode/encryption/types';
|
|
7
|
+
export type { EncryptionDriverContract, EncryptionConfig } from '@boringnode/encryption/types';
|
|
9
8
|
/**
|
|
10
9
|
* Factory function signature for creating encryption driver instances.
|
|
11
10
|
*
|
|
@@ -38,28 +37,3 @@ export type { AES256GCMDriverConfig } from '@boringnode/encryption/drivers/aes_2
|
|
|
38
37
|
* for decryption (allowing for key rotation).
|
|
39
38
|
*/
|
|
40
39
|
export type { ChaCha20Poly1305DriverConfig } from '@boringnode/encryption/drivers/chacha20_poly1305';
|
|
41
|
-
/**
|
|
42
|
-
* Configuration object for encryption drivers. Defines how encryption
|
|
43
|
-
* and decryption should be performed with support for key rotation.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* const config: EncryptionConfig = {
|
|
47
|
-
* driver: (key) => new SecureEncryptor(key),
|
|
48
|
-
* keys: [
|
|
49
|
-
* 'new-encryption-key', // Used for encryption
|
|
50
|
-
* 'old-encryption-key' // Used only for decryption
|
|
51
|
-
* ]
|
|
52
|
-
* }
|
|
53
|
-
*/
|
|
54
|
-
export interface EncryptionConfig {
|
|
55
|
-
/**
|
|
56
|
-
* Factory function that creates a driver instance for a given key
|
|
57
|
-
* @param key - The encryption key to use
|
|
58
|
-
*/
|
|
59
|
-
driver: (key: string) => EncryptionDriverContract;
|
|
60
|
-
/**
|
|
61
|
-
* List of keys to use for encryption/decryption.
|
|
62
|
-
* The first key is used for encryption, all keys are tried for decryption.
|
|
63
|
-
*/
|
|
64
|
-
keys: string[];
|
|
65
|
-
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
3
|
"description": "Core of AdonisJS",
|
|
4
|
-
"version": "7.0.0-next.
|
|
4
|
+
"version": "7.0.0-next.20",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@adonisjs/assembler": "^8.0.0-next.28",
|
|
84
|
-
"@adonisjs/eslint-config": "^3.0.0-next.
|
|
84
|
+
"@adonisjs/eslint-config": "^3.0.0-next.9",
|
|
85
85
|
"@adonisjs/prettier-config": "^1.4.5",
|
|
86
86
|
"@adonisjs/tsconfig": "^2.0.0-next.3",
|
|
87
87
|
"@japa/assert": "^4.2.0",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"get-port": "^7.1.0",
|
|
110
110
|
"pino-pretty": "^13.1.3",
|
|
111
111
|
"prettier": "^3.7.4",
|
|
112
|
-
"release-it": "^19.2.
|
|
112
|
+
"release-it": "^19.2.3",
|
|
113
113
|
"sinon": "^21.0.1",
|
|
114
|
-
"supertest": "^7.
|
|
114
|
+
"supertest": "^7.2.2",
|
|
115
115
|
"test-console": "^2.0.0",
|
|
116
116
|
"timekeeper": "^2.3.1",
|
|
117
117
|
"tsdown": "^0.18.4",
|
|
@@ -121,19 +121,19 @@
|
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@adonisjs/ace": "^14.0.1-next.4",
|
|
124
|
-
"@adonisjs/application": "^9.0.0-next.
|
|
124
|
+
"@adonisjs/application": "^9.0.0-next.14",
|
|
125
125
|
"@adonisjs/bodyparser": "^11.0.0-next.6",
|
|
126
126
|
"@adonisjs/config": "^6.1.0-next.0",
|
|
127
127
|
"@adonisjs/env": "^7.0.0-next.3",
|
|
128
|
-
"@adonisjs/events": "^10.1.0-next.
|
|
129
|
-
"@adonisjs/fold": "^11.0.0-next.
|
|
128
|
+
"@adonisjs/events": "^10.1.0-next.4",
|
|
129
|
+
"@adonisjs/fold": "^11.0.0-next.4",
|
|
130
130
|
"@adonisjs/hash": "^10.0.0-next.2",
|
|
131
131
|
"@adonisjs/health": "^3.1.0-next.1",
|
|
132
|
-
"@adonisjs/http-server": "^8.0.0-next.
|
|
132
|
+
"@adonisjs/http-server": "^8.0.0-next.17",
|
|
133
133
|
"@adonisjs/http-transformers": "^1.6.2",
|
|
134
134
|
"@adonisjs/logger": "^7.1.0-next.3",
|
|
135
135
|
"@adonisjs/repl": "^5.0.0-next.1",
|
|
136
|
-
"@boringnode/encryption": "^0.2.
|
|
136
|
+
"@boringnode/encryption": "^0.2.4",
|
|
137
137
|
"@poppinss/colors": "^4.1.6",
|
|
138
138
|
"@poppinss/dumper": "^0.7.0",
|
|
139
139
|
"@poppinss/macroable": "^1.1.0",
|