redis-smq 7.2.0 → 7.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 7.2.1 (2023-02-15)
4
+
5
+ * build: update deps (e362d7c)
6
+ * fix: use path.resolve() to fix 'no such file or directory' error (b713fbe)
7
+ * build: bump up redis-smq-common to v1.0.6 (fc25b15)
8
+
3
9
  ## 7.2.0 (2023-01-06)
4
10
 
5
11
  * build: fix NPM vulnerability warnings (e2ca247)
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ELuaScriptName = void 0;
4
4
  const redis_smq_common_1 = require("redis-smq-common");
5
5
  const fs = require("fs");
6
+ const path_1 = require("path");
6
7
  var ELuaScriptName;
7
8
  (function (ELuaScriptName) {
8
9
  ELuaScriptName["ENQUEUE_SCHEDULED_MESSAGE"] = "ENQUEUE_SCHEDULED_MESSAGE";
@@ -13,11 +14,17 @@ var ELuaScriptName;
13
14
  ELuaScriptName["CREATE_QUEUE"] = "CREATE_QUEUE";
14
15
  ELuaScriptName["INIT_CONSUMER_QUEUE"] = "INIT_CONSUMER_QUEUE";
15
16
  })(ELuaScriptName = exports.ELuaScriptName || (exports.ELuaScriptName = {}));
16
- redis_smq_common_1.RedisClient.addScript(ELuaScriptName.ENQUEUE_SCHEDULED_MESSAGE, fs.readFileSync(`${__dirname}/lua/enqueue-scheduled-message.lua`).toString());
17
- redis_smq_common_1.RedisClient.addScript(ELuaScriptName.PUBLISH_MESSAGE, fs.readFileSync(`${__dirname}/lua/publish-message.lua`).toString());
18
- redis_smq_common_1.RedisClient.addScript(ELuaScriptName.REQUEUE_MESSAGE, fs.readFileSync(`${__dirname}/lua/requeue-message.lua`).toString());
19
- redis_smq_common_1.RedisClient.addScript(ELuaScriptName.SCHEDULE_MESSAGE, fs.readFileSync(`${__dirname}/lua/schedule-message.lua`).toString());
20
- redis_smq_common_1.RedisClient.addScript(ELuaScriptName.HAS_QUEUE_RATE_EXCEEDED, fs.readFileSync(`${__dirname}/lua/has-queue-rate-exceeded.lua`).toString());
21
- redis_smq_common_1.RedisClient.addScript(ELuaScriptName.CREATE_QUEUE, fs.readFileSync(`${__dirname}/lua/create-queue.lua`).toString());
22
- redis_smq_common_1.RedisClient.addScript(ELuaScriptName.INIT_CONSUMER_QUEUE, fs.readFileSync(`${__dirname}/lua/init-consumer-queue.lua`).toString());
17
+ redis_smq_common_1.RedisClient.addScript(ELuaScriptName.ENQUEUE_SCHEDULED_MESSAGE, fs
18
+ .readFileSync((0, path_1.resolve)(__dirname, './lua/enqueue-scheduled-message.lua'))
19
+ .toString());
20
+ redis_smq_common_1.RedisClient.addScript(ELuaScriptName.PUBLISH_MESSAGE, fs.readFileSync((0, path_1.resolve)(__dirname, './lua/publish-message.lua')).toString());
21
+ redis_smq_common_1.RedisClient.addScript(ELuaScriptName.REQUEUE_MESSAGE, fs.readFileSync((0, path_1.resolve)(__dirname, './lua/requeue-message.lua')).toString());
22
+ redis_smq_common_1.RedisClient.addScript(ELuaScriptName.SCHEDULE_MESSAGE, fs.readFileSync((0, path_1.resolve)(__dirname, './lua/schedule-message.lua')).toString());
23
+ redis_smq_common_1.RedisClient.addScript(ELuaScriptName.HAS_QUEUE_RATE_EXCEEDED, fs
24
+ .readFileSync((0, path_1.resolve)(__dirname, './lua/has-queue-rate-exceeded.lua'))
25
+ .toString());
26
+ redis_smq_common_1.RedisClient.addScript(ELuaScriptName.CREATE_QUEUE, fs.readFileSync((0, path_1.resolve)(__dirname, './lua/create-queue.lua')).toString());
27
+ redis_smq_common_1.RedisClient.addScript(ELuaScriptName.INIT_CONSUMER_QUEUE, fs
28
+ .readFileSync((0, path_1.resolve)(__dirname, './lua/init-consumer-queue.lua'))
29
+ .toString());
23
30
  //# sourceMappingURL=redis-client.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redis-smq",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "description": "A simple high-performance Redis message queue for Node.js.",
5
5
  "author": "Weyoss <weyoss@protonmail.com>",
6
6
  "license": "MIT",
@@ -34,21 +34,21 @@
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
36
  "bluebird": "3.7.2",
37
- "cron-parser": "3.5.0",
37
+ "cron-parser": "4.7.1",
38
38
  "lodash": "4.17.21",
39
- "uuid": "8.3.2"
39
+ "uuid": "9.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "redis-smq-common": "^1.0.5"
42
+ "redis-smq-common": "^1.0.6"
43
43
  },
44
44
  "devDependencies": {
45
- "@types/bluebird": "3.5.36",
45
+ "@types/bluebird": "3.5.38",
46
46
  "@types/debug": "4.1.7",
47
47
  "@types/jest": "27.0.2",
48
- "@types/lodash": "4.14.175",
48
+ "@types/lodash": "4.14.191",
49
49
  "@types/node": "16.10.2",
50
50
  "@types/supertest": "2.0.11",
51
- "@types/uuid": "8.3.1",
51
+ "@types/uuid": "9.0.0",
52
52
  "@typescript-eslint/eslint-plugin": "4.32.0",
53
53
  "@typescript-eslint/parser": "4.32.0",
54
54
  "coveralls": "3.1.1",
@@ -59,7 +59,7 @@
59
59
  "jest": "27.2.4",
60
60
  "lint-staged": "11.1.2",
61
61
  "prettier": "2.4.1",
62
- "redis-smq-common": "^1.0.5",
62
+ "redis-smq-common": "^1.0.6",
63
63
  "supertest": "6.1.6",
64
64
  "ts-jest": "27.0.5",
65
65
  "ts-node": "10.2.1",