loglevel-mixin 7.2.2 → 7.2.3

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/LICENSE CHANGED
@@ -1,23 +1,12 @@
1
- Copyright (c) 2015-2024 by Markus Felten
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
-
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
-
14
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ Copyright (C) 2015-2025 by Markus Felten
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any
4
+ purpose with or without fee is hereby granted.
5
+
6
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
7
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
8
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
9
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
10
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
11
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
12
+ PERFORMANCE OF THIS SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![npm](https://img.shields.io/npm/v/loglevel-mixin.svg)](https://www.npmjs.com/package/loglevel-mixin)
2
- [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
2
+ [![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)
3
3
  [![Typed with TypeScript](https://flat.badgen.net/badge/icon/Typed?icon=typescript\&label\&labelColor=blue\&color=555555)](https://typescriptlang.org)
4
4
  [![bundlejs](https://deno.bundlejs.com/?q=loglevel-mixin\&badge=detailed)](https://bundlejs.com/?q=loglevel-mixin)
5
5
  [![downloads](http://img.shields.io/npm/dm/loglevel-mixin.svg?style=flat-square)](https://npmjs.org/package/loglevel-mixin)
@@ -137,7 +137,7 @@ obj.info('info entry'); // will redirect to theFunction if obj.loglevel is at le
137
137
  obj.error('error entry'); // will redirect to theFunction if obj.loglevel is at least error
138
138
  ```
139
139
 
140
- Returns **[undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined)** 
140
+ Returns **void** 
141
141
 
142
142
  ## LogLevelMixin
143
143
 
@@ -172,7 +172,7 @@ Helper function to aggregate values into a log event.
172
172
  * `arg` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** original log message - level may be overwritten
173
173
  * `args` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** additional values to be merged into the final log event - values have precedence
174
174
 
175
- Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** suitable for log event processing
175
+ Returns **{message: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}** } suitable for log event processing
176
176
 
177
177
  # license
178
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loglevel-mixin",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -8,8 +8,8 @@
8
8
  "types": "./types/loglevel-mixin.d.mts",
9
9
  "exports": {
10
10
  ".": {
11
- "default": "./src/loglevel-mixin.mjs",
12
- "types": "./types/loglevel-mixin.d.mts"
11
+ "types": "./types/loglevel-mixin.d.mts",
12
+ "default": "./src/loglevel-mixin.mjs"
13
13
  }
14
14
  },
15
15
  "description": "mixin to declare logging methods named after a set of log levels",
@@ -23,29 +23,29 @@
23
23
  "email": "markus.felten@gmx.de"
24
24
  }
25
25
  ],
26
- "license": "BSD-2-Clause",
26
+ "license": "0BSD",
27
27
  "scripts": {
28
- "prepare": "npm run prepare:typescript",
29
- "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
30
- "test": "npm run test:browser-ava && npm run test:ava",
28
+ "prepare": "node --run prepare:typescript",
29
+ "prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target es2024 --lib esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
30
+ "test": "node --run test:browser-ava && node --run test:ava",
31
31
  "test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
32
32
  "test:browser-ava": "browser-ava --headless --no-keep-open tests/*-ava.mjs tests/*-ava-browser.mjs",
33
33
  "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
34
- "docs": "documentation readme --section=API ./src/**/*.mjs",
35
- "lint": "npm run lint:docs && npm run lint:typescript",
36
- "lint:docs": "documentation lint ./src/**/*.mjs",
37
- "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
34
+ "docs": "documentation readme --section=API ./src**/*.mjs",
35
+ "lint": "node --run lint:docs && node --run lint:typescript",
36
+ "lint:docs": "documentation lint ./src**/*.mjs",
37
+ "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
38
38
  },
39
39
  "devDependencies": {
40
- "ava": "^6.1.2",
41
- "browser-ava": "^2.2.2",
42
- "c8": "^9.1.0",
40
+ "ava": "^6.2.0",
41
+ "browser-ava": "^2.3.20",
42
+ "c8": "^10.1.3",
43
43
  "documentation": "^14.0.3",
44
- "semantic-release": "^23.0.2",
45
- "typescript": "^5.4.2"
44
+ "semantic-release": "^24.2.3",
45
+ "typescript": "^5.8.3"
46
46
  },
47
47
  "engines": {
48
- "node": ">=20.11.1"
48
+ "node": ">=22.15.0"
49
49
  },
50
50
  "repository": {
51
51
  "type": "git",
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  /**
13
- * default log levels
13
+ * Default log levels
14
14
  * - trace
15
15
  * - debug
16
16
  * - info