comq 0.10.2 → 0.10.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.
@@ -46,7 +46,7 @@ jobs:
46
46
 
47
47
  # Initializes the CodeQL tools for scanning.
48
48
  - name: Initialize CodeQL
49
- uses: github/codeql-action/init@v2
49
+ uses: github/codeql-action/init@v3
50
50
  with:
51
51
  languages: ${{ matrix.language }}
52
52
  # If you wish to specify custom queries, you can do so here or in a config file.
@@ -60,7 +60,7 @@ jobs:
60
60
  # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
61
61
  # If this step fails, then you should remove it and run the build manually (see below)
62
62
  - name: Autobuild
63
- uses: github/codeql-action/autobuild@v2
63
+ uses: github/codeql-action/autobuild@v3
64
64
 
65
65
  # ℹ️ Command-line programs to run using the OS shell.
66
66
  # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -73,6 +73,6 @@ jobs:
73
73
  # ./location_of_script_within_repo/buildscript.sh
74
74
 
75
75
  - name: Perform CodeQL Analysis
76
- uses: github/codeql-action/analyze@v2
76
+ uses: github/codeql-action/analyze@v3
77
77
  with:
78
78
  category: "/language:${{matrix.language}}"
@@ -23,7 +23,7 @@ jobs:
23
23
  - name: Setup Node
24
24
  uses: actions/setup-node@v4
25
25
  with:
26
- node-version: 16
26
+ node-version: 20
27
27
  registry-url: 'https://registry.npmjs.org'
28
28
 
29
29
  - name: Checkout
@@ -18,6 +18,19 @@ Feature: Request-reply (RPC)
18
18
  3
19
19
  """
20
20
 
21
+ Scenario: Getting `null` reply
22
+ Given function replying `add_numbers` queue:
23
+ """
24
+ () => { return null }
25
+ """
26
+ When the consumer sends the following request to the `add_numbers` queue:
27
+ """yaml
28
+ """
29
+ Then the consumer receives the reply:
30
+ """yaml
31
+ null
32
+ """
33
+
21
34
  Scenario: Request causing an exception is discarded
22
35
  Given function replying `throw_error` queue:
23
36
  """
package/lerna.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "0.10.2",
2
+ "version": "0.10.3",
3
3
  "conventionalCommits": true
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comq",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "ComQ",
5
5
  "author": {
6
6
  "name": "Artem Gurtovoi",
@@ -32,7 +32,7 @@
32
32
  "@toa.io/generic": "^1.0.0-alpha.0",
33
33
  "@types/amqplib": "^0.10.3",
34
34
  "@types/jest": "^29.5.8",
35
- "husky": "^8.0.3",
35
+ "husky": "^9.0.11",
36
36
  "jest": "^29.5.0",
37
37
  "js-yaml": "^4.1.0",
38
38
  "randomstring": "^1.3.0",
@@ -40,8 +40,8 @@
40
40
  "standard": "^17.1.0"
41
41
  },
42
42
  "dependencies": {
43
- "amqplib": "^0.10.3",
44
- "msgpackr": "^1.9.5",
43
+ "amqplib": "^0.10.4",
44
+ "msgpackr": "^1.10.2",
45
45
  "promex": "^0.1.1",
46
46
  "reretry": "^0.1.0"
47
47
  },
package/source/io.js CHANGED
@@ -218,7 +218,7 @@ class IO {
218
218
 
219
219
  if (request.properties.replyTo === undefined) return
220
220
 
221
- const iterator = typeof reply === 'object' &&
221
+ const iterator = typeof reply === 'object' && reply !== null &&
222
222
  (Symbol.asyncIterator in reply ||
223
223
  (Symbol.iterator in reply && !Array.isArray(reply) && !Buffer.isBuffer(reply)))
224
224