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

diy-log

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diy-log - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

12

dist/index.js

@@ -5,8 +5,4 @@ "use strict";

};
Object.defineProperty(exports, "__esModule", { value: true });
exports.timestamp = exports.colors = exports.symbols = exports.warn = exports.success = exports.error = exports.info = exports.time = exports.log = void 0;
const picocolors_1 = __importDefault(require("picocolors"));
exports.colors = picocolors_1.default;
const time_stamp_1 = __importDefault(require("time-stamp"));
exports.timestamp = time_stamp_1.default;
function isUnicodeSupported() {

@@ -41,3 +37,2 @@ if (process.platform !== 'win32') {

})();
exports.symbols = symbols;
function logFn(fn, args, prefix) {

@@ -50,3 +45,2 @@ if (prefix) {

const log = (...args) => logFn(console.log, args);
exports.log = log;
const time = (...args) => {

@@ -56,10 +50,6 @@ const times = (0, time_stamp_1.default)('HH:mm:ss');

};
exports.time = time;
const info = (...args) => logFn(console.info, args, symbols.info);
exports.info = info;
const error = (...args) => logFn(console.error, args, symbols.error);
exports.error = error;
const success = (...args) => logFn(console.log, args, symbols.success);
exports.success = success;
const warn = (...args) => logFn(console.warn, args, symbols.warn);
exports.warn = warn;
module.exports = { log, time, info, error, success, warn, symbols, colors: picocolors_1.default, timestamp: time_stamp_1.default };

2

package.json
{
"name": "diy-log",
"version": "2.3.0",
"version": "2.4.0",
"description": "Log things, prefixed with a symbols or timestamp.",

@@ -5,0 +5,0 @@ "keywords": [

import colors from 'picocolors'
import timestamp from 'time-stamp'
declare const symbols: {
declare const Symbols: {
info: string

@@ -22,3 +22,3 @@ success: string

timestamp: typeof timestamp
symbols: typeof symbols
symbols: typeof Symbols
}

@@ -25,0 +25,0 @@

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