@torrent-tv/proxy 2.55.11 → 2.55.12
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/CHANGELOG.md +4 -0
- package/bin/cli.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 2.55.12
|
|
2
|
+
|
|
3
|
+
- **Fix**: `--sctp-debug` now passes the required callback to `initLogger` (`node-datachannel` 0.32.x needs two args). The 2.55.10 single-arg call always threw `Function expected` and left verbose logging off.
|
|
4
|
+
|
|
1
5
|
## 2.55.11
|
|
2
6
|
|
|
3
7
|
- **Fix**: `initLogger('Verbose')` call for `--sctp-debug` used the wrong `this` binding and never enabled verbose logging (`Function expected`). Call it as a method on the imported module's default export so the SCTP debug lines appear.
|
package/bin/cli.js
CHANGED
|
@@ -290,7 +290,11 @@ try {
|
|
|
290
290
|
const mod = await import("node-datachannel");
|
|
291
291
|
const target = mod.default ?? mod;
|
|
292
292
|
if (typeof target.initLogger === "function") {
|
|
293
|
-
target.initLogger("Verbose")
|
|
293
|
+
target.initLogger("Verbose", (level, message) => {
|
|
294
|
+
if (typeof message === "string" && message.startsWith("usrsctp:")) {
|
|
295
|
+
logger.info(message);
|
|
296
|
+
}
|
|
297
|
+
});
|
|
294
298
|
logger.info("SCTP debug verbose logging enabled");
|
|
295
299
|
}
|
|
296
300
|
} catch (error) {
|