@adonisjs/http-server 7.2.4 → 7.2.5
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/build/{chunk-Q2EOMKJE.js → chunk-GCLM3D4C.js} +26 -1
- package/build/{chunk-Q2EOMKJE.js.map → chunk-GCLM3D4C.js.map} +1 -1
- package/build/factories/main.js +1 -1
- package/build/index.js +1 -1
- package/build/src/router/main.d.ts +6 -0
- package/build/src/server/main.d.ts +4 -0
- package/package.json +46 -52
package/build/factories/main.js
CHANGED
package/build/index.js
CHANGED
|
@@ -38,6 +38,12 @@ export declare class Router extends LookupStore {
|
|
|
38
38
|
* Shortcut methods for commonly used route matchers
|
|
39
39
|
*/
|
|
40
40
|
matchers: Matchers;
|
|
41
|
+
/**
|
|
42
|
+
* Check if routes have been committed to the store. Once
|
|
43
|
+
* routes are committed, defining new set of routes will
|
|
44
|
+
* have no impact
|
|
45
|
+
*/
|
|
46
|
+
get commited(): boolean;
|
|
41
47
|
constructor(app: Application<any>, encryption: Encryption, qsParser: Qs);
|
|
42
48
|
/**
|
|
43
49
|
* Parses the route pattern
|
|
@@ -18,6 +18,10 @@ import { HttpContext } from '../http_context/main.js';
|
|
|
18
18
|
*/
|
|
19
19
|
export declare class Server {
|
|
20
20
|
#private;
|
|
21
|
+
/**
|
|
22
|
+
* Check if the server has already been booted
|
|
23
|
+
*/
|
|
24
|
+
get booted(): boolean;
|
|
21
25
|
/**
|
|
22
26
|
* Know if async local storage is enabled or not.
|
|
23
27
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/http-server",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.5",
|
|
4
4
|
"description": "AdonisJS HTTP server with support packed with Routing and Cookies",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,9 +20,8 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"pretest": "npm run lint",
|
|
22
22
|
"test": "cross-env NODE_DEBUG=adonisjs:http c8 npm run quick:test",
|
|
23
|
-
"clean": "del-cli build",
|
|
24
23
|
"typecheck": "tsc --noEmit",
|
|
25
|
-
"precompile": "npm run lint
|
|
24
|
+
"precompile": "npm run lint",
|
|
26
25
|
"compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
|
|
27
26
|
"build": "npm run compile",
|
|
28
27
|
"prebenchmark": "npm run build",
|
|
@@ -31,9 +30,8 @@
|
|
|
31
30
|
"version": "npm run build",
|
|
32
31
|
"format": "prettier --write .",
|
|
33
32
|
"prepublishOnly": "npm run build",
|
|
34
|
-
"lint": "eslint
|
|
35
|
-
"
|
|
36
|
-
"quick:test": "node --loader=ts-node/esm --enable-source-maps bin/test.ts",
|
|
33
|
+
"lint": "eslint",
|
|
34
|
+
"quick:test": "node --import=ts-node-maintained/register/esm --enable-source-maps bin/test.ts",
|
|
37
35
|
"citgm": "cross-env FORCE_COLOR=0 node --loader=ts-node/esm bin/test.ts"
|
|
38
36
|
},
|
|
39
37
|
"keywords": [
|
|
@@ -43,21 +41,21 @@
|
|
|
43
41
|
"author": "virk,adonisjs",
|
|
44
42
|
"license": "MIT",
|
|
45
43
|
"devDependencies": {
|
|
46
|
-
"@adonisjs/application": "^8.
|
|
44
|
+
"@adonisjs/application": "^8.3.1",
|
|
45
|
+
"@adonisjs/assembler": "^7.8.2",
|
|
47
46
|
"@adonisjs/encryption": "^6.0.2",
|
|
48
|
-
"@adonisjs/eslint-config": "^
|
|
47
|
+
"@adonisjs/eslint-config": "^2.0.0-beta.7",
|
|
49
48
|
"@adonisjs/events": "^9.0.2",
|
|
50
49
|
"@adonisjs/fold": "^10.1.2",
|
|
51
50
|
"@adonisjs/logger": "^6.0.3",
|
|
52
|
-
"@adonisjs/prettier-config": "^1.
|
|
53
|
-
"@adonisjs/tsconfig": "^1.
|
|
54
|
-
"@
|
|
55
|
-
"@commitlint/config-conventional": "^19.2.2",
|
|
56
|
-
"@fastify/middie": "^8.3.1",
|
|
51
|
+
"@adonisjs/prettier-config": "^1.4.0",
|
|
52
|
+
"@adonisjs/tsconfig": "^1.4.0",
|
|
53
|
+
"@fastify/middie": "^9.0.2",
|
|
57
54
|
"@japa/assert": "^3.0.0",
|
|
58
55
|
"@japa/expect-type": "^2.0.2",
|
|
59
56
|
"@japa/runner": "^3.1.4",
|
|
60
|
-
"@
|
|
57
|
+
"@release-it/conventional-changelog": "^8.0.2",
|
|
58
|
+
"@swc/core": "^1.7.26",
|
|
61
59
|
"@types/accepts": "^1.3.7",
|
|
62
60
|
"@types/content-disposition": "^0.5.8",
|
|
63
61
|
"@types/cookie": "^0.6.0",
|
|
@@ -68,45 +66,42 @@
|
|
|
68
66
|
"@types/fs-extra": "^11.0.4",
|
|
69
67
|
"@types/http-status-codes": "^1.2.0",
|
|
70
68
|
"@types/mime-types": "^2.1.4",
|
|
71
|
-
"@types/node": "^
|
|
69
|
+
"@types/node": "^22.7.5",
|
|
72
70
|
"@types/on-finished": "^2.3.4",
|
|
73
71
|
"@types/pem": "^1.14.4",
|
|
74
72
|
"@types/proxy-addr": "^2.0.3",
|
|
75
|
-
"@types/qs": "^6.9.
|
|
73
|
+
"@types/qs": "^6.9.16",
|
|
76
74
|
"@types/supertest": "^6.0.2",
|
|
77
75
|
"@types/type-is": "^1.6.6",
|
|
78
76
|
"@types/vary": "^1.1.3",
|
|
79
|
-
"@vinejs/vine": "^2.
|
|
77
|
+
"@vinejs/vine": "^2.1.0",
|
|
80
78
|
"autocannon": "^7.15.0",
|
|
81
|
-
"c8": "^
|
|
79
|
+
"c8": "^10.1.2",
|
|
82
80
|
"cross-env": "^7.0.3",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"fastify": "^4.27.0",
|
|
81
|
+
"eslint": "^9.12.0",
|
|
82
|
+
"fastify": "^5.0.0",
|
|
86
83
|
"fs-extra": "^11.2.0",
|
|
87
84
|
"get-port": "^7.1.0",
|
|
88
|
-
"github-label-sync": "^2.3.1",
|
|
89
85
|
"http-status-codes": "^2.3.0",
|
|
90
|
-
"husky": "^9.0.11",
|
|
91
86
|
"pem": "^1.14.8",
|
|
92
|
-
"prettier": "^3.
|
|
87
|
+
"prettier": "^3.3.3",
|
|
93
88
|
"reflect-metadata": "^0.2.2",
|
|
94
|
-
"release-it": "^17.
|
|
89
|
+
"release-it": "^17.7.0",
|
|
95
90
|
"supertest": "^7.0.0",
|
|
96
|
-
"ts-node": "^10.9.
|
|
97
|
-
"tsup": "^8.0
|
|
98
|
-
"typescript": "^5.
|
|
91
|
+
"ts-node-maintained": "^10.9.4",
|
|
92
|
+
"tsup": "^8.3.0",
|
|
93
|
+
"typescript": "^5.6.3"
|
|
99
94
|
},
|
|
100
95
|
"dependencies": {
|
|
101
96
|
"@paralleldrive/cuid2": "^2.2.2",
|
|
102
|
-
"@poppinss/macroable": "^1.0.
|
|
97
|
+
"@poppinss/macroable": "^1.0.3",
|
|
103
98
|
"@poppinss/matchit": "^3.1.2",
|
|
104
|
-
"@poppinss/middleware": "^3.2.
|
|
105
|
-
"@poppinss/utils": "^6.
|
|
106
|
-
"@sindresorhus/is": "^
|
|
99
|
+
"@poppinss/middleware": "^3.2.4",
|
|
100
|
+
"@poppinss/utils": "^6.8.3",
|
|
101
|
+
"@sindresorhus/is": "^7.0.1",
|
|
107
102
|
"accepts": "^1.3.8",
|
|
108
103
|
"content-disposition": "^0.5.4",
|
|
109
|
-
"cookie": "^0.
|
|
104
|
+
"cookie": "^1.0.0",
|
|
110
105
|
"destroy": "^1.2.0",
|
|
111
106
|
"encodeurl": "^2.0.0",
|
|
112
107
|
"etag": "^1.8.1",
|
|
@@ -114,11 +109,11 @@
|
|
|
114
109
|
"mime-types": "^2.1.35",
|
|
115
110
|
"on-finished": "^2.4.1",
|
|
116
111
|
"proxy-addr": "^2.0.7",
|
|
117
|
-
"qs": "^6.
|
|
112
|
+
"qs": "^6.13.0",
|
|
118
113
|
"tmp-cache": "^1.1.0",
|
|
119
114
|
"type-is": "^1.6.18",
|
|
120
115
|
"vary": "^1.1.2",
|
|
121
|
-
"youch": "^3.3.
|
|
116
|
+
"youch": "^3.3.4"
|
|
122
117
|
},
|
|
123
118
|
"peerDependencies": {
|
|
124
119
|
"@adonisjs/application": "^8.0.2",
|
|
@@ -135,30 +130,32 @@
|
|
|
135
130
|
"url": "https://github.com/adonisjs/http-server/issues"
|
|
136
131
|
},
|
|
137
132
|
"homepage": "https://github.com/adonisjs/http-server#readme",
|
|
138
|
-
"commitlint": {
|
|
139
|
-
"extends": [
|
|
140
|
-
"@commitlint/config-conventional"
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
133
|
"publishConfig": {
|
|
144
134
|
"access": "public",
|
|
145
|
-
"
|
|
135
|
+
"provenance": true
|
|
146
136
|
},
|
|
147
137
|
"release-it": {
|
|
148
138
|
"git": {
|
|
139
|
+
"requireCleanWorkingDir": true,
|
|
140
|
+
"requireUpstream": true,
|
|
149
141
|
"commitMessage": "chore(release): ${version}",
|
|
150
142
|
"tagAnnotation": "v${version}",
|
|
143
|
+
"push": true,
|
|
151
144
|
"tagName": "v${version}"
|
|
152
145
|
},
|
|
153
|
-
"hooks": {
|
|
154
|
-
"before:init": [
|
|
155
|
-
"npm test"
|
|
156
|
-
]
|
|
157
|
-
},
|
|
158
146
|
"github": {
|
|
159
|
-
"release": true
|
|
160
|
-
|
|
161
|
-
|
|
147
|
+
"release": true
|
|
148
|
+
},
|
|
149
|
+
"npm": {
|
|
150
|
+
"publish": true,
|
|
151
|
+
"skipChecks": true
|
|
152
|
+
},
|
|
153
|
+
"plugins": {
|
|
154
|
+
"@release-it/conventional-changelog": {
|
|
155
|
+
"preset": {
|
|
156
|
+
"name": "angular"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
162
159
|
}
|
|
163
160
|
},
|
|
164
161
|
"c8": {
|
|
@@ -172,9 +169,6 @@
|
|
|
172
169
|
".yalc/**"
|
|
173
170
|
]
|
|
174
171
|
},
|
|
175
|
-
"eslintConfig": {
|
|
176
|
-
"extends": "@adonisjs/eslint-config/package"
|
|
177
|
-
},
|
|
178
172
|
"prettier": "@adonisjs/prettier-config",
|
|
179
173
|
"tsup": {
|
|
180
174
|
"entry": [
|