nightingale-level-names 12.1.0 → 12.1.1

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,17 @@
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.1](https://github.com/christophehurpeau/nightingale/compare/v12.1.0...v12.1.1) (2022-01-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * properly configure package type ([2e0cbf5](https://github.com/christophehurpeau/nightingale/commit/2e0cbf555bd3b9fa3c3851025452937f64408aa8))
12
+
13
+
14
+
15
+
16
+
6
17
  # [12.1.0](https://github.com/christophehurpeau/nightingale/compare/v12.0.1...v12.1.0) (2021-12-15)
7
18
 
8
19
  **Note:** Version bump only for package nightingale-level-names
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "root": true,
3
- "extends": ["@pob/eslint-config/node-commonjs"],
3
+ "extends": ["@pob/eslint-config/node-module"],
4
4
  "ignorePatterns": ["*.d.ts"],
5
5
  "overrides": [
6
6
  {
7
- "files": ["**/*.test.{mjs,js}", "__tests__/**/*.{mjs,js}"],
7
+ "files": ["**/*.test.{cjs,js}", "__tests__/**/*.{cjs,js}"],
8
8
  "env": {
9
9
  "jest": true
10
10
  },
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": "12.1.0",
3
+ "version": "12.1.1",
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
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,
@@ -39,5 +42,5 @@
39
42
  "devDependencies": {
40
43
  "typescript": "4.5.4"
41
44
  },
42
- "gitHead": "f2f75856d32f444f0ed08b5ab903537cb1f4c38f"
45
+ "gitHead": "719598e0a3d508801b18542a1054301200b62ed0"
43
46
  }