ng2-logger 13.1.20 → 13.1.21

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 (68) hide show
  1. package/README.md +192 -192
  2. package/assets/shared/shared_folder_info.txt +1 -1
  3. package/browser/README.md +24 -24
  4. package/browser/esm2020/lib/backend-logging.mjs +93 -93
  5. package/browser/esm2020/lib/display.mjs +96 -96
  6. package/browser/esm2020/lib/index.mjs +6 -6
  7. package/browser/esm2020/lib/level.mjs +32 -32
  8. package/browser/esm2020/lib/log.mjs +160 -160
  9. package/browser/esm2020/lib/logger.mjs +236 -236
  10. package/browser/esm2020/ng2-logger.mjs +4 -4
  11. package/browser/esm2020/public-api.mjs +1 -1
  12. package/browser/fesm2015/ng2-logger.mjs +514 -514
  13. package/browser/fesm2020/ng2-logger.mjs +514 -514
  14. package/browser/lib/backend-logging.d.ts +3 -3
  15. package/browser/lib/display.d.ts +3 -3
  16. package/browser/lib/index.d.ts +3 -3
  17. package/browser/lib/level.d.ts +20 -20
  18. package/browser/lib/log.d.ts +24 -24
  19. package/browser/lib/logger.d.ts +80 -80
  20. package/browser/ng2-logger.d.ts +4 -4
  21. package/client/README.md +24 -24
  22. package/client/esm2020/lib/backend-logging.mjs +93 -93
  23. package/client/esm2020/lib/display.mjs +96 -96
  24. package/client/esm2020/lib/index.mjs +6 -6
  25. package/client/esm2020/lib/level.mjs +32 -32
  26. package/client/esm2020/lib/log.mjs +160 -160
  27. package/client/esm2020/lib/logger.mjs +236 -236
  28. package/client/esm2020/ng2-logger.mjs +4 -4
  29. package/client/esm2020/public-api.mjs +1 -1
  30. package/client/fesm2015/ng2-logger.mjs +514 -514
  31. package/client/fesm2020/ng2-logger.mjs +514 -514
  32. package/client/lib/backend-logging.d.ts +3 -3
  33. package/client/lib/display.d.ts +3 -3
  34. package/client/lib/index.d.ts +3 -3
  35. package/client/lib/level.d.ts +20 -20
  36. package/client/lib/log.d.ts +24 -24
  37. package/client/lib/logger.d.ts +80 -80
  38. package/client/ng2-logger.d.ts +4 -4
  39. package/client/package.json +30 -31
  40. package/index.d.ts +1 -1
  41. package/lib/backend-logging.d.ts +4 -4
  42. package/lib/display.d.ts +4 -4
  43. package/lib/index.d.ts +4 -4
  44. package/lib/level.d.ts +21 -21
  45. package/lib/log.d.ts +25 -25
  46. package/lib/logger.d.ts +81 -81
  47. package/package.json +4 -240
  48. package/package.json_devDependencies.json +184 -184
  49. package/package.json_tnp.json5 +51 -51
  50. package/tmp-environment.json +34 -35
  51. package/websql/README.md +24 -24
  52. package/websql/esm2020/lib/backend-logging.mjs +93 -93
  53. package/websql/esm2020/lib/display.mjs +96 -96
  54. package/websql/esm2020/lib/index.mjs +6 -6
  55. package/websql/esm2020/lib/level.mjs +32 -32
  56. package/websql/esm2020/lib/log.mjs +160 -160
  57. package/websql/esm2020/lib/logger.mjs +236 -236
  58. package/websql/esm2020/ng2-logger.mjs +4 -4
  59. package/websql/esm2020/public-api.mjs +1 -1
  60. package/websql/fesm2015/ng2-logger.mjs +514 -514
  61. package/websql/fesm2020/ng2-logger.mjs +514 -514
  62. package/websql/lib/backend-logging.d.ts +3 -3
  63. package/websql/lib/display.d.ts +3 -3
  64. package/websql/lib/index.d.ts +3 -3
  65. package/websql/lib/level.d.ts +20 -20
  66. package/websql/lib/log.d.ts +24 -24
  67. package/websql/lib/logger.d.ts +80 -80
  68. package/websql/ng2-logger.d.ts +4 -4
package/lib/logger.d.ts CHANGED
@@ -1,81 +1,81 @@
1
- import { Level } from './level';
2
- export declare class Logger {
3
- private name;
4
- color: string;
5
- private developmentMode;
6
- private allowed;
7
- private isMuted;
8
- fixedWidth: number | undefined;
9
- private _level;
10
- setLevel(l: Level): this;
11
- get isProductionMode(): boolean;
12
- setProductionMode(productionMode: boolean): this;
13
- mute(): this;
14
- constructor(name: string, color: string, developmentMode: boolean, allowed: Level[], isMuted: boolean, fixedWidth: number | undefined);
15
- onlyWhen(expression: (() => boolean) | boolean): void;
16
- private _data;
17
- private _error;
18
- private _info;
19
- private _success;
20
- private _taskStarted;
21
- private _taskDone;
22
- private _warn;
23
- /** @deprecated Use data(...)
24
- * @see data
25
- */
26
- d: (name: string | any, ...data: any[]) => this;
27
- /** @deprecated Use error(...)
28
- * @see error
29
- */
30
- er: (name: string | any, ...data: any[]) => this;
31
- /** @deprecated Use info(...)
32
- * @see info
33
- */
34
- i: (name: string | any, ...data: any[]) => this;
35
- /** @deprecated Use warn(...)
36
- * @see warn
37
- */
38
- w: (name: string | any, ...data: any[]) => this;
39
- /**
40
- * Logs message and data with the level=data
41
- * @param message The message
42
- * @param otherParams Additional parameters
43
- */
44
- data: (message: string, ...otherParams: any[]) => this;
45
- /**
46
- * Logs message and data with the level=error
47
- * @param message The message
48
- * @param otherParams Additional parameters
49
- */
50
- error: (message: string, ...otherParams: any[]) => this;
51
- /**
52
- * Logs message and data with the level=info
53
- * @param message The message
54
- * @param otherParams Additional parameters
55
- */
56
- info: (message: string, ...otherParams: any[]) => this;
57
- /**
58
- * Logs message and data with the level=success
59
- * @param message The message
60
- * @param otherParams Additional parameters
61
- */
62
- success: (message: string, ...otherParams: any[]) => this;
63
- /**
64
- * Logs message and data with the level=taskStarted
65
- * @param message The message
66
- * @param otherParams Additional parameters
67
- */
68
- taskStarted: (message: string, ...otherParams: any[]) => this;
69
- /**
70
- * Logs message and data with the level=taskDone
71
- * @param message The message
72
- * @param otherParams Additional parameters
73
- */
74
- taskDone: (message?: string, ...otherParams: any[]) => this;
75
- /**
76
- * Logs message and data with the level=warn
77
- * @param message The message
78
- * @param otherParams Additional parameters
79
- */
80
- warn: (message: string, ...otherParams: any[]) => this;
81
- }
1
+ import { Level } from './level';
2
+ export declare class Logger {
3
+ private name;
4
+ color: string;
5
+ private developmentMode;
6
+ private allowed;
7
+ private isMuted;
8
+ fixedWidth: number | undefined;
9
+ private _level;
10
+ setLevel(l: Level): this;
11
+ get isProductionMode(): boolean;
12
+ setProductionMode(productionMode: boolean): this;
13
+ mute(): this;
14
+ constructor(name: string, color: string, developmentMode: boolean, allowed: Level[], isMuted: boolean, fixedWidth: number | undefined);
15
+ onlyWhen(expression: (() => boolean) | boolean): void;
16
+ private _data;
17
+ private _error;
18
+ private _info;
19
+ private _success;
20
+ private _taskStarted;
21
+ private _taskDone;
22
+ private _warn;
23
+ /** @deprecated Use data(...)
24
+ * @see data
25
+ */
26
+ d: (name: string | any, ...data: any[]) => this;
27
+ /** @deprecated Use error(...)
28
+ * @see error
29
+ */
30
+ er: (name: string | any, ...data: any[]) => this;
31
+ /** @deprecated Use info(...)
32
+ * @see info
33
+ */
34
+ i: (name: string | any, ...data: any[]) => this;
35
+ /** @deprecated Use warn(...)
36
+ * @see warn
37
+ */
38
+ w: (name: string | any, ...data: any[]) => this;
39
+ /**
40
+ * Logs message and data with the level=data
41
+ * @param message The message
42
+ * @param otherParams Additional parameters
43
+ */
44
+ data: (message: string, ...otherParams: any[]) => this;
45
+ /**
46
+ * Logs message and data with the level=error
47
+ * @param message The message
48
+ * @param otherParams Additional parameters
49
+ */
50
+ error: (message: string, ...otherParams: any[]) => this;
51
+ /**
52
+ * Logs message and data with the level=info
53
+ * @param message The message
54
+ * @param otherParams Additional parameters
55
+ */
56
+ info: (message: string, ...otherParams: any[]) => this;
57
+ /**
58
+ * Logs message and data with the level=success
59
+ * @param message The message
60
+ * @param otherParams Additional parameters
61
+ */
62
+ success: (message: string, ...otherParams: any[]) => this;
63
+ /**
64
+ * Logs message and data with the level=taskStarted
65
+ * @param message The message
66
+ * @param otherParams Additional parameters
67
+ */
68
+ taskStarted: (message: string, ...otherParams: any[]) => this;
69
+ /**
70
+ * Logs message and data with the level=taskDone
71
+ * @param message The message
72
+ * @param otherParams Additional parameters
73
+ */
74
+ taskDone: (message?: string, ...otherParams: any[]) => this;
75
+ /**
76
+ * Logs message and data with the level=warn
77
+ * @param message The message
78
+ * @param otherParams Additional parameters
79
+ */
80
+ warn: (message: string, ...otherParams: any[]) => this;
81
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng2-logger",
3
- "version": "13.1.20",
3
+ "version": "13.1.21",
4
4
  "description": "isomorphic logger for browser/server in typescript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,247 +30,11 @@
30
30
  "json-stringify-safe": "5.0.1",
31
31
  "json5": "2.1.3",
32
32
  "randomcolor": "0.5.3",
33
- "tnp-config": "~13.1.71"
33
+ "tnp-config": "~13.1.72"
34
34
  },
35
35
  "license": "MIT",
36
36
  "private": false,
37
- "lastBuildTagHash": "12f78ada2a532fe07ea61862ec636bf7187082f7",
37
+ "lastBuildTagHash": "b4a03fae18c80a223b78370a5b5473965fa811f5",
38
38
  "peerDependencies": {},
39
- "devDependencies": {
40
- "@angular-devkit/build-angular": "~13.3.9",
41
- "@angular-devkit/core": "~13.3.9",
42
- "@angular/animations": "~13.3.0",
43
- "@angular/cdk": "~13.3.9",
44
- "@angular/cli": "~13.3.9",
45
- "@angular/common": "~13.3.0",
46
- "@angular/compiler": "~13.3.0",
47
- "@angular/compiler-cli": "~13.3.0",
48
- "@angular/core": "~13.3.0",
49
- "@angular/flex-layout": "~13.0.0-beta.38",
50
- "@angular/forms": "~13.3.0",
51
- "@angular/material": "~13.3.9",
52
- "@angular/platform-browser": "~13.3.0",
53
- "@angular/platform-browser-dynamic": "~13.3.0",
54
- "@angular/pwa": "~13.3.9",
55
- "@angular/router": "~13.3.0",
56
- "@angular/service-worker": "~13.3.11",
57
- "@babel/cli": "7.18.6",
58
- "@iconify/icons-fa-solid": "1.2.2",
59
- "@iconify/icons-mdi": "1.2.1",
60
- "@mdi/js": "6.5.95",
61
- "@ngrx/component-store": "~13.0.2",
62
- "@ngrx/data": "~13.0.2",
63
- "@ngrx/effects": "~13.0.2",
64
- "@ngrx/entity": "~13.0.2",
65
- "@ngrx/router-store": "~13.0.2",
66
- "@ngrx/schematics": "~13.0.2",
67
- "@ngrx/store": "~13.0.2",
68
- "@ngrx/store-devtools": "~13.0.2",
69
- "@ngx-formly/bootstrap": "6.0.0-next.8",
70
- "@ngx-formly/core": "6.0.0-next.8",
71
- "@ngx-formly/ionic": "6.0.0-next.8",
72
- "@ngx-formly/material": "6.0.0-next.8",
73
- "@ngx-loading-bar/core": "6.0.2",
74
- "@ngx-loading-bar/http-client": "6.0.2",
75
- "@ngx-loading-bar/router": "6.0.2",
76
- "@ngx-translate/core": "14.0.0",
77
- "@ngx-translate/http-loader": "7.0.0",
78
- "@swimlane/ngx-datatable": "20.0.0",
79
- "@types/chai": "4.1.2",
80
- "@types/chokidar": "2.1.3",
81
- "@types/dateformat": "1.0.1",
82
- "@types/diff": "3.2.2",
83
- "@types/express": "4.11.0",
84
- "@types/express-fileupload": "1.4.1",
85
- "@types/fs-extra": "7.0.0",
86
- "@types/glob": "5.0.35",
87
- "@types/http-proxy": "1.16.0",
88
- "@types/http-proxy-middleware": "0.19.2",
89
- "@types/inquirer": "7.3.1",
90
- "@types/jasmine": "3.10.0",
91
- "@types/json-stringify-safe": "5.0.0",
92
- "@types/json5": "0.0.29",
93
- "@types/lockfile": "1.0.0",
94
- "@types/lodash": "4.14.92",
95
- "@types/lowdb": "1.0.6",
96
- "@types/mocha": "5.2.5",
97
- "@types/node": "16.18.21",
98
- "@types/node-notifier": "5.4.0",
99
- "@types/oauth2orize": "1.8.0",
100
- "@types/password-hash": "1.2.19",
101
- "@types/progress": "2.0.3",
102
- "@types/q": "1.5.5",
103
- "@types/rimraf": "2.0.2",
104
- "@types/semver": "6.0.1",
105
- "@types/systeminformation": "3.23.0",
106
- "@types/vinyl": "2.0.2",
107
- "@types/watch": "1.0.0",
108
- "accepts": "1.3.4",
109
- "any-project-cli": "~13.1.23",
110
- "axios": "1.3.5",
111
- "background-worker-process": "~13.1.40",
112
- "base32": "0.0.7",
113
- "bcryptjs": "2.4.3",
114
- "better-sqlite3": "7.6.2",
115
- "body-parser": "1.18.2",
116
- "bootstrap": "5.1.3",
117
- "bs4-breakpoint": "13.0.33",
118
- "buffer-shims": "1.0.0",
119
- "callsite-record": "4.1.3",
120
- "chai": "4.2.0",
121
- "check-node-version": "3.2.0",
122
- "cheerio": "1.0.0-rc.3",
123
- "chokidar": "3.5.1",
124
- "circular-json": "0.5.1",
125
- "command-exists": "1.2.2",
126
- "compression": "1.7.4",
127
- "concurrently": "3.5.1",
128
- "content-type": "1.0.4",
129
- "cookie-parser": "1.4.3",
130
- "copy-paste": "1.3.0",
131
- "cors": "2.8.4",
132
- "cpr": "3.0.1",
133
- "cross-spawn": "7.0.3",
134
- "dateformat": "3.0.3",
135
- "detect-mocha": "0.1.0",
136
- "diff": "3.2.0",
137
- "edit-table": "13.1.0",
138
- "element-resize-detector": "1.1.15",
139
- "enquirer": "2.3.0",
140
- "enum-values": "1.2.1",
141
- "errorhandler": "1.5.0",
142
- "eslint": "7.13.0",
143
- "eslint-plugin-import": "2.22.1",
144
- "eslint-plugin-jsdoc": "30.7.8",
145
- "eslint-plugin-prefer-arrow": "1.2.2",
146
- "express": "4.16.3",
147
- "express-fileupload": "1.4.0",
148
- "express-session": "1.17.3",
149
- "fbgraph": "1.4.1",
150
- "file-loader": "1.1.5",
151
- "file-saver": "2.0.5",
152
- "firedev": "^13",
153
- "firedev-crud": "~13.1.45",
154
- "firedev-crud-deamon": "~13.1.35",
155
- "firedev-ports": "~13.1.39",
156
- "firedev-storage": "~13.1.28",
157
- "firedev-typeorm": "~13.1.23",
158
- "firedev-ui": "~13.1.18",
159
- "fkill": "6.1.0",
160
- "font-awesome": "4.7.0",
161
- "form-data": "4.0.0",
162
- "fs-extra": "8.1.0",
163
- "fuzzy": "0.1.3",
164
- "glob": "7.1.2",
165
- "gulp": "3.9.1",
166
- "hostile": "1.3.3",
167
- "http-proxy": "1.16.2",
168
- "http-proxy-middleware": "0.19.1",
169
- "http-server": "0.11.1",
170
- "incremental-compiler": "~13.1.21",
171
- "inquirer": "7.3.3",
172
- "inquirer-autocomplete-prompt": "1.3.0",
173
- "is-elevated": "3.0.0",
174
- "isomorphic-region-loader": "~13.1.33",
175
- "istanbul-instrumenter-loader": "2.0.0",
176
- "jasmine-core": "4.0.0",
177
- "jscodeshift": "0.6.3",
178
- "json10": "~13.1.40",
179
- "json10-writer": "~13.1.36",
180
- "json5-writer": "0.2.0",
181
- "jszip": "3.10.1",
182
- "karma": "6.3.0",
183
- "karma-chrome-launcher": "3.1.0",
184
- "karma-cli": "1.0.1",
185
- "karma-coverage": "2.1.0",
186
- "karma-jasmine": "4.0.0",
187
- "karma-jasmine-html-reporter": "1.7.0",
188
- "lnk": "1.0.1",
189
- "localforage": "1.10.0",
190
- "lockfile": "1.0.4",
191
- "lodash": "4.17.4",
192
- "lodash-walk-object": "~13.1.40",
193
- "lowdb": "1.0.0",
194
- "magic-renamer": "~13.1.37",
195
- "material-design-icons": "3.0.1",
196
- "method-override": "2.3.10",
197
- "minimist": "1.2.0",
198
- "mkdirp": "0.5.1",
199
- "mocha": "5.2.0",
200
- "moment": "2.22.2",
201
- "morphi": "~13.2.3",
202
- "ng-packagr": "13.0.0",
203
- "ng-talkback": "~13.1.19",
204
- "ng2-file-upload": "1.3.0",
205
- "ng2-logger": "~13.1.19",
206
- "ng2-rest": "~13.2.3",
207
- "ng4-icons": "~13.1.21",
208
- "ng4-modal": "~13.1.23",
209
- "ngx-ace-wrapper": "12",
210
- "ngx-bootstrap": "8.0.0",
211
- "ngx-editor": "12.2.1",
212
- "ngx-highlightjs": "6.1.3",
213
- "ngx-moment": "6.0.2",
214
- "ngx-pipes": "3.0.0",
215
- "ngx-progressbar": "8.0.0",
216
- "ngx-scrollbar": "9.0.2",
217
- "ngx-store": "3.1.1",
218
- "ngx-toastr": "14.2.2",
219
- "ngx-wig": "1.2.7",
220
- "node-cli-tester": "~13.1.19",
221
- "node-localstorage": "2.1.6",
222
- "node-notifier": "6.0.0",
223
- "nodemon": "1.14.11",
224
- "npm-get-dependents": "1.0.1",
225
- "npm-run": "4.1.2",
226
- "omelette": "0.4.5",
227
- "open": "7.2.1",
228
- "ora": "3.4.0",
229
- "passport": "0.3.2",
230
- "passport-http-bearer": "1.0.1",
231
- "password-hash": "1.2.2",
232
- "portfinder": "1.0.21",
233
- "prettier": "2.5.1",
234
- "progress": "2.0.3",
235
- "prompts": "0.1.8",
236
- "ps-list": "6.1.0",
237
- "ps-node": "0.1.6",
238
- "q": "1.5.1",
239
- "record-replay-req-res-scenario": "~13.1.20",
240
- "reflect-metadata": "0.1.10",
241
- "rimraf": "2.6.2",
242
- "rxjs": "~7.5.0",
243
- "semver": "6.3.0",
244
- "simple-git": "1.96.0",
245
- "sloc": "0.2.0",
246
- "socket.io": "2.4.1",
247
- "sort-package-json": "1.11.0",
248
- "sql.js": "1.8.0",
249
- "static-columns": "~13.3.2",
250
- "string-similarity": "4.0.2",
251
- "sudo-block": "3.0.0",
252
- "systeminformation": "3.45.7",
253
- "task.js": "0.1.5",
254
- "tnp-cli": "~13.1.54",
255
- "tnp-core": "~13.2.13",
256
- "tnp-db": "~13.1.17",
257
- "tnp-helpers": "~13.1.28",
258
- "tnp-models": "~13.1.20",
259
- "tnp-ui": "~13.1.27",
260
- "ts-debug": "1.3.0",
261
- "ts-loader": "2.3.1",
262
- "ts-node": "10.7.0",
263
- "tslib": "~2.3.0",
264
- "typeorm": "~0.3.10",
265
- "typescript": "~4.6.2",
266
- "typescript-class-helpers": "~13.2.5",
267
- "typescript-formatter": "~7.2.2",
268
- "underscore": "1.9.1",
269
- "uuid": "8.3.2",
270
- "validator": "9.2.0",
271
- "vpn-split": "~13.1.23",
272
- "watch": "1.0.2",
273
- "yup": "1.1.1",
274
- "zone.js": "~0.11.4"
275
- }
39
+ "devDependencies": {}
276
40
  }