@emartech/json-logger 3.4.0 → 3.4.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/.npmignore ADDED
@@ -0,0 +1,4 @@
1
+ *.spec.js
2
+ node_modules
3
+ .idea
4
+ examples
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emartech/json-logger",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "Tiny and fast json logger with namespace support",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -96,7 +96,7 @@ Logger.config = {
96
96
  };
97
97
 
98
98
  const logMethodFactory = function(level) {
99
- return function(action, data) {
99
+ return function(action, data = {}) {
100
100
  if (!this._enabled) {
101
101
  return;
102
102
  }