@shadow-library/fastify 0.0.12 → 0.0.13

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/cjs/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from './interfaces/index.js';
11
11
  export * from './module/index.js';
12
12
  export * from './services/index.js';
13
13
  export * from './server.error.js';
14
+ export { FASTIFY_INSTANCE } from './constants.js';
package/cjs/index.js CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.FASTIFY_INSTANCE = void 0;
17
18
  /**
18
19
  * Importing npm packages
19
20
  */
@@ -27,3 +28,5 @@ __exportStar(require("./interfaces/index.js"), exports);
27
28
  __exportStar(require("./module/index.js"), exports);
28
29
  __exportStar(require("./services/index.js"), exports);
29
30
  __exportStar(require("./server.error.js"), exports);
31
+ var constants_1 = require("./constants.js");
32
+ Object.defineProperty(exports, "FASTIFY_INSTANCE", { enumerable: true, get: function () { return constants_1.FASTIFY_INSTANCE; } });
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { RouteMetadata } from '@shadow-library/app';
5
5
  import { JSONSchema } from '@shadow-library/class-schema';
6
- import { RouteShorthandOptions } from 'fastify';
6
+ import { FastifyInstance, RouteShorthandOptions } from 'fastify';
7
7
  /**
8
8
  * Importing user defined packages
9
9
  */
@@ -32,3 +32,4 @@ declare module '@shadow-library/app' {
32
32
  }
33
33
  }
34
34
  export type ServerMetadata = RouteMetadata;
35
+ export type ServerInstance = FastifyInstance;
package/esm/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from './interfaces/index.js';
11
11
  export * from './module/index.js';
12
12
  export * from './services/index.js';
13
13
  export * from './server.error.js';
14
+ export { FASTIFY_INSTANCE } from './constants.js';
package/esm/index.js CHANGED
@@ -11,3 +11,4 @@ export * from './interfaces/index.js';
11
11
  export * from './module/index.js';
12
12
  export * from './services/index.js';
13
13
  export * from './server.error.js';
14
+ export { FASTIFY_INSTANCE } from './constants.js';
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { RouteMetadata } from '@shadow-library/app';
5
5
  import { JSONSchema } from '@shadow-library/class-schema';
6
- import { RouteShorthandOptions } from 'fastify';
6
+ import { FastifyInstance, RouteShorthandOptions } from 'fastify';
7
7
  /**
8
8
  * Importing user defined packages
9
9
  */
@@ -32,3 +32,4 @@ declare module '@shadow-library/app' {
32
32
  }
33
33
  }
34
34
  export type ServerMetadata = RouteMetadata;
35
+ export type ServerInstance = FastifyInstance;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shadow-library/fastify",
3
3
  "type": "module",
4
- "version": "0.0.12",
4
+ "version": "0.0.13",
5
5
  "sideEffects": false,
6
6
  "description": "A Fastify wrapper featuring decorator-based routing, middleware and error handling",
7
7
  "repository": {