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

metalog

Package Overview
Dependencies
Maintainers
5
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalog - npm Package Compare versions

Comparing version 3.0.0-alpha.4 to 3.0.0

12

metalog.js

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

// Returns: <Object>
const logTypes = types => {
const logTypes = (types) => {
types = types || LOG_TYPES;

@@ -74,3 +74,3 @@ const flags = {};

const nameToDays = fileName => {
const nameToDays = (fileName) => {
const fileTime = new Date(fileName.substring(0, 10)).getTime();

@@ -236,5 +236,5 @@ return Math.floor(fileTime / DAY_MILLISECONDS);

return new Promise((resolve, reject) => {
fs.access(this.path, err => {
fs.access(this.path, (err) => {
if (!err) resolve();
fs.mkdir(this.path, err => {
fs.mkdir(this.path, (err) => {
if (!err || err.code === 'EEXIST') {

@@ -296,3 +296,3 @@ resolve();

return new Promise((resolve, reject) => {
this.flush(err => {
this.flush((err) => {
if (err) {

@@ -400,4 +400,4 @@ process.stdout.write(`${err.stack}\n`);

const openLog = async args => new Logger(args);
const openLog = async (args) => new Logger(args);
module.exports = { Logger, openLog };
{
"name": "metalog",
"version": "3.0.0-alpha.4",
"version": "3.0.0",
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>",

@@ -42,3 +42,3 @@ "description": "Logger for Metarhia",

"@metarhia/common": "^2.1.0",
"concolor": "^0.1.16",
"concolor": "^1.0.0",
"metastreams": "^0.1.2"

@@ -51,3 +51,3 @@ },

"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.2.0",
"eslint-plugin-prettier": "^3.3.0",
"metatests": "^0.7.2",

@@ -54,0 +54,0 @@ "prettier": "^2.2.1"

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