@uphold/fastify-openapi-router-plugin 0.2.0 → 0.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/README.md CHANGED
@@ -58,7 +58,7 @@ await fastify.register(import('@fastify/fastify-openapi-router-plugin'), {
58
58
  | ------ | ---- | ---------- |
59
59
  | `spec` | `string` or `object` | **REQUIRED**. A file path or object of your OpenAPI specification. |
60
60
  | `securityHandlers` | `object` | An object containing the security handlers that match [Security Schemes](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#security-scheme-object) described in your OpenAPI specification. |
61
- | `securityErrorMapper` | `function` | A function that allows mapping the default `UnauthorizedError` to a custom error |
61
+ | `securityErrorMapper` | `function` | A function that allows mapping the default `UnauthorizedError` to a custom error. |
62
62
 
63
63
  #### `spec`
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uphold/fastify-openapi-router-plugin",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "A plugin for Fastify to connect routes with a OpenAPI 3.x specification",
5
5
  "main": "./src/index.js",
6
6
  "types": "types/index.d.ts",
package/src/index.js CHANGED
@@ -2,7 +2,7 @@ import { PLUGIN_NAME } from './utils/constants.js';
2
2
  import fp from 'fastify-plugin';
3
3
  import plugin from './plugin.js';
4
4
 
5
- export { errors } from './errors/index.js';
5
+ export * from './errors/index.js';
6
6
 
7
7
  export default fp(plugin, {
8
8
  fastify: '4.x',