@neuxnet/neux-cli 0.2.5 → 0.2.6
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 +1 -1
- package/src/core/proxy.js +3 -1
package/package.json
CHANGED
package/src/core/proxy.js
CHANGED
|
@@ -86,7 +86,9 @@ function requestTarget(target, options) {
|
|
|
86
86
|
|
|
87
87
|
function parseTimeout(value) {
|
|
88
88
|
const parsed = Number.parseInt(value, 10)
|
|
89
|
-
return Number.isFinite(parsed)
|
|
89
|
+
return Number.isFinite(parsed) && parsed > 0
|
|
90
|
+
? Math.min(parsed, 30000)
|
|
91
|
+
: 30000
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
export function createProxyHandler({
|