@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuxnet/neux-cli",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Standalone CLI and Node API for Neux mini program build, pack, preview, and CI automation.",
5
5
  "type": "module",
6
6
  "bin": {
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) ? Math.min(Math.max(parsed, 1), 30000) : 30000
89
+ return Number.isFinite(parsed) && parsed > 0
90
+ ? Math.min(parsed, 30000)
91
+ : 30000
90
92
  }
91
93
 
92
94
  export function createProxyHandler({