@niceties/logger 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +14 -14
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Logger
1
+ # @niceties/logger
2
2
 
3
3
  Logger that can handle async tasks.
4
4
 
@@ -168,13 +168,13 @@ Returns current appender for the specific instance of the logger.
168
168
 
169
169
  ## Log levels
170
170
 
171
- ```typescript
172
- const enum LogLevel {
173
- verbose, // for debugging logs, not for displaying on screen in normal cases
174
- info, // should be printed to user but not an error
175
- warn, // something is probably wrong, but we can continue
176
- error, // operation completely failed
177
- }
171
+ ```javascript
172
+ const LogLevel = {
173
+ verbose: 0, // for debugging logs, not for displaying on screen in normal cases
174
+ info: 1, // should be printed to user but not an error
175
+ warn: 2, // something is probably wrong, but we can continue
176
+ error: 3, // operation completely failed
177
+ };
178
178
  ```
179
179
 
180
180
  ## Setting another appender
@@ -220,12 +220,12 @@ type Appender<ErrorContext = Error> = ((
220
220
  api?: object;
221
221
  };
222
222
 
223
- const enum Action {
224
- start,
225
- update,
226
- finish,
227
- log,
228
- }
223
+ const Action = {
224
+ start: 0,
225
+ update: 1,
226
+ finish: 2,
227
+ log: 3,
228
+ };
229
229
 
230
230
  type LogMessage<ErrorContext = Error> =
231
231
  | {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.0",
2
+ "version": "2.1.1",
3
3
  "license": "MIT",
4
4
  "name": "@niceties/logger",
5
5
  "author": "Konstantin Shutkin",
@@ -57,7 +57,7 @@
57
57
  "url": "https://github.com/kshutkin/niceties/issues"
58
58
  },
59
59
  "homepage": "https://github.com/kshutkin/niceties/blob/main/logger/README.md",
60
- "readme": "REAMDE.md",
60
+ "readme": "README.md",
61
61
  "description": "Logger that supports async tasks",
62
62
  "keywords": [
63
63
  "@niceties",
@@ -65,6 +65,6 @@
65
65
  "simple-logger"
66
66
  ],
67
67
  "dependencies": {
68
- "@niceties/ansi": "^1.0.0"
68
+ "@niceties/ansi": "^1.1.2"
69
69
  }
70
70
  }