@gasket/plugin-fastify 7.2.2 → 7.2.3
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/index.d.ts +2 -4
- package/lib/utils.js +1 -1
- package/package.json +18 -5
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MaybeAsync, MaybeMultiple, Plugin } from '@gasket/core';
|
|
2
|
-
import { Logger } from '@gasket/plugin-logger';
|
|
2
|
+
import type { Logger } from '@gasket/plugin-logger';
|
|
3
3
|
import type {
|
|
4
4
|
FastifyInstance,
|
|
5
5
|
FastifyRequest,
|
|
@@ -9,9 +9,7 @@ import type {
|
|
|
9
9
|
FastifyTypeProviderDefault,
|
|
10
10
|
RawServerDefault
|
|
11
11
|
} from 'fastify';
|
|
12
|
-
import { IncomingMessage, ServerResponse } from 'http';
|
|
13
|
-
|
|
14
|
-
export type AppRoutes = Array<MaybeAsync<(app: FastifyInstance) => void>>;
|
|
12
|
+
import type { IncomingMessage, ServerResponse } from 'http';
|
|
15
13
|
|
|
16
14
|
declare module '@gasket/core' {
|
|
17
15
|
export interface GasketActions {
|
package/lib/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ const fallbackMap = {
|
|
|
8
8
|
/**
|
|
9
9
|
* A helper function to ensure that all the required log levels
|
|
10
10
|
* for a Fastify server are present.
|
|
11
|
-
* @type {import('
|
|
11
|
+
* @type {import('@gasket/plugin-fastify').alignLogger}
|
|
12
12
|
*/
|
|
13
13
|
function alignLogger(logger) {
|
|
14
14
|
const fastifyLogger = logger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gasket/plugin-fastify",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.3",
|
|
4
4
|
"description": "Adds fastify support to your application",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"fastify": "^4.28.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@gasket/core": "^7.2.
|
|
43
|
+
"@gasket/core": "^7.2.3",
|
|
44
44
|
"cross-env": "^7.0.3",
|
|
45
45
|
"eslint": "^8.56.0",
|
|
46
46
|
"eslint-config-godaddy": "^7.1.1",
|
|
47
|
+
"eslint-config-godaddy-typescript": "^4.0.3",
|
|
47
48
|
"eslint-plugin-jest": "^28.6.0",
|
|
48
|
-
"eslint-plugin-json": "^3.1.0",
|
|
49
49
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
50
50
|
"fastify": "^4.28.1",
|
|
51
51
|
"jest": "^29.7.0",
|
|
@@ -66,7 +66,20 @@
|
|
|
66
66
|
],
|
|
67
67
|
"rules": {
|
|
68
68
|
"unicorn/filename-case": "error"
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
|
+
"overrides": [
|
|
71
|
+
{
|
|
72
|
+
"files": [
|
|
73
|
+
"lib/*.ts"
|
|
74
|
+
],
|
|
75
|
+
"extends": [
|
|
76
|
+
"godaddy-typescript"
|
|
77
|
+
],
|
|
78
|
+
"rules": {
|
|
79
|
+
"jsdoc/*": "off"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
70
83
|
},
|
|
71
84
|
"eslintIgnore": [
|
|
72
85
|
"generator"
|
|
@@ -74,5 +87,5 @@
|
|
|
74
87
|
"jest": {
|
|
75
88
|
"rootDir": "test"
|
|
76
89
|
},
|
|
77
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "3fb21dbc6f75b8b9619a1e70073a504f84a29943"
|
|
78
91
|
}
|