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

@goodware/log

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goodware/log - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

GeneratorLogger.js

@@ -18,4 +18,4 @@ /* eslint-disable no-param-reassign */

* and the following methods:
* 1. error(error)
* 2. end(meessage) Logs endMessage and message with
* 1. error({Error} error)
* 2. end({*} message) Logs endMessage and message with:
* a) tag: 'end'

@@ -22,0 +22,0 @@ * b) operationId

@@ -38,5 +38,5 @@ const Defaults = require('./Defaults');

* GeneratorLogger.begin with the following additional properties:
* 1. sql
* 2. values
* 3. summary: A summarized version of the sql argument
* 1. {String} sql
* 2. {*[]} values
* 3. {String} summary: A summarized version of the sql argument
* See GeneratorLogger.begin for more information.

@@ -43,0 +43,0 @@ */

{
"name": "@goodware/log",
"version": "1.0.2",
"version": "1.0.3",
"description": "Winston3-based logging for Node.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -18,3 +18,3 @@ const { v1: uuidv1 } = require('uuid');

* ii. errorMessage
* iii. operationId: the uuid
* iii. operationId
* c) Throws the error (thus terminating this workflow)

@@ -24,3 +24,3 @@ * 4. Creates a log entry with:

* b) endMessage
* c) operationId: the uuid
* c) operationId
* 5. Returns the value from step 2

@@ -35,5 +35,5 @@ * @param {Object} logger

* exception:
* 1) The exception thrown by the task
* 2) logger
* 3) errorMessage
* 1) {Error} The exception thrown by the task
* 2) {Object} The logger argument
* 3) {*} The errorMessage argument
* The function returns either the message to log or a falsey value indicating nothing should be logged. The

@@ -55,2 +55,3 @@ * exception is rethrown regardless of the return value.

if (msg) logger.log('end', msg, { error });
throw error;
}

@@ -57,0 +58,0 @@ logger.log('end', endMessage);

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