Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

roarr

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roarr - npm Package Compare versions

Comparing version 7.0.5 to 7.0.6

dist/src/factories/createRoarrInitialGlobalStateBrowser.d.ts

8

dist/src/browser.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc