@go-mailer/jarvis 10.4.1 → 10.4.3

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/index.js CHANGED
@@ -10,6 +10,7 @@ const { RequestLogger, ProcessLogger } = require('./lib/middlewares/logger')
10
10
  const Utility = require('./lib/utilitiy/index')
11
11
  const { HTTPCacheManager } = require('./lib/middlewares/cache/manager')
12
12
  const { AutoHealer } = require('./lib/middlewares/healer')
13
+ const { localCache } = require('./lib/redis/cache')
13
14
 
14
15
  module.exports = {
15
16
  APIClient,
@@ -20,6 +21,7 @@ module.exports = {
20
21
  FeatureFlag,
21
22
  HTTP,
22
23
  HTTPCacheManager,
24
+ localCache,
23
25
  ProcessLogger,
24
26
  QueryBuilder,
25
27
  Redis,
@@ -1,12 +1,7 @@
1
1
  const cron = require("node-cron");
2
2
 
3
- function AutoHealer(timer = "******", handler = () => {}) {
4
- const execute = async (request, response, next) => {
5
- cron.schedule(timer, handler);
6
- next();
7
- };
8
-
9
- return execute;
3
+ function AutoHealer(timer = "* * * * * *", handler = () => {}) {
4
+ cron.schedule(timer, handler);
10
5
  }
11
6
 
12
7
  module.exports = { AutoHealer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "10.4.1",
3
+ "version": "10.4.3",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:go-mailer-ltd/jarvis-node.git",
6
6
  "author": "Nathan Oguntuberu <nateoguns.work@gmail.com>",