sip-lab 1.12.19 → 1.12.23

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/README.md CHANGED
@@ -55,9 +55,13 @@ The above script has detailed comments.
55
55
  Please read it to undestand how to write your own test scripts.
56
56
 
57
57
  The module is known to work properly in Ubuntu 18.04.4, Ubuntu 20.04.4, Debian 8 and Debian 10 (and it is expected to work in Debian 9).
58
+
58
59
  It was originally developed with node v.10 and tested with v.12 and v16.13.1 and it is expected to work with latest versions of node.
60
+
59
61
  (it is known to not work with node v.8)
60
62
 
63
+ It currently doesn't work with Debian 11 (see #29).
64
+
61
65
 
62
66
 
63
67
  ### About the code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sip-lab",
3
- "version": "1.12.19",
3
+ "version": "1.12.23",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "engines": {
package/runtests ADDED
@@ -0,0 +1,15 @@
1
+ #!/bin/bash
2
+
3
+ for i in $(ls samples/*.js)
4
+ do
5
+ node $i
6
+ if [[ $? -ne 0 ]]
7
+ then
8
+ echo "$i failed"
9
+ exit 1
10
+ fi
11
+ done
12
+
13
+ echo
14
+ echo "Success. All tests passed"
15
+
package/src/log.cpp CHANGED
@@ -10,7 +10,7 @@ void _addon_log(int level, const char *fmt, ...) {
10
10
 
11
11
  va_start(args, fmt);
12
12
  flockfile(stdout);
13
- printf(fmt, args);
13
+ vprintf(fmt, args);
14
14
  funlockfile(stdout);
15
15
  va_end(args);
16
16
  }