loglevel-mixin 6.0.7 → 6.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loglevel-mixin",
3
- "version": "6.0.7",
3
+ "version": "6.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,13 +29,13 @@
29
29
  "lint:docs": "documentation lint ./src/**/*.mjs"
30
30
  },
31
31
  "devDependencies": {
32
- "ava": "^4.0.1",
33
- "c8": "^7.11.0",
32
+ "ava": "^4.3.0",
33
+ "c8": "^7.11.3",
34
34
  "documentation": "^13.2.5",
35
35
  "semantic-release": "^19.0.2"
36
36
  },
37
37
  "engines": {
38
- "node": ">=14.18.3"
38
+ "node": ">=14.19.1"
39
39
  },
40
40
  "repository": {
41
41
  "type": "git",
@@ -74,24 +74,24 @@ export function defineLoggerMethods(
74
74
  {
75
75
  value:
76
76
  theFunction === undefined
77
- ? function(providerFunction) {
77
+ ? function(arg,...args) {
78
78
  if (this.logLevelPriority >= priority) {
79
79
  this.log(
80
80
  name,
81
- typeof providerFunction === "function"
82
- ? providerFunction(name)
83
- : providerFunction
81
+ typeof arg === "function"
82
+ ? arg(name)
83
+ : arg, ...args
84
84
  );
85
85
  }
86
86
  }
87
- : function(providerFunction) {
87
+ : function(arg,...args) {
88
88
  if (this.logLevelPriority >= priority) {
89
89
  theFunction.call(
90
90
  this,
91
91
  name,
92
- typeof providerFunction === "function"
93
- ? providerFunction(name)
94
- : providerFunction
92
+ typeof arg === "function"
93
+ ? arg(name)
94
+ : arg, ...args
95
95
  );
96
96
  }
97
97
  },