Comparing version 7.0.5 to 7.0.6
@@ -8,8 +8,8 @@ "use strict"; | ||
const globalthis_1 = __importDefault(require("globalthis")); | ||
const factories_1 = require("./factories"); | ||
const createLogger_1 = require("./factories/createLogger"); | ||
const createRoarrInitialGlobalStateBrowser_1 = require("./factories/createRoarrInitialGlobalStateBrowser"); | ||
const globalThis = (0, globalthis_1.default)(); | ||
const ROARR = globalThis.ROARR = (0, factories_1.createRoarrInitialGlobalState)(globalThis.ROARR || {}); | ||
const ROARR = globalThis.ROARR = (0, createRoarrInitialGlobalStateBrowser_1.createRoarrInitialGlobalStateBrowser)(globalThis.ROARR || {}); | ||
exports.ROARR = ROARR; | ||
const logFactory = factories_1.createLogger; | ||
const Roarr = logFactory((message) => { | ||
const Roarr = (0, createLogger_1.createLogger)((message) => { | ||
if (ROARR.write) { | ||
@@ -16,0 +16,0 @@ // Stringify message as soon as it is received to prevent |
@@ -7,3 +7,2 @@ "use strict"; | ||
exports.createRoarrInitialGlobalState = void 0; | ||
const detect_node_1 = __importDefault(require("detect-node")); | ||
const semver_compare_1 = __importDefault(require("semver-compare")); | ||
@@ -27,3 +26,3 @@ const config_1 = require("../config"); | ||
}; | ||
if (detect_node_1.default && (currentIsLatestVersion || !newState.write)) { | ||
if (currentIsLatestVersion || !newState.write) { | ||
try { | ||
@@ -30,0 +29,0 @@ // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires |
@@ -11,3 +11,5 @@ "use strict"; | ||
const globalthis_1 = __importDefault(require("globalthis")); | ||
const factories_1 = require("./factories"); | ||
const createLogger_1 = require("./factories/createLogger"); | ||
const createMockLogger_1 = require("./factories/createMockLogger"); | ||
const createRoarrInitialGlobalState_1 = require("./factories/createRoarrInitialGlobalState"); | ||
const stringify = (0, fast_json_stringify_1.default)({ | ||
@@ -35,9 +37,9 @@ properties: { | ||
const globalThis = (0, globalthis_1.default)(); | ||
const ROARR = globalThis.ROARR = (0, factories_1.createRoarrInitialGlobalState)(globalThis.ROARR || {}); | ||
const ROARR = globalThis.ROARR = (0, createRoarrInitialGlobalState_1.createRoarrInitialGlobalState)(globalThis.ROARR || {}); | ||
exports.ROARR = ROARR; | ||
let logFactory = factories_1.createLogger; | ||
let logFactory = createLogger_1.createLogger; | ||
// eslint-disable-next-line node/no-process-env | ||
const enabled = (0, boolean_1.boolean)((_a = process.env.ROARR_LOG) !== null && _a !== void 0 ? _a : ''); | ||
if (!enabled) { | ||
logFactory = factories_1.createMockLogger; | ||
logFactory = createMockLogger_1.createMockLogger; | ||
} | ||
@@ -44,0 +46,0 @@ const Roarr = logFactory((message) => { |
@@ -21,3 +21,2 @@ { | ||
"boolean": "^3.1.4", | ||
"detect-node": "^2.1.0", | ||
"fast-json-stringify": "^2.7.9", | ||
@@ -84,3 +83,3 @@ "fast-printf": "^1.6.9", | ||
"typings": "./dist/src/Roarr.d.ts", | ||
"version": "7.0.5" | ||
"version": "7.0.6" | ||
} |
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
72270
7
1397
- Removeddetect-node@^2.1.0
- Removeddetect-node@2.1.0(transitive)