loglevel-mixin 7.0.0 → 7.0.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.
- package/README.md +0 -5
- package/package.json +3 -3
- package/src/loglevel-mixin.mjs +1 -6
package/README.md
CHANGED
|
@@ -66,7 +66,6 @@ npm install loglevel-mixin
|
|
|
66
66
|
* [defineLoggerMethods](#defineloggermethods)
|
|
67
67
|
* [Parameters](#parameters-1)
|
|
68
68
|
* [Examples](#examples)
|
|
69
|
-
* [LOGLEVEL](#loglevel-1)
|
|
70
69
|
* [LogLevelMixin](#loglevelmixin)
|
|
71
70
|
* [Parameters](#parameters-2)
|
|
72
71
|
* [Examples](#examples-1)
|
|
@@ -139,10 +138,6 @@ obj.error('error entry'); // will redirect to theFunction if obj.loglevel is at
|
|
|
139
138
|
|
|
140
139
|
Returns **[undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined)** 
|
|
141
140
|
|
|
142
|
-
## LOGLEVEL
|
|
143
|
-
|
|
144
|
-
symbol holding the actual logLevel inside of the target object
|
|
145
|
-
|
|
146
141
|
## LogLevelMixin
|
|
147
142
|
|
|
148
143
|
<!-- skip-example -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loglevel-mixin",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "BSD-2-Clause",
|
|
22
22
|
"scripts": {
|
|
23
|
-
"test": "npm run test:ava && npm run test:
|
|
23
|
+
"test": "npm run test:browser-ava && npm run test:ava",
|
|
24
24
|
"test:ava": "ava --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
25
25
|
"test:browser-ava": "browser-ava --headless --no-keep-open tests/*-ava.mjs tests/*-ava-browser.mjs",
|
|
26
26
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"browser-ava": "^1.3.27",
|
|
34
34
|
"c8": "^7.13.0",
|
|
35
35
|
"documentation": "^14.0.1",
|
|
36
|
-
"semantic-release": "^20.1.
|
|
36
|
+
"semantic-release": "^20.1.3"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=16.19.1"
|
package/src/loglevel-mixin.mjs
CHANGED
|
@@ -124,12 +124,7 @@ export function LogLevelMixin(
|
|
|
124
124
|
initialLogLevel = defaultLogLevels.info
|
|
125
125
|
) {
|
|
126
126
|
const newClass = class extends superclass {
|
|
127
|
-
#logLevel;
|
|
128
|
-
|
|
129
|
-
constructor(...args) {
|
|
130
|
-
super(...args);
|
|
131
|
-
this.#logLevel = initialLogLevel;
|
|
132
|
-
}
|
|
127
|
+
#logLevel = initialLogLevel;
|
|
133
128
|
|
|
134
129
|
/**
|
|
135
130
|
* @return {string} name of the current log level
|