nightingale-level-names 11.7.2 → 12.1.4

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/.eslintrc.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "root": true,
3
- "extends": ["@pob/eslint-config/root-commonjs"],
3
+ "extends": ["@pob/eslint-config/root-module"],
4
4
  "ignorePatterns": ["*.d.ts"]
5
5
  }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,49 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [12.1.4](https://github.com/christophehurpeau/nightingale/compare/v12.1.3...v12.1.4) (2022-02-05)
7
+
8
+ **Note:** Version bump only for package nightingale-level-names
9
+
10
+
11
+
12
+
13
+
14
+ ## [12.1.1](https://github.com/christophehurpeau/nightingale/compare/v12.1.0...v12.1.1) (2022-01-01)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * properly configure package type ([2e0cbf5](https://github.com/christophehurpeau/nightingale/commit/2e0cbf555bd3b9fa3c3851025452937f64408aa8))
20
+
21
+
22
+
23
+
24
+
25
+ # [12.1.0](https://github.com/christophehurpeau/nightingale/compare/v12.0.1...v12.1.0) (2021-12-15)
26
+
27
+ **Note:** Version bump only for package nightingale-level-names
28
+
29
+
30
+
31
+
32
+
33
+ # [12.0.0](https://github.com/christophehurpeau/nightingale/compare/v11.9.0...v12.0.0) (2021-12-11)
34
+
35
+
36
+ ### Build System
37
+
38
+ * node 14 and remove dev builds ([432ecd1](https://github.com/christophehurpeau/nightingale/commit/432ecd1faafd0419f57dea00fce560e4cccc207f))
39
+
40
+
41
+ ### BREAKING CHANGES
42
+
43
+ * requires node 14
44
+
45
+
46
+
47
+
48
+
6
49
  ## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
7
50
 
8
51
  **Note:** Version bump only for package nightingale-level-names
@@ -1,5 +1,21 @@
1
1
  {
2
2
  "root": true,
3
- "extends": ["@pob/eslint-config/node-commonjs"],
4
- "ignorePatterns": ["*.d.ts"]
3
+ "extends": ["@pob/eslint-config/node-module"],
4
+ "ignorePatterns": ["*.d.ts"],
5
+ "overrides": [
6
+ {
7
+ "files": ["**/*.test.{cjs,js}", "__tests__/**/*.{cjs,js}"],
8
+ "env": {
9
+ "jest": true
10
+ },
11
+ "rules": {
12
+ "import/no-extraneous-dependencies": [
13
+ "error",
14
+ {
15
+ "devDependencies": true
16
+ }
17
+ ]
18
+ }
19
+ }
20
+ ]
5
21
  }
package/lib/index.cjs ADDED
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ module.exports = new Map([
4
+ [10, 'trace'],
5
+ [100, 'debug'],
6
+ [200, 'info'],
7
+ [250, 'notice'],
8
+ [300, 'warn'],
9
+ [400, 'error'],
10
+ [500, 'critical'],
11
+ [550, 'fatal'],
12
+ [600, 'emergency'],
13
+ ]);
package/lib/index.js CHANGED
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- module.exports = new Map([
1
+ export default new Map([
4
2
  [10, 'trace'],
5
3
  [100, 'debug'],
6
4
  [200, 'info'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-level-names",
3
- "version": "11.7.2",
3
+ "version": "12.1.4",
4
4
  "description": "Nightingale level values to level names",
5
5
  "keywords": [
6
6
  "logger"
@@ -13,14 +13,17 @@
13
13
  "directory": "packages/nightingale-level-names"
14
14
  },
15
15
  "homepage": "https://github.com/christophehurpeau/nightingale",
16
- "type": "commonjs",
16
+ "type": "module",
17
17
  "engines": {
18
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
18
+ "node": "^14.13.1 || >=16.0.0"
19
19
  },
20
- "main": "./lib/index.js",
20
+ "main": "./lib/index.cjs",
21
21
  "types": "./lib/index.d.ts",
22
22
  "exports": {
23
- ".": "./lib/index.js",
23
+ ".": {
24
+ "import": "./lib/index.js",
25
+ "require": "./lib/index.cjs"
26
+ },
24
27
  "./package.json": "./package.json"
25
28
  },
26
29
  "sideEffects": false,
@@ -37,7 +40,7 @@
37
40
  },
38
41
  "pob": {},
39
42
  "devDependencies": {
40
- "typescript": "4.5.2"
43
+ "typescript": "4.5.5"
41
44
  },
42
- "gitHead": "00b1ec6c7468b320e268a12eaac70d59a177787b"
45
+ "gitHead": "3754d4575d948b5bb8c5227d3c3f4ca25e801db5"
43
46
  }