@jcbuisson/express-x-client 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@jcbuisson/express-x-client",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
- "main": "src/index.js",
5
+ "type": "module",
6
+ "main": "src/index.mjs",
6
7
  "repository": {
7
8
  "type": "git",
8
9
  "url": "git@gitlab.com:buisson31/express-x-client.git"
@@ -26,7 +26,7 @@ function expressxClient(socket) {
26
26
  // on receiving response from service request
27
27
  socket.on('client-response', ({ uid, error, result }) => {
28
28
  console.log('client-response', uid, error, result)
29
- if (!waitingPromisesByUid[uid]) return // may not exist because of timeout
29
+ if (!waitingPromisesByUid[uid]) return // may not exist because a timeout removed it
30
30
  const [resolve, reject] = waitingPromisesByUid[uid]
31
31
  if (error) {
32
32
  reject(error)