@expressots/core 2.4.0 → 2.6.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/lib/CHANGELOG.md +77 -47
- package/lib/cjs/middleware/interfaces/express-session.interface.js +2 -0
- package/lib/cjs/middleware/interfaces/helmet.interface.js +2 -0
- package/lib/cjs/middleware/middleware-resolver.js +2 -0
- package/lib/cjs/middleware/middleware-service.js +32 -0
- package/lib/cjs/types/middleware/index.d.ts +2 -0
- package/lib/cjs/types/middleware/interfaces/express-session.interface.d.ts +208 -0
- package/lib/cjs/types/middleware/interfaces/helmet.interface.d.ts +210 -0
- package/lib/cjs/types/middleware/middleware-service.d.ts +31 -1
- package/lib/package.json +3 -3
- package/package.json +3 -3
package/lib/CHANGELOG.md
CHANGED
|
@@ -1,71 +1,101 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
## [2.
|
|
3
|
+
## [2.6.0](https://github.com/expressots/expressots/compare/2.5.0...2.6.0) (2023-10-09)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Features
|
|
7
7
|
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* Added express-session middleware for expressots ([9d0c79f](https://github.com/expressots/expressots/commit/9d0c79f7c4b18cfcac17443c7f76c4384a563471))
|
|
9
|
+
* bump vite from 4.4.10 to 4.4.11 ([45c8a80](https://github.com/expressots/expressots/commit/45c8a804e85875743cc18d95ec5441e19b7df7d3))
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
### Bug Fixes
|
|
13
13
|
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* adjust reporter to text, html, json ([04acb04](https://github.com/expressots/expressots/commit/04acb04c2e9229f0531ffb990f22665d94506f2c))
|
|
18
|
-
* remove adapter peer dependecy ([bad171b](https://github.com/expressots/expressots/commit/bad171be98f3b2ec58c3793836ba2000c3727dbc))
|
|
19
|
-
* resolves all current issues ([877c121](https://github.com/expressots/expressots/commit/877c1216405e35b3b90f61caf13d73b20202eac5))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### Documentation
|
|
23
|
-
|
|
24
|
-
* add jsdoc to interfaces ([228d190](https://github.com/expressots/expressots/commit/228d190f7ca58c71e5bcd1f03ecf70b2e7fdbe03))
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### Code Refactoring
|
|
28
|
-
|
|
29
|
-
* add types to default params ([b366e14](https://github.com/expressots/expressots/commit/b366e14d2b7d9322b4ea92ae3afdfbb834e42e16))
|
|
30
|
-
* eliminate duplicate return statements ([b57fa85](https://github.com/expressots/expressots/commit/b57fa8517c5656fed71b73cc3c2b65834c8d8833))
|
|
31
|
-
* revert changes due to future features ([89fce01](https://github.com/expressots/expressots/commit/89fce01f08ebd1539471e51808040e4383c3e6f4))
|
|
14
|
+
* Auto setup husky with project setup and installation ([dcdc279](https://github.com/expressots/expressots/commit/dcdc279f9dffe82e739396df763f494c97a3e914))
|
|
15
|
+
* remove prepare husky install from lib ([ba9b536](https://github.com/expressots/expressots/commit/ba9b5363904a7d8981ec49705d5fbf22e20c8dbd))
|
|
16
|
+
* typo ([079aad6](https://github.com/expressots/expressots/commit/079aad6c125fcd100cde5cf98ce84125e7381879))
|
|
32
17
|
|
|
33
|
-
## [2.
|
|
18
|
+
## [2.5.0](https://github.com/expressots/expressots/compare/2.4.0...2.5.0) (2023-10-04)
|
|
34
19
|
|
|
35
20
|
|
|
36
21
|
### Features
|
|
37
22
|
|
|
38
|
-
*
|
|
39
|
-
* bump vitest from 0.34.
|
|
23
|
+
* bump vite from 4.4.9 to 4.4.10 ([5be4adc](https://github.com/expressots/expressots/commit/5be4adc18d84c3affa57d248dd07801bda4dd5b9))
|
|
24
|
+
* bump vitest from 0.34.5 to 0.34.6 ([11ca77f](https://github.com/expressots/expressots/commit/11ca77f29d19d1de05b2ae2a56b9e306311621bf))
|
|
25
|
+
* **core:** add helmet middleware ([7648afb](https://github.com/expressots/expressots/commit/7648afb68054c1e69990f7d33efe35ec4d99b464)), closes [#107](https://github.com/expressots/expressots/issues/107)
|
|
40
26
|
|
|
41
27
|
|
|
42
28
|
### Bug Fixes
|
|
43
29
|
|
|
30
|
+
* adjust interface, remove duplicated helmet registry ([376c065](https://github.com/expressots/expressots/commit/376c0654d655ee8d29c0649d83ec6fb7cf860791))
|
|
31
|
+
* remove duplicate optionslhelmet interface ([93bfdea](https://github.com/expressots/expressots/commit/93bfdea0057614b0a2e449817fb095ed23112011))
|
|
32
|
+
|
|
33
|
+
## [2.4.0](https://github.com/expressots/expressots/compare/2.3.0...2.4.0) (2023-10-01)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* add interface for `express-rate-limit` ([86cf5d2](https://github.com/expressots/expressots/commit/86cf5d2d2bdbdd4acdd6f4a0597634790d99f972))
|
|
39
|
+
* implement `express-rate-limit` in service ([e31a5f4](https://github.com/expressots/expressots/commit/e31a5f47b67ac01795b6ac64e639cd53078f8048))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* add App container all tests ([d6c8212](https://github.com/expressots/expressots/commit/d6c8212ec80fe239b38e4ff592ed0be3e507cd99))
|
|
45
|
+
* add cjs as default build ([d16cfa5](https://github.com/expressots/expressots/commit/d16cfa50238c2e299fffaf079fb62847de94e7d8))
|
|
46
|
+
* add code coverage configuration ([3676e32](https://github.com/expressots/expressots/commit/3676e328833bd92ea7ebe28b567195bbd5c25bb2))
|
|
47
|
+
* adjust reporter to text, html, json ([04acb04](https://github.com/expressots/expressots/commit/04acb04c2e9229f0531ffb990f22665d94506f2c))
|
|
48
|
+
* remove adapter peer dependecy ([bad171b](https://github.com/expressots/expressots/commit/bad171be98f3b2ec58c3793836ba2000c3727dbc))
|
|
49
|
+
* resolves all current issues ([877c121](https://github.com/expressots/expressots/commit/877c1216405e35b3b90f61caf13d73b20202eac5))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Documentation
|
|
53
|
+
|
|
54
|
+
* add jsdoc to interfaces ([228d190](https://github.com/expressots/expressots/commit/228d190f7ca58c71e5bcd1f03ecf70b2e7fdbe03))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Code Refactoring
|
|
58
|
+
|
|
59
|
+
* add types to default params ([b366e14](https://github.com/expressots/expressots/commit/b366e14d2b7d9322b4ea92ae3afdfbb834e42e16))
|
|
60
|
+
* eliminate duplicate return statements ([b57fa85](https://github.com/expressots/expressots/commit/b57fa8517c5656fed71b73cc3c2b65834c8d8833))
|
|
61
|
+
* revert changes due to future features ([89fce01](https://github.com/expressots/expressots/commit/89fce01f08ebd1539471e51808040e4383c3e6f4))
|
|
62
|
+
|
|
63
|
+
## [2.3.0](https://github.com/expressots/expressots/compare/2.2.1...2.3.0) (2023-09-25)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Features
|
|
67
|
+
|
|
68
|
+
* add morgan middleware ([ffe5f36](https://github.com/expressots/expressots/commit/ffe5f36b447f7fafd3a44c90a304b3b9c5ec4481))
|
|
69
|
+
* bump vitest from 0.34.4 to 0.34.5 ([e1a1da5](https://github.com/expressots/expressots/commit/e1a1da51ab35bf6bb24ba9073b270a490ab331d8))
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
44
74
|
* add IMorgan interface to serve it types ([adb29e5](https://github.com/expressots/expressots/commit/adb29e505af79cf998f1288085695dfee8e5680d))
|
|
45
75
|
|
|
46
|
-
## [2.2.0](https://github.com/expressots/expressots/compare/2.1.0...2.2.0) (2023-09-21)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
### Features
|
|
50
|
-
|
|
51
|
-
* add middleware based routing ([3d7720e](https://github.com/expressots/expressots/commit/3d7720e21807117333d60e7f2b7bb01789b96060))
|
|
52
|
-
* add serve-favicon middleware ([024bdc4](https://github.com/expressots/expressots/commit/024bdc4d8d4f9890175975d052ca09c5b4e245cf))
|
|
53
|
-
* add serve-favicon middleware ([0733697](https://github.com/expressots/expressots/commit/0733697ed66a7133e60ec6fa09bdaeb0bf1985d7))
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### Bug Fixes
|
|
57
|
-
|
|
58
|
-
* add chore message to pre-commit hook ([45ae428](https://github.com/expressots/expressots/commit/45ae428652bb6e4f49cb2a6334686be0dee3669d))
|
|
59
|
-
* add middleware validation based on path ([7035153](https://github.com/expressots/expressots/commit/7035153dededd3ca7c5159544f4ab79baee2c4d7))
|
|
60
|
-
* re-write cp, mv and rm improving performance ([68d68ad](https://github.com/expressots/expressots/commit/68d68ad11385ca783fa5c51e3092937a6f898ac6))
|
|
61
|
-
* update contribute_howto doc ([4bf6e12](https://github.com/expressots/expressots/commit/4bf6e121091e894a7675ff78959ab4647ec04f6d))
|
|
62
|
-
* update contribute_howto doc ([fbbe47d](https://github.com/expressots/expressots/commit/fbbe47d6df76211fadd736fab864aa41e0313ec9))
|
|
63
|
-
* update templates for v2 scaffold ([74811f3](https://github.com/expressots/expressots/commit/74811f3ac54610be7367de75f37363dc0c107dbc))
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### Build System
|
|
67
|
-
|
|
68
|
-
* **scripts:** add cross platform build scripts ([e6cecbc](https://github.com/expressots/expressots/commit/e6cecbc6b7a309f00aa6cd60f6d8207dc8d4c5cb))
|
|
76
|
+
## [2.2.0](https://github.com/expressots/expressots/compare/2.1.0...2.2.0) (2023-09-21)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### Features
|
|
80
|
+
|
|
81
|
+
* add middleware based routing ([3d7720e](https://github.com/expressots/expressots/commit/3d7720e21807117333d60e7f2b7bb01789b96060))
|
|
82
|
+
* add serve-favicon middleware ([024bdc4](https://github.com/expressots/expressots/commit/024bdc4d8d4f9890175975d052ca09c5b4e245cf))
|
|
83
|
+
* add serve-favicon middleware ([0733697](https://github.com/expressots/expressots/commit/0733697ed66a7133e60ec6fa09bdaeb0bf1985d7))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* add chore message to pre-commit hook ([45ae428](https://github.com/expressots/expressots/commit/45ae428652bb6e4f49cb2a6334686be0dee3669d))
|
|
89
|
+
* add middleware validation based on path ([7035153](https://github.com/expressots/expressots/commit/7035153dededd3ca7c5159544f4ab79baee2c4d7))
|
|
90
|
+
* re-write cp, mv and rm improving performance ([68d68ad](https://github.com/expressots/expressots/commit/68d68ad11385ca783fa5c51e3092937a6f898ac6))
|
|
91
|
+
* update contribute_howto doc ([4bf6e12](https://github.com/expressots/expressots/commit/4bf6e121091e894a7675ff78959ab4647ec04f6d))
|
|
92
|
+
* update contribute_howto doc ([fbbe47d](https://github.com/expressots/expressots/commit/fbbe47d6df76211fadd736fab864aa41e0313ec9))
|
|
93
|
+
* update templates for v2 scaffold ([74811f3](https://github.com/expressots/expressots/commit/74811f3ac54610be7367de75f37363dc0c107dbc))
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Build System
|
|
97
|
+
|
|
98
|
+
* **scripts:** add cross platform build scripts ([e6cecbc](https://github.com/expressots/expressots/commit/e6cecbc6b7a309f00aa6cd60f6d8207dc8d4c5cb))
|
|
69
99
|
* **scripts:** add cross platform build scripts ([8b5c133](https://github.com/expressots/expressots/commit/8b5c133e4e28d67b8a7edca5b04bfe04a6d12540))
|
|
70
100
|
|
|
71
101
|
## [2.1.0](https://github.com/expressots/expressots/compare/2.0.0...2.1.0) (2023-09-16)
|
|
@@ -161,6 +161,38 @@ let Middleware = Middleware_1 = class Middleware {
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Adds a middleware to enhance security by setting various HTTP headers.
|
|
166
|
+
*
|
|
167
|
+
* @param options - Optional configuration options for Helmet.
|
|
168
|
+
*
|
|
169
|
+
*/
|
|
170
|
+
addHelmet(options) {
|
|
171
|
+
const middleware = (0, middleware_resolver_1.middlewareResolver)("helmet", options);
|
|
172
|
+
const middlewareExist = this.middlewareExists("helmet");
|
|
173
|
+
if (middleware && !middlewareExist) {
|
|
174
|
+
this.middlewarePipeline.push({
|
|
175
|
+
timestamp: new Date(),
|
|
176
|
+
middleware,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Add a middleware to enable express-session.
|
|
182
|
+
*
|
|
183
|
+
* @param options - Optional configuration options for Session.
|
|
184
|
+
*
|
|
185
|
+
*/
|
|
186
|
+
addSession(options) {
|
|
187
|
+
const middleware = (0, middleware_resolver_1.middlewareResolver)("session", options);
|
|
188
|
+
const middlewareExist = this.middlewareExists("session");
|
|
189
|
+
if (middleware && !middlewareExist) {
|
|
190
|
+
this.middlewarePipeline.push({
|
|
191
|
+
timestamp: new Date(),
|
|
192
|
+
middleware,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
164
196
|
/**
|
|
165
197
|
* Configures the error handling middleware for the application.
|
|
166
198
|
*
|
|
@@ -3,6 +3,8 @@ export { OptionsJson } from "./interfaces/body-parser.interface";
|
|
|
3
3
|
export { CorsOptions } from "./interfaces/cors.interface";
|
|
4
4
|
export { CompressionOptions } from "./interfaces/compression.interface";
|
|
5
5
|
export { CookieSessionOptions } from "./interfaces/cookie-session/cookie-session.interface";
|
|
6
|
+
export { OptionsHelmet } from "./interfaces/helmet.interface";
|
|
7
|
+
export { SessionOptions } from "./interfaces/express-session.interface";
|
|
6
8
|
export { Keygrip } from "./interfaces/cookie-session/keygrip.interface";
|
|
7
9
|
export { CookieParserOptions } from "./interfaces/cookie-parser.interface";
|
|
8
10
|
export { ServeFaviconOptions } from "./interfaces/serve-favicon.interface";
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/// <reference types="express-serve-static-core" />
|
|
2
|
+
import { Request } from "express";
|
|
3
|
+
interface SessionData {
|
|
4
|
+
cookie: Cookie;
|
|
5
|
+
}
|
|
6
|
+
interface Cookie extends CookieOptions {
|
|
7
|
+
/** Returns the original `maxAge` (time-to-live), in milliseconds, of the session cookie. */
|
|
8
|
+
originalMaxAge: number | null;
|
|
9
|
+
}
|
|
10
|
+
interface Session {
|
|
11
|
+
id: string;
|
|
12
|
+
cookie: Cookie;
|
|
13
|
+
regenerate(callback: (err: any) => void): this;
|
|
14
|
+
destroy(callback: (err: any) => void): this;
|
|
15
|
+
reload(callback: (err: any) => void): this;
|
|
16
|
+
resetMaxAge(): this;
|
|
17
|
+
save(callback?: (err: any) => void): this;
|
|
18
|
+
touch(): this;
|
|
19
|
+
}
|
|
20
|
+
interface Store {
|
|
21
|
+
regenerate(req: Request, callback: (err?: any) => any): void;
|
|
22
|
+
load(sid: string, callback: (err: any, session?: SessionData) => any): void;
|
|
23
|
+
createSession(req: Request, session: SessionData): Session & SessionData;
|
|
24
|
+
get(sid: string, callback: (err: any, session?: SessionData | null) => void): void;
|
|
25
|
+
set(sid: string, session: SessionData, callback?: (err?: any) => void): void;
|
|
26
|
+
destroy(sid: string, callback?: (err?: any) => void): void;
|
|
27
|
+
all?(callback: (err: any, obj?: Array<SessionData> | {
|
|
28
|
+
[sid: string]: SessionData;
|
|
29
|
+
} | null) => void): void;
|
|
30
|
+
length?(callback: (err: any, length?: number) => void): void;
|
|
31
|
+
clear?(callback?: (err?: any) => void): void;
|
|
32
|
+
touch?(sid: string, session: SessionData, callback?: () => void): void;
|
|
33
|
+
}
|
|
34
|
+
interface CookieOptions {
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the number (in milliseconds) to use when calculating the `Expires Set-Cookie` attribute.
|
|
37
|
+
* This is done by taking the current server time and adding `maxAge` milliseconds to the value to calculate an `Expires` datetime. By default, no maximum age is set.
|
|
38
|
+
*
|
|
39
|
+
* If both `expires` and `maxAge` are set in the options, then the last one defined in the object is what is used.
|
|
40
|
+
* `maxAge` should be preferred over `expires`.
|
|
41
|
+
*
|
|
42
|
+
* @see expires
|
|
43
|
+
*/
|
|
44
|
+
maxAge?: number | undefined;
|
|
45
|
+
signed?: boolean | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies the `Date` object to be the value for the `Expires Set-Cookie` attribute.
|
|
48
|
+
* By default, no expiration is set, and most clients will consider this a "non-persistent cookie" and will delete it on a condition like exiting a web browser application.
|
|
49
|
+
*
|
|
50
|
+
* If both `expires` and `maxAge` are set in the options, then the last one defined in the object is what is used.
|
|
51
|
+
*
|
|
52
|
+
* @deprecated The `expires` option should not be set directly; instead only use the `maxAge` option
|
|
53
|
+
* @see maxAge
|
|
54
|
+
*/
|
|
55
|
+
expires?: Date | null | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Specifies the boolean value for the `HttpOnly Set-Cookie` attribute. When truthy, the `HttpOnly` attribute is set, otherwise it is not.
|
|
58
|
+
* By default, the `HttpOnly` attribute is set.
|
|
59
|
+
*
|
|
60
|
+
* Be careful when setting this to `true`, as compliant clients will not allow client-side JavaScript to see the cookie in `document.cookie`.
|
|
61
|
+
*/
|
|
62
|
+
httpOnly?: boolean | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Specifies the value for the `Path Set-Cookie` attribute.
|
|
65
|
+
* By default, this is set to '/', which is the root path of the domain.
|
|
66
|
+
*/
|
|
67
|
+
path?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Specifies the value for the `Domain Set-Cookie` attribute.
|
|
70
|
+
* By default, no domain is set, and most clients will consider the cookie to apply to only the current domain.
|
|
71
|
+
*/
|
|
72
|
+
domain?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies the boolean value for the `Secure Set-Cookie` attribute. When truthy, the `Secure` attribute is set, otherwise it is not. By default, the `Secure` attribute is not set.
|
|
75
|
+
* Be careful when setting this to true, as compliant clients will not send the cookie back to the server in the future if the browser does not have an HTTPS connection.
|
|
76
|
+
*
|
|
77
|
+
* Please note that `secure: true` is a **recommended option**.
|
|
78
|
+
* However, it requires an https-enabled website, i.e., HTTPS is necessary for secure cookies.
|
|
79
|
+
* If `secure` is set, and you access your site over HTTP, **the cookie will not be set**.
|
|
80
|
+
*
|
|
81
|
+
* The cookie.secure option can also be set to the special value `auto` to have this setting automatically match the determined security of the connection.
|
|
82
|
+
* Be careful when using this setting if the site is available both as HTTP and HTTPS, as once the cookie is set on HTTPS, it will no longer be visible over HTTP.
|
|
83
|
+
* This is useful when the Express "trust proxy" setting is properly setup to simplify development vs production configuration.
|
|
84
|
+
*
|
|
85
|
+
* If you have your node.js behind a proxy and are using `secure: true`, you need to set "trust proxy" in express. Please see the [README](https://github.com/expressjs/session) for details.
|
|
86
|
+
*
|
|
87
|
+
* Please see the [README](https://github.com/expressjs/session) for an example of using secure cookies in production, but allowing for testing in development based on NODE_ENV.
|
|
88
|
+
*/
|
|
89
|
+
secure?: boolean | "auto" | undefined;
|
|
90
|
+
encode?: ((val: string) => string) | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Specifies the boolean or string to be the value for the `SameSite Set-Cookie` attribute.
|
|
93
|
+
* - `true` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
|
|
94
|
+
* - `false` will not set the `SameSite` attribute.
|
|
95
|
+
* - `lax` will set the `SameSite` attribute to `Lax` for lax same site enforcement.
|
|
96
|
+
* - `none` will set the `SameSite` attribute to `None` for an explicit cross-site cookie.
|
|
97
|
+
* - `strict` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
|
|
98
|
+
*
|
|
99
|
+
* More information about the different enforcement levels can be found in the specification.
|
|
100
|
+
*
|
|
101
|
+
* **Note:** This is an attribute that has not yet been fully standardized, and may change in the future.
|
|
102
|
+
* This also means many clients may ignore this attribute until they understand it.
|
|
103
|
+
*/
|
|
104
|
+
sameSite?: boolean | "lax" | "strict" | "none" | undefined;
|
|
105
|
+
}
|
|
106
|
+
interface SessionOptions {
|
|
107
|
+
/**
|
|
108
|
+
* This is the secret used to sign the session cookie. This can be either a string for a single secret, or an array of multiple secrets.
|
|
109
|
+
* If an array of secrets is provided, **only the first element will be used to sign** the session ID cookie,
|
|
110
|
+
* while **all the elements will be considered when verifying the signature** in requests.
|
|
111
|
+
* The secret itself should be not easily parsed by a human and would best be a random set of characters
|
|
112
|
+
*
|
|
113
|
+
* Best practices may include:
|
|
114
|
+
* - The use of environment variables to store the secret, ensuring the secret itself does not exist in your repository.
|
|
115
|
+
* - Periodic updates of the secret, while ensuring the previous secret is in the array.
|
|
116
|
+
*
|
|
117
|
+
* Using a secret that cannot be guessed will reduce the ability to hijack a session to only guessing the session ID (as determined by the `genid` option).
|
|
118
|
+
*
|
|
119
|
+
* Changing the secret value will invalidate all existing sessions.
|
|
120
|
+
* In order to rotate the secret without invalidating sessions, provide an array of secrets,
|
|
121
|
+
* with the new secret as first element of the array, and including previous secrets as the later elements.
|
|
122
|
+
*/
|
|
123
|
+
secret: string | Array<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Function to call to generate a new session ID. Provide a function that returns a string that will be used as a session ID.
|
|
126
|
+
* The function is given the request as the first argument if you want to use some value attached to it when generating the ID.
|
|
127
|
+
*
|
|
128
|
+
* The default value is a function which uses the uid-safe library to generate IDs.
|
|
129
|
+
* Be careful to generate unique IDs so your sessions do not conflict.
|
|
130
|
+
*/
|
|
131
|
+
genid?(req: Express.Request): string;
|
|
132
|
+
/**
|
|
133
|
+
* The name of the session ID cookie to set in the response (and read from in the request).
|
|
134
|
+
* The default value is 'connect.sid'.
|
|
135
|
+
*
|
|
136
|
+
* Note if you have multiple apps running on the same hostname (this is just the name, i.e. `localhost` or `127.0.0.1`; different schemes and ports do not name a different hostname),
|
|
137
|
+
* then you need to separate the session cookies from each other.
|
|
138
|
+
* The simplest method is to simply set different names per app.
|
|
139
|
+
*/
|
|
140
|
+
name?: string | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* The session store instance, defaults to a new `MemoryStore` instance.
|
|
143
|
+
* @see MemoryStore
|
|
144
|
+
*/
|
|
145
|
+
store?: Store | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* Settings object for the session ID cookie.
|
|
148
|
+
* @see CookieOptions
|
|
149
|
+
*/
|
|
150
|
+
cookie?: CookieOptions | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Force the session identifier cookie to be set on every response. The expiration is reset to the original `maxAge`, resetting the expiration countdown.
|
|
153
|
+
* The default value is `false`.
|
|
154
|
+
*
|
|
155
|
+
* With this enabled, the session identifier cookie will expire in `maxAge` *since the last response was sent* instead of in `maxAge` *since the session was last modified by the server*.
|
|
156
|
+
* This is typically used in conjuction with short, non-session-length `maxAge` values to provide a quick timeout of the session data
|
|
157
|
+
* with reduced potential of it occurring during on going server interactions.
|
|
158
|
+
*
|
|
159
|
+
* Note that when this option is set to `true` but the `saveUninitialized` option is set to `false`, the cookie will not be set on a response with an uninitialized session.
|
|
160
|
+
* This option only modifies the behavior when an existing session was loaded for the request.
|
|
161
|
+
*
|
|
162
|
+
* @see saveUninitialized
|
|
163
|
+
*/
|
|
164
|
+
rolling?: boolean | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* Forces the session to be saved back to the session store, even if the session was never modified during the request.
|
|
167
|
+
* Depending on your store this may be necessary, but it can also create race conditions where a client makes two parallel requests to your server
|
|
168
|
+
* and changes made to the session in one request may get overwritten when the other request ends, even if it made no changes (this behavior also depends on what store you're using).
|
|
169
|
+
*
|
|
170
|
+
* The default value is `true`, but using the default has been deprecated, as the default will change in the future.
|
|
171
|
+
* Please research into this setting and choose what is appropriate to your use-case. Typically, you'll want `false`.
|
|
172
|
+
*
|
|
173
|
+
* How do I know if this is necessary for my store? The best way to know is to check with your store if it implements the `touch` method.
|
|
174
|
+
* If it does, then you can safely set `resave: false`.
|
|
175
|
+
* If it does not implement the `touch` method and your store sets an expiration date on stored sessions, then you likely need `resave: true`.
|
|
176
|
+
*/
|
|
177
|
+
resave?: boolean | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* Trust the reverse proxy when setting secure cookies (via the "X-Forwarded-Proto" header).
|
|
180
|
+
* The default value is undefined.
|
|
181
|
+
*
|
|
182
|
+
* - `true`: The `X-Forwarded-Proto` header will be used.
|
|
183
|
+
* - `false`: All headers are ignored and the connection is considered secure only if there is a direct TLS/SSL connection.
|
|
184
|
+
* - `undefined`: Uses the "trust proxy" setting from express
|
|
185
|
+
*/
|
|
186
|
+
proxy?: boolean | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* Forces a session that is "uninitialized" to be saved to the store. A session is uninitialized when it is new but not modified.
|
|
189
|
+
* Choosing `false` is useful for implementing login sessions, reducing server storage usage, or complying with laws that require permission before setting a cookie.
|
|
190
|
+
* Choosing `false` will also help with race conditions where a client makes multiple parallel requests without a session.
|
|
191
|
+
*
|
|
192
|
+
* The default value is `true`, but using the default has been deprecated, as the default will change in the future.
|
|
193
|
+
* Please research into this setting and choose what is appropriate to your use-case.
|
|
194
|
+
*
|
|
195
|
+
* **If you are using `express-session` in conjunction with PassportJS:**
|
|
196
|
+
* Passport will add an empty Passport object to the session for use after a user is authenticated, which will be treated as a modification to the session, causing it to be saved.
|
|
197
|
+
* This has been fixed in PassportJS 0.3.0.
|
|
198
|
+
*/
|
|
199
|
+
saveUninitialized?: boolean | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Control the result of unsetting req.session (through delete, setting to null, etc.).
|
|
202
|
+
* - `destroy`: The session will be destroyed (deleted) when the response ends.
|
|
203
|
+
* - `keep`: The session in the store will be kept, but modifications made during the request are ignored and not saved.
|
|
204
|
+
* @default 'keep'
|
|
205
|
+
*/
|
|
206
|
+
unset?: "destroy" | "keep" | undefined;
|
|
207
|
+
}
|
|
208
|
+
export { SessionOptions };
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { Request, Response } from "express";
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {string} cspDirectiveValue
|
|
4
|
+
* Possible values for Content Security Policy directives.
|
|
5
|
+
* Can be 'self', 'none', or a string.
|
|
6
|
+
*/
|
|
7
|
+
type cspDirectiveValue = "self" | "none" | string;
|
|
8
|
+
/**
|
|
9
|
+
* @interface directiveOptions
|
|
10
|
+
* Options for defining Content Security Policy directives.
|
|
11
|
+
*/
|
|
12
|
+
interface directiveOptions {
|
|
13
|
+
"default-src"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
14
|
+
"base-uri"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
15
|
+
"font-src"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
16
|
+
"form-action"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
17
|
+
"frame-ancestors"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
18
|
+
"img-src"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
19
|
+
"object-src"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
20
|
+
"script-src"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
21
|
+
"script-src-attr"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
22
|
+
"style-src"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
23
|
+
"upgrade-insecure-requests"?: Array<cspDirectiveValue> | null | Array<(req: Request, res: Response) => string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @interface ContentSecurityPolicy
|
|
27
|
+
* Defines a Content Security Policy configuration.
|
|
28
|
+
*/
|
|
29
|
+
interface ContentSecurityPolicy {
|
|
30
|
+
/**
|
|
31
|
+
* A function that sets Content Security Policy.
|
|
32
|
+
*
|
|
33
|
+
* @param {directiveOptions} options - Optional configuration options for Content Security Policy.
|
|
34
|
+
* @returns {Function} A middleware function.
|
|
35
|
+
*/
|
|
36
|
+
useDefaults?: false;
|
|
37
|
+
directives?: directiveOptions;
|
|
38
|
+
reportOnly?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @typedef {Object} CrossOriginEmbedderPolicyOptions
|
|
42
|
+
* An optional policy for Cross-Origin Embedder Policy.
|
|
43
|
+
*/
|
|
44
|
+
interface CrossOriginEmbedderPolicyOptions {
|
|
45
|
+
/**
|
|
46
|
+
* An optional policy for Cross-Origin Embedder Policy.
|
|
47
|
+
*/
|
|
48
|
+
policy?: "require-corp" | "credentialless";
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @typedef {Object} CrossOriginOpenerPolicyOptions
|
|
52
|
+
* An optional policy for Cross-Origin Opener Policy.
|
|
53
|
+
*/
|
|
54
|
+
interface CrossOriginOpenerPolicyOptions {
|
|
55
|
+
/**
|
|
56
|
+
* An optional policy for Cross-Origin Opener Policy.
|
|
57
|
+
*/
|
|
58
|
+
policy?: "same-origin" | "same-origin-allow-popups" | "unsafe-none";
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @typedef {Object} CrossOriginResourcePolicyOptions
|
|
62
|
+
* An optional policy for Cross-Origin Resource Policy.
|
|
63
|
+
*/
|
|
64
|
+
interface CrossOriginResourcePolicyOptions {
|
|
65
|
+
/**
|
|
66
|
+
* An optional policy for Cross-Origin Resource Policy.
|
|
67
|
+
*/
|
|
68
|
+
policy?: "same-origin" | "same-site" | "cross-origin";
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @typedef {string} ReferrerPolicyToken
|
|
72
|
+
* A type alias for Referrer Policy tokens.
|
|
73
|
+
*/
|
|
74
|
+
type ReferrerPolicyToken = "no-referrer" | "no-referrer-when-downgrade" | "no-referrer" | "no-referrer-when-downgrade" | "same-origin" | "origin" | "strict-origin" | "origin-when-cross-origin" | "strict-origin-when-cross-origin" | "unsafe-url" | "";
|
|
75
|
+
/**
|
|
76
|
+
* @typedef {Object} ReferrerPolicyOptions
|
|
77
|
+
* An optional policy for Referrer Policy.
|
|
78
|
+
*/
|
|
79
|
+
interface ReferrerPolicyOptions {
|
|
80
|
+
/**
|
|
81
|
+
* An optional policy for Referrer Policy.
|
|
82
|
+
*/
|
|
83
|
+
policy?: ReferrerPolicyToken | Array<ReferrerPolicyToken> | false;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @typedef {Object} StrictTransportSecurityOptions
|
|
87
|
+
* Options for Strict Transport Security.
|
|
88
|
+
*/
|
|
89
|
+
interface StrictTransportSecurityOptions {
|
|
90
|
+
/**
|
|
91
|
+
* An optional max age for Strict Transport Security.
|
|
92
|
+
*/
|
|
93
|
+
maxAge?: number;
|
|
94
|
+
/**
|
|
95
|
+
* An optional flag to include subdomains.
|
|
96
|
+
*/
|
|
97
|
+
includeSubDomains?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* An optional flag for preload.
|
|
100
|
+
*/
|
|
101
|
+
preload?: boolean;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @typedef {boolean|string} xContentTypeOptions
|
|
105
|
+
* Options for X-Content-Type-Options.
|
|
106
|
+
*/
|
|
107
|
+
type xContentTypeOptions = false | "nosniff";
|
|
108
|
+
/**
|
|
109
|
+
* @typedef {Object} XDnsPrefetchControlOptions
|
|
110
|
+
* Options for X-DNS-Prefetch-Control.
|
|
111
|
+
*/
|
|
112
|
+
interface XDnsPrefetchControlOptions {
|
|
113
|
+
/**
|
|
114
|
+
* An optional flag to allow DNS prefetching.
|
|
115
|
+
*/
|
|
116
|
+
allow?: boolean;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @typedef {Object} XFrameOptionsOptions
|
|
120
|
+
* Options for X-Frame-Options.
|
|
121
|
+
*/
|
|
122
|
+
interface XFrameOptionsOptions {
|
|
123
|
+
/**
|
|
124
|
+
* An optional action for X-Frame-Options.
|
|
125
|
+
*/
|
|
126
|
+
action?: "deny" | "sameorigin" | false;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @typedef {Object} XPermittedCrossDomainPoliciesOptions
|
|
130
|
+
* Options for X-Permitted-Cross-Domain-Policies.
|
|
131
|
+
*/
|
|
132
|
+
interface XPermittedCrossDomainPoliciesOptions {
|
|
133
|
+
/**
|
|
134
|
+
* An optional policy for X-Permitted-Cross-Domain-Policies.
|
|
135
|
+
*/
|
|
136
|
+
permittedPolicies?: "none" | "master-only" | "by-content-type" | "all";
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @typedef {boolean} xPoweredByOptions
|
|
140
|
+
* Options for X-Powered-By.
|
|
141
|
+
*/
|
|
142
|
+
type xPoweredByOptions = false;
|
|
143
|
+
/**
|
|
144
|
+
* @typedef {boolean} xXssProtectionOptions
|
|
145
|
+
* Options for X-XSS-Protection.
|
|
146
|
+
*/
|
|
147
|
+
type xXssProtectionOptions = false;
|
|
148
|
+
/**
|
|
149
|
+
* @interface OptionsHelmet
|
|
150
|
+
* Options for Helmet middleware.
|
|
151
|
+
*/
|
|
152
|
+
export interface OptionsHelmet {
|
|
153
|
+
/**
|
|
154
|
+
* An optional Content Security Policy.
|
|
155
|
+
*/
|
|
156
|
+
contentSecurityPolicy?: ContentSecurityPolicy | false;
|
|
157
|
+
/**
|
|
158
|
+
* An optional Cross-Origin Embedder Policy.
|
|
159
|
+
*/
|
|
160
|
+
crossOriginEmbedderPolicy?: CrossOriginEmbedderPolicyOptions | boolean;
|
|
161
|
+
/**
|
|
162
|
+
* An optional Cross-Origin Opener Policy.
|
|
163
|
+
*/
|
|
164
|
+
crossOriginOpenerPolicy?: boolean | CrossOriginOpenerPolicyOptions;
|
|
165
|
+
/**
|
|
166
|
+
* An optional Cross-Origin Resource Policy.
|
|
167
|
+
*/
|
|
168
|
+
crossOriginResourcePolicy?: boolean | CrossOriginResourcePolicyOptions;
|
|
169
|
+
/**
|
|
170
|
+
* An optional flag for originAgentCluster.
|
|
171
|
+
*/
|
|
172
|
+
originAgentCluster?: false;
|
|
173
|
+
/**
|
|
174
|
+
* An optional Referrer Policy.
|
|
175
|
+
*/
|
|
176
|
+
referrerPolicy?: ReferrerPolicyOptions;
|
|
177
|
+
/**
|
|
178
|
+
* An optional Strict Transport Security.
|
|
179
|
+
*/
|
|
180
|
+
strictTransportSecurity?: StrictTransportSecurityOptions;
|
|
181
|
+
/**
|
|
182
|
+
* An optional X-Content-Type-Options.
|
|
183
|
+
*/
|
|
184
|
+
xContentTypeOptions?: xContentTypeOptions;
|
|
185
|
+
/**
|
|
186
|
+
* An optional X-DNS-Prefetch-Control.
|
|
187
|
+
*/
|
|
188
|
+
xDnsPrefetchControl?: XDnsPrefetchControlOptions;
|
|
189
|
+
/**
|
|
190
|
+
* An optional X-Download-Options.
|
|
191
|
+
*/
|
|
192
|
+
xDownloadOptions?: boolean | "noopen";
|
|
193
|
+
/**
|
|
194
|
+
* An optional X-Frame-Options.
|
|
195
|
+
*/
|
|
196
|
+
xFrameOptions?: XFrameOptionsOptions;
|
|
197
|
+
/**
|
|
198
|
+
* An optional X-Permitted-Cross-Domain-Policies.
|
|
199
|
+
*/
|
|
200
|
+
xPermittedCrossDomainPolicies?: XPermittedCrossDomainPoliciesOptions;
|
|
201
|
+
/**
|
|
202
|
+
* An optional X-Powered-By.
|
|
203
|
+
*/
|
|
204
|
+
xPoweredBy?: xPoweredByOptions;
|
|
205
|
+
/**
|
|
206
|
+
* An optional X-XSS-Protection.
|
|
207
|
+
*/
|
|
208
|
+
xXssProtection?: xXssProtectionOptions;
|
|
209
|
+
}
|
|
210
|
+
export {};
|
|
@@ -9,6 +9,8 @@ import { CookieSessionOptions } from "./interfaces/cookie-session/cookie-session
|
|
|
9
9
|
import { ServeFaviconOptions } from "./interfaces/serve-favicon.interface";
|
|
10
10
|
import { FormatFn, OptionsMorgan } from "./interfaces/morgan.interface";
|
|
11
11
|
import { RateLimitOptions } from "./interfaces/express-rate-limit.interface";
|
|
12
|
+
import { OptionsHelmet } from "./interfaces/helmet.interface";
|
|
13
|
+
import { SessionOptions } from "./interfaces/express-session.interface";
|
|
12
14
|
/**
|
|
13
15
|
* ExpressHandler Type
|
|
14
16
|
*
|
|
@@ -58,7 +60,7 @@ interface IMiddleware {
|
|
|
58
60
|
* Adds a Rate Limit middleware to the middleware collection.
|
|
59
61
|
* The rate limiter is responsible for adding dynamic rate limit and request throttling to the application.
|
|
60
62
|
*
|
|
61
|
-
* @param options - Optional configuration options for the
|
|
63
|
+
* @param options - Optional configuration options for the rate limiter.
|
|
62
64
|
*/
|
|
63
65
|
addRateLimiter(options?: RateLimitOptions): void;
|
|
64
66
|
/**
|
|
@@ -108,6 +110,13 @@ interface IMiddleware {
|
|
|
108
110
|
* @param options - Optional configuration options for serving the favicon. Defines the behavior of the favicon middleware like cache control, custom headers, etc.
|
|
109
111
|
*/
|
|
110
112
|
addServeFavicon(path: string | Buffer, options?: ServeFaviconOptions): void;
|
|
113
|
+
/**
|
|
114
|
+
* Add a middleware to enable express-session.
|
|
115
|
+
*
|
|
116
|
+
* @param options - Optional configuration options for Session.
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
addSession(options: SessionOptions): void;
|
|
111
120
|
/**
|
|
112
121
|
* Configures the error handling middleware for the application.
|
|
113
122
|
*
|
|
@@ -141,6 +150,13 @@ interface IMiddleware {
|
|
|
141
150
|
* @returns The error handler middleware.
|
|
142
151
|
*/
|
|
143
152
|
getErrorHandler(): ExpressHandler;
|
|
153
|
+
/**
|
|
154
|
+
* Adds Helmet middleware to enhance security by setting various HTTP headers.
|
|
155
|
+
*
|
|
156
|
+
* @param options - Optional configuration options for Helmet.
|
|
157
|
+
* @returns The configuration options for Helmet middleware.
|
|
158
|
+
*/
|
|
159
|
+
addHelmet(options?: OptionsHelmet): void;
|
|
144
160
|
}
|
|
145
161
|
/**
|
|
146
162
|
* Singleton class that implements the IConfigure interface.
|
|
@@ -208,6 +224,20 @@ declare class Middleware implements IMiddleware {
|
|
|
208
224
|
* @param options - Optional configuration options for serving the favicon. Defines the behavior of the favicon middleware like cache control, custom headers, etc.
|
|
209
225
|
*/
|
|
210
226
|
addServeFavicon(path: string | Buffer, options?: ServeFaviconOptions): void;
|
|
227
|
+
/**
|
|
228
|
+
* Adds a middleware to enhance security by setting various HTTP headers.
|
|
229
|
+
*
|
|
230
|
+
* @param options - Optional configuration options for Helmet.
|
|
231
|
+
*
|
|
232
|
+
*/
|
|
233
|
+
addHelmet(options?: OptionsHelmet): void;
|
|
234
|
+
/**
|
|
235
|
+
* Add a middleware to enable express-session.
|
|
236
|
+
*
|
|
237
|
+
* @param options - Optional configuration options for Session.
|
|
238
|
+
*
|
|
239
|
+
*/
|
|
240
|
+
addSession(options: SessionOptions): void;
|
|
211
241
|
/**
|
|
212
242
|
* Configures the error handling middleware for the application.
|
|
213
243
|
*
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"release-it": "^16.1.5",
|
|
89
89
|
"ts-jest": "^29.0.5",
|
|
90
90
|
"typescript": "^5.0.3",
|
|
91
|
-
"vite": "4.4.
|
|
92
|
-
"vitest": "0.34.
|
|
91
|
+
"vite": "4.4.11",
|
|
92
|
+
"vitest": "0.34.6"
|
|
93
93
|
},
|
|
94
94
|
"release-it": {
|
|
95
95
|
"git": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"release-it": "^16.1.5",
|
|
89
89
|
"ts-jest": "^29.0.5",
|
|
90
90
|
"typescript": "^5.0.3",
|
|
91
|
-
"vite": "4.4.
|
|
92
|
-
"vitest": "0.34.
|
|
91
|
+
"vite": "4.4.11",
|
|
92
|
+
"vitest": "0.34.6"
|
|
93
93
|
},
|
|
94
94
|
"release-it": {
|
|
95
95
|
"git": {
|