@torrent-tv/proxy 2.5.8 → 2.5.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@torrent-tv/proxy",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.11",
|
|
4
4
|
"description": "Torrent proxy client that exposes webseed-like HTTP stream endpoint.",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"publishConfig": {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"torrent-tv-proxy": "./bin/cli.js"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"patch": "npm version patch && npm publish && git push --follow-tags",
|
|
15
|
-
"minor": "npm version minor && npm publish && git push --follow-tags",
|
|
16
|
-
"major": "npm version major && npm publish && git push --follow-tags",
|
|
14
|
+
"patch": "npm whoami && npm version patch && npm publish && git push --follow-tags",
|
|
15
|
+
"minor": "npm whoami && npm version minor && npm publish && git push --follow-tags",
|
|
16
|
+
"major": "npm whoami && npm version major && npm publish && git push --follow-tags",
|
|
17
17
|
"start": "node ./bin/cli.js",
|
|
18
18
|
"dev": "node --inspect=0 --experimental-network-inspection ./bin/cli.js"
|
|
19
19
|
},
|
|
@@ -143,11 +143,8 @@ export function createDataChannelHandler({ proxyPort, onLog }) {
|
|
|
143
143
|
return;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
if (body != null && typeof body === "string" && body.length > MAX_BODY_BYTES) {
|
|
149
|
-
send(channel, { type: "response-error", requestId, error: "Request body too large." });
|
|
150
|
-
return;
|
|
146
|
+
if (body != null && typeof body === "string" && body.length > 0) {
|
|
147
|
+
log(`[dc] ${method} ${path} body=${body.length} bytes`);
|
|
151
148
|
}
|
|
152
149
|
|
|
153
150
|
const targetUrl = `http://127.0.0.1:${proxyPort}${path}${query ? `?${query}` : ""}`;
|