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

@apify/log

Package Overview
Dependencies
Maintainers
10
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apify/log - npm Package Compare versions

Comparing version 2.4.4 to 2.4.5

17

index.js

@@ -8,2 +8,3 @@ "use strict";

var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });

@@ -31,2 +32,6 @@ var __export = (target, all) => {

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
return value;
};

@@ -55,2 +60,3 @@ // src/index.ts

var import_ansi_colors = __toESM(require("ansi-colors"));
var import_node_util = require("util");

@@ -174,4 +180,9 @@ // src/logger.ts

const errorLines = errorString.split("\n");
const causeString = exception.cause ? (0, import_node_util.inspect)(exception.cause, { colors: true, maxArrayLength: 20 }) : null;
if (errDetails.length)
errorLines[0] += import_ansi_colors.default.gray(`(details: ${errDetails.join(", ")})`);
if (causeString) {
const causeLines = causeString.split("\n");
errorLines.push(import_ansi_colors.default.gray(`Cause: ${causeLines[0]}`), ...causeLines.slice(1).map((line) => ` ${line}`));
}
errStack = errorLines.map((line) => ` ${line}`).join("\n");

@@ -312,4 +323,6 @@ errStack = `

*/
this.LEVELS = LogLevel;
this.warningsOnceLogged = /* @__PURE__ */ new Set();
__publicField(this, "LEVELS", LogLevel);
// for BC
__publicField(this, "options");
__publicField(this, "warningsOnceLogged", /* @__PURE__ */ new Set());
this.options = { ...getDefaultOptions(), ...options };

@@ -316,0 +329,0 @@ if (!LogLevel[this.options.level])

4

package.json
{
"name": "@apify/log",
"version": "2.4.4",
"version": "2.4.5",
"description": "Tools and constants shared across Apify projects.",

@@ -49,3 +49,3 @@ "main": "./index.js",

},
"gitHead": "74a0c6c3ab7ed305f895d28b15125200904a4d34"
"gitHead": "a1c913e88bba115f184b95356dfc6162bc2b523a"
}

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

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