New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

logging-utils

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logging-utils - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

13

logging.js

@@ -56,3 +56,6 @@ 'use strict';

const Objects = require('core-functions/objects');
const copying = require('core-functions/copying');
const copy = copying.copy;
const merging = require('core-functions/merging');
const merge = merging.merge;

@@ -177,3 +180,3 @@ function noop() {

// replacing any existing clean settings
const loggingSettings = settings ? (options ? Objects.merge(options, settings) : settings) : options;
const loggingSettings = settings ? (options ? merge(options, settings) : settings) : options;

@@ -183,3 +186,3 @@ // Finalise the logging settings by using the default options to fill in any missing settings

const loggingSettingsWithDefaults = loggingSettings ?
Objects.merge(defaultOptions, loggingSettings) : defaultOptions;
merge(defaultOptions, loggingSettings) : defaultOptions;

@@ -294,3 +297,3 @@ // Configure logging with the finalised logging settings

const defaultOptions = loadDefaultLoggingOptions();
return defaultOptions ? Objects.merge(defaults, defaultOptions) : Objects.copy(defaults);
return defaultOptions ? merge(defaults, defaultOptions) : copy(defaults);
}

@@ -307,3 +310,3 @@

const cleaned = optionsOrSettings ? Objects.copy(optionsOrSettings) : {};
const cleaned = optionsOrSettings ? copy(optionsOrSettings) : {};

@@ -310,0 +313,0 @@ if (isValidLogLevel(cleaned.logLevel)) {

{
"name": "logging-utils",
"description": "Utilities for configuring simple log level based logging functionality on an object",
"version": "4.0.0",
"version": "4.0.1",
"author": "Byron du Preez",

@@ -16,4 +16,4 @@ "license": "Apache-2.0",

"dependencies": {
"core-functions": "^3.0.0"
"core-functions": "^3.0.2"
}
}

@@ -1,2 +0,2 @@

# logging-utils v4.0.0
# logging-utils v4.0.1
Utilities for configuring simple log level based logging functionality on an object.

@@ -189,2 +189,5 @@

## Changes
### 4.0.1
- Updated `core-functions` dependency to version 3.0.2

@@ -191,0 +194,0 @@ ### 4.0.0

{
"name": "logging-utils-tests",
"description": "Unit tests for logging-utils",
"version": "4.0.0",
"version": "4.0.1",
"author": "Byron du Preez",

@@ -6,0 +6,0 @@ "license": "Apache-2.0",

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