fix(dependencies): Ensure correct ordering of dependencies and improve logging format.
This commit is contained in:
parent
a959c2ad0e
commit
385d984727
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-02-21 - 3.9.1 - fix(dependencies)
|
||||||
|
Ensure correct ordering of dependencies and improve logging format.
|
||||||
|
|
||||||
|
- Reorder dependencies in package.json for better readability.
|
||||||
|
- Use pretty-ms for displaying time durations in logs.
|
||||||
|
|
||||||
## 2025-02-21 - 3.9.0 - feat(smartproxy.portproxy)
|
## 2025-02-21 - 3.9.0 - feat(smartproxy.portproxy)
|
||||||
Add logging of connection durations to PortProxy
|
Add logging of connection durations to PortProxy
|
||||||
|
|
||||||
|
@ -29,10 +29,11 @@
|
|||||||
"@push.rocks/smartrequest": "^2.0.23",
|
"@push.rocks/smartrequest": "^2.0.23",
|
||||||
"@push.rocks/smartstring": "^4.0.15",
|
"@push.rocks/smartstring": "^4.0.15",
|
||||||
"@tsclass/tsclass": "^4.4.0",
|
"@tsclass/tsclass": "^4.4.0",
|
||||||
|
"@types/minimatch": "^5.1.2",
|
||||||
"@types/ws": "^8.5.14",
|
"@types/ws": "^8.5.14",
|
||||||
"ws": "^8.18.0",
|
|
||||||
"minimatch": "^9.0.3",
|
"minimatch": "^9.0.3",
|
||||||
"@types/minimatch": "^5.1.2"
|
"pretty-ms": "^9.2.0",
|
||||||
|
"ws": "^8.18.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@ -35,6 +35,9 @@ importers:
|
|||||||
minimatch:
|
minimatch:
|
||||||
specifier: ^9.0.3
|
specifier: ^9.0.3
|
||||||
version: 9.0.5
|
version: 9.0.5
|
||||||
|
pretty-ms:
|
||||||
|
specifier: ^9.2.0
|
||||||
|
version: 9.2.0
|
||||||
ws:
|
ws:
|
||||||
specifier: ^8.18.0
|
specifier: ^8.18.0
|
||||||
version: 8.18.0
|
version: 8.18.0
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartproxy',
|
name: '@push.rocks/smartproxy',
|
||||||
version: '3.9.0',
|
version: '3.9.1',
|
||||||
description: 'a proxy for handling high workloads of proxying'
|
description: 'a proxy for handling high workloads of proxying'
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,9 @@ import * as smartstring from '@push.rocks/smartstring';
|
|||||||
export { lik, smartdelay, smartrequest, smartpromise, smartstring };
|
export { lik, smartdelay, smartrequest, smartpromise, smartstring };
|
||||||
|
|
||||||
// third party scope
|
// third party scope
|
||||||
|
import prettyMs from 'pretty-ms';
|
||||||
import * as ws from 'ws';
|
import * as ws from 'ws';
|
||||||
import wsDefault from 'ws';
|
import wsDefault from 'ws';
|
||||||
import { minimatch } from 'minimatch';
|
import { minimatch } from 'minimatch';
|
||||||
|
|
||||||
export { wsDefault, ws, minimatch };
|
export { prettyMs, ws, wsDefault, minimatch };
|
||||||
|
@ -329,7 +329,7 @@ export class PortProxy {
|
|||||||
maxOutgoing = duration;
|
maxOutgoing = duration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(`(Interval Log) Active connections: ${this.activeConnections.size}. Longest running incoming: ${maxIncoming}ms, outgoing: ${maxOutgoing}ms`);
|
console.log(`(Interval Log) Active connections: ${this.activeConnections.size}. Longest running incoming: ${plugins.prettyMs(maxIncoming)}, outgoing: ${plugins.prettyMs(maxOutgoing)}`);
|
||||||
}, 10000);
|
}, 10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user