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

@workpop/simple-logger

Package Overview
Dependencies
Maintainers
14
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workpop/simple-logger - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

10

CHANGELOG.md

@@ -5,3 +5,13 @@ # Change Log

<a name="1.0.1"></a>
## [1.0.1](https://github.com/Workpop/simple-logger/compare/v1.0.0...v1.0.1) (2018-01-15)
### Bug Fixes
* **logger:** log error as console.error for gke ([c51d6fc](https://github.com/Workpop/simple-logger/commit/c51d6fc))
<a name="1.0.0"></a>
# 1.0.0 (2017-06-15)

10

lib/index.js

@@ -17,3 +17,3 @@ 'use strict';

function _log(category, level) {
var _console;
var _console2;

@@ -26,3 +26,9 @@ var now = (0, _moment2.default)().format();

(_console = console).log.apply(_console, [now + ' ' + level + ' [' + category + ']'].concat(args)); // eslint-disable-line no-console
if (level === 'ERROR') {
var _console;
return (_console = console).error.apply(_console, [now + ' ' + level + ' [' + category + ']'].concat(args)); // eslint-disable-line no-console
}
return (_console2 = console).log.apply(_console2, [now + ' ' + level + ' [' + category + ']'].concat(args)); // eslint-disable-line no-console
}

@@ -29,0 +35,0 @@

2

package.json
{
"name": "@workpop/simple-logger",
"version": "1.0.0",
"version": "1.0.1",
"description": "Simple console logger",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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