drachtio-srf 4.5.21 → 4.5.22

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.
@@ -1,19 +1,17 @@
1
1
  name: CI
2
2
 
3
- on:
4
- push:
5
- workflow_dispatch:
3
+ on: [push, pull_request]
6
4
 
7
5
  jobs:
8
6
  build:
9
7
  runs-on: ubuntu-latest
10
8
  steps:
11
- - uses: actions/checkout@v2
12
- - uses: actions/setup-node@v1
9
+ - uses: actions/checkout@v3
10
+ - uses: actions/setup-node@v3
13
11
  with:
14
- node-version: 12
12
+ node-version: lts/*
15
13
  - run: npm install
16
- # - run: npm run jslint
14
+ - run: npm run jslint
17
15
  - run: npm test
18
16
 
19
17
 
package/lib/srf.js CHANGED
@@ -1028,7 +1028,7 @@ class Srf extends Emitter {
1028
1028
  return callback(null, {uac, uas}); // successfully connected! resolve promise with both dialogs
1029
1029
  } catch (err) {
1030
1030
  debug({err}, 'createB2BUA: failed creating UAS..done!');
1031
- uac && uac.destroy() ; // failed A leg after success on B: tear down B
1031
+ uac && uac.destroy().catch(() => {}) ; // failed A leg after success on B: tear down B
1032
1032
  return callback(err) ;
1033
1033
  }
1034
1034
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drachtio-srf",
3
- "version": "4.5.21",
3
+ "version": "4.5.22",
4
4
  "description": "drachtio signaling resource framework",
5
5
  "main": "lib/srf.js",
6
6
  "scripts": {