dynapm 1.0.12 → 1.0.13

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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 格式化时间(毫秒转换为易读格式)
3
+ * @param ms - 毫秒数
4
+ * @returns 格式化后的时间字符串
5
+ */
6
+ export declare function formatTime(ms: number): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynapm",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "DynaPM is a dynamic start-stop application management tool with serverless-like features designed for resource-constrained environments. It starts and stops programs on demand, optimizes resource usage, and is suitable for private deployments. ",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -9,8 +9,7 @@
9
9
  "scripts": {
10
10
  "test": "tsx test/test-all.ts",
11
11
  "test:watch": "nodemon --watch src --exec 'pnpm test'",
12
- "benchmark": "node test/benchmark.js",
13
- "benchmark:multi": "node test/multi-service-benchmark.js",
12
+ "benchmark": "tsx test/benchmark.ts",
14
13
  "build": "rslib build",
15
14
  "publish2npm": "pnpm build && pnpm tsx ./script/updateVersion.ts && npm publish --registry=https://registry.npmjs.org",
16
15
  "runTestServer": "pnpm tsx ./test/server1.ts"
@@ -36,7 +35,8 @@
36
35
  "node-fetch": "^3.3.2",
37
36
  "pino": "^10.3.0",
38
37
  "pino-pretty": "^13.1.3",
39
- "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.57.0"
38
+ "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.57.0",
39
+ "undici": "^7.21.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@rslib/core": "^0.4.1",