loglevel-mixin 6.0.7 → 6.1.0

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 CHANGED
@@ -56,22 +56,28 @@ npm install loglevel-mixin
56
56
 
57
57
  ### Table of Contents
58
58
 
59
- * [Logger](#logger)
60
- * [Properties](#properties)
61
- * [Loglevel](#loglevel)
62
- * [Properties](#properties-1)
63
- * [defaultLogLevels](#defaultloglevels)
64
- * [declareLevels](#declarelevels)
65
- * [Parameters](#parameters)
66
- * [defineLoggerMethods](#defineloggermethods)
67
- * [Parameters](#parameters-1)
68
- * [Examples](#examples)
69
- * [LOGLEVEL](#loglevel-1)
70
- * [LogLevelMixin](#loglevelmixin)
71
- * [Parameters](#parameters-2)
72
- * [Examples](#examples-1)
73
- * [makeLogEvent](#makelogevent)
74
- * [Parameters](#parameters-3)
59
+ - [loglevel-mixin](#loglevel-mixin)
60
+ - [usage](#usage)
61
+ - [install](#install)
62
+ - [API](#api)
63
+ - [Table of Contents](#table-of-contents)
64
+ - [Logger](#logger)
65
+ - [Properties](#properties)
66
+ - [Loglevel](#loglevel)
67
+ - [Properties](#properties-1)
68
+ - [defaultLogLevels](#defaultloglevels)
69
+ - [declareLevels](#declarelevels)
70
+ - [Parameters](#parameters)
71
+ - [defineLoggerMethods](#defineloggermethods)
72
+ - [Parameters](#parameters-1)
73
+ - [Examples](#examples)
74
+ - [LOGLEVEL](#loglevel-1)
75
+ - [LogLevelMixin](#loglevelmixin)
76
+ - [Parameters](#parameters-2)
77
+ - [Examples](#examples-1)
78
+ - [makeLogEvent](#makelogevent)
79
+ - [Parameters](#parameters-3)
80
+ - [license](#license)
75
81
 
76
82
  ## Logger
77
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loglevel-mixin",
3
- "version": "6.0.7",
3
+ "version": "6.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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
  },