@tramvai/tokens-server-private 4.0.5 → 4.0.6

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.es.js CHANGED
@@ -57,23 +57,23 @@ const WEB_FASTIFY_APP_METRICS_TOKEN = createToken('webApp fastify metrics', { mu
57
57
  * @description
58
58
  * You can limit requests of application.
59
59
  */
60
- const WEB_FASTIFY_APP_LIMITER_TOKEN = createToken('webApp fastify limiter', { multi: true });
60
+ const WEB_FASTIFY_APP_LIMITER_TOKEN = createToken('webApp fastify limiter', { multi: true, scope: Scope.SINGLETON });
61
61
  /**
62
62
  * @description
63
63
  * Subscription to after web-app initialization.
64
64
  * It is called after any other handlers
65
65
  */
66
- const WEB_FASTIFY_APP_AFTER_INIT_TOKEN = createToken('webApp fastify afterInit', { multi: true });
66
+ const WEB_FASTIFY_APP_AFTER_INIT_TOKEN = createToken('webApp fastify afterInit', { multi: true, scope: Scope.SINGLETON });
67
67
  /**
68
68
  * @description
69
69
  * Subscription to error handler before any default handlers.
70
70
  */
71
- const WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN = createToken('webApp fastify beforeError', { multi: true });
71
+ const WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN = createToken('webApp fastify beforeError', { multi: true, scope: Scope.SINGLETON });
72
72
  /**
73
73
  * @description
74
74
  * Subscription to error handler after default handlers.
75
75
  */
76
- const WEB_FASTIFY_APP_AFTER_ERROR_TOKEN = createToken('webApp fastify afterError', { multi: true });
76
+ const WEB_FASTIFY_APP_AFTER_ERROR_TOKEN = createToken('webApp fastify afterError', { multi: true, scope: Scope.SINGLETON });
77
77
  /**
78
78
  * @description
79
79
  * Http server for utility routes
package/lib/index.js CHANGED
@@ -61,23 +61,23 @@ const WEB_FASTIFY_APP_METRICS_TOKEN = dippy.createToken('webApp fastify metrics'
61
61
  * @description
62
62
  * You can limit requests of application.
63
63
  */
64
- const WEB_FASTIFY_APP_LIMITER_TOKEN = dippy.createToken('webApp fastify limiter', { multi: true });
64
+ const WEB_FASTIFY_APP_LIMITER_TOKEN = dippy.createToken('webApp fastify limiter', { multi: true, scope: dippy.Scope.SINGLETON });
65
65
  /**
66
66
  * @description
67
67
  * Subscription to after web-app initialization.
68
68
  * It is called after any other handlers
69
69
  */
70
- const WEB_FASTIFY_APP_AFTER_INIT_TOKEN = dippy.createToken('webApp fastify afterInit', { multi: true });
70
+ const WEB_FASTIFY_APP_AFTER_INIT_TOKEN = dippy.createToken('webApp fastify afterInit', { multi: true, scope: dippy.Scope.SINGLETON });
71
71
  /**
72
72
  * @description
73
73
  * Subscription to error handler before any default handlers.
74
74
  */
75
- const WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN = dippy.createToken('webApp fastify beforeError', { multi: true });
75
+ const WEB_FASTIFY_APP_BEFORE_ERROR_TOKEN = dippy.createToken('webApp fastify beforeError', { multi: true, scope: dippy.Scope.SINGLETON });
76
76
  /**
77
77
  * @description
78
78
  * Subscription to error handler after default handlers.
79
79
  */
80
- const WEB_FASTIFY_APP_AFTER_ERROR_TOKEN = dippy.createToken('webApp fastify afterError', { multi: true });
80
+ const WEB_FASTIFY_APP_AFTER_ERROR_TOKEN = dippy.createToken('webApp fastify afterError', { multi: true, scope: dippy.Scope.SINGLETON });
81
81
  /**
82
82
  * @description
83
83
  * Http server for utility routes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-server-private",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "Tramvai private tokens for @tramvai/module-server",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -18,7 +18,7 @@
18
18
  "watch": "tsc -w"
19
19
  },
20
20
  "dependencies": {
21
- "@tramvai/papi": "4.0.5"
21
+ "@tramvai/papi": "4.0.6"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@tinkoff/dippy": "0.10.2",