nightingale-levels 12.1.4 → 14.0.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
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
+ ## [14.0.0](https://github.com/christophehurpeau/nightingale/compare/v13.0.0...v14.0.0) (2023-06-30)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * **deps:** require node 18
12
+ * requires node 18
13
+
14
+ ### Features
15
+
16
+ * requires node 18 ([4452b11](https://github.com/christophehurpeau/nightingale/commit/4452b116188e58c293be85e462e04922f7ad51f0))
17
+
18
+
19
+ ### Miscellaneous Chores
20
+
21
+ * **deps:** update dependency @pob/root to v8 ([#760](https://github.com/christophehurpeau/nightingale/issues/760)) ([22dc3cc](https://github.com/christophehurpeau/nightingale/commit/22dc3cceabdfd465d04ee36fec8fdac31febab69))
22
+
23
+
24
+
25
+ # [13.0.0](https://github.com/christophehurpeau/nightingale/compare/v12.1.4...v13.0.0) (2022-11-19)
26
+
27
+
28
+ ### Code Refactoring
29
+
30
+ * drop node 14 and cjs ([9a8ca06](https://github.com/christophehurpeau/nightingale/commit/9a8ca064449ddc0d69e26543e21c2d522536c50a))
31
+
32
+
33
+ ### Features
34
+
35
+ * build for node 16 ([30ae3e9](https://github.com/christophehurpeau/nightingale/commit/30ae3e9c455dbad793c2f704b9d860069dc80c32))
36
+
37
+
38
+ ### BREAKING CHANGES
39
+
40
+ * dropped node 14 and cjs
41
+ * drop node 14
42
+
43
+
44
+
45
+
46
+
6
47
  ## [12.1.4](https://github.com/christophehurpeau/nightingale/compare/v12.1.3...v12.1.4) (2022-02-05)
7
48
 
8
49
 
package/README.md CHANGED
@@ -8,6 +8,9 @@
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://npmjs.org/package/nightingale-levels"><img src="https://img.shields.io/npm/v/nightingale-levels.svg?style=flat-square"></a>
11
+ <a href="https://npmjs.org/package/nightingale-levels"><img src="https://img.shields.io/npm/dw/nightingale-levels.svg?style=flat-square"></a>
12
+ <a href="https://npmjs.org/package/nightingale-levels"><img src="https://img.shields.io/node/v/nightingale-levels.svg?style=flat-square"></a>
13
+ <a href="https://npmjs.org/package/nightingale-levels"><img src="https://img.shields.io/npm/types/nightingale-levels.svg?style=flat-square"></a>
11
14
  </p>
12
15
 
13
16
  ## Install
@@ -44,5 +44,4 @@ export declare enum Level {
44
44
  /** Emergency: system is unusable */
45
45
  EMERGENCY = 600
46
46
  }
47
- export default Level;
48
47
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,oBAAY,KAAK;IACf,mCAAmC;IACnC,GAAG,IAAI;IAEP,wBAAwB;IACxB,KAAK,KAAK;IACV,iCAAiC;IACjC,KAAK,MAAM;IACX,yBAAyB;IACzB,IAAI,MAAM;IACV,oCAAoC;IACpC,MAAM,MAAM;IACZ,2EAA2E;IAC3E,IAAI,MAAM;IACV,qBAAqB;IACrB,OAAO,MAAM;IACb,6FAA6F;IAC7F,KAAK,MAAM;IACX,4FAA4F;IAC5F,QAAQ,MAAM;IACd;4DACwD;IACxD,KAAK,MAAM;IACX,sBAAsB;IACtB,KAAK,MAAM;IACX,oCAAoC;IACpC,SAAS,MAAM;CAChB"}
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-duplicate-enum-values */
2
+
1
3
  /**
2
4
  * @enum {number} List of Levels
3
5
  *
@@ -18,7 +20,6 @@
18
20
  *
19
21
  */
20
22
  var Level;
21
-
22
23
  (function (Level) {
23
24
  Level[Level["ALL"] = 0] = "ALL";
24
25
  Level[Level["TRACE"] = 10] = "TRACE";
@@ -34,7 +35,5 @@ var Level;
34
35
  Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
35
36
  })(Level || (Level = {}));
36
37
 
37
- var Level$1 = Level;
38
-
39
- export { Level, Level$1 as default };
38
+ export { Level };
40
39
  //# sourceMappingURL=index-browser.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,cAAeA,KAAf;;;;"}
1
+ {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-duplicate-enum-values */\n\n/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n"],"names":["Level"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAYA,MAAK;AA2BhB,CAAA,UA3BWA,KAAK,EAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,KAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,EAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,MAAA,CAAA,GAAA,GAAA,CAAA,GAAA,MAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,QAAA,CAAA,GAAA,GAAA,CAAA,GAAA,QAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,MAAA,CAAA,GAAA,GAAA,CAAA,GAAA,MAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,SAAA,CAAA,GAAA,GAAA,CAAA,GAAA,SAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,UAAA,CAAA,GAAA,GAAA,CAAA,GAAA,UAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,WAAA,CAAA,GAAA,GAAA,CAAA,GAAA,WAAA,CAAA;AAAA,CAALA,EAAAA,KAAK,KAALA,KAAK,GAAA,EAAA,CAAA,CAAA;;;;"}
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-duplicate-enum-values */
2
+
1
3
  /**
2
4
  * @enum {number} List of Levels
3
5
  *
@@ -18,7 +20,6 @@
18
20
  *
19
21
  */
20
22
  let Level;
21
-
22
23
  (function (Level) {
23
24
  Level[Level["ALL"] = 0] = "ALL";
24
25
  Level[Level["TRACE"] = 10] = "TRACE";
@@ -34,7 +35,5 @@ let Level;
34
35
  Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
35
36
  })(Level || (Level = {}));
36
37
 
37
- const Level$1 = Level;
38
-
39
- export { Level, Level$1 as default };
38
+ export { Level };
40
39
  //# sourceMappingURL=index-browsermodern.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,gBAAeA,KAAf;;;;"}
1
+ {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-duplicate-enum-values */\n\n/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n"],"names":["Level"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAYA,MAAK;AA2BhB,CAAA,UA3BWA,KAAK,EAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,KAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,EAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,MAAA,CAAA,GAAA,GAAA,CAAA,GAAA,MAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,QAAA,CAAA,GAAA,GAAA,CAAA,GAAA,QAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,MAAA,CAAA,GAAA,GAAA,CAAA,GAAA,MAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,SAAA,CAAA,GAAA,GAAA,CAAA,GAAA,SAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,UAAA,CAAA,GAAA,GAAA,CAAA,GAAA,UAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,WAAA,CAAA,GAAA,GAAA,CAAA,GAAA,WAAA,CAAA;AAAA,CAALA,EAAAA,KAAK,KAALA,KAAK,GAAA,EAAA,CAAA,CAAA;;;;"}
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-duplicate-enum-values */
2
+
1
3
  /**
2
4
  * @enum {number} List of Levels
3
5
  *
@@ -18,7 +20,6 @@
18
20
  *
19
21
  */
20
22
  let Level;
21
-
22
23
  (function (Level) {
23
24
  Level[Level["ALL"] = 0] = "ALL";
24
25
  Level[Level["TRACE"] = 10] = "TRACE";
@@ -34,7 +35,5 @@ let Level;
34
35
  Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
35
36
  })(Level || (Level = {}));
36
37
 
37
- const Level$1 = Level;
38
-
39
- export { Level, Level$1 as default };
40
- //# sourceMappingURL=index-node14.mjs.map
38
+ export { Level };
39
+ //# sourceMappingURL=index-node18.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.cjs.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,kBAAAA;;AA6BZ,YAAeA,aAAf;;;;"}
1
+ {"version":3,"file":"index-node18.mjs","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-duplicate-enum-values */\n\n/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n"],"names":["Level"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAYA,MAAK;AA2BhB,CAAA,UA3BWA,KAAK,EAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,KAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,EAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,MAAA,CAAA,GAAA,GAAA,CAAA,GAAA,MAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,QAAA,CAAA,GAAA,GAAA,CAAA,GAAA,QAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,MAAA,CAAA,GAAA,GAAA,CAAA,GAAA,MAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,SAAA,CAAA,GAAA,GAAA,CAAA,GAAA,SAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,UAAA,CAAA,GAAA,GAAA,CAAA,GAAA,UAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,OAAA,CAAA,GAAA,GAAA,CAAA,GAAA,OAAA,CAAA;AAALA,EAAAA,KAAK,CAALA,KAAK,CAAA,WAAA,CAAA,GAAA,GAAA,CAAA,GAAA,WAAA,CAAA;AAAA,CAALA,EAAAA,KAAK,KAALA,KAAK,GAAA,EAAA,CAAA,CAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-levels",
3
- "version": "12.1.4",
3
+ "version": "14.0.0",
4
4
  "description": "Nightingale levels",
5
5
  "keywords": [
6
6
  "logger"
@@ -15,74 +15,58 @@
15
15
  "homepage": "https://github.com/christophehurpeau/nightingale",
16
16
  "type": "module",
17
17
  "engines": {
18
- "node": "^14.13.1 || >=16.0.0"
18
+ "node": ">=18.12.0"
19
19
  },
20
- "browserslist": [
21
- "defaults",
22
- "> 0.2%",
23
- "not ie < 12",
24
- "not safari < 10",
25
- "not ios_saf < 10"
26
- ],
27
- "main": "./dist/index-node14.mjs",
28
- "types": "./dist/index.d.ts",
20
+ "browserslist": {
21
+ "production": [
22
+ "defaults",
23
+ "> 0.2%",
24
+ "not ie < 12",
25
+ "not safari < 10",
26
+ "not ios_saf < 10"
27
+ ]
28
+ },
29
+ "main": "./dist/index-node18.mjs",
30
+ "types": "./dist/definitions/index.d.ts",
29
31
  "module": "./dist/index-browser.es.js",
30
32
  "browser": "./dist/index-browser.es.js",
31
33
  "exports": {
32
34
  "./package.json": "./package.json",
33
35
  ".": {
34
36
  "node": {
35
- "import": "./dist/index-node14.mjs",
36
- "require": "./dist/index-node14.cjs"
37
+ "import": "./dist/index-node18.mjs"
37
38
  },
38
39
  "browser": {
39
40
  "browser:modern": {
40
41
  "import": "./dist/index-browsermodern.es.js"
41
42
  },
42
- "import": "./dist/index-browser.es.js",
43
- "require": "./dist/index-browser.cjs.js"
43
+ "import": "./dist/index-browser.es.js"
44
44
  }
45
45
  }
46
46
  },
47
- "module:node": "./dist/index-node14.mjs",
48
- "module:modern-browsers": "./dist/index-browsermodern.es.js",
49
47
  "sideEffects": false,
50
48
  "scripts": {
51
- "build": "pob-build && yarn run build:definitions",
52
- "build:definitions": "tsc -p tsconfig.build.json",
53
- "clean": "rm -Rf dist",
49
+ "build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
50
+ "build:definitions": "tsc -p tsconfig.json",
51
+ "clean": "yarn clean:build",
52
+ "clean:build": "pob-babel-clean-out dist",
54
53
  "lint": "yarn run lint:eslint",
55
- "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-levels",
56
- "watch": "pob-watch"
57
- },
58
- "prettier": {
59
- "trailingComma": "all",
60
- "singleQuote": true,
61
- "arrowParens": "always"
54
+ "lint:eslint": "yarn ../.. run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-levels",
55
+ "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
62
56
  },
57
+ "prettier": "@pob/root/prettier-config",
63
58
  "pob": {
64
59
  "babelEnvs": [
65
60
  {
66
61
  "target": "node",
67
- "version": "14",
68
- "formats": [
69
- "cjs",
70
- "es"
71
- ]
62
+ "version": "18"
72
63
  },
73
64
  {
74
65
  "target": "browser",
75
- "version": "modern",
76
- "formats": [
77
- "es"
78
- ]
66
+ "version": "modern"
79
67
  },
80
68
  {
81
- "target": "browser",
82
- "formats": [
83
- "cjs",
84
- "es"
85
- ]
69
+ "target": "browser"
86
70
  }
87
71
  ],
88
72
  "entries": [
@@ -90,11 +74,10 @@
90
74
  ]
91
75
  },
92
76
  "devDependencies": {
93
- "@babel/core": "7.17.0",
94
- "@babel/preset-env": "7.16.11",
95
- "babel-preset-modern-browsers": "15.0.2",
96
- "pob-babel": "30.0.1",
97
- "typescript": "4.5.5"
77
+ "@babel/core": "7.22.5",
78
+ "@babel/preset-env": "7.22.5",
79
+ "pob-babel": "36.1.0",
80
+ "typescript": "5.1.6"
98
81
  },
99
- "gitHead": "3754d4575d948b5bb8c5227d3c3f4ca25e801db5"
82
+ "gitHead": "bc20e0f093a4fecd4d87f9374f6dbc375c09c25e"
100
83
  }
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-duplicate-enum-values */
2
+
1
3
  /**
2
4
  * @enum {number} List of Levels
3
5
  *
@@ -45,5 +47,3 @@ export enum Level {
45
47
  /** Emergency: system is unusable */
46
48
  EMERGENCY = 600,
47
49
  }
48
-
49
- export default Level;
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /**
6
- * @enum {number} List of Levels
7
- *
8
- * <ul>
9
- * <li>ALL: Log everything. Not a level.</li>
10
- * <li>TRACE: Trace information</li>
11
- * <li>DEBUG: Detailed debug information</li>
12
- * <li>INFO: Normal but significant events</li>
13
- * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>
14
- * <li>WARNING: Alias for WARN</li>
15
- * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>
16
- * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>
17
- * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc
18
- * This should trigger the SMS alerts and wake you up</li>
19
- * <li>ALERT: Alias for FATAL</li>
20
- * <li>EMERGENCY: Emergency: system is unusable</li>
21
- * </ul>
22
- *
23
- */
24
- exports.Level = void 0;
25
-
26
- (function (Level) {
27
- Level[Level["ALL"] = 0] = "ALL";
28
- Level[Level["TRACE"] = 10] = "TRACE";
29
- Level[Level["DEBUG"] = 100] = "DEBUG";
30
- Level[Level["INFO"] = 200] = "INFO";
31
- Level[Level["NOTICE"] = 250] = "NOTICE";
32
- Level[Level["WARN"] = 300] = "WARN";
33
- Level[Level["WARNING"] = 300] = "WARNING";
34
- Level[Level["ERROR"] = 400] = "ERROR";
35
- Level[Level["CRITICAL"] = 500] = "CRITICAL";
36
- Level[Level["FATAL"] = 550] = "FATAL";
37
- Level[Level["ALERT"] = 550] = "ALERT";
38
- Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
39
- })(exports.Level || (exports.Level = {}));
40
-
41
- var Level = exports.Level;
42
-
43
- exports["default"] = Level;
44
- //# sourceMappingURL=index-browser.cjs.js.map
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /**
6
- * @enum {number} List of Levels
7
- *
8
- * <ul>
9
- * <li>ALL: Log everything. Not a level.</li>
10
- * <li>TRACE: Trace information</li>
11
- * <li>DEBUG: Detailed debug information</li>
12
- * <li>INFO: Normal but significant events</li>
13
- * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>
14
- * <li>WARNING: Alias for WARN</li>
15
- * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>
16
- * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>
17
- * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc
18
- * This should trigger the SMS alerts and wake you up</li>
19
- * <li>ALERT: Alias for FATAL</li>
20
- * <li>EMERGENCY: Emergency: system is unusable</li>
21
- * </ul>
22
- *
23
- */
24
- exports.Level = void 0;
25
-
26
- (function (Level) {
27
- Level[Level["ALL"] = 0] = "ALL";
28
- Level[Level["TRACE"] = 10] = "TRACE";
29
- Level[Level["DEBUG"] = 100] = "DEBUG";
30
- Level[Level["INFO"] = 200] = "INFO";
31
- Level[Level["NOTICE"] = 250] = "NOTICE";
32
- Level[Level["WARN"] = 300] = "WARN";
33
- Level[Level["WARNING"] = 300] = "WARNING";
34
- Level[Level["ERROR"] = 400] = "ERROR";
35
- Level[Level["CRITICAL"] = 500] = "CRITICAL";
36
- Level[Level["FATAL"] = 550] = "FATAL";
37
- Level[Level["ALERT"] = 550] = "ALERT";
38
- Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
39
- })(exports.Level || (exports.Level = {}));
40
-
41
- const Level = exports.Level;
42
-
43
- exports["default"] = Level;
44
- //# sourceMappingURL=index-node14.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node14.cjs","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,kBAAAA;;AA6BZ,cAAeA,aAAf;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node14.mjs","sources":["../src/index.ts"],"sourcesContent":["/**\n * @enum {number} List of Levels\n *\n * <ul>\n * <li>ALL: Log everything. Not a level.</li>\n * <li>TRACE: Trace information</li>\n * <li>DEBUG: Detailed debug information</li>\n * <li>INFO: Normal but significant events</li>\n * <li>WARN: Exceptional occurrences that are not errors (Use of deprecated APIs)</li>\n * <li>WARNING: Alias for WARN</li>\n * <li>ERROR: Runtime errors that do not require immediate action but should be logged and monitored</li>\n * <li>CRITICAL: Critical conditions. Example: Application component unavailable, unexpected exception</li>\n * <li>FATAL: Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up</li>\n * <li>ALERT: Alias for FATAL</li>\n * <li>EMERGENCY: Emergency: system is unusable</li>\n * </ul>\n *\n */\nexport enum Level {\n /** Log everything. Not a level. */\n ALL = 0,\n\n /** Trace information */\n TRACE = 10,\n /** Detailed debug information */\n DEBUG = 100,\n /** Interesting events */\n INFO = 200,\n /** Normal but significant events */\n NOTICE = 250,\n /** Exceptional occurrences that are not errors (Use of deprecated APIs) */\n WARN = 300,\n /** Alias for WARN */\n WARNING = 300,\n /** Runtime errors that do not require immediate action but should be logged and monitored */\n ERROR = 400,\n /** Critical conditions. Example: Application component unavailable, unexpected exception */\n CRITICAL = 500,\n /** Action must be taken immediately. Example: Entire website down, database unavailable, etc\n * This should trigger the SMS alerts and wake you up */\n FATAL = 550,\n /** Alias for FATAL */\n ALERT = 550,\n /** Emergency: system is unusable */\n EMERGENCY = 600,\n}\n\nexport default Level;\n"],"names":["Level"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACYA;;WAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;AAAAA,EAAAA,MAAAA;GAAAA,UAAAA;;AA6BZ,gBAAeA,KAAf;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,oBAAY,KAAK;IACf,mCAAmC;IACnC,GAAG,IAAI;IAEP,wBAAwB;IACxB,KAAK,KAAK;IACV,iCAAiC;IACjC,KAAK,MAAM;IACX,yBAAyB;IACzB,IAAI,MAAM;IACV,oCAAoC;IACpC,MAAM,MAAM;IACZ,2EAA2E;IAC3E,IAAI,MAAM;IACV,qBAAqB;IACrB,OAAO,MAAM;IACb,6FAA6F;IAC7F,KAAK,MAAM;IACX,4FAA4F;IAC5F,QAAQ,MAAM;IACd;4DACwD;IACxD,KAAK,MAAM;IACX,sBAAsB;IACtB,KAAK,MAAM;IACX,oCAAoC;IACpC,SAAS,MAAM;CAChB;AAED,eAAe,KAAK,CAAC"}
package/rollup.config.mjs DELETED
@@ -1,3 +0,0 @@
1
- import createRollupConfig from 'pob-babel/createRollupConfig.js';
2
-
3
- export default createRollupConfig({});