@imqueue/async-logger 1.1.0 → 1.3.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.
@@ -0,0 +1,58 @@
1
+ import typescriptEslint from "@typescript-eslint/eslint-plugin";
2
+ import globals from "globals";
3
+ import tsParser from "@typescript-eslint/parser";
4
+ import path from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+ import js from "@eslint/js";
7
+ import { FlatCompat } from "@eslint/eslintrc";
8
+
9
+ const __filename = fileURLToPath(import.meta.url);
10
+ const __dirname = path.dirname(__filename);
11
+ const compat = new FlatCompat({
12
+ baseDirectory: __dirname,
13
+ recommendedConfig: js.configs.recommended,
14
+ allConfig: js.configs.all
15
+ });
16
+
17
+ export default [
18
+ ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
19
+ {
20
+ plugins: {
21
+ "@typescript-eslint": typescriptEslint,
22
+ },
23
+
24
+ languageOptions: {
25
+ globals: {
26
+ ...globals.node,
27
+ },
28
+
29
+ parser: tsParser,
30
+ },
31
+
32
+ rules: {
33
+ "max-len": ["error", {
34
+ code: 80,
35
+ }],
36
+
37
+ "new-parens": "error",
38
+ "no-caller": "error",
39
+ "no-cond-assign": ["error", "always"],
40
+ "no-multiple-empty-lines": "off",
41
+
42
+ quotes: ["error", "single", {
43
+ avoidEscape: true,
44
+ }],
45
+
46
+ "arrow-parens": "off",
47
+ "no-bitwise": "off",
48
+ "sort-keys": "off",
49
+ "no-console": "off",
50
+ "max-classes-per-file": "off",
51
+ "no-unused-expressions": "off",
52
+ "@typescript-eslint/interface-name-prefix": "off",
53
+ "comma-dangle": ["error", "always-multiline"],
54
+ "@typescript-eslint/no-namespace": "off",
55
+ "@typescript-eslint/no-extraneous-class": "off",
56
+ },
57
+ },
58
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imqueue/async-logger",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Configurable async logger over winston for @imqueue services",
5
5
  "keywords": [
6
6
  "logger",
@@ -10,37 +10,37 @@
10
10
  ],
11
11
  "main": "index.js",
12
12
  "dependencies": {
13
- "@imqueue/core": "^1.12.0",
14
- "winston": "^3.8.2",
15
- "winston-transport": "^4.5.0"
13
+ "@imqueue/core": "^1.15.0",
14
+ "winston": "^3.16.0",
15
+ "winston-transport": "^4.8.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@types/chai": "^4.3.5",
19
- "@types/mocha": "^10.0.1",
20
- "@types/mock-require": "^2.0.1",
21
- "@types/node": "^20.1.5",
22
- "@types/sinon": "^10.0.15",
23
- "@typescript-eslint/eslint-plugin": "^5.59.6",
24
- "@typescript-eslint/parser": "^5.59.6",
25
- "@typescript-eslint/typescript-estree": "^5.59.6",
26
- "chai": "^4.3.7",
27
- "coveralls": "^3.1.1",
28
- "eslint": "^8.40.0",
29
- "glob": "^10.2.4",
18
+ "@types/chai": "^5.0.1",
19
+ "@types/mocha": "^10.0.9",
20
+ "@types/mock-require": "^3.0.0",
21
+ "@types/node": "^22.9.0",
22
+ "@types/sinon": "^17.0.3",
23
+ "@typescript-eslint/eslint-plugin": "^8.13.0",
24
+ "@typescript-eslint/parser": "^8.13.0",
25
+ "@typescript-eslint/typescript-estree": "^8.13.0",
26
+ "chai": "^4.3.10",
27
+ "coveralls-next": "^4.2.1",
28
+ "eslint": "^9.14.0",
29
+ "glob": "^10.3.10",
30
30
  "minimist": "^1.2.8",
31
31
  "mocha": "^10.2.0",
32
32
  "mocha-lcov-reporter": "^1.3.0",
33
33
  "mock-require": "^3.0.3",
34
34
  "npm-scripts-help": "^0.8.0",
35
- "nyc": "^15.1.0",
36
- "open": "^8.4.0",
37
- "sinon": "^15.0.4",
35
+ "nyc": "^17.1.0",
36
+ "open": "^9.1.0",
37
+ "sinon": "^19.0.2",
38
38
  "source-map-support": "^0.5.21",
39
- "ts-node": "^10.9.1",
40
- "typedoc": "^0.24.7",
39
+ "ts-node": "^10.9.2",
40
+ "typedoc": "^0.26.11",
41
41
  "typedoc-plugin-as-member-of": "^1.0.2",
42
- "typedoc-plugin-markdown": "^3.15.3",
43
- "typescript": "^5.0.4"
42
+ "typedoc-plugin-markdown": "^4.2.10",
43
+ "typescript": "^5.2.2"
44
44
  },
45
45
  "scripts": {
46
46
  "prepublishOnly": "npm run build",
package/src/Logger.js CHANGED
@@ -101,6 +101,7 @@ class Logger {
101
101
  }
102
102
  }
103
103
  }
104
+ exports.Logger = Logger;
104
105
  /**
105
106
  * Asynchronous console async-logger
106
107
  *
@@ -112,5 +113,4 @@ Logger.console = {
112
113
  warn: (...args) => setTimeout(() => console.log(...args)),
113
114
  error: (...args) => setTimeout(() => console.log(...args)),
114
115
  };
115
- exports.Logger = Logger;
116
116
  //# sourceMappingURL=Logger.js.map