@vouchfor/libs 1.0.3 → 1.1.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.
package/dist/logger.d.ts CHANGED
@@ -8,6 +8,7 @@ type LogtailConfig = {
8
8
  token?: string;
9
9
  metadata?: KeyMaps<string | number>;
10
10
  format?: (info: TransformableInfo) => string;
11
+ endpoint?: string;
11
12
  };
12
13
  type SentryConfig = {
13
14
  options?: NodeOptions;
@@ -18,7 +19,7 @@ export type LoggerConfig = {
18
19
  sentry?: SentryConfig;
19
20
  };
20
21
  export declare class Logger {
21
- private readonly config?;
22
+ private readonly config;
22
23
  isErrorEnabled: () => boolean;
23
24
  isWarnEnabled: () => boolean;
24
25
  isInfoEnabled: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vouchfor/libs",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "Common libraries for backend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,23 +33,23 @@
33
33
  },
34
34
  "homepage": "https://github.com/VouchAU/vouch-libs#readme",
35
35
  "devDependencies": {
36
- "@types/express": "^4.17.16",
37
- "@types/jest": "^29.4.0",
38
- "@types/node": "^18.11.18",
39
- "@types/winston": "^2.4.4",
40
- "esbuild": "^0.17.5",
36
+ "@types/express": "^4.17.25",
37
+ "@types/jest": "^29.5.14",
38
+ "@types/node": "^18.19.130",
39
+ "esbuild": "^0.17.19",
41
40
  "esbuild-node-externals": "^1.6.0",
42
41
  "esbuild-plugin-tsc": "^0.3.1",
43
- "jest": "^29.4.1",
44
- "rimraf": "^4.1.2",
45
- "ts-jest": "^29.0.5",
42
+ "jest": "^29.7.0",
43
+ "rimraf": "^4.4.1",
44
+ "ts-jest": "^29.4.12",
46
45
  "typescript": "^4.9.5"
47
46
  },
48
47
  "dependencies": {
49
- "@logtail/node": "^0.1.15",
50
- "@sentry/node": "^7.36.0",
51
- "@sentry/tracing": "^7.36.0",
52
- "dotenv": "^16.0.3",
53
- "winston": "^3.8.2"
48
+ "@logtail/node": "^0.5.8",
49
+ "@logtail/types": "^0.5.8",
50
+ "@sentry/node": "^7.120.4",
51
+ "@sentry/tracing": "^7.120.4",
52
+ "dotenv": "^16.6.1",
53
+ "winston": "^3.19.0"
54
54
  }
55
55
  }
package/.editorconfig DELETED
@@ -1,13 +0,0 @@
1
- # editorconfig.org
2
- root = true
3
-
4
- [*]
5
- indent_style = space
6
- indent_size = 2
7
- end_of_line = lf
8
- charset = utf-8
9
- trim_trailing_whitespace = true
10
- insert_final_newline = true
11
-
12
- [*.md]
13
- trim_trailing_whitespace = false
package/jest.config.js DELETED
@@ -1,24 +0,0 @@
1
- /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2
- module.exports = {
3
- preset: 'ts-jest',
4
- testEnvironment: 'node',
5
- "collectCoverage": true,
6
- "coverageDirectory": "coverage",
7
- globals: {
8
- "ts-jest": {
9
- isolatedModules: true
10
- }
11
- },
12
- "moduleFileExtensions": [
13
- "js",
14
- "ts",
15
- "json",
16
- "node"
17
- ],
18
- setupFiles: [
19
- // "<rootDir>/test/setup-tests.ts"
20
- ],
21
- "testMatch": [
22
- "**/+(*.)+(spec|test).[jt]s"
23
- ]
24
- };