Comparing version 2.9.4 to 2.10.0
@@ -10,2 +10,4 @@ "use strict"; | ||
var _config = require("../config"); | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
@@ -28,2 +30,6 @@ | ||
var log = function log(a, b, c, d, e, f, g, h, i, k) { | ||
if (!_config.ROARR_LOG && !global.ROARR_LOG) { | ||
return; | ||
} | ||
var time = Date.now(); | ||
@@ -30,0 +36,0 @@ var sequence = global.ROARR.sequence++; |
@@ -10,4 +10,2 @@ "use strict"; | ||
var _config = require("./config"); | ||
global.ROARR = (0, _factories.createRoarrInititialGlobalState)(global.ROARR || {}); // We want to register just one event listener for 'exit' event | ||
@@ -26,6 +24,2 @@ // across all instances of Roarr. | ||
var _default = (0, _factories.createLogger)(function (message) { | ||
if (!_config.ROARR_LOG) { | ||
return; | ||
} | ||
var body = JSON.stringify(message); | ||
@@ -32,0 +26,0 @@ global.ROARR.write(body); |
@@ -77,3 +77,3 @@ { | ||
}, | ||
"version": "2.9.4" | ||
"version": "2.10.0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49106