@nxtedition/deepstream.io-client-js 23.4.50 → 23.4.51

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/deepstream.io-client-js",
3
- "version": "23.4.50",
3
+ "version": "23.4.51",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "bugs": {
@@ -325,12 +325,14 @@ class RecordHandler {
325
325
  const record = this.getRecord(name).subscribe(onUpdate)
326
326
 
327
327
  if (timeoutValue && state && record.state < state) {
328
- timeoutHandle = timers.timers.setTimeout(() => {
328
+ timeoutHandle = timers.setTimeout(() => {
329
329
  const expected = C.RECORD_STATE_NAME[state]
330
330
  const current = C.RECORD_STATE_NAME[record.state]
331
331
  o.error(
332
332
  Object.assign(
333
- new Error(`timeout after ${timeoutValue / 1e3}s: ${name} [${current}<${expected}]`),
333
+ new Error(
334
+ `timeout after ${timeoutValue / 1e3}s: ${record.name} [${current}<${expected}]`
335
+ ),
334
336
  { code: 'ETIMEDOUT' }
335
337
  )
336
338
  )