@imqueue/async-logger 1.2.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.
Files changed (2) hide show
  1. package/eslint.config.mjs +58 -0
  2. package/package.json +19 -19
@@ -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.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Configurable async logger over winston for @imqueue services",
5
5
  "keywords": [
6
6
  "logger",
@@ -10,36 +10,36 @@
10
10
  ],
11
11
  "main": "index.js",
12
12
  "dependencies": {
13
- "@imqueue/core": "^1.12.0",
14
- "winston": "^3.11.0",
15
- "winston-transport": "^4.6.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.10",
19
- "@types/mocha": "^10.0.4",
20
- "@types/mock-require": "^2.0.3",
21
- "@types/node": "^20.9.0",
22
- "@types/sinon": "^17.0.1",
23
- "@typescript-eslint/eslint-plugin": "^6.10.0",
24
- "@typescript-eslint/parser": "^6.10.0",
25
- "@typescript-eslint/typescript-estree": "^6.10.0",
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
26
  "chai": "^4.3.10",
27
- "coveralls": "^3.1.1",
28
- "eslint": "^8.53.0",
27
+ "coveralls-next": "^4.2.1",
28
+ "eslint": "^9.14.0",
29
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",
35
+ "nyc": "^17.1.0",
36
36
  "open": "^9.1.0",
37
- "sinon": "^17.0.1",
37
+ "sinon": "^19.0.2",
38
38
  "source-map-support": "^0.5.21",
39
- "ts-node": "^10.9.1",
40
- "typedoc": "^0.25.3",
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.17.1",
42
+ "typedoc-plugin-markdown": "^4.2.10",
43
43
  "typescript": "^5.2.2"
44
44
  },
45
45
  "scripts": {