nightingale-level-names 11.7.1 → 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", "@pob/eslint-config-node"],
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.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
+
17
+ # [12.1.0](https://github.com/christophehurpeau/nightingale/compare/v12.0.1...v12.1.0) (2021-12-15)
18
+
19
+ **Note:** Version bump only for package nightingale-level-names
20
+
21
+
22
+
23
+
24
+
25
+ # [12.0.0](https://github.com/christophehurpeau/nightingale/compare/v11.9.0...v12.0.0) (2021-12-11)
26
+
27
+
28
+ ### Build System
29
+
30
+ * node 14 and remove dev builds ([432ecd1](https://github.com/christophehurpeau/nightingale/commit/432ecd1faafd0419f57dea00fce560e4cccc207f))
31
+
32
+
33
+ ### BREAKING CHANGES
34
+
35
+ * requires node 14
36
+
37
+
38
+
39
+
40
+
41
+ ## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
42
+
43
+ **Note:** Version bump only for package nightingale-level-names
44
+
45
+
46
+
47
+
48
+
6
49
  ## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
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", "@pob/eslint-config-node"],
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.1",
3
+ "version": "12.1.1",
4
4
  "description": "Nightingale level values to level names",
5
5
  "keywords": [
6
6
  "logger"
@@ -13,17 +13,25 @@
13
13
  "directory": "packages/nightingale-level-names"
14
14
  },
15
15
  "homepage": "https://github.com/christophehurpeau/nightingale",
16
+ "type": "module",
16
17
  "engines": {
17
- "node": ">=12.10.0"
18
+ "node": "^14.13.1 || >=16.0.0"
18
19
  },
19
- "main": "./lib/index.js",
20
+ "main": "./lib/index.cjs",
20
21
  "types": "./lib/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "import": "./lib/index.js",
25
+ "require": "./lib/index.cjs"
26
+ },
27
+ "./package.json": "./package.json"
28
+ },
21
29
  "sideEffects": false,
22
30
  "scripts": {
23
31
  "build": "yarn run build:definitions",
24
32
  "build:definitions": "tsc --lib esnext --noEmit --skipLibCheck ./lib/index.d.ts",
25
33
  "lint": "yarn run lint:eslint",
26
- "lint:eslint": "yarn --cwd ../.. run eslint --report-unused-disable-directives --quiet packages/nightingale-level-names"
34
+ "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-level-names"
27
35
  },
28
36
  "prettier": {
29
37
  "trailingComma": "all",
@@ -32,13 +40,7 @@
32
40
  },
33
41
  "pob": {},
34
42
  "devDependencies": {
35
- "@pob/eslint-config": "43.2.0",
36
- "@pob/eslint-config-node": "43.2.0",
37
- "eslint": "7.29.0",
38
- "eslint-import-resolver-node": "0.3.4",
39
- "eslint-plugin-import": "2.23.4",
40
- "eslint-plugin-node": "11.1.0",
41
- "eslint-plugin-unicorn": "29.0.0"
43
+ "typescript": "4.5.4"
42
44
  },
43
- "gitHead": "325214aa6c7f87ace818389b77ce7b4208005c11"
45
+ "gitHead": "719598e0a3d508801b18542a1054301200b62ed0"
44
46
  }