nightingale-levels 12.1.3 → 13.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,39 @@
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
+ # [13.0.0](https://github.com/christophehurpeau/nightingale/compare/v12.1.4...v13.0.0) (2022-11-19)
7
+
8
+
9
+ ### Code Refactoring
10
+
11
+ * drop node 14 and cjs ([9a8ca06](https://github.com/christophehurpeau/nightingale/commit/9a8ca064449ddc0d69e26543e21c2d522536c50a))
12
+
13
+
14
+ ### Features
15
+
16
+ * build for node 16 ([30ae3e9](https://github.com/christophehurpeau/nightingale/commit/30ae3e9c455dbad793c2f704b9d860069dc80c32))
17
+
18
+
19
+ ### BREAKING CHANGES
20
+
21
+ * dropped node 14 and cjs
22
+ * drop node 14
23
+
24
+
25
+
26
+
27
+
28
+ ## [12.1.4](https://github.com/christophehurpeau/nightingale/compare/v12.1.3...v12.1.4) (2022-02-05)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * cjs build ([2e24ac5](https://github.com/christophehurpeau/nightingale/commit/2e24ac5753ee386c5be9ca56796194ee598f10ff))
34
+
35
+
36
+
37
+
38
+
6
39
  ## [12.1.3](https://github.com/christophehurpeau/nightingale/compare/v12.1.2...v12.1.3) (2022-01-15)
7
40
 
8
41
  **Note:** Version bump only for package nightingale-levels
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
File without changes
@@ -0,0 +1 @@
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"}
@@ -18,7 +18,6 @@
18
18
  *
19
19
  */
20
20
  var Level;
21
-
22
21
  (function (Level) {
23
22
  Level[Level["ALL"] = 0] = "ALL";
24
23
  Level[Level["TRACE"] = 10] = "TRACE";
@@ -33,7 +32,6 @@ var Level;
33
32
  Level[Level["ALERT"] = 550] = "ALERT";
34
33
  Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
35
34
  })(Level || (Level = {}));
36
-
37
35
  var Level$1 = Level;
38
36
 
39
37
  export { Level, Level$1 as default };
@@ -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":["/**\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;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,CAAA;AA6BjB,cAAeA,KAAK;;;;"}
@@ -18,7 +18,6 @@
18
18
  *
19
19
  */
20
20
  let Level;
21
-
22
21
  (function (Level) {
23
22
  Level[Level["ALL"] = 0] = "ALL";
24
23
  Level[Level["TRACE"] = 10] = "TRACE";
@@ -33,7 +32,6 @@ let Level;
33
32
  Level[Level["ALERT"] = 550] = "ALERT";
34
33
  Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
35
34
  })(Level || (Level = {}));
36
-
37
35
  const Level$1 = Level;
38
36
 
39
37
  export { Level, Level$1 as default };
@@ -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":["/**\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;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,CAAA;AA6BjB,gBAAeA,KAAK;;;;"}
@@ -18,7 +18,6 @@
18
18
  *
19
19
  */
20
20
  let Level;
21
-
22
21
  (function (Level) {
23
22
  Level[Level["ALL"] = 0] = "ALL";
24
23
  Level[Level["TRACE"] = 10] = "TRACE";
@@ -33,8 +32,7 @@ let Level;
33
32
  Level[Level["ALERT"] = 550] = "ALERT";
34
33
  Level[Level["EMERGENCY"] = 600] = "EMERGENCY";
35
34
  })(Level || (Level = {}));
36
-
37
35
  const Level$1 = Level;
38
36
 
39
37
  export { Level, Level$1 as default };
40
- //# sourceMappingURL=index-node14.mjs.map
38
+ //# sourceMappingURL=index-node16.mjs.map
@@ -1 +1 @@
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
+ {"version":3,"file":"index-node16.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;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,CAAA;AA6BjB,gBAAeA,KAAK;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-levels",
3
- "version": "12.1.3",
3
+ "version": "13.0.0",
4
4
  "description": "Nightingale levels",
5
5
  "keywords": [
6
6
  "logger"
@@ -15,7 +15,7 @@
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": ">=16.0.0"
19
19
  },
20
20
  "browserslist": [
21
21
  "defaults",
@@ -24,65 +24,47 @@
24
24
  "not safari < 10",
25
25
  "not ios_saf < 10"
26
26
  ],
27
- "main": "./dist/index-node14.mjs",
28
- "types": "./dist/index.d.ts",
27
+ "main": "./dist/index-node16.mjs",
28
+ "types": "./dist/definitions/index.d.ts",
29
29
  "module": "./dist/index-browser.es.js",
30
30
  "browser": "./dist/index-browser.es.js",
31
31
  "exports": {
32
32
  "./package.json": "./package.json",
33
33
  ".": {
34
34
  "node": {
35
- "import": "./dist/index-node14.mjs",
36
- "require": "./dist/index-node14.cjs.js"
35
+ "import": "./dist/index-node16.mjs"
37
36
  },
38
37
  "browser": {
39
38
  "browser:modern": {
40
39
  "import": "./dist/index-browsermodern.es.js"
41
40
  },
42
- "import": "./dist/index-browser.es.js",
43
- "require": "./dist/index-browser.cjs.js"
41
+ "import": "./dist/index-browser.es.js"
44
42
  }
45
43
  }
46
44
  },
47
- "module:node": "./dist/index-node14.mjs",
48
- "module:modern-browsers": "./dist/index-browsermodern.es.js",
49
45
  "sideEffects": false,
50
46
  "scripts": {
51
- "build": "pob-build && yarn run build:definitions",
52
- "build:definitions": "tsc -p tsconfig.build.json",
53
- "clean": "rm -Rf dist",
47
+ "build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
48
+ "build:definitions": "tsc -p",
49
+ "clean": "yarn clean:build",
50
+ "clean:build": "pob-babel-clean-out dist",
54
51
  "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"
52
+ "lint:eslint": "yarn ../.. run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-levels",
53
+ "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
62
54
  },
55
+ "prettier": "@pob/root/prettier-config",
63
56
  "pob": {
64
57
  "babelEnvs": [
65
58
  {
66
59
  "target": "node",
67
- "version": "14",
68
- "formats": [
69
- "cjs",
70
- "es"
71
- ]
60
+ "version": "16"
72
61
  },
73
62
  {
74
63
  "target": "browser",
75
- "version": "modern",
76
- "formats": [
77
- "es"
78
- ]
64
+ "version": "modern"
79
65
  },
80
66
  {
81
- "target": "browser",
82
- "formats": [
83
- "cjs",
84
- "es"
85
- ]
67
+ "target": "browser"
86
68
  }
87
69
  ],
88
70
  "entries": [
@@ -90,11 +72,11 @@
90
72
  ]
91
73
  },
92
74
  "devDependencies": {
93
- "@babel/core": "7.16.7",
94
- "@babel/preset-env": "7.16.8",
75
+ "@babel/core": "7.20.2",
76
+ "@babel/preset-env": "7.20.2",
95
77
  "babel-preset-modern-browsers": "15.0.2",
96
- "pob-babel": "29.6.1",
97
- "typescript": "4.5.4"
78
+ "pob-babel": "35.3.0",
79
+ "typescript": "4.9.3"
98
80
  },
99
- "gitHead": "67fdeb8e3c6660b8bfa4eed4b66b2c05876ed9cc"
81
+ "gitHead": "52cf7e3c8762a07891da9dde497ec03298c15654"
100
82
  }
@@ -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 +0,0 @@
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,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.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node14.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,cAAeA,aAAf;;;;"}
@@ -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({});