@tramvai/tokens-server-private 1.95.2 → 1.98.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/lib/index.d.ts CHANGED
@@ -56,5 +56,15 @@ export declare const WEB_FASTIFY_APP_PROCESS_ERROR_TOKEN: FASTIFY_APP_ERROR_HAND
56
56
  * Subscription to error handler after default handlers.
57
57
  */
58
58
  export declare const WEB_FASTIFY_APP_AFTER_ERROR_TOKEN: FASTIFY_APP_ERROR_HANDLER;
59
+ /**
60
+ * @description
61
+ * Http server for utility routes
62
+ */
63
+ export declare const UTILITY_SERVER_TOKEN: Server;
64
+ /**
65
+ * @description
66
+ * Web app for utility routes
67
+ */
68
+ export declare const UTILITY_WEB_FASTIFY_APP_TOKEN: FastifyInstance<Server, import("http").IncomingMessage, import("http").ServerResponse, import("fastify").FastifyLoggerInstance>;
59
69
  export declare type FASTIFY_APP_INIT_HANDLER = Array<(app: FastifyInstance) => Promise<void> | void>;
60
70
  export declare type FASTIFY_APP_ERROR_HANDLER = Array<(error: FastifyError, request: FastifyRequest, reply: FastifyReply) => Promise<string | undefined | void> | string | undefined | void>;
package/lib/index.es.js CHANGED
@@ -53,5 +53,15 @@ const WEB_FASTIFY_APP_PROCESS_ERROR_TOKEN = createToken('webApp fastify error',
53
53
  * Subscription to error handler after default handlers.
54
54
  */
55
55
  const WEB_FASTIFY_APP_AFTER_ERROR_TOKEN = createToken('webApp fastify afterError', { multi: true });
56
+ /**
57
+ * @description
58
+ * Http server for utility routes
59
+ */
60
+ const UTILITY_SERVER_TOKEN = createToken('server utilityServer');
61
+ /**
62
+ * @description
63
+ * Web app for utility routes
64
+ */
65
+ const UTILITY_WEB_FASTIFY_APP_TOKEN = createToken('webApp utilityServer');
56
66
 
57
- export { SERVER_FACTORY_TOKEN, WEB_FASTIFY_APP_AFTER_ERROR_TOKEN, WEB_FASTIFY_APP_AFTER_INIT_TOKEN, WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN, WEB_FASTIFY_APP_BEFORE_INIT_TOKEN, WEB_FASTIFY_APP_FACTORY_TOKEN, WEB_FASTIFY_APP_INIT_TOKEN, WEB_FASTIFY_APP_LIMITER_TOKEN, WEB_FASTIFY_APP_PROCESS_ERROR_TOKEN, WEB_FASTIFY_APP_TOKEN };
67
+ export { SERVER_FACTORY_TOKEN, UTILITY_SERVER_TOKEN, UTILITY_WEB_FASTIFY_APP_TOKEN, WEB_FASTIFY_APP_AFTER_ERROR_TOKEN, WEB_FASTIFY_APP_AFTER_INIT_TOKEN, WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN, WEB_FASTIFY_APP_BEFORE_INIT_TOKEN, WEB_FASTIFY_APP_FACTORY_TOKEN, WEB_FASTIFY_APP_INIT_TOKEN, WEB_FASTIFY_APP_LIMITER_TOKEN, WEB_FASTIFY_APP_PROCESS_ERROR_TOKEN, WEB_FASTIFY_APP_TOKEN };
package/lib/index.js CHANGED
@@ -57,8 +57,20 @@ const WEB_FASTIFY_APP_PROCESS_ERROR_TOKEN = dippy.createToken('webApp fastify er
57
57
  * Subscription to error handler after default handlers.
58
58
  */
59
59
  const WEB_FASTIFY_APP_AFTER_ERROR_TOKEN = dippy.createToken('webApp fastify afterError', { multi: true });
60
+ /**
61
+ * @description
62
+ * Http server for utility routes
63
+ */
64
+ const UTILITY_SERVER_TOKEN = dippy.createToken('server utilityServer');
65
+ /**
66
+ * @description
67
+ * Web app for utility routes
68
+ */
69
+ const UTILITY_WEB_FASTIFY_APP_TOKEN = dippy.createToken('webApp utilityServer');
60
70
 
61
71
  exports.SERVER_FACTORY_TOKEN = SERVER_FACTORY_TOKEN;
72
+ exports.UTILITY_SERVER_TOKEN = UTILITY_SERVER_TOKEN;
73
+ exports.UTILITY_WEB_FASTIFY_APP_TOKEN = UTILITY_WEB_FASTIFY_APP_TOKEN;
62
74
  exports.WEB_FASTIFY_APP_AFTER_ERROR_TOKEN = WEB_FASTIFY_APP_AFTER_ERROR_TOKEN;
63
75
  exports.WEB_FASTIFY_APP_AFTER_INIT_TOKEN = WEB_FASTIFY_APP_AFTER_INIT_TOKEN;
64
76
  exports.WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN = WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-server-private",
3
- "version": "1.95.2",
3
+ "version": "1.98.0",
4
4
  "description": "Tramvai private tokens for @tramvai/module-server",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {},
22
22
  "peerDependencies": {
23
23
  "@tinkoff/dippy": "0.7.39",
24
- "fastify": "^3.27.4",
24
+ "fastify": "^3.29.0",
25
25
  "tslib": "^2.0.3"
26
26
  },
27
27
  "devDependencies": {},