fastify-flux 3.2.0 → 3.3.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/dist/fastify.d.ts
CHANGED
|
@@ -11,5 +11,7 @@ export declare function getFastifyLoggerConfig(): {
|
|
|
11
11
|
} | {
|
|
12
12
|
transport?: undefined;
|
|
13
13
|
};
|
|
14
|
-
export declare function createFastifyInstance(): import("fastify").FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<import("fastify").FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault
|
|
14
|
+
export declare function createFastifyInstance(): import("fastify").FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<import("fastify").FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>> & {
|
|
15
|
+
__linterBrands: "SafePromiseLike";
|
|
16
|
+
};
|
|
15
17
|
//# sourceMappingURL=fastify.d.ts.map
|
package/dist/fastify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"AAYA,wBAAgB,sBAAsB;;;;;;;;;;;;EAiBrC;AAED,wBAAgB,qBAAqB
|
|
1
|
+
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"AAYA,wBAAgB,sBAAsB;;;;;;;;;;;;EAiBrC;AAED,wBAAgB,qBAAqB;;EASpC"}
|
|
@@ -9,7 +9,7 @@ export declare function getSchemaParams(route: FluxRoute): {
|
|
|
9
9
|
} | undefined;
|
|
10
10
|
export declare function getSchemaBody(route: FluxRoute): any;
|
|
11
11
|
export declare function getSchemaResponse(config: FluxConfig, route: FluxRoute): {
|
|
12
|
-
[
|
|
12
|
+
[route.statusCode]: any;
|
|
13
13
|
};
|
|
14
14
|
export declare function registerController(controller: {
|
|
15
15
|
new (): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllers.d.ts","sourceRoot":"","sources":["../../src/flux/controllers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAc,MAAM,IAAI,CAAC;AAMvD,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS;;gBAS1B;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;cAYxD;AAeD,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,OAY7C;AAcD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS
|
|
1
|
+
{"version":3,"file":"controllers.d.ts","sourceRoot":"","sources":["../../src/flux/controllers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAc,MAAM,IAAI,CAAC;AAMvD,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS;;gBAS1B;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE;cAYxD;AAeD,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,OAY7C;AAcD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS;IA0BhE,CAAC,KAAK,CAAC,UAAU,CAAC,MAAoB;EAO3C;AAwCD,wBAAgB,kBAAkB,CAChC,UAAU,EAAE;IAAE,QAAQ,GAAG,CAAA;CAAE,EAC3B,OAAO,EAAE,UAAU,QAyBpB"}
|
|
@@ -31,7 +31,7 @@ const defaultMapping = [
|
|
|
31
31
|
function getParamMapper(name) {
|
|
32
32
|
return ({ request }) => {
|
|
33
33
|
const { params } = request;
|
|
34
|
-
if (params && params
|
|
34
|
+
if (params && params[name] !== undefined) {
|
|
35
35
|
return params[name];
|
|
36
36
|
}
|
|
37
37
|
throw new Error(`Couldn't find url parameter ${name} for url ${request.url}.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-parameter.js","sourceRoot":"","sources":["../../src/helper/call-parameter.ts"],"names":[],"mappings":";;AA2CA,wCAqBC;AAED,0CAEC;AAlED,MAAM,cAAc,GAAkB;IACpC;QACE,IAAI,EAAE,OAAO;QACb,MAAM,CAAC,EAAE,OAAO,EAAE;YAChB,OAAO,OAAO,CAAC,KAAK,CAAC;QACvB,CAAC;KACF;IACD;QACE,IAAI,EAAE,MAAM;QACZ,MAAM,CAAC,EAAE,OAAO,EAAE;YAChB,OAAO,OAAO,CAAC,IAAI,CAAC;QACtB,CAAC;KACF;IACD;QACE,IAAI,EAAE,cAAc;QACpB,MAAM,CAAC,EAAE,KAAK,EAAE;YACd,OAAO,KAAK,CAAC;QACf,CAAC;KACF;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,MAAM,CAAC,EAAE,OAAO,EAAE;YAChB,OAAO,OAAO,CAAC;QACjB,CAAC;KACF;CACF,CAAC;AAEF,SAAS,cAAc,CAAC,IAAY;IAClC,OAAO,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;QACrB,MAAM,EAAE,MAAM,EAAE,GAAG,OAAc,CAAC;QAElC,IAAI,MAAM,IAAI,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"call-parameter.js","sourceRoot":"","sources":["../../src/hel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QAC7D,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,SAAS,CAAC,MAAM,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,SAAS,CAAC,MAAM,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAgB,eAAe,CAAC,MAAkB,EAAE,KAAgB;IAClE,OAAO,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5D,CAAC"}
|
package/package.json
CHANGED
|
@@ -7,29 +7,29 @@
|
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@fastify/swagger": "
|
|
11
|
-
"@fastify/swagger-ui": "
|
|
12
|
-
"@types/jest": "29.5.
|
|
13
|
-
"@types/lodash": "4.17.
|
|
10
|
+
"@fastify/swagger": "9.5.1",
|
|
11
|
+
"@fastify/swagger-ui": "5.2.3",
|
|
12
|
+
"@types/jest": "29.5.14",
|
|
13
|
+
"@types/lodash": "4.17.17",
|
|
14
14
|
"esbuild-jest": "0.5.0",
|
|
15
|
-
"fastify": "
|
|
16
|
-
"jest": "
|
|
17
|
-
"ts-jest": "29.
|
|
18
|
-
"typescript": "5.
|
|
15
|
+
"fastify": "5.3.3",
|
|
16
|
+
"jest": "30.0.0",
|
|
17
|
+
"ts-jest": "29.3.4",
|
|
18
|
+
"typescript": "5.8.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@fastify/swagger": "8.
|
|
22
|
-
"@fastify/swagger-ui": "4.0
|
|
23
|
-
"fastify": "4.
|
|
21
|
+
"@fastify/swagger": "8.15.0",
|
|
22
|
+
"@fastify/swagger-ui": "4.2.0",
|
|
23
|
+
"fastify": "4.29.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"fastify-plugin": "
|
|
29
|
+
"fastify-plugin": "5.0.1",
|
|
30
30
|
"lodash": "4.17.21"
|
|
31
31
|
},
|
|
32
|
-
"version": "3.
|
|
32
|
+
"version": "3.3.0",
|
|
33
33
|
"scripts": {
|
|
34
34
|
"clean": "rm -rf dist/",
|
|
35
35
|
"build": "tsc",
|