drachtio-srf 5.0.23 → 5.0.24

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.
Files changed (2) hide show
  1. package/lib/srf.js +4 -4
  2. package/package.json +2 -2
package/lib/srf.js CHANGED
@@ -9,7 +9,7 @@ const SipError = require('./sip_error');
9
9
  const debug = require('debug')('drachtio:srf');
10
10
  const Socket = require('net').Socket;
11
11
  const noop = () => {};
12
- const idgen = require('short-uuid')();
12
+ const uid = require('short-uuid');
13
13
  const sdpTransform = require('sdp-transform');
14
14
 
15
15
  class DialogState {}
@@ -225,7 +225,7 @@ class Srf extends Emitter {
225
225
  aor: `${uri.user || 'unknown'}@${uri.host || 'unknown'}`,
226
226
  callId: req.get('Call-ID'),
227
227
  localTag: from.params.tag,
228
- id: idgen.new()
228
+ id: uid.generate()
229
229
  };
230
230
  opts.dialogStateEmitter.emit('stateChange', req._dialogState);
231
231
  }
@@ -496,7 +496,7 @@ class Srf extends Emitter {
496
496
  aor: `${uri.user || 'unknown'}@${uri.host || 'unknown'}`,
497
497
  callId: req.get('Call-ID'),
498
498
  localTag: from.params.tag,
499
- id: idgen.new()
499
+ id: uid.generate()
500
500
  };
501
501
  }
502
502
  opts.dialogStateEmitter.emit('stateChange', req._dialogState);
@@ -1054,7 +1054,7 @@ class Srf extends Emitter {
1054
1054
  aor: `${uri.user || 'unknown'}@${uri.host || 'unknown'}`,
1055
1055
  callId: req.get('Call-ID'),
1056
1056
  remoteTag: from.params.tag,
1057
- id: idgen.new()
1057
+ id: uid.generate()
1058
1058
  };
1059
1059
  opts.dialogStateEmitter.emit('stateChange', req._dialogState);
1060
1060
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drachtio-srf",
3
- "version": "5.0.23",
3
+ "version": "5.0.24",
4
4
  "description": "drachtio signaling resource framework",
5
5
  "main": "lib/srf.js",
6
6
  "types": "lib/@types/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "node-noop": "^1.0.0",
30
30
  "only": "^0.0.2",
31
31
  "sdp-transform": "^2.15.0",
32
- "short-uuid": "^5.2.0",
32
+ "short-uuid": "^6.0.3",
33
33
  "sip-methods": "^0.3.0",
34
34
  "sip-status": "^0.1.0",
35
35
  "utils-merge": "^1.0.1",