drachtio-srf 4.4.62 → 4.4.63

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/lib/dialog.js CHANGED
@@ -206,7 +206,7 @@ class Dialog extends Emitter {
206
206
  _socket: this.socket
207
207
  }, (err, bye) => {
208
208
  if (err) {
209
- removeDialog(err, bye, callback);
209
+ return removeDialog(err, bye, callback);
210
210
  }
211
211
 
212
212
  bye.on('response', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drachtio-srf",
3
- "version": "4.4.62",
3
+ "version": "4.4.63",
4
4
  "description": "drachtio signaling resource framework",
5
5
  "main": "lib/srf.js",
6
6
  "scripts": {
package/test/parser.js ADDED
@@ -0,0 +1,8 @@
1
+ const test = require('tape') ;
2
+ const exec = require('child_process').exec ;
3
+
4
+ test('testing parser functions', (t) => {
5
+ const Srf = require('..');
6
+ const {parseUri} = Srf;
7
+ t.ok(typeof parseUri === 'function');
8
+ });
@@ -2,10 +2,16 @@ require('assert');
2
2
  require('mocha');
3
3
  require('should');
4
4
 
5
+ const assert = require('assert');
5
6
  const examples = require('sip-message-examples');
6
7
  const SipMessage = require('../../lib/sip-parser/message');
7
8
  const parser = require('../../lib/sip-parser/parser');
8
9
  const parseUri = parser.parseUri;
10
+ const Srf = require('../..');
11
+ assert.ok(typeof parseUri === 'function');
12
+ assert.ok(typeof Srf.parseUri === 'function');
13
+ console.log(`typeof parseUri is ${typeof parseUri}`);
14
+ console.log(`typeof Srf.parseUri is ${typeof Srf.parseUri}`);
9
15
 
10
16
  describe('Parser', function () {
11
17
  it('should provide headers as string values', function () {