@heyhru/app-dms-server 0.5.3 → 0.6.0

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +15 -15
package/dist/index.js CHANGED
@@ -32,17 +32,19 @@ function verifyToken(token) {
32
32
  }
33
33
 
34
34
  // src/logger.ts
35
- import pinoRoll from "pino-roll";
35
+ import createWriteStream from "pino-roll";
36
36
  import { createLogger } from "@heyhru/common-util-logger";
37
- var { createWriteStream } = pinoRoll;
38
37
  async function buildStreams() {
39
38
  if (config.nodeEnv !== "production" || !config.logDir) {
40
39
  return void 0;
41
40
  }
42
41
  const fileStream = await createWriteStream({
43
- file: `${config.logDir}/app.log`,
42
+ file: `${config.logDir}/app`,
44
43
  frequency: "daily",
44
+ dateFormat: "yyyy-MM-dd",
45
45
  size: "500m",
46
+ symlink: true,
47
+ limit: { count: 3 },
46
48
  mkdir: true
47
49
  });
48
50
  return [{ stream: process.stdout }, { stream: fileStream }];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.5.3",
6
+ "version": "0.6.0",
7
7
  "description": "DMS backend API server built on Fastify",
8
8
  "type": "module",
9
9
  "main": "./dist/index.mjs",
@@ -18,20 +18,20 @@
18
18
  "clean": "rm -rf dist"
19
19
  },
20
20
  "dependencies": {
21
- "@fastify/cors": "^11.0.0",
22
- "@heyhru/business-dms-approval": "0.5.1",
23
- "@heyhru/business-dms-audit": "0.4.0",
24
- "@heyhru/business-dms-datasource": "0.5.1",
25
- "@heyhru/business-dms-saved-sql": "0.4.0",
26
- "@heyhru/business-dms-user": "0.4.0",
27
- "@heyhru/common-util-logger": "0.5.1",
28
- "@heyhru/server-plugin-jwt": "0.4.0",
29
- "@heyhru/server-plugin-mysql": "0.4.0",
30
- "@heyhru/server-plugin-pg": "0.4.0",
31
- "@heyhru/server-util-crypto": "0.4.0",
21
+ "@fastify/cors": "^11.2.0",
22
+ "@heyhru/business-dms-approval": "0.6.0",
23
+ "@heyhru/business-dms-audit": "0.6.0",
24
+ "@heyhru/business-dms-datasource": "0.6.0",
25
+ "@heyhru/business-dms-saved-sql": "0.6.0",
26
+ "@heyhru/business-dms-user": "0.6.0",
27
+ "@heyhru/common-util-logger": "0.6.0",
28
+ "@heyhru/server-plugin-jwt": "0.6.0",
29
+ "@heyhru/server-plugin-mysql": "0.6.0",
30
+ "@heyhru/server-plugin-pg": "0.6.0",
31
+ "@heyhru/server-util-crypto": "0.6.0",
32
32
  "fastify": "^5.8.4",
33
33
  "node-sql-parser": "^5.4.0",
34
- "pino-roll": "^1.0.0"
34
+ "pino-roll": "^4.0.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -39,7 +39,7 @@
39
39
  "tsup": "^8.5.1",
40
40
  "tsx": "^4.21.0",
41
41
  "typescript": "^6.0.2",
42
- "vitest": "^4.1.2"
42
+ "vitest": "^4.1.4"
43
43
  },
44
- "gitHead": "2888dcf069f20341272745b9d622b965acf04504"
44
+ "gitHead": "c25e6fe17f0b15e07ba534e712cc723be02051b3"
45
45
  }