fastify-flux 2.19.5 → 2.19.7

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
@@ -1,3 +1,3 @@
1
1
  /// <reference types="node" />
2
- export declare function createFastifyInstance(): import("fastify").FastifyInstance<import("http").Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault> & PromiseLike<import("fastify").FastifyInstance<import("http").Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>;
2
+ 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>>;
3
3
  //# sourceMappingURL=fastify.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":";AAqBA,wBAAgB,qBAAqB,yaASpC"}
1
+ {"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":";AAqBA,wBAAgB,qBAAqB,moBASpC"}
@@ -5,5 +5,5 @@ export declare function flux({ fastify, controllers, mapping, }: {
5
5
  fastify?: FastifyInstance;
6
6
  controllers?: FluxController[];
7
7
  mapping?: FluxConfig['mapping'];
8
- }): Promise<FastifyInstance<import("http").Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>;
8
+ }): Promise<FastifyInstance<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>;
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/flux/index.ts"],"names":[],"mappings":";AAAA,OAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAoBtD,wBAAsB,IAAI,CAAC,EACzB,OAAO,EACP,WAAW,EACX,OAAO,GACR,EAAE;IACD,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACjC,qMAWA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/flux/index.ts"],"names":[],"mappings":";AAAA,OAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAoBtD,wBAAsB,IAAI,CAAC,EACzB,OAAO,EACP,WAAW,EACX,OAAO,GACR,EAAE;IACD,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACjC,kPAWA"}
@@ -1,11 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import { FluxConfig, FluxRoute } from '..';
3
3
  export declare function getRouteMapper(config: FluxConfig, param: FluxRoute['params'][number]): (data: {
4
- request: import("fastify").FastifyRequest<import("fastify/types/route").RouteGenericInterface, import("http").Server, import("http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify/types/route").RouteGenericInterface>>;
5
- reply: import("fastify").FastifyReply<import("http").Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify/types/route").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>;
4
+ request: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>>;
5
+ reply: import("fastify").FastifyReply<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>;
6
6
  }) => unknown;
7
7
  export declare function getRouteMappers(config: FluxConfig, route: FluxRoute): ((data: {
8
- request: import("fastify").FastifyRequest<import("fastify/types/route").RouteGenericInterface, import("http").Server, import("http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify/types/route").RouteGenericInterface>>;
9
- reply: import("fastify").FastifyReply<import("http").Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify/types/route").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>;
8
+ request: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>>;
9
+ reply: import("fastify").FastifyReply<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").RouteGenericInterface, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>;
10
10
  }) => unknown)[];
11
11
  //# sourceMappingURL=call-parameter.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- /// <reference types="node" />
2
1
  import { FastifyPluginAsync } from 'fastify';
3
2
  import { FluxConfig } from './types';
4
3
  import { FastifyDynamicSwaggerOptions } from '@fastify/swagger';
4
+ import { FastifySwaggerUiOptions } from '@fastify/swagger-ui';
5
5
  export * from './decorator';
6
6
  export * from './flux';
7
7
  export * from './types';
@@ -13,6 +13,7 @@ interface ControllerOptions {
13
13
  }[];
14
14
  mapping?: FluxConfig['mapping'];
15
15
  }
16
- export declare const FluxOpenapi: FastifyPluginAsync<FastifyDynamicSwaggerOptions, import("http").Server, import("fastify").FastifyTypeProviderDefault>;
17
- export declare const FluxController: FastifyPluginAsync<ControllerOptions, import("http").Server, import("fastify").FastifyTypeProviderDefault>;
16
+ export declare const FluxOpenapi: FastifyPluginAsync<FastifyDynamicSwaggerOptions, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault>;
17
+ export declare const FluxOpenapiUi: FastifyPluginAsync<FastifySwaggerUiOptions, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault>;
18
+ export declare const FluxController: FastifyPluginAsync<ControllerOptions, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault>;
18
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAmB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG9D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAEhE,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAQ1B,UAAU,iBAAiB;IACzB,WAAW,EAAE;QAAE,QAAQ,GAAG,CAAA;KAAE,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACjC;AAWD,eAAO,MAAM,WAAW,uHAAwB,CAAC;AACjD,eAAO,MAAM,cAAc,4GAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG9D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAc1B,UAAU,iBAAiB;IACzB,WAAW,EAAE;QAAE,QAAO,GAAG,CAAA;KAAE,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;CACjC;AAWD,eAAO,MAAM,WAAW,oIAAwB,CAAC;AACjD,eAAO,MAAM,aAAa,+HAA0B,CAAC;AACrD,eAAO,MAAM,cAAc,yHAA2B,CAAC"}
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.FluxController = exports.FluxOpenapi = void 0;
20
+ exports.FluxController = exports.FluxOpenapiUi = exports.FluxOpenapi = void 0;
21
21
  const fastify_plugin_1 = __importDefault(require("fastify-plugin"));
22
22
  const controllers_1 = require("./flux/controllers");
23
23
  const openapi_1 = require("./openapi");
@@ -29,11 +29,15 @@ __exportStar(require("./fastify"), exports);
29
29
  const FluxOpenapiHelper = async (fastify, options) => {
30
30
  (0, openapi_1.openapi)(fastify, options);
31
31
  };
32
+ const FluxOpenapiUiHelper = async (fastify, options) => {
33
+ (0, openapi_1.openapiUi)(fastify, options);
34
+ };
32
35
  const FluxControllerHelper = async (fastify, options) => {
33
36
  options.controllers.forEach((controller) => {
34
37
  (0, controllers_1.registerController)(controller, { fastify, mapping: options.mapping });
35
38
  });
36
39
  };
37
40
  exports.FluxOpenapi = (0, fastify_plugin_1.default)(FluxOpenapiHelper);
41
+ exports.FluxOpenapiUi = (0, fastify_plugin_1.default)(FluxOpenapiUiHelper);
38
42
  exports.FluxController = (0, fastify_plugin_1.default)(FluxControllerHelper);
39
43
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,oEAAgC;AAGhC,oDAAwD;AACxD,uCAAoC;AAIpC,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB;AACxB,yCAAuB;AACvB,4CAA0B;AAE1B,MAAM,iBAAiB,GAEnB,KAAK,EAAE,OAAwB,EAAE,OAAO,EAAE,EAAE;IAC9C,IAAA,iBAAO,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC5B,CAAC,CAAC;AAOF,MAAM,oBAAoB,GAA0C,KAAK,EACvE,OAAwB,EACxB,OAAO,EACP,EAAE;IACF,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;QACzC,IAAA,gCAAkB,EAAC,UAAU,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,OA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stance } from 'fastify';
2
2
  import { FastifyDynamicSwaggerOptions } from '@fastify/swagger';
3
+ import { FastifySwaggerUiOptions } from '@fastify/swagger-ui';
4
+ export declare function openapiUi(fastify: FastifyInstance, additionalOptions?: FastifySwaggerUiOptions): void;
3
5
  export declare function openapi(fastify: FastifyInstance, additionalOptions?: FastifyDynamicSwaggerOptions): void;
4
6
  //# sourceMappingURL=openapi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAgB,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAGzE,wBAAgB,OAAO,CACrB,OAAO,EAAE,eAAe,EACxB,iBAAiB,CAAC,EAAE,4BAA4B,QA8CjD"}
1
+ {"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAgB,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAkB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAIzE,wBAAgB,SAAS,CACvB,OAAO,EAAE,eAAe,EACxB,iBAAiB,CAAC,EAAE,uBAAuB,QAW5C;AAGD,wBAAgB,OAAO,CACrB,OAAO,EAAE,eAAe,EACxB,iBAAiB,CAAC,EAAE,4BAA4B,QAwCjD"}
package/dist/openapi.js CHANGED
@@ -3,13 +3,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.openapi = void 0;
6
+ exports.openapi = exports.openapiUi = void 0;
7
7
  const lodash_1 = __importDefault(require("lodash"));
8
8
  const swagger_1 = __importDefault(require("@fastify/swagger"));
9
+ const swagger_ui_1 = __importDefault(require("@fastify/swagger-ui"));
9
10
  const fs_1 = require("fs");
10
- function openapi(fastify, additionalOptions) {
11
+ function openapiUi(fastify, additionalOptions) {
11
12
  const options = {
12
13
  routePrefix: '/',
14
+ uiConfig: {
15
+ docExpansion: 'list',
16
+ deepLinking: false,
17
+ },
18
+ };
19
+ fastify.register(swagger_ui_1.default, lodash_1.default.merge(options, additionalOptions));
20
+ }
21
+ exports.openapiUi = openapiUi;
22
+ function openapi(fastify, additionalOptions) {
23
+ const options = {
13
24
  refResolver: {
14
25
  buildLocalReference(json) {
15
26
  return json.$id;
@@ -22,11 +33,6 @@ function openapi(fastify, additionalOptions) {
22
33
  version: '',
23
34
  },
24
35
  },
25
- uiConfig: {
26
- docExpansion: 'list',
27
- deepLinking: false,
28
- },
29
- exposeRoute: true,
30
36
  };
31
37
  fastify.register(swagger_1.default, lodash_1.default.merge(options, additionalOptions));
32
38
  fastify.ready(async () => {
@@ -1 +1 @@
1
- {"version":3,"file":"openapi.js","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":";;;;;;AACA,oDAAuB;AACvB,+DAAyE;AACzE,2BAAiD;AAEjD,SAAgB,OAAO,CACrB,OAAwB,EACxB,iBAAgD;IAEhD,MAAM,OAAO,GAAiC;QAC5C,WAAW,EAAE,GAAG;QAChB,WAAW,EAAE;YACX,mBAAmB,CAAC,IAAS;gBAC3B,OAAO,IAAI,CAAC,GAAG,CAAC;YAClB,CAAC;SACF;QACD,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,EAAE;gBACf,OAAO,EAAE,EAAE;aACZ;SACF;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,MAAM;YACpB,WAAW,EAAE,KAAK;SACnB;QACD,WAAW,EAAE,IAAI;KAClB,CAAC;IAEF,OAAO,CAAC,QAAQ,CAAC,iBAAO,EAAE,gBAAC,CAAC,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;I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AW,EAAE;YACX,mBAAmB,CAAC,IAAS;gBAC3B,OAAO,IAAI,CAAC,GAAG,CAAC;YAClB,CAAC;SACF;QACD,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,EAAE;gBACf,OAAO,EAAE,EAAE;aACZ;SACF;KACF,CAAC;IAEF,OAAO,CAAC,QAAQ,CAAC,iBAAO,EAAE,gBAAC,CAAC,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAE/D,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE;QACvB,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;QAC3C,IAAI,CAAC,kBAAkB,EAAE;YACvB,OAAO;SACR;QAED,MAAM,GAAG,GAAS,OAAe,CAAC,OAAO,EAAE,CAAC;QAE5C,MAAM,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,iBAAiB,kBAAkB,OAAO,CAAC;QACxE,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAE5C,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI;YACF,GAAG,GAAG,IAAA,iBAAY,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAClC,oCAAoC;SACrC;QAAC,OAAO,GAAG,EAAE,GAAG;QAEjB,IAAI,GAAG,KAAK,MAAM,EAAE;YAClB,IAAA,kBAAa,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SAC7B;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AA1CD,0BA0CC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastify-flux",
3
- "version": "2.19.5",
3
+ "version": "2.19.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -8,23 +8,25 @@
8
8
  "author": "",
9
9
  "license": "ISC",
10
10
  "devDependencies": {
11
- "@fastify/swagger": "7.4.1",
12
- "@types/jest": "^29.0.0",
13
- "@types/lodash": "^4.14.184",
11
+ "@fastify/swagger": "8.1.0",
12
+ "@fastify/swagger-ui": "^1.1.0",
13
+ "@types/jest": "^29.2.0",
14
+ "@types/lodash": "^4.14.186",
14
15
  "esbuild-jest": "^0.5.0",
15
- "fastify": "~4.5.3",
16
- "jest": "^29.0.1",
17
- "typescript": "4.8.2"
16
+ "fastify": "~4.9.2",
17
+ "jest": "^29.2.2",
18
+ "typescript": "4.8.4"
18
19
  },
19
20
  "peerDependencies": {
20
- "@fastify/swagger": "7.x",
21
+ "@fastify/swagger": "8.x",
22
+ "@fastify/swagger-ui": "^1.",
21
23
  "fastify": "4.x"
22
24
  },
23
25
  "files": [
24
26
  "dist"
25
27
  ],
26
28
  "dependencies": {
27
- "fastify-plugin": "^4.2.1",
29
+ "fastify-plugin": "^4.3.0",
28
30
  "lodash": "^4.17.21"
29
31
  },
30
32
  "scripts": {