nightingale-levels 11.7.1 → 11.7.2

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-commonjs"],
4
4
  "ignorePatterns": ["*.d.ts", "/dist"]
5
5
  }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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
+ ## [11.7.2](https://github.com/christophehurpeau/nightingale/compare/v11.7.1...v11.7.2) (2021-11-27)
7
+
8
+ **Note:** Version bump only for package nightingale-levels
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.1](https://github.com/christophehurpeau/nightingale/compare/v11.7.0...v11.7.1) (2021-06-29)
7
15
 
8
16
 
@@ -40,5 +40,5 @@ exports.Level = void 0;
40
40
 
41
41
  var Level = exports.Level;
42
42
 
43
- exports.default = Level;
43
+ exports["default"] = Level;
44
44
  //# sourceMappingURL=index-browser-dev.cjs.js.map
@@ -36,6 +36,5 @@ var Level;
36
36
 
37
37
  var Level$1 = Level;
38
38
 
39
- export default Level$1;
40
- export { Level };
39
+ export { Level, Level$1 as default };
41
40
  //# sourceMappingURL=index-browser-dev.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser-dev.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-dev.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;;;;"}
@@ -40,5 +40,5 @@ exports.Level = void 0;
40
40
 
41
41
  var Level = exports.Level;
42
42
 
43
- exports.default = Level;
43
+ exports["default"] = Level;
44
44
  //# sourceMappingURL=index-browser.cjs.js.map
@@ -36,6 +36,5 @@ var Level;
36
36
 
37
37
  var Level$1 = Level;
38
38
 
39
- export default Level$1;
40
- export { Level };
39
+ export { Level, Level$1 as default };
41
40
  //# 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":["/**\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;;;;"}
@@ -36,6 +36,5 @@ let Level;
36
36
 
37
37
  const Level$1 = Level;
38
38
 
39
- export default Level$1;
40
- export { Level };
39
+ export { Level, Level$1 as default };
41
40
  //# sourceMappingURL=index-browsermodern-dev.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern-dev.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-dev.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;;;;"}
@@ -36,6 +36,5 @@ let Level;
36
36
 
37
37
  const Level$1 = Level;
38
38
 
39
- export default Level$1;
40
- export { Level };
39
+ export { Level, Level$1 as default };
41
40
  //# 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":["/**\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;;;;"}
@@ -40,5 +40,5 @@ exports.Level = void 0;
40
40
 
41
41
  const Level = exports.Level;
42
42
 
43
- exports.default = Level;
43
+ exports["default"] = Level;
44
44
  //# sourceMappingURL=index-node12-dev.cjs.js.map
@@ -36,6 +36,5 @@ let Level;
36
36
 
37
37
  const Level$1 = Level;
38
38
 
39
- export default Level$1;
40
- export { Level };
39
+ export { Level, Level$1 as default };
41
40
  //# sourceMappingURL=index-node12-dev.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node12-dev.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-node12-dev.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;;;;"}
@@ -40,5 +40,5 @@ exports.Level = void 0;
40
40
 
41
41
  const Level = exports.Level;
42
42
 
43
- exports.default = Level;
43
+ exports["default"] = Level;
44
44
  //# sourceMappingURL=index-node12.cjs.js.map
@@ -36,6 +36,5 @@ let Level;
36
36
 
37
37
  const Level$1 = Level;
38
38
 
39
- export default Level$1;
40
- export { Level };
39
+ export { Level, Level$1 as default };
41
40
  //# sourceMappingURL=index-node12.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node12.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-node12.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;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-levels",
3
- "version": "11.7.1",
3
+ "version": "11.7.2",
4
4
  "description": "Nightingale levels",
5
5
  "keywords": [
6
6
  "logger"
@@ -13,8 +13,9 @@
13
13
  "directory": "packages/nightingale-levels"
14
14
  },
15
15
  "homepage": "https://github.com/christophehurpeau/nightingale",
16
+ "type": "commonjs",
16
17
  "engines": {
17
- "node": ">=12.10.0"
18
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
18
19
  },
19
20
  "browserslist": [
20
21
  "defaults",
@@ -23,11 +24,12 @@
23
24
  "not safari < 10",
24
25
  "not ios_saf < 10"
25
26
  ],
26
- "main": "./index.js",
27
+ "main": "./dist/index-node12.cjs.js",
27
28
  "types": "./dist/index.d.ts",
28
29
  "module": "./dist/index-browser.es.js",
29
30
  "browser": "./dist/index-browser.es.js",
30
31
  "exports": {
32
+ "./package.json": "./package.json",
31
33
  ".": {
32
34
  "node": {
33
35
  "development": {
@@ -64,7 +66,7 @@
64
66
  "build": "pob-build && yarn run build:definitions",
65
67
  "build:definitions": "tsc -p tsconfig.build.json",
66
68
  "lint": "yarn run lint:eslint",
67
- "lint:eslint": "yarn --cwd ../.. run eslint --ext .js,.mjs,.ts --report-unused-disable-directives --quiet packages/nightingale-levels",
69
+ "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-levels",
68
70
  "watch": "pob-watch"
69
71
  },
70
72
  "prettier": {
@@ -102,23 +104,13 @@
102
104
  ]
103
105
  },
104
106
  "devDependencies": {
105
- "@babel/core": "7.14.6",
106
- "@babel/preset-env": "7.14.7",
107
- "@pob/eslint-config": "43.2.0",
108
- "@pob/eslint-config-node": "43.2.0",
109
- "@pob/eslint-config-typescript": "43.2.0",
110
- "@typescript-eslint/eslint-plugin": "4.28.1",
111
- "@typescript-eslint/parser": "4.28.1",
107
+ "@babel/core": "7.16.0",
108
+ "@babel/preset-env": "7.16.4",
112
109
  "babel-preset-latest-node": "5.5.1",
113
110
  "babel-preset-modern-browsers": "15.0.2",
114
- "eslint": "7.29.0",
115
- "eslint-import-resolver-node": "0.3.4",
116
- "eslint-plugin-import": "2.23.4",
117
- "eslint-plugin-node": "11.1.0",
118
- "eslint-plugin-unicorn": "29.0.0",
119
- "pob-babel": "27.0.3",
120
- "rollup": "2.52.3",
121
- "typescript": "4.3.4"
111
+ "pob-babel": "28.5.0",
112
+ "rollup": "2.60.1",
113
+ "typescript": "4.5.2"
122
114
  },
123
- "gitHead": "325214aa6c7f87ace818389b77ce7b4208005c11"
115
+ "gitHead": "00b1ec6c7468b320e268a12eaac70d59a177787b"
124
116
  }
@@ -0,0 +1,3 @@
1
+ import createRollupConfig from 'pob-babel/createRollupConfig.js';
2
+
3
+ export default createRollupConfig({});
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- /* eslint-disable import/no-dynamic-require */
2
-
3
- 'use strict';
4
-
5
- const production = process.env.NODE_ENV === 'production';
6
- module.exports = require(`./dist/index-node12${production ? '' : '-dev'}.cjs`);